/* World Golf Concierge — colours taken from the logo badge */
:root {
  --green: #0f4536;
  --green-d: #0a2f25;
  --navy: #162340;
  --gold: #c9a96e;
  --gold-d: #a88748;
  --cream: #f7f4ec;
  --ink: #17211d;
  --muted: #5b6863;
  --line: #e3e0d6;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 30, 25, 0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px 12px; }
.eyebrow { font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-d); margin: 0 0 0.9em; }
.eyebrow a { color: inherit; text-decoration: none; }
.beta { background: var(--navy); color: #d8d2c2; text-align: center; font-size: 0.8rem; padding: 6px 12px; letter-spacing: 0.04em; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font: 600 0.95rem/1 var(--sans); padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; transition: 0.15s; cursor: pointer; white-space: nowrap; }
.btn.lg { padding: 16px 28px; font-size: 1rem; }
.btn.sm { padding: 9px 16px; font-size: 0.85rem; margin-top: 10px; }
.btn.block { display: block; text-align: center; }
.btn-gold { background: var(--gold); color: var(--green-d); }
.btn-gold:hover { background: #d8bb84; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hdr { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font: 700 1.2rem var(--serif); color: var(--green); letter-spacing: 0.01em; }
.brand i { font: 600 0.7rem var(--sans); font-style: normal; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-d); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .has-mega > a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; padding: 10px 12px; border-radius: 8px; }
.nav > a:hover, .has-mega > a:hover, .nav a[aria-current] { color: var(--green); background: var(--cream); }
.nav .btn { margin-left: 10px; color: var(--green-d); }
.has-mega { position: relative; }
.mega { position: absolute; left: -20px; top: 100%; display: none; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: flex; }
.mega-col { min-width: 170px; }
.mega h4 { margin: 0 0 8px; font: 600 0.72rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-d); }
.mega a { display: block; text-decoration: none; color: var(--ink); padding: 5px 0; }
.mega a:hover { color: var(--green); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--green); margin: 5px 0; border-radius: 2px; }

/* hero */
.hero { position: relative; color: #fff; background: var(--green-d) var(--hero) center/cover no-repeat; min-height: 78vh; display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 25, 20, 0.15) 0%, rgba(6, 25, 20, 0.35) 45%, rgba(6, 25, 20, 0.82) 100%); }
.hero-in { position: relative; padding-top: 120px; padding-bottom: 72px; max-width: 1200px; width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero h1, .hero .lead { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .lead { font-size: 1.15rem; max-width: 60ch; color: #eef0ea; margin: 0 0 1.6em; }
.hero-sm { min-height: 44vh; }
.hero-sm .hero-in { padding-top: 90px; padding-bottom: 48px; }
.hero-sm h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* trust strip */
.trust { background: var(--green); color: #fff; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
.trust b { display: block; font: 600 1.6rem var(--serif); color: var(--gold); }
.trust span { font-size: 0.88rem; color: #d7e3dd; }

/* sections */
.sec { padding: 80px 0; }
.sec.tight { padding: 48px 0 72px; }
.sec.alt { background: var(--cream); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head.left { text-align: left; margin: 0 0 24px; max-width: none; }
.sec-head p { color: var(--muted); }

/* destination tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(5, 22, 18, 0.85)); }
.tile b { display: block; font: 600 1.45rem var(--serif); }
.tile small { color: #e4dcc8; font-size: 0.85rem; }

/* course cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 16/10; background: var(--cream); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { font-size: 1.12rem; margin: 0 0 4px; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card .loc { font-size: 0.85rem; color: var(--gold-d); font-weight: 500; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: var(--gold); font: 600 0.7rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.card[hidden] { display: none; }

/* filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip { font: 500 0.9rem var(--sans); border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chip small { color: var(--muted); margin-left: 2px; }
.chip[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-pressed='true'] small { color: var(--gold); }
.finder input { width: 100%; font: 1.05rem var(--sans); padding: 15px 20px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; background: var(--cream); }
.finder input:focus { outline: 2px solid var(--gold); background: #fff; }
.count { color: var(--muted); font-size: 0.9rem; margin: -10px 0 18px; }

/* crumbs */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }

/* course detail */
.course-hero { position: relative; color: #fff; background: var(--green-d) var(--hero) center/cover; min-height: 62vh; display: flex; align-items: flex-end; }
.course-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 25, 20, 0.85)); }
.course-hero .wrap { position: relative; width: 100%; padding-bottom: 48px; }
.course-hero h1 { color: #fff; max-width: 20ch; }
.course-hero .eyebrow { color: var(--gold); }
.course-hero .badge { position: static; display: inline-block; }
.course { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.course-main p { font-size: 1.05rem; }
.course-side { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.course-side dl { margin: 0 0 20px; }
.course-side dt { font: 600 0.72rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-d); }
.course-side dd { margin: 2px 0 14px; }

/* bands */
.how .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--cream); border-radius: var(--radius); padding: 26px 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 1.6rem var(--serif); color: var(--gold-d); margin-bottom: 8px; }
.steps b { display: block; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 0.95rem; }
.advisor-band { background: var(--navy); color: #dfe3ec; }
.advisor-band h2 { color: #fff; }
.advisor-in, .cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 56px; padding-bottom: 56px; }
.advisor-in p { max-width: 60ch; margin: 0; }
.cta-band { background: var(--green) url('/img/courses/old-course-st-andrews-sm.jpg') center/cover; position: relative; color: #fff; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: rgba(8, 40, 31, 0.88); }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e3dd; max-width: 60ch; margin: 0; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.panel { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-d); font-weight: 700; }

/* prose */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose li { margin-bottom: 0.4em; }

/* intake iframe */
.intake { width: 100%; height: 1900px; border: 0; display: block; }

/* footer */
.site-footer { background: var(--green-d); color: #c9d6d0; font-size: 0.93rem; }
.ftr { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 60px; padding-bottom: 40px; }
.ftr h4 { color: var(--gold); font: 600 0.75rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px; }
.ftr a { display: block; color: #e6ece8; text-decoration: none; padding: 3px 0; }
.ftr a:hover { color: var(--gold); }
.ftr .btn { display: inline-block; color: var(--green-d); }
.ftr-brand img:first-child { border-radius: 12px; margin-bottom: 14px; }
.ftr-brand p { max-width: 36ch; }
.iagto { margin-top: 14px; background: #fff; border-radius: 8px; padding: 6px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; padding-bottom: 28px; font-size: 0.82rem; color: #9fb3aa; }
.legal a { color: #c9d6d0; margin-left: 16px; text-decoration: none; }

/* responsive */
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow: auto; }
  .nav.open { display: flex; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
  .mega { position: static; display: flex; flex-wrap: wrap; box-shadow: none; border: 0; padding: 4px 12px 8px; gap: 10px 28px; }
  .course { grid-template-columns: 1fr; gap: 28px; }
  .course-side { position: static; }
  .how .steps { grid-template-columns: 1fr 1fr; }
  .ftr { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sec { padding: 56px 0; }
  .hero { min-height: 70vh; }
  .hero-in { padding-bottom: 48px; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .how .steps { grid-template-columns: 1fr; }
  .advisor-in, .cta-in { flex-direction: column; align-items: flex-start; }
  .ftr { grid-template-columns: 1fr; }
  .brand b { font-size: 1.05rem; }
  .legal a { margin: 0 16px 0 0; }
}
.prose img[src*="70e53ffe"] { width: 220px; border-radius: 50%; float: right; margin: 0 0 20px 28px; }
.prose img[src*="8ccfd1a5"] { width: 160px; clear: both; }
@media (max-width: 640px) { .prose img[src*="70e53ffe"] { float: none; margin: 0 0 16px; } }

/* split hero: used when the photo is too small to stretch full-width */
.hero-split { background: linear-gradient(135deg, var(--green-d), var(--green)); color: #fff; }
.split-in { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-split h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hero-split .eyebrow { color: var(--gold); }
.hero-split .lead { color: #e3ebe7; font-size: 1.1rem; max-width: 56ch; margin: 0 0 1.4em; }
.hero-split .badge { position: static; display: inline-block; }
.hero-split img { width: 100%; max-width: 560px; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); border: 4px solid rgba(255, 255, 255, 0.9); justify-self: end; }
@media (max-width: 820px) { .split-in { grid-template-columns: 1fr; gap: 28px; } .hero-split img { justify-self: start; } }
.card-img.noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green-d), var(--green)); }
.card-img.noimg .ph { width: 64px; height: 64px; opacity: 0.85; }
