﻿/* =========================================================================
   VIVIDUS — base.css
   Tokens · reset · typography · utility primitives.
   Maps tokens.json → CSS custom properties. Do not hard-code colour / type
   anywhere else — extend via tokens or a semantic component class.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
/* Gold and ink tokens alias to the shared GDH base (styles.css) where     */
/* values are identical. Paper and line tones are Vividus-specific warm     */
/* ivory variants — kept distinct for brand character.                      */
/* Fonts: Vividus intentionally uses Cormorant Garamond (display) and      */
/* Manrope (body) — --fd and --fb are overridden in this scope only.       */

:root {
  /* shared GDH base tokens — required for button/CTA and footer styles */
  --ink:          #2A2823;
  --ink-soft:     #5A554C;
  --ink-mute:     #8F887C;
  --ink-rgb:      42, 40, 35;
  --paper:        #ffffff;
  --paper-rgb:    255, 255, 255;
  --ms-deep:      #C06B40;
  --ms-navy:      #1F3A62;
  --ms-yellow:    #F7C43A;
  --vv:           #C8A968;
  --vv-deep:      #9D8345;
  --vv-pale:      #F1E8CE;
  --vv-light:     #E0C07A;

  /* paper — Vividus warm ivory palette (brand-specific) */
  --vv-paper:        #ffffff;
  --vv-paper-ivory:  #ffffff;
  --vv-paper-vellum: #ffffff;
  --vv-paper-sepia:  #ffffff;

  /* ink — alias to shared tokens */
  --vv-ink:        var(--ink);
  --vv-ink-soft:   var(--ink-soft);
  --vv-ink-mute:   var(--ink-mute);

  /* gold — alias to shared vividus tokens */
  --vv-gold:       var(--vv);
  --vv-gold-deep:  var(--vv-deep);
  --vv-gold-pale:  var(--vv-pale);
  --vv-gold-leaf:  var(--vv-light);

  /* lines — Vividus-specific warm tone */
  --vv-line:       #E0D2AE;
  --vv-line-soft:  #EEE4C4;
  --vv-shade:      rgba(var(--ink-rgb), .06);

  /* fonts — Vividus brand override: Cormorant Garamond display, Manrope body */
  --fd: 'Playfair Display', 'Times New Roman', serif;
  --fb: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fk: 'Noto Serif Kannada', 'Cormorant Garamond', serif;

  /* scale */
  --t-hero:     clamp(50px, 5vw, 60px);
  --t-hero-sub: clamp(22px, 1.9vw, 32px);
  --t-section:  clamp(36px, 4.4vw, 64px);
  --t-pillar:   clamp(44px, 5vw, 72px);
  --t-card:     clamp(22px, 2.2vw, 30px);
  --t-body-lg:  clamp(17px, 1.15vw, 20px);
  --t-body:     16px;
  --t-sm:       13px;
  --t-label:    11px;
  --t-kannada:  clamp(36px, 4vw, 60px);

  /* space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 40px; --s9: 40px; --s10: 128px; --s11: 160px;
  --section-y: 100px;
  --container:     1280px;
  --container-pad: 100px;

  /* radius · shadow */
  --r-sm:   4px;
  --r-md:   6px;
  --r-pill: 999px;
  --shadow-soft:  0 1px 2px rgba(var(--ink-rgb),.05), 0 4px 20px rgba(var(--ink-rgb),.06);
  --shadow-plate: 0 2px 6px rgba(var(--ink-rgb),.05), 0 14px 44px rgba(var(--ink-rgb),.08);

  /* motion */
  --m-fast:   160ms;
  --m-base:   360ms;
  --m-slow:   520ms;
  --m-breath: 22s;
  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

@media (max-width: 1180px) {
  :root { --container-pad: 60px; }
}
@media (max-width: 860px) {
  :root { --container-pad: 40px; --section-y: 80px; }
}
@media (max-width: 768px) {
  :root { --container-pad: 24px; }
}
@media (max-width: 640px) {
  :root { --container-pad: 24px; --section-y: 60px; }
}


/* ---------- 2. Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--vv-paper);
  color: var(--vv-ink);
  font-family: var(--fb);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.66;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
button   { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a        { color: inherit; text-decoration: none; }

::selection { background: var(--vv-gold-pale); color: var(--vv-ink); }


/* ---------- 3. Typography ---------- */

h1, h2, h3, h4, h5 {
  font-family: var(--fd);
  font-weight: 400;
  color: var(--vv-ink);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-section); }
h3 { font-size: var(--t-card); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.3; }

em { font-style: italic; color: var(--vv-gold-deep); }

p, li {
  font-family: var(--fd);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.82;
  color: var(--ink-soft);
}

p {
  margin: 0;
  max-width: 60ch;
}

/* ---------- Global element-to-element spacing ---------- */

/* subheader (.label / .label-bi) → heading */
.label + h1, .label + h2, .label + h3, .label + h4,
.label-bi + h1, .label-bi + h2, .label-bi + h3, .label-bi + h4 {
  margin-top: 16px;
}

/* heading → paragraph */
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p {
  margin-top: 24px;
}

/* paragraph → paragraph */
p + p {
  margin-top: 16px;
}

/* paragraph → list */
p + ul, p + ol {
  margin-top: 16px;
}

/* paragraph → button */
p + .vv-btn, p + a.vv-btn, p + .btn-link, p + a.btn-link,
p + .reserve-card {
  margin-top: 30px;
}

/* list → button */
ul + .vv-btn, ul + a.vv-btn, ul + .btn-link, ul + a.btn-link,
ol + .vv-btn, ol + a.vv-btn, ol + .btn-link, ol + a.btn-link {
  margin-top: 30px;
}

.lede {
  font-size: var(--t-body-lg);
  color: var(--vv-ink-soft);
  line-height: 1.7;
  max-width: 54ch;
}


/* ---------- 4. Labels & small caps ---------- */

.label {
  font-family: var(--fb);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--vv-ink-mute);
}
.label--gold { color: var(--vv-gold-deep); }

/* Bilingual label — English · Kannada, same cap height */
.label-bi {
  display: inline-flex; align-items: baseline; gap: .7em;
}
.label-bi .kn {
  font-family: var(--fk);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--vv-gold-deep);
  line-height: 1;
  position: relative; top: 1px;
}


/* ---------- 5. The champagne hairline ---------- */

/* Thin line with a single gold bullet at its midpoint.
   Use as <hr class="gold-rule"> or apply to any .gold-rule element. */
.gold-rule {
  position: relative;
  border: 0;
  height: 1px;
  background: var(--vv-line);
  width: 100%;
  margin: var(--s6) 0;
}
.gold-rule::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 3px;
  background: var(--vv-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.gold-rule--short { max-width: 96px; margin-left: auto; margin-right: auto; }


/* ---------- 6. The V ornament ---------- */

.v-mark {
  display: inline-block;
  width: 28px; height: 28px;
  color: var(--vv-gold-deep);
}
.v-mark svg { width: 100%; height: 100%; display: block; }


/* ---------- 7. Pull-quote ---------- */

.pull-quote {
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--vv-ink);
  max-width: 42ch;
}
.pull-quote em { color: var(--vv-gold-deep); }


/* ---------- 8. Link (the only link style) ---------- */

.btn-link {
  display: inline-flex; align-items: baseline; gap: .5em;
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(17px, 1.2vw, 20px);
  color: var(--vv-ink);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--m-fast) var(--ease);
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0; height: 1px;
  background: var(--vv-gold-deep);
  transition: right 260ms var(--ease-out);
}
.btn-link:hover { color: var(--vv-gold-deep); }
.btn-link:hover::after { right: 0; }
.btn-link .arrow {
  font-style: normal;
  font-family: var(--fb);
  font-size: .9em;
  transition: transform var(--m-base) var(--ease-out);
}
.btn-link:hover .arrow { transform: translateX(4px); }


/* ---------- 9. Container ---------- */

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


/* ---------- 10. Reveal (paired with IntersectionObserver in main.js) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--m-slow) var(--ease-out),
              transform var(--m-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity var(--m-fast) var(--ease-out); transform: none; }
  .reveal.is-in { transform: none; }
}


/* ---------- 11. Focus ---------- */

:focus-visible {
  outline: 2px solid var(--vv-gold-deep);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ---------- 12. Utility ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kn { font-family: var(--fk); font-feature-settings: "liga", "dlig"; }


/* ---------- 13. Paper grain — tactile ground layer ---------- */

/* Fractal-noise SVG tiled over the whole page at a whisper opacity.
   Sits above everything (z-50) so the texture is uniform across
   paper sections, card faces, and the menu overlay. Non-interactive. */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/></svg>");
}


/* ---------- 14. V watermark — editorial margin mark ---------- */

/* A large, faint V mark fixed to the right edge, vertically centred.
   Lives behind all content but above the body-stack background,
   pinned across scroll so the page always has a quiet signature. */
.v-watermark {
  position: fixed;
  top: 50%;
  right: clamp(-12px, 0vw, 24px);
  transform: translateY(-50%);
  width: clamp(280px, 36vh, 460px);
  height: clamp(280px, 36vh, 460px);
  pointer-events: none;
  z-index: 3;
  opacity: 0.12;
  color: var(--vv-gold-deep);
}
.v-watermark svg { width: 100%; height: 100%; display: block; }

@media (max-width: 860px) {
  .v-watermark { display: none; }
}


/* ---------- 15. VIVIDUS monogram crest ---------- */

/* The full brand emblem: dual hairline ring + arc-text VIVIDUS
   + tick marks + inner V + gold-leaf apex + MMXX · BENGALURU line.
   Used twice total — anchor and footer. Size set by the parent's width. */
.v-crest {
  display: inline-block;
  width: clamp(180px, 18vw, 240px);
  aspect-ratio: 1 / 1;
  color: var(--vv-gold-deep);
  line-height: 0;
}
.v-crest svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}
/* Small variant for the footer meta row */
.v-crest--sm {
  width: clamp(64px, 6vw, 88px);
}

/* ── RESPONSIVE ENHANCEMENTS ─────────────────────────────────────────────── */

/* 640px — mobile: tighter typography gaps */
@media (max-width: 640px) {
  .label + h1, .label + h2, .label + h3, .label + h4,
  .label-bi + h1, .label-bi + h2, .label-bi + h3, .label-bi + h4 { margin-top: 10px; }

  h1 + p, h2 + p, h3 + p, h4 + p, h5 + p { margin-top: 16px; }
  p + p  { margin-top: 12px; }
  p + ul, p + ol { margin-top: 12px; }

  p + .vv-btn, p + a.vv-btn, p + .btn-link, p + a.btn-link,
  p + .reserve-card { margin-top: 20px; }

  ul + .vv-btn, ul + a.vv-btn, ul + .btn-link, ul + a.btn-link,
  ol + .vv-btn, ol + a.vv-btn, ol + .btn-link, ol + a.btn-link { margin-top: 20px; }
}

/* 480px — mobile */
@media (max-width: 480px) {
  :root { --container-pad: 16px; --section-y: 48px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Shared hero carousel nav (hc-nav) — same across GDH / Vividus / MySpace ── */
.hc-nav {
  position: absolute;
  bottom: clamp(36px, 7vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hc-prev, .hc-next { display: none; }
.hc-prev, .hc-next {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms, border-color 200ms, color 200ms;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.hc-dots {
  display: flex;
  gap: 8px;
}
.hc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 200ms, transform 200ms;
}
.hc-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Safe area insets */
@supports (padding: env(safe-area-inset-right)) {
  .nav-inner { padding-right: max(clamp(24px, 5vw, 64px), env(safe-area-inset-right)); padding-left: max(clamp(24px, 5vw, 64px), env(safe-area-inset-left)); }
  .v-footer-inner { padding-right: max(var(--container-pad), env(safe-area-inset-right)); padding-left: max(var(--container-pad), env(safe-area-inset-left)); }
}

/* ============================================================
   DLS-STYLE FOOTER â€” shared across all brands
   Brand colours injected via .dls-footer--gdh / --ms / --vv
   ============================================================ */

/* â”€â”€ Brand colour tokens (overridden per brand below) â”€â”€ */
.dls-footer {
  --ft-bg:       #2A2823;
  --ft-text:     rgba(250,246,238,1);
  --ft-heading:  rgba(250,246,238,1);
  --ft-accent:   var(--ms-deep);
  --ft-icon-bg:  rgba(250,246,238,0.1);
  --ft-icon-fg:  rgba(250,246,238,1);
  --ft-divide:   rgba(250,246,238,0.1);
  --ft-mute:     rgba(250,246,238,1);
}
.dls-footer--ms {
  --ft-bg:       var(--ms-navy);
  --ft-accent:   var(--ms-yellow);
  --ft-icon-bg:  rgba(255,204,46,.15);
  --ft-icon-fg:  var(--ms-yellow);
  --ft-divide:   rgba(255,255,255,.10);
  --ft-mute:     rgba(255,255,255,.40);
}
.dls-footer--vv {
  --ft-bg:       #1C1608;
  --ft-accent:   var(--vv);
  --ft-icon-bg:  rgba(200,169,104,.15);
  --ft-icon-fg:  var(--vv);
  --ft-divide:   rgba(200,169,104,.18);
  --ft-mute:     rgba(250,246,238,.38);
}

/* â”€â”€ Stats bar â”€â”€ */
.dls-footer-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--ft-divide);
  padding: 0;
  list-style: none;
  margin: 0;
}
.dls-footer-stats li {
  flex: 1 1 180px;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid var(--ft-divide);
}
.dls-footer-stats li:last-child { border-right: none; }
.dls-footer-stats .stat-num {
  display: block;
  font-family: var(--fd);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--ft-accent);
  line-height: 1;
  margin-bottom: 6px;
}
.dls-footer-stats .stat-label {
  display: block;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ft-mute);
}

/* â”€â”€ Wrapper â”€â”€ */
.dls-footer {
  background: var(--ft-bg);
  color: var(--ft-text);
  font-family: var(--fb);
  text-align: center;
}
.dls-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 32px 0;
}

/* â”€â”€ Brand name + tagline â”€â”€ */
.dls-footer-name {
  font-family: var(--fd);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ft-heading);
  margin: 0 0 8px;
}
.dls-footer-name em {
  font-style: italic;
  color: var(--vv-gold-deep);
}
.dls-footer-addr {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ft-mute);
  margin: 0 auto 28px;
  text-align: center;
}

/* â”€â”€ Contact row â”€â”€ */
.dls-footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.dls-footer-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ft-text);
}
.dls-footer-contact .fc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ft-icon-bg);
  color: var(--ft-icon-fg);
  border-radius: 4px;
  flex-shrink: 0;
}
.dls-footer-contact a {
  color: var(--ft-text);
  text-decoration: none;
  transition: color 180ms;
}
.dls-footer-contact a:hover { color: var(--vv-gold-deep); }

/* â”€â”€ Social icons â”€â”€ */
.dls-footer-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}
.dls-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ft-icon-bg);
  color: var(--ft-icon-fg);
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--ft-divide);
  transition: background 180ms, border-color 180ms;
}
.dls-footer-socials a:hover {
  background: var(--vv-gold-deep);
  color: var(--ft-bg);
  border-color: var(--vv-gold-deep);
}

/* â”€â”€ Divider â”€â”€ */
.dls-footer-rule {
  border: none;
  border-top: 1px solid var(--ft-divide);
  margin: 0;
}

/* â”€â”€ Nav links â”€â”€ */
.dls-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  list-style: none;
  padding: 20px 0;
  margin: 0;
}
.dls-footer-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ft-mute);
  text-decoration: none;
  transition: color 180ms;
}
.dls-footer-nav a:hover { color: var(--vv-gold-deep); }

/* â”€â”€ Bottom bar â”€â”€ */
.dls-footer-bottom {
  border-top: 1px solid var(--ft-divide);
  padding: 14px 32px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 24px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ft-mute);
}
.dls-footer-bottom a {
  color: var(--ft-mute);
  text-decoration: none;
  transition: color 180ms;
}
.dls-footer-bottom a:hover { color: var(--vv-gold-deep); }

@media (max-width: 600px) {
  .dls-footer-inner { padding: 40px 20px 0; }
  .dls-footer-stats li { flex: 1 1 140px; padding: 20px 12px; }
  .dls-footer-stats .stat-num { font-size: 26px; }
  .dls-footer-contact { gap: 8px 16px; }
  .dls-footer-nav { gap: 4px 14px; }
  .dls-footer-bottom { padding: 12px 20px 18px; }
}


