/* ==========================================================================
   Utah Golf Sim LLC — site styles
   Palette: deep fairway green / near-black green / warm off-white / brass
   Type: Fraunces (display) · Inter (body) · IBM Plex Mono (data readouts only)
   ========================================================================== */

:root {
  --green: #16281E;        /* deep fairway green — primary */
  --green-dark: #0E1A13;   /* near-black green — contrast sections */
  --paper: #F7F5F0;        /* warm off-white */
  --brass: #C9A15A;        /* accent — use sparingly */

  --ink: #1C2B22;                          /* body text on paper */
  --ink-soft: #4A594F;                     /* secondary text on paper */
  --paper-soft: rgba(247, 245, 240, 0.72); /* secondary text on green */
  --line: rgba(22, 40, 30, 0.14);          /* hairlines on paper */
  --line-dark: rgba(247, 245, 240, 0.16);  /* hairlines on green */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1100px;
  --radius: 6px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--green);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

ul {
  padding-left: 1.2em;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--green-dark);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo svg {
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--paper-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom: 2px solid var(--brass);
}

.site-nav .nav-cta {
  color: var(--green-dark);
  background: var(--brass);
  border-radius: var(--radius);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  border-bottom: none;
}

.site-nav .nav-cta:hover {
  color: var(--green-dark);
  background: #D9B270;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--green-dark);
}

.btn-primary:hover {
  background: #D9B270;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-dark);
}

.btn-ghost:hover {
  border-color: var(--paper-soft);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--green);
  /* photo + directional scrim: ~90% over the copy, easing to ~35% where
     the ball sits, so the average sits in the 55-65% band */
  background-image:
    linear-gradient(92deg,
      rgba(14, 26, 19, 0.93) 0%,
      rgba(14, 26, 19, 0.82) 34%,
      rgba(22, 40, 30, 0.52) 68%,
      rgba(22, 40, 30, 0.35) 100%),
    url("../assets/hero.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: var(--paper);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  min-height: min(76vh, 660px);
  padding-top: 4rem;
  padding-bottom: 9rem; /* room for the tracer overlay */
}

.hero-copy {
  max-width: 34rem;
}

.hero h1 {
  color: var(--paper);
  max-width: 15ch;
}

.hero .lede {
  color: var(--paper-soft);
  font-size: 1.15rem;
  max-width: 52ch;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 0;
}

/* Ball-flight trajectory — the one bold visual moment.
   Bleeds off the right edge of the viewport, over the hero photo. */

.trajectory {
  display: block;
  position: absolute;
  right: -2vw;
  bottom: 4px;
  width: min(51vw, 760px);
  height: auto;
  pointer-events: none;
}

.trajectory .flight-path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
}

.trajectory .ground {
  stroke: var(--line-dark);
  stroke-width: 1;
}

.trajectory .tick {
  stroke: var(--line-dark);
  stroke-width: 1;
}

.trajectory .readout {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--paper);
}

.trajectory .readout-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--paper-soft);
}

.trajectory .yardage {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  fill: rgba(247, 245, 240, 0.4);
}

.trajectory .marker {
  fill: var(--brass);
}

.trajectory .leader {
  stroke: rgba(201, 161, 90, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  fill: none;
}

/* Resting state is fully visible; animation only adds the draw-on.
   If animations never run (reduced motion, background tab, no JS),
   the tracer still shows. */
@media (prefers-reduced-motion: no-preference) {
  .trajectory .flight-path {
    stroke-dasharray: 1100;
    animation: draw-flight 2.4s cubic-bezier(0.33, 0.1, 0.3, 1) 0.3s backwards;
  }

  .trajectory .readout-group {
    animation: fade-readout 0.6s ease backwards;
  }

  .trajectory .readout-launch  { animation-delay: 0.6s; }
  .trajectory .readout-speed   { animation-delay: 1.2s; }
  .trajectory .readout-apex    { animation-delay: 1.8s; }
  .trajectory .readout-carry   { animation-delay: 2.5s; }

  @keyframes draw-flight {
    from { stroke-dashoffset: 1100; }
    to { stroke-dashoffset: 0; }
  }

  @keyframes fade-readout {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 4.75rem 0 5.25rem;
}

/* Pacing modifiers — sections should not stack at one uniform height */
.section-tight {
  padding: 3.25rem 0 3.75rem;
}

.section-roomy {
  padding: 6.25rem 0 6.75rem;
}

/* Fine film-grain noise, tiled; embedded so there's no extra request */
:root {
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-dark {
  background-color: var(--green-dark);
  background-image:
    var(--noise),
    radial-gradient(1100px 520px at 82% -12%, rgba(201, 161, 90, 0.085), transparent 62%),
    linear-gradient(180deg, #132218 0%, var(--green-dark) 100%);
  color: var(--paper);
}

.section-dark h2,
.section-dark h3 {
  color: var(--paper);
}

.section-dark p {
  color: var(--paper-soft);
}

.section-dark a {
  color: var(--paper);
}

.section-intro {
  max-width: 58ch;
}

.section-intro.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Dealer strip */

.dealer-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}

.dealer-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 1rem 2.75rem;
}

.dealer-strip .strip-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dealer-strip .brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--green);
  white-space: nowrap;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature h3 {
  margin-bottom: 0.4em;
}

.feature p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.feature .feature-icon {
  color: var(--brass);
  margin-bottom: 1rem;
}

/* ---------- Tier cards ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.tier-card {
  background: var(--paper);
  color: var(--ink); /* cards stay light even inside .section-dark */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 2px rgba(14, 26, 19, 0.25),
    0 20px 44px -20px rgba(0, 0, 0, 0.5);
}

.tier-card.tier-featured {
  border-color: var(--brass);
  box-shadow:
    0 1px 2px rgba(14, 26, 19, 0.3),
    0 28px 56px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(-6px);
}

.tier-card .tier-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.tier-card.tier-featured .tier-tag {
  color: var(--brass);
}

.tier-card h3,
.section-dark .tier-card h3 {
  color: var(--green);
  margin-bottom: 0.35em;
}

.tier-card .tier-blurb,
.section-dark .tier-card .tier-blurb {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.75rem;
  flex-grow: 1;
}

.tier-card li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  position: relative;
}

.tier-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.85rem;
  height: 2px;
  background: var(--brass);
}

.tier-card .btn {
  align-self: flex-start;
}

.section-dark .tier-card .btn-outline {
  color: var(--green);
}

.section-dark .tier-card .btn-outline:hover {
  color: var(--paper);
}

.pricing-note {
  margin-top: 2.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- Process steps (How It Works only) ---------- */

.steps {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 560;
  color: var(--brass);
  line-height: 1;
}

.step h3 {
  margin-top: 0.3rem;
}

.step p {
  color: var(--ink-soft);
}

.step p:last-child {
  margin-bottom: 0;
}

/* Room-spec readout block */

.spec-panel {
  background-color: var(--green);
  background-image:
    var(--noise),
    radial-gradient(640px 300px at 90% -20%, rgba(201, 161, 90, 0.09), transparent 60%);
  border: 1px solid rgba(201, 161, 90, 0.16);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 24px 48px -24px rgba(14, 26, 19, 0.55);
}

.spec-panel .spec-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-soft);
  margin-bottom: 1.5rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.spec {
  border-left: 2px solid var(--brass);
  padding-left: 1rem;
}

.spec .spec-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  color: var(--paper);
  display: block;
}

.spec .spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-soft);
}

.spec-footnote {
  color: var(--paper-soft);
  font-size: 0.88rem;
  margin: 1.5rem 0 0;
}

/* ---------- Gallery placeholders ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 1px 2px rgba(14, 26, 19, 0.06),
    0 16px 36px -20px rgba(14, 26, 19, 0.35);
}

.gallery-card .card-canvas {
  aspect-ratio: 4 / 3;
  background-color: var(--green-dark);
  background-image:
    var(--noise),
    radial-gradient(360px 240px at 78% -10%, rgba(201, 161, 90, 0.10), transparent 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  padding: 1.25rem;
}

.gallery-card .card-canvas svg {
  width: 78%;
  height: auto;
}

.gallery-card .card-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.gallery-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25em;
}

.gallery-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.coming-soon-note {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
}

/* ---------- Forms ---------- */

.quote-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.form-field .hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid rgba(22, 40, 30, 0.28);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.quote-form .btn {
  margin-top: 1.75rem;
}

.quote-aside {
  border-left: 2px solid var(--brass);
  padding-left: 1.75rem;
}

.quote-aside h2 {
  font-size: 1.4rem;
}

.quote-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quote-aside li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.quote-aside li strong {
  color: var(--green);
  display: block;
}

.contact-lines {
  margin-top: 2rem;
  font-size: 0.97rem;
}

.contact-lines a {
  font-weight: 600;
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-card {
  background: var(--green);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
}

.about-card h2 {
  color: var(--paper);
  font-size: 1.35rem;
}

.about-card p {
  color: var(--paper-soft);
  font-size: 0.97rem;
}

.about-card a {
  color: var(--paper);
}

.about-card .divider {
  border: none;
  border-top: 1px solid var(--line-dark);
  margin: 1.5rem 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background-color: var(--green-dark);
  background-image:
    var(--noise),
    radial-gradient(900px 420px at 50% 120%, rgba(201, 161, 90, 0.10), transparent 60%);
  color: var(--paper);
  padding: 5.5rem 0 6rem;
  text-align: center;
}

.cta-band h2 {
  color: var(--paper);
}

.cta-band p {
  color: var(--paper-soft);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-dark);
  color: var(--paper-soft);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer .logo-stacked svg {
  margin-left: -10px; /* optically align lockup with the text column */
}

.site-footer h3 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: var(--paper-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.45);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--green);
  color: var(--paper);
  padding: 4rem 0;
}

.page-hero h1 {
  color: var(--paper);
}

.page-hero .lede {
  color: var(--paper-soft);
  font-size: 1.12rem;
  max-width: 56ch;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3.5rem;
    padding-bottom: 0;
  }

  .trajectory {
    position: static;
    width: 100%;
    margin: 2.75rem 0 0;
  }

  .feature-grid,
  .tier-grid,
  .gallery-grid,
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .quote-aside {
    border-left: none;
    border-top: 2px solid var(--brass);
    padding-left: 0;
    padding-top: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    /* smaller image + flat scrim: copy spans the full width here */
    background-image:
      linear-gradient(rgba(14, 26, 19, 0.8), rgba(14, 26, 19, 0.8)),
      url("../assets/hero-mobile.jpg");
  }

  .section {
    padding: 3.25rem 0;
  }

  .feature-grid,
  .tier-grid,
  .gallery-grid,
  .spec-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 64px 1fr;
    gap: 1.25rem;
  }

  .step-number {
    font-size: 1.9rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.75rem 1.25rem 1.5rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--line-dark);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-top: 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .site-nav .nav-cta {
    text-align: center;
  }
}
