/* ============================================================
   The Turn Performance Golf Club — brand stylesheet
   Palette: Cream · Turn Orange · Deep Pine · Graphite · Sage · Clay
   Type:    Roguel (display) · Archivo (body)
   ============================================================ */

@font-face {
  font-family: "Roguel";
  src: url("fonts/Roguel.woff2") format("woff2"),
       url("fonts/Roguel.otf") format("opentype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* brand colors */
  --orange:    #EE6A24;   /* Primary accent            */
  --orange-dk: #d55a18;
  --pine:      #244436;   /* Environmental accent / CTA */
  --pine-dk:   #1a3228;
  --graphite:  #333333;   /* Logo / headlines / text    */
  --cream:     #F5F1E8;   /* Background                 */
  --sage:      #A7B39C;   /* Secondary / labels         */
  --clay:      #B98D67;   /* Secondary background       */

  /* semantic tokens (legacy names kept so inline styles remap cleanly) */
  --bg:        #F5F1E8;
  --surface:   #FBF8F1;   /* raised warm-white panels   */
  --surface-2: #FFFFFF;   /* cards                      */
  --line:      #E4DDCC;   /* hairline borders           */
  --text:      #333333;
  --muted:     #6A6155;   /* readable secondary text    */
  --green:     #EE6A24;   /* legacy accent -> orange    */
  --green-dk:  #d55a18;
  --gold:      #B98D67;   /* legacy -> clay             */

  --radius:    16px;
  --maxw:      1180px;
  --shadow:    0 18px 50px rgba(36,36,36,.10);
  --shadow-sm: 0 8px 24px rgba(36,36,36,.07);
  --font:      "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display:   "Roguel", "Archivo", "Arial Narrow", sans-serif;
  --serif:     "Archivo", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- headings (Roguel display) ---------- */
h1, h2, h3 { font-family: var(--display); line-height: 1.02; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; color: var(--graphite); }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.35rem; letter-spacing: .6px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 16px;
}

.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
p { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: var(--cream); }
.btn-primary:hover { background: var(--pine-dk); color: #fff; }
.btn-ghost { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dk); color:#fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,232,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 118px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 93px; width: auto; display: block; }
/* legacy brand fallback (round mark) — hidden in favor of logo image */
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.brand .name { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .5px; color: var(--graphite); line-height:1; }
.brand .name small { display:block; font-family: var(--font); color: var(--muted); font-weight: 600; font-size: .6rem; letter-spacing: .2em; margin-top:4px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--graphite); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links .btn { padding: 12px 24px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; color: var(--graphite); cursor: pointer; }
.nav-toggle span { display:block; width: 26px; height: 2px; background: var(--graphite); margin: 6px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 520px at 82% -12%, rgba(238,106,36,.10), transparent 60%),
    radial-gradient(760px 460px at -5% 108%, rgba(167,179,156,.28), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero h1 { color: var(--graphite); }
.hero h1 span { color: var(--orange); }
.hero .lead { margin-top: 24px; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--display); font-size: 2.8rem; font-weight: 400; color: var(--pine); line-height:1; }
.hero-stats .stat .lab { color: var(--muted); font-size: .9rem; letter-spacing: .04em; margin-top:6px; }

/* faint crane watermark in hero */
.hero::after {
  content: "";
  position: absolute; right: -60px; bottom: -40px;
  width: 340px; height: 340px;
  background: url("logo-icon-orange.svg") no-repeat center / contain;
  opacity: .06; pointer-events: none;
  transform: rotate(-4deg);
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.pine { background: var(--pine); }
.section.pine h2, .section.pine .lead, .section.pine p { color: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(238,106,36,.4); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(238,106,36,.12); color: var(--orange);
  display: grid; place-items: center; margin-bottom: 20px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 10px; color: var(--graphite); }
.card p { color: var(--muted); font-size: .98rem; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > div:first-child { order: 2; }
.split img { box-shadow: var(--shadow); }

/* ---------- booking ---------- */
.booking { text-align: center; }

/* ---------- team ---------- */
.team-card { text-align: center; }
.team-card .avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 2.2rem; color: var(--orange);
}
.team-card .role { color: var(--orange); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; font-family: var(--font); }
.team-card p { color: var(--muted); font-size: .95rem; }
.tag { display:inline-block; font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color: var(--pine); background: rgba(167,179,156,.28); border:1px solid rgba(36,68,54,.16); border-radius:999px; padding:4px 11px; margin:14px 6px 0 0; font-weight:600; }

/* ---------- events ---------- */
.event {
  display: grid; grid-template-columns: 118px 1fr auto; gap: 26px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s;
}
.event:hover { border-color: rgba(238,106,36,.45); transform: translateY(-2px); }
.event .when { text-align: center; border-right: 1px solid var(--line); padding-right: 22px; }
.event .when .day { font-family: var(--display); font-size: 2rem; font-weight: 400; color: var(--orange); line-height: 1; }
.event .when .time { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.event .what h3 { margin-bottom: 5px; }
.event .what p { color: var(--muted); font-size: .93rem; }
.event .cta .btn { padding: 11px 22px; font-size: .86rem; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--pine);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content:""; position:absolute; right:-40px; top:-30px; width:220px; height:220px;
  background:url("logo-icon-orange.svg") no-repeat center/contain; opacity:.12; transform:rotate(6deg);
}
.cta-band .eyebrow { color: var(--sage); }
.cta-band h2 { margin-bottom: 16px; color: var(--cream); }
.cta-band p { color: rgba(245,241,232,.82); max-width: 580px; margin: 0 auto 30px; position:relative; }
.cta-band .btn-primary { background: var(--orange); color:#fff; }
.cta-band .btn-primary:hover { background: var(--orange-dk); }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: rgba(245,241,232,.7); padding: 64px 0 38px; }
.site-footer .brand-logo { height: 110px; }
.site-footer p { color: rgba(245,241,232,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-grid h4 { color: var(--cream); font-family: var(--font); font-size: .8rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom: 16px; }
.footer-grid a { display:block; color: rgba(245,241,232,.68); font-size: .92rem; padding: 5px 0; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(245,241,232,.14); padding-top: 24px; font-size: .84rem; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(245,241,232,.5); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse > div:first-child { grid-template-columns: 1fr; order: 0; }
  .split { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links {
    position: absolute; top: 118px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; }
  .nav-toggle { display: block; }
  .event { grid-template-columns: 92px 1fr; }
  .event .cta { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
}
