/* =========================================================
   Île Golf Collection — stylesheet
   ========================================================= */

:root {
  --ink: #0f1c17;          /* deep green-black */
  --ink-2: #16261f;
  --ink-soft: #3b4a43;
  --sand: #f4efe6;         /* page background */
  --sand-2: #ebe3d4;
  --cream: #fbf8f2;
  --gold: #c9a75a;
  --gold-deep: #a8873b;
  --white: #ffffff;
  --muted: #6d7770;
  --line: rgba(15, 28, 23, 0.12);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all .35s var(--ease);
}
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.text-link {
  display: inline-block; margin-top: 26px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--gold);
  transition: color .3s, border-color .3s;
}
.text-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--white);
  transition: background .4s var(--ease), padding .4s var(--ease), color .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 14px var(--gutter);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.02em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative; flex: 0 0 auto;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--gold);
}
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; opacity: .85; transition: opacity .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta { border: 1px solid currentColor; padding: 10px 20px; opacity: 1; }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  flex-direction: column; justify-content: center; gap: 7px;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,28,23,.45) 0%, rgba(15,28,23,.05) 35%, rgba(15,28,23,.25) 65%, rgba(15,28,23,.85) 100%);
}
.hero-content { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 12vh, 140px); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(52px, 9vw, 120px); font-weight: 400; letter-spacing: -0.02em; max-width: 12ch; }
.hero-sub { margin-top: 26px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 34px; width: 1px; height: 64px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-hint span { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--gold); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.statement { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 54px); line-height: 1.18; font-weight: 400; }
.statement em { font-style: italic; color: var(--gold-deep); }
.statement-sub { margin-top: 30px; font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 720px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 400; }
.section-intro { margin-top: 18px; font-size: 17px; color: var(--muted); }
.section-head.light h2 { color: var(--white); }
.section-head.light .eyebrow { color: var(--gold); }

/* ---------- Courses ---------- */
.courses { padding: 0 0 clamp(80px, 10vw, 140px); }
.region { border-top: 1px solid var(--line); padding-top: 34px; margin-bottom: clamp(56px, 7vw, 96px); }
.region-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 500;
  margin-bottom: 30px; color: var(--ink);
}
.region-count { color: var(--muted); }

.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.course-grid.two { grid-template-columns: repeat(2, 1fr); }
.course-grid.one { grid-template-columns: 1fr; }

.course { position: relative; }
.course-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--sand-2); }
.course-grid.two .course-media { aspect-ratio: 16 / 10; }
.course-wide .course-media { aspect-ratio: 21 / 9; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.course:hover .course-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 7px 12px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  background: rgba(251,248,242,.94); color: var(--ink); border-radius: 2px;
}
.badge-dark { background: rgba(15,28,23,.88); color: var(--cream); }
.badge-gold { background: var(--gold); color: var(--ink); }
.course-body { padding-top: 18px; }
.course h3 { font-size: 27px; }
.course-club { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.course-meta { margin-top: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ---------- Collections ---------- */
.collections { background: var(--ink); color: var(--cream); padding: clamp(90px, 11vw, 150px) 0; }
.collections .section-head h2 { color: var(--cream); }
.collections .section-head .eyebrow { color: var(--gold); }
.collections .section-intro { color: rgba(251,248,242,.6); }
.collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.collection { background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.collection-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.collection-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collection:hover .collection-media img { transform: scale(1.04); }
.collection-days {
  position: absolute; left: 22px; bottom: 18px; display: flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.collection-days strong { font-size: 64px; font-weight: 400; line-height: 1; }
.collection-days span { font-size: 13px; font-family: var(--sans); letter-spacing: 0.3em; text-transform: uppercase; }
.collection-body { padding: 34px 34px 40px; }
.collection h3 { font-size: 34px; color: var(--white); }
.collection-tag { margin-top: 8px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.collection-lede { margin-top: 20px; font-size: 17px; line-height: 1.55; color: rgba(251,248,242,.85); }
.collection-list { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.collection-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14.5px; color: rgba(251,248,242,.75); display: flex; gap: 14px; }
.collection-list li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.collections .text-link { color: var(--cream); }
.collections .text-link:hover { color: var(--gold); }

/* ---------- Approach ---------- */
.approach { position: relative; padding: clamp(100px, 12vw, 170px) 0; color: var(--cream); overflow: hidden; background: var(--ink); }
.approach-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.approach-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,23,.92) 0%, rgba(15,28,23,.78) 60%, rgba(15,28,23,.92) 100%); }
.approach .container { position: relative; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { border-top: 1px solid rgba(201,167,90,.45); padding-top: 26px; }
.pillar-num { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.pillar h3 { font-size: 32px; margin-top: 10px; color: var(--white); }
.pillar p { margin-top: 16px; font-size: 15.5px; color: rgba(251,248,242,.8); line-height: 1.7; }

/* ---------- Enquire ---------- */
.enquire { padding: clamp(90px, 11vw, 150px) 0; background: var(--cream); }
.enquire-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.enquire-copy h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 400; }
.enquire-copy > p { margin-top: 22px; font-size: 17px; color: var(--ink-soft); max-width: 42ch; }
.enquire-facts { margin-top: 36px; border-top: 1px solid var(--line); }
.enquire-facts li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.enquire-facts span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 3px; }
.enquire-facts a { border-bottom: 1px solid var(--gold); }

.enquire-form { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(15,28,23,.3);
  padding: 10px 0; border-radius: 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1c17' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); }
.field input::placeholder, .field textarea::placeholder { color: rgba(15,28,23,.35); }
.field.invalid input { border-color: #b3423a; }
.enquire-form .btn { align-self: flex-start; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(251,248,242,.7); padding: 56px 0 40px; font-size: 13px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; color: var(--cream); margin-bottom: 8px; }
.footer-line { letter-spacing: 0.08em; }
.footer-credits { font-size: 11.5px; color: rgba(251,248,242,.4); max-width: 70ch; line-height: 1.7; }
.footer-credits a { color: rgba(251,248,242,.6); border-bottom: 1px solid rgba(251,248,242,.2); }
.footer-copy { font-size: 11.5px; color: rgba(251,248,242,.4); margin-top: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--ink); color: var(--cream); font-size: 15px;
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; position: relative; z-index: 60; }
  .nav.menu-open { color: var(--cream); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .nav .brand { position: relative; z-index: 60; }
  .nav.menu-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .collection-grid { grid-template-columns: 1fr; }
  .enquire-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .course-grid, .course-grid.two { grid-template-columns: 1fr; }
  .course-media, .course-grid.two .course-media, .course-wide .course-media { aspect-ratio: 4 / 3; }
  .field-row { grid-template-columns: 1fr; }
  .collection-body { padding: 26px 22px 32px; }
  .hero h1 { max-width: none; }
  .btn { width: 100%; }
  .enquire-form .btn { width: 100%; }
  .scroll-hint { display: none; }
}
