/* Fairway Lab shared site styles. Keep page-specific additions grouped by section for easier theme migration. */

:root {
  --ink: #11150f;
  --paper: #fbfff6;
  --leaf: #d5f46b;
  --aqua: #79d9c2;
  --coral: #fb715f;
  --line: rgba(251, 255, 246, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #102c1f;
  letter-spacing: 0;
  overflow-x: hidden;
}

.flush-home,
.nav,
.bottom-progress {
  color: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

.flush-home a,
.nav a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.nav {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 50%;
  width: min(1060px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 59, 39, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(17, 21, 15, 0.18);
}

body.admin-bar .nav {
  top: 50px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(160px, 42vw);
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 42px;
  filter: brightness(0) invert(1);
}

.mark,
.icon {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: var(--ink);
}

.mark {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink) !important;
  font-family: "Altesse Std", "Snell Roundhand", "Brush Script MT", "Apple Chancery", "Segoe Script", cursive;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--coral);
  color: var(--ink) !important;
}

.round {
  position: relative;
  height: 560vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #17472e;
  isolation: isolate;
}

.stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 72% 34%, rgba(213, 244, 107, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(17, 21, 15, 0.78), rgba(17, 21, 15, 0.24) 54%, rgba(17, 21, 15, 0.72)),
    linear-gradient(0deg, rgba(17, 21, 15, 0.78), transparent 52%);
}

.course-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translateY(-5%);
  filter: saturate(1.08);
}

.copy-field {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 110px 24px 120px;
  text-align: center;
}

.story-copy {
  position: absolute;
  width: min(980px, calc(100vw - 48px));
  opacity: 0;
  transform: translateY(30px);
}

.story-copy.active {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(251, 255, 246, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flush-home h1,
.flush-home h2 {
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 10rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.line {
  display: block;
  overflow: hidden;
}

.line span {
  display: inline-block;
  transform: translateY(112%);
}

.story-copy p {
  max-width: 460px;
  margin: 24px auto 0;
  color: rgba(251, 255, 246, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 700;
  line-height: 1.5;
}

.ghost-word {
  position: absolute;
  z-index: 4;
  color: rgba(251, 255, 246, 0.08);
  font-size: clamp(8rem, 23vw, 23rem);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(110vw);
}

.ghost-word.one {
  top: 12vh;
  left: 0;
}

.ghost-word.two {
  right: 0;
  bottom: 12vh;
  transform: translateX(-110vw);
}

.end-field {
  position: absolute;
  z-index: 7;
  inset: 0;
  background: var(--coral);
  opacity: 0;
}

.bottom-progress {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 22px;
  width: min(620px, calc(100% - 40px));
  height: 120px;
  transform: translateX(-50%);
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  pointer-events: none;
}

.progress-track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.ball-flight-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.progress-path,
.progress-fill {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.progress-path {
  opacity: 0.38;
  stroke-width: 3;
}

.progress-fill {
  stroke-width: 4;
  transition: stroke-dashoffset 220ms ease;
}

.progress-ball {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  color: #fff;
  transform-origin: center;
  transition: left 120ms linear, top 120ms linear;
}

.golf-ball {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(17, 21, 15, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0 16%, transparent 17%),
    radial-gradient(circle at 58% 42%, rgba(17, 21, 15, 0.18) 0 7%, transparent 8%),
    radial-gradient(circle at 42% 62%, rgba(17, 21, 15, 0.14) 0 6%, transparent 7%),
    #fff;
  box-shadow: 0 8px 18px rgba(17, 21, 15, 0.28);
}

.progress-label {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.flush-home svg,
.bottom-progress svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.after-story {
  min-height: 85vh;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}

.after-story h2 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 7rem);
}

.shop-intro {
  display: grid;
  gap: 28px;
  justify-items: center;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.shop-button {
  min-width: 150px;
  background: #102c1f;
  color: var(--paper) !important;
  line-height: 1;
  text-decoration: none !important;
}

.shop-button:hover {
  background: var(--coral);
  color: var(--ink) !important;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .flush-home h1,
  .flush-home h2 {
    overflow-wrap: anywhere;
  }

  .copy-field {
    padding-inline: 18px;
  }

  .bottom-progress {
    bottom: 14px;
    width: calc(100% - 36px);
    height: 96px;
  }

  .progress-label {
    bottom: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    top: 10px;
    width: calc(100% - 20px);
  }

  body.admin-bar .nav {
    top: 56px;
  }

  .brand-logo {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
