/* Green Gates Stirling — brand tokens and custom styles used alongside Tailwind (Play CDN).
   Colour tokens are stored as OKLCH channels ("L C H") so Tailwind can add alpha:
   oklch(var(--gold) / 0.3). Use oklch(var(--token)) for a solid colour in plain CSS. */

/* ---------- Emerald / Gold / Ivory brand system ---------- */
:root {
  --radius: 0.25rem;
  --emerald: 0.27 0.05 168;       /* #092D23 */
  --forest: 0.21 0.037 168;       /* #061C16 */
  --gold: 0.73 0.09 78;           /* #C7A15A */
  --ivory: 0.95 0.02 85;          /* #F5EFE2 */
  --copper: 0.47 0.1 40;          /* #8A4933 */
  --sage: 0.75 0.035 135;         /* #A7B5A0 */
  --champagne: 0.88 0.05 85;      /* #E7D7B1 */
  --ink: 0.19 0.01 150;           /* #101512 */
  --warmwhite: 0.99 0.008 85;     /* #FFFCF6 */
  --teal: 0.45 0.07 200;
  --sapphire: 0.42 0.09 255;

  --background: var(--ivory);
  --foreground: var(--ink);
  --card: var(--warmwhite);
  --card-foreground: var(--ink);
  --primary: var(--emerald);
  --primary-foreground: var(--ivory);
  --secondary: var(--champagne);
  --secondary-foreground: var(--emerald);
  --muted: 0.92 0.02 85;
  --muted-foreground: 0.42 0.02 150;
  --accent: var(--gold);
  --accent-foreground: var(--forest);
  --destructive: 0.55 0.2 27;
  --destructive-foreground: var(--ivory);
  --border: 0.85 0.03 85;
  --input: 0.85 0.03 85;
  --ring: var(--gold);

  --gradient-emerald: radial-gradient(ellipse at 30% 20%, oklch(0.32 0.055 168), oklch(var(--forest)) 70%);
  --gradient-hero-veil: linear-gradient(90deg, oklch(0.21 0.037 168 / 0.95) 0%, oklch(0.21 0.037 168 / 0.75) 40%, oklch(0.21 0.037 168 / 0.1) 100%);
  --gradient-card-veil: linear-gradient(180deg, transparent 40%, oklch(0.19 0.01 150 / 0.85) 100%);
  --shadow-elegant: 0 30px 60px -30px oklch(0.21 0.037 168 / 0.5);
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background-color: oklch(var(--background));
  color: oklch(var(--foreground));
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* `body` prefix keeps these above Tailwind preflight, which is injected after this file. */
body :is(h1, h2, h3, h4) {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
/* Tailwind v4 placeholder colour (matches the original React build) */
body input::placeholder, body textarea::placeholder { color: color-mix(in oklab, currentColor 50%, transparent); }
:focus-visible { outline: 2px solid oklch(var(--gold)); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.eyebrow {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: oklch(var(--gold));
}
.text-hero { font-size: clamp(2.7rem, 7vw, 6.25rem); }
.text-section { font-size: clamp(2.3rem, 4.6vw, 4.2rem); }
.bg-emerald-depth { background: var(--gradient-emerald); }
.bg-hero-veil { background: var(--gradient-hero-veil); }
.bg-card-veil { background: var(--gradient-card-veil); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }
.arch-mask { border-radius: 999px 999px 0.25rem 0.25rem; overflow: hidden; }
.container-lux { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn-lux {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.75rem; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  overflow: hidden; isolation: isolate; transition: color 400ms var(--ease-lux), border-color 400ms;
}
.btn-lux::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease-lux);
}
.btn-lux:hover::before { transform: scaleX(1); }
.btn-lux svg { transition: transform 350ms var(--ease-lux); }
.btn-lux:hover svg { transform: translateX(4px); }

.btn-gold { background: oklch(var(--gold)); color: oklch(var(--forest)); }
.btn-gold::before { background: oklch(var(--champagne)); }
.btn-outline-gold { border: 1px solid oklch(var(--gold)); color: oklch(var(--ivory)); }
.btn-outline-gold::before { background: oklch(var(--gold)); }
.btn-outline-gold:hover { color: oklch(var(--forest)); }
.btn-emerald { background: oklch(var(--emerald)); color: oklch(var(--ivory)); }
.btn-emerald::before { background: oklch(var(--copper)); }

.link-gold {
  position: relative; color: oklch(var(--gold)); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; font-weight: 600;
}
.link-gold::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 2rem;
  background: currentColor; transition: width 400ms var(--ease-lux);
}
.link-gold:hover::after { width: 100%; }
/* Larger tap area for the small text links, without changing the layout. */
.link-gold::before { content: ""; position: absolute; inset: -14px -6px; }

/* Horizontally scrolling tab rows: fade the right edge on smaller screens to show there is more. */
@media (max-width: 1023px) {
  .scroll-hint { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); padding-right: 3rem !important; }
}

/* ---------- Scroll reveal: <div class="reveal" data-delay="150"> (js/main.js) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-lux), transform 900ms var(--ease-lux); }
.reveal.is-visible { opacity: 1; transform: none; }
.line-grow { transform: scaleX(0); transform-origin: center; transition: transform 1200ms var(--ease-lux); }
.is-visible .line-grow, .line-grow.is-visible { transform: scaleX(1); }

/* ---------- Gate intro (home page, once per session) ---------- */
@keyframes gate-left { to { transform: perspective(1200px) rotateY(-80deg); opacity: 0; } }
@keyframes gate-right { to { transform: perspective(1200px) rotateY(80deg); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes feather-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes shimmer { 0% { stroke-dashoffset: 800; } 100% { stroke-dashoffset: 0; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

.gate-left { transform-origin: left center; animation: gate-left 1.4s var(--ease-lux) 0.5s forwards; }
.gate-right { transform-origin: right center; animation: gate-right 1.4s var(--ease-lux) 0.5s forwards; }
.gate-overlay { animation: fade-out 0.6s ease 1.7s forwards; }
.gg-intro-seen .gate-overlay { display: none; }
.intro-brand { animation: fade-out 0.8s ease 0.7s forwards; }
.peacock-detail { flex-shrink: 0; }
.rise { opacity: 0; animation: rise 1s var(--ease-lux) forwards; }
.feather-sway { animation: feather-sway 9s ease-in-out infinite; transform-origin: bottom center; }
.feather-shimmer { stroke-dasharray: 800; animation: shimmer 4s var(--ease-lux) forwards; }
.page-in { animation: page-in 500ms ease; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .reveal, .rise { opacity: 1; transform: none; }
}

/* ---------- Christmas (banner + christmas-menu page) — animations contained to .xmas (js/christmas.js) ---------- */
.xmas {
  --xmas-gold: oklch(var(--gold));
  --xmas-ivory: oklch(var(--ivory));
  --xmas-pine-light: oklch(0.42 0.08 160);
  --xmas-pine-dark: oklch(0.38 0.07 160);
  --xmas-red: oklch(0.48 0.16 25);
  --xmas-red-highlight: oklch(0.7 0.15 30);
  --xmas-bauble-red: radial-gradient(circle at 35% 30%, var(--xmas-red-highlight), var(--xmas-red));
  --xmas-bauble-gold: radial-gradient(circle at 35% 30%, var(--xmas-ivory), var(--xmas-gold));
}
.xmas-bauble-red { background: var(--xmas-bauble-red); }
.xmas-bauble-gold { background: var(--xmas-bauble-gold); }
.xmas-snow { position: absolute; top: -10px; border-radius: 999px; background: var(--xmas-ivory); opacity: .7; animation: xmas-fall linear infinite; }
.xmas-star { position: absolute; color: var(--xmas-gold); animation: xmas-twinkle ease-in-out infinite; }
.xmas-light { animation: xmas-twinkle 2.4s ease-in-out infinite; }
.xmas-swing { transform-origin: top center; animation: xmas-swing ease-in-out infinite alternate; }
.xmas-btn { position: relative; overflow: hidden; }
.xmas-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in oklab, var(--xmas-ivory) 55%, transparent) 50%, transparent 70%); transform: translateX(-120%); animation: xmas-shine 5s ease-in-out infinite; }
@keyframes xmas-fall { to { transform: translate(var(--drift, 20px), 520px); } }
@keyframes xmas-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes xmas-swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes xmas-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .xmas-snow, .xmas-star, .xmas-light, .xmas-swing, .xmas-btn::after { animation: none !important; }
  .xmas-snow { display: none; }
}

/* WhatsApp floating button — clears the mobile booking bar below lg */
[data-wa-btn] { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { [data-wa-btn] { bottom: 1.5rem; } }
