/* ============================================================
   COSMOGLIDE EXIMP — Design System
   Skills applied: design-system (3-layer tokens) + brand +
   ui-styling (Tailwind companion) + ui-ux-pro-max + banner-design
   Palette: Pearl Ivory / White / Champagne / Charcoal / Warm Sand
   Type: Cormorant Garamond (display) + Manrope (UI/body)
   ============================================================ */

/* === LAYER 1: PRIMITIVES (raw values — rarely change) === */
:root {
  --pearl-ivory: #FAF8F2;
  --warm-ivory: #F3EFE5;
  --pure-white: #FFFFFF;
  --champagne-gold: #C7A45A;
  --soft-champagne: #E3CC91;
  --antique-gold: #9E7A38;
  --espresso-charcoal: #25221D;
  --warm-slate: #68635A;
  --sand: #DED6C6;
  --very-light-gold: #F5EEDB;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;

  --shadow-subtle: 0 1px 2px rgba(58, 48, 32, 0.05);
  --shadow-card: 0 10px 30px rgba(58, 48, 32, 0.07);
  --shadow-lift: 0 22px 55px rgba(58, 48, 32, 0.12);
  --shadow-glass: 0 20px 60px rgba(58, 48, 32, 0.08);

  --duration-fast: 180ms;
  --duration-normal: 350ms;
  --duration-slow: 1400ms;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === LAYER 2: SEMANTIC (purpose aliases) === */
:root {
  --color-background: var(--pearl-ivory);
  --color-background-alt: var(--warm-ivory);
  --color-surface: var(--pure-white);
  --color-foreground: var(--espresso-charcoal);
  --color-muted: var(--warm-slate);
  --color-border: var(--sand);
  --color-primary: var(--champagne-gold);
  --color-primary-soft: var(--soft-champagne);
  --color-primary-deep: var(--antique-gold);
  --color-decorative: var(--very-light-gold);

  --spacing-section: var(--space-24);
  --spacing-component: var(--space-4);
  --container-max: 76rem;
}

/* === LAYER 3: COMPONENT TOKENS === */
:root {
  --button-bg: var(--espresso-charcoal);
  --button-fg: #fff;
  --button-hover-bg: #38322a;
  --button-gold-bg: var(--champagne-gold);
  --button-gold-fg: #fff;
  --button-gold-hover: var(--antique-gold);
  --button-radius: var(--radius-md);
  --card-bg: var(--color-surface);
  --card-border: var(--color-border);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-card);
  --input-bg: var(--pure-white);
  --input-border: var(--sand);
  --input-focus-ring: var(--champagne-gold);
  --nav-bg: rgba(255, 255, 255, 0.68);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.82);
}

/* === BASE (ui-ux-pro-max: 16px, lh 1.5, viewport-safe) === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--soft-champagne); color: var(--espresso-charcoal); }

.font-display { font-family: var(--font-display); }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 700; color: var(--color-primary-deep);
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--color-primary); display: inline-block; }
.wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }
section { scroll-margin-top: 5.5rem; }

/* Focus (a11y CRITICAL) */
:focus-visible {
  outline: 3px solid var(--champagne-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--espresso-charcoal); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* === NAVIGATION (light glass, thin champagne border, sticky) === */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(199, 164, 90, 0.28);
  transition: background var(--duration-normal) var(--ease-lux), box-shadow var(--duration-normal);
}
.site-nav.scrolled { background: var(--nav-bg-scrolled); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(58,48,32,.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--very-light-gold), #fff);
  border: 1px solid rgba(199,164,90,.45);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--espresso-charcoal);
}
.brand-mark span { color: var(--champagne-gold); }
.brand-text { line-height: 1.05; }
.brand-text strong { display: block; font-size: 0.95rem; letter-spacing: 0.18em; }
.brand-text small { display: block; font-size: 0.68rem; letter-spacing: 0.42em; color: var(--color-primary-deep); font-weight: 700; }
.nav-links { display: none; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a { text-decoration: none; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; color: var(--espresso-charcoal); padding: 0.6rem 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0.35rem; height: 2px; width: 100%; background: var(--champagne-gold); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-normal) var(--ease-lux); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--antique-gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 44px; padding: 0.8rem 1.6rem; border-radius: var(--button-radius);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-lux), background var(--duration-fast), box-shadow var(--duration-fast), color var(--duration-fast);
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--button-bg); color: var(--button-fg); }
.btn-dark:hover { background: var(--button-hover-bg); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.btn-gold { background: var(--button-gold-bg); color: #fff; }
.btn-gold:hover { background: var(--button-gold-hover); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; border-color: var(--sand); color: var(--espresso-charcoal); }
.btn-outline:hover { border-color: var(--champagne-gold); background: var(--very-light-gold); }
.btn-sm { padding: 0.6rem 1.1rem; min-height: 44px; font-size: 0.82rem; }
.menu-btn { display: inline-flex; background: #fff; border: 1px solid var(--sand); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-menu { display: none; border-top: 1px solid rgba(199,164,90,.25); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.9rem 1.25rem; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--warm-ivory); min-height: 44px; }

/* === HERO (banner-design skill: hero 1920, safe zones, max 2 fonts) === */
.hero { position: relative; overflow: clip; background: var(--pearl-ivory); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250,248,242,.97) 0%, rgba(250,248,242,.78) 42%, rgba(250,248,242,.25) 72%, rgba(250,248,242,.12) 100%);
}
@media (max-width: 767px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(250,248,242,.96) 0%, rgba(250,248,242,.82) 55%, rgba(250,248,242,.45) 100%); }
}
.hero-inner { display: grid; gap: 2.5rem; padding-block: 4.5rem 5.5rem; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; padding-block: 6.5rem 7.5rem; } }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.04; margin: 1rem 0 1.1rem; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--antique-gold); }
.hero p.lead { font-size: 1.06rem; color: var(--warm-slate); max-width: 34rem; line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-card {
  background: rgba(255,255,255,0.68); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.8); box-shadow: var(--shadow-glass);
  border-radius: var(--radius-xl); padding: 1.25rem; display: grid; gap: 1rem;
}
.hero-visual { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(199,164,90,.3); box-shadow: var(--shadow-lift); background: #fff; }
.hero-visual img { width: 100%; height: 320px; object-fit: cover; }
@media (min-width: 960px) { .hero-visual img { height: 440px; } }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.35rem 0.25rem 0; }
.hero-count { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.12em; font-size: 0.8rem; }
.hero-cat { font-size: 0.72rem; letter-spacing: 0.24em; font-weight: 800; color: var(--antique-gold); text-transform: uppercase; }
.hero-progress { height: 2px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-top: 0.6rem; }
.hero-progress i { display: block; height: 100%; width: 0%; background: var(--champagne-gold); }
.hero-dots { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.hero-dots button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.hero-dots button span { width: 22px; height: 2px; background: var(--sand); display: block; border-radius: 99px; }
.hero-dots button[aria-current="true"] span { background: var(--champagne-gold); }

/* Gold hairline */
.gold-line { height: 1px; background: linear-gradient(90deg, var(--champagne-gold), transparent); border: 0; }

/* === SECTIONS / CARDS (luxury catalogue panels) === */
.section { padding-block: 4.5rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }
.section-alt { background: var(--warm-ivory); }
.kicker-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
h2.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; margin: 0.9rem 0 0; text-wrap: balance; }
.sub { color: var(--warm-slate); max-width: 44rem; }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.lux-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius);
  box-shadow: var(--card-shadow); overflow: hidden; position: relative;
  transition: transform var(--duration-normal) var(--ease-lux), box-shadow var(--duration-normal);
}
.lux-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.lux-card .img-wrap { overflow: hidden; aspect-ratio: 16/10; background: var(--warm-ivory); }
.lux-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-lux); }
.lux-card:hover .img-wrap img { transform: scale(1.04); }
.lux-card .body { padding: 1.4rem; }
.lux-card .num { font-size: 0.75rem; letter-spacing: 0.22em; font-weight: 800; color: var(--antique-gold); }
.lux-card h3 { font-family: var(--font-display); font-size: 1.45rem; margin: 0.5rem 0; font-weight: 600; }
.lux-card p { color: var(--warm-slate); font-size: 0.94rem; }
.lux-card .go { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.86rem; text-decoration: none; margin-top: 0.6rem; }
.lux-card .go svg { transition: transform var(--duration-fast) var(--ease-lux); }
.lux-card:hover .go svg { transform: translateX(5px); }
.lux-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--champagne-gold); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-normal) var(--ease-lux); }
.lux-card:hover::after { transform: scaleX(1); }

.value-card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-subtle); }
.value-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--very-light-gold); border: 1px solid rgba(199,164,90,.35); color: var(--antique-gold); }
.value-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin: 1rem 0 0.5rem; }
.value-card p { color: var(--warm-slate); font-size: 0.95rem; margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; }
.steps li strong { font-family: var(--font-display); font-size: 1.25rem; display: block; margin: 0.7rem 0 0.4rem; }
.steps li p { color: var(--warm-slate); font-size: 0.92rem; margin: 0; }
.step-n { font-size: 0.72rem; letter-spacing: 0.24em; font-weight: 800; color: var(--antique-gold); }

/* Reviews */
.rating-band { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; background: rgba(245,238,219,.72); border: 1px solid rgba(199,164,90,.28); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.stars { color: var(--champagne-gold); letter-spacing: 0.15em; }
.review-card { background: rgba(255,255,255,.68); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-glass); border-radius: var(--radius-lg); padding: 1.6rem; }
.review-card blockquote { margin: 0.8rem 0 1rem; color: #3d3830; line-height: 1.65; font-size: 0.96rem; }
.review-card cite { font-style: normal; font-weight: 800; font-size: 0.9rem; }
.review-card .meta { font-size: 0.78rem; color: var(--warm-slate); }

/* CTA panel */
.cta-panel { background: #fff; border: 1px solid var(--sand); border-radius: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1.5rem; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--champagne-gold), var(--soft-champagne), transparent); }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }

/* Contact cards */
.contact-card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-card); display: grid; gap: 0.7rem; }
.contact-card a.big { font-weight: 800; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a.big:hover { color: var(--antique-gold); }

/* Forms */
form.enquiry { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.86rem; }
.field label .req { color: var(--antique-gold); }
.field input, .field textarea, .field select {
  min-height: 44px; border: 1px solid var(--input-border); border-radius: 10px; padding: 0.75rem 0.9rem;
  font: inherit; background: var(--input-bg); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--input-focus-ring); outline-offset: 1px; border-color: var(--champagne-gold); }
.field .hint { font-size: 0.8rem; color: var(--warm-slate); }
.field .error { font-size: 0.82rem; color: #8f3a2b; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #b45542; }
.form-note { font-size: 0.85rem; color: var(--warm-slate); }

/* Footer */
footer { background: var(--espresso-charcoal); color: #EDE8DC; margin-top: 0; }
footer a { color: #EDE8DC; text-decoration: none; }
footer a:hover { color: var(--soft-champagne); }
.foot-grid { display: grid; gap: 2rem; padding-block: 3.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand { font-family: var(--font-display); font-size: 1.6rem; }
.foot-small { color: #B9B2A4; font-size: 0.88rem; line-height: 1.65; }
.foot-bottom { border-top: 1px solid rgba(227,204,145,.22); padding-block: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: #B9B2A4; }

/* Floating WhatsApp + mobile bar */
.wa-float {
  position: fixed; right: 1rem; bottom: 5.2rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  background: #1FA855; color: #fff; box-shadow: 0 14px 30px rgba(31,168,85,.35);
  text-decoration: none;
}
@media (min-width: 860px) { .wa-float { bottom: 1.25rem; } }
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(199,164,90,.35);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 52px; font-weight: 800; font-size: 0.86rem; text-decoration: none; }
.mobile-bar a + a { border-left: 1px solid var(--sand); }
@media (min-width: 860px) { .mobile-bar { display: none; } body { padding-bottom: 0 !important; } }
@media (max-width: 859px) { body { padding-bottom: 52px; } }

/* Editorial helpers */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: 1.25rem; border: 1px solid var(--sand); box-shadow: var(--shadow-card); width: 100%; height: 100%; object-fit: cover; }
.prose-narrow { max-width: 38rem; }
ul.tick { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
ul.tick li { display: flex; gap: 0.7rem; align-items: flex-start; color: #3d3830; }
ul.tick svg { flex: none; margin-top: 0.2rem; color: var(--antique-gold); }

/* Reveal defaults (JS enhances with GSAP; no-JS stays visible) */
.reveal { opacity: 1; }

/* Reduced motion (ui-ux-pro-max CRITICAL) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
