/* ============================================================
   Brian Nielsen · Golf & Events — Costa del Sol
   Modern redesign
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --forest:       #123b30;
  --forest-deep:  #0d2a22;
  --forest-700:   #164a3c;
  --clay:         #d0673c;
  --clay-deep:    #b4552e;
  --gold:         #c7a04b;
  --sand:         #f3ead9;
  --cream:        #f8f3ea;
  --paper:        #fffdf8;
  --ink:          #16211c;
  --muted:        #5c655f;
  --line:         rgba(18,59,48,.14);

  --maxw: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(13,42,34,.45);
  --shadow-sm: 0 10px 30px -14px rgba(13,42,34,.38);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--clay-deep);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--clay); display: inline-block;
}
.eyebrow.center::before { display: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
h2.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--forest); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 14px 30px -12px rgba(176,85,46,.8); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-deep); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 1.2rem 0;
}
.header.scrolled {
  background: rgba(248,243,234,.88);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
  padding: .75rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; transition: color .4s var(--ease); }
.header.scrolled .brand { color: var(--forest); }
.brand .name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; }
.brand .tag { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: rgba(255,255,255,.92); font-size: .95rem; font-weight: 500; position: relative; padding: .3rem 0;
  transition: color .3s var(--ease);
}
.header.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--clay); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { color: #fff; font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem; transition: color .4s var(--ease); }
.header.scrolled .nav-phone { color: var(--forest); }
.nav-phone svg { width: 16px; height: 16px; }

.burger { display: none; flex-direction: column; gap: 5px; width: 30px; z-index: 110; }
.burger span { height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.header.scrolled .burger span { background: var(--forest); }
.burger.open span { background: var(--forest); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(13,42,34,.92) 0%, rgba(13,42,34,.35) 45%, rgba(13,42,34,.25) 100%),
    linear-gradient(to right, rgba(13,42,34,.55), transparent 60%);
}
.hero-inner { padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: 9rem; width: 100%; }
.hero .eyebrow { color: #f0c08a; }
.hero .eyebrow::before { background: #f0c08a; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 16ch; margin: 1.3rem 0 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 em { font-style: italic; color: #f0c08a; }
.hero p.lede { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.2rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-trust .item .n { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.hero-trust .item .l { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: .4rem; }

.scroll-hint {
  position: absolute; right: 4vw; bottom: 2.5rem; writing-mode: vertical-rl;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; opacity: .7;
  display: flex; align-items: center; gap: 1rem;
}
.scroll-hint::after { content: ""; width: 1px; height: 46px; background: rgba(255,255,255,.6); animation: scrollpulse 2s infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ---------- Marquee / intro strip ---------- */
.strip {
  background: var(--forest); color: var(--sand); padding: 1.1rem 0; overflow: hidden;
  border-block: 1px solid var(--forest-700);
}
.strip-track { display: flex; gap: 3.5rem; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.strip-track span { font-family: var(--font-display); font-size: 1.15rem; display: inline-flex; align-items: center; gap: 3.5rem; opacity: .92; }
.strip-track span::after { content: "✦"; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / about ---------- */
.intro { background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.intro-copy h2 { margin: 1rem 0 1.4rem; }
.intro-copy p + p { margin-top: 1rem; }
.intro-sign { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.intro-sign .who { font-weight: 700; color: var(--forest); }
.intro-sign .role { font-size: .85rem; color: var(--muted); }
.intro-visual { position: relative; }
.intro-visual img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.intro-badge {
  position: absolute; left: -1.5rem; bottom: -1.5rem; background: var(--clay); color: #fff;
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); max-width: 220px;
}
.intro-badge .big { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.intro-badge .small { font-size: .82rem; opacity: .92; margin-top: .3rem; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.services-head .lede { margin-top: 1rem; }

.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.3rem; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; padding: 1.6rem; isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.card:hover img { transform: scale(1.07); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(13,42,34,.9) 5%, rgba(13,42,34,.25) 55%, rgba(13,42,34,.1) 100%);
  transition: background .5s var(--ease);
}
.card:hover::after { background: linear-gradient(to top, rgba(13,42,34,.94) 10%, rgba(13,42,34,.4) 65%, rgba(13,42,34,.2) 100%); }
.card .num { font-size: .75rem; letter-spacing: .2em; opacity: .7; margin-bottom: auto; }
.card h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.card p { font-size: .95rem; color: rgba(255,255,255,.85); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s var(--ease); }
.card:hover p { max-height: 120px; opacity: 1; margin-top: .3rem; }
.card .go { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; color: #f0c08a; }
.card .go svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .go svg { transform: translateX(4px); }

.card.wide { grid-column: span 3; }
.card.third { grid-column: span 2; }

/* ---------- Stats band ---------- */
.stats { background: var(--forest); color: var(--sand); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); color: #fff; line-height: 1; }
.stat .n .suffix { color: var(--gold); }
.stat .l { font-size: .9rem; letter-spacing: .06em; opacity: .85; margin-top: .6rem; }

/* ---------- Experience / coast band ---------- */
.coast { position: relative; color: #fff; overflow: hidden; }
.coast-bg { position: absolute; inset: 0; z-index: -2; }
.coast-bg img { width: 100%; height: 100%; object-fit: cover; }
.coast::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(120deg, rgba(13,42,34,.9), rgba(13,42,34,.45) 70%, transparent); }
.coast .inner { max-width: 560px; padding: clamp(5rem,10vw,9rem) 0; }
.coast h2 { color: #fff; margin: 1rem 0 1.3rem; }
.coast .lede { color: rgba(255,255,255,.9); }
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; margin-top: 2rem; }
.courses li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.courses li::before { content: "⛳"; }

/* ---------- Steps / how it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.step .no { font-family: var(--font-display); font-size: 1rem; color: #fff; background: var(--clay); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.3rem; color: var(--forest); margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Testimonials ---------- */
.testi { background: var(--sand); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.quote { background: var(--paper); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote .stars { color: var(--gold); letter-spacing: .15em; margin-bottom: 1rem; }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote .by { margin-top: auto; padding-top: 1.4rem; font-weight: 600; color: var(--forest); }
.quote .by span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }

/* ---------- CTA / Contact ---------- */
.contact { background: var(--forest-deep); color: var(--sand); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(199,160,75,.22), transparent 70%); pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; position: relative; }
.contact h2 { color: #fff; margin: 1rem 0 1.2rem; }
.contact .lede { color: rgba(243,234,217,.85); }
.contact-info { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; }
.cinfo .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.cinfo .ico svg { width: 20px; height: 20px; color: var(--gold); }
.cinfo .k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.cinfo .v { font-size: 1.1rem; font-weight: 600; color: #fff; }
.cinfo .v a:hover { color: var(--gold); }
.cinfo .v small { display: block; font-weight: 400; font-size: .85rem; opacity: .7; }

.form { background: var(--paper); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow); color: var(--ink); }
.form h3 { color: var(--forest); font-size: 1.6rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--forest); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--cream); color: var(--ink); transition: border .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(208,103,60,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; margin-top: .3rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; margin: 0 auto 1.2rem; font-size: 1.8rem; }
.form-success h3 { margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(243,234,217,.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand .name { color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: .3rem 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-about p { margin-top: 1.2rem; max-width: 34ch; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .card.wide, .card.third { grid-column: span 1; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-visual { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .steps-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card p { max-height: 120px; opacity: 1; margin-top: .3rem; } /* show on tap-less mobile */
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .card { min-height: 300px; }
  .nav-links, .nav-phone { display: none; }
  .nav-links.open {
    display: flex; position: fixed; inset: 0; background: var(--cream); flex-direction: column;
    justify-content: center; align-items: center; gap: 2rem; font-size: 1.4rem;
  }
  .nav-links.open a { color: var(--forest); }
  .burger { display: flex; }
  .hero-trust { gap: 1.6rem 2rem; }
  .courses { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
