/* ================================================
   Vandalai — Shared Stylesheet
   ================================================ */

/* --- Variables --- */
:root {
  --bg: #07080C;
  --bg2: #0E0F15;
  --card: #111219;
  --card-h: #16171F;
  --acc: #C9A54E;
  --acc-s: #D4B76A;
  --txt: #EDEBE4;
  --mut: #7E7F8C;
  --dim: #484954;
  --brd: #1A1B26;
  --brd-h: #26273A;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', 'Helvetica Neue', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth }
body { font-family: var(--sans); background: var(--bg); color: var(--txt); overflow-x: hidden; -webkit-font-smoothing: antialiased }
body::after { content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"); background-size: 128px; opacity: .45 }
::selection { background: rgba(200,164,78,.25); color: var(--acc) }
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }

/* --- Animations --- */
@keyframes heroFade { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: translateY(0) } }
@keyframes lineExpand { from { width: 0 } to { width: 72px } }
@keyframes gentlePulse { 0%, 100% { opacity: .5 } 50% { opacity: 1 } }
@keyframes marquee { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }

/* --- Reveal / Scroll Animations --- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1) }
.reveal.visible { opacity: 1; transform: translateY(0) }
.reveal-d1 { transition-delay: .1s }
.reveal-d2 { transition-delay: .2s }
.reveal-d3 { transition-delay: .3s }
.reveal-d4 { transition-delay: .4s }

/* --- Layout --- */
.container { max-width: 1340px; margin: 0 auto; padding-left: 48px; padding-right: 48px }
.section { padding: 140px 0 }
.gold-sep { height: 1px; background: linear-gradient(90deg, transparent, rgba(201,165,78,.25), transparent) }

/* --- Typography Helpers --- */
.serif { font-family: var(--serif) }
.label-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px }
.label-line { width: 56px; height: 1px; background: var(--acc) }
.label-text { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); font-weight: 600 }
.section-title { font-family: var(--serif); font-size: clamp(34px,4vw,54px); line-height: 1.12; letter-spacing: -.03em; font-weight: 400; margin-bottom: 24px }
.accent-text { font-style: italic; color: var(--acc) }
.body-text { font-size: 16.5px; line-height: 1.85; color: var(--mut); font-weight: 300 }
.center-header { text-align: center; margin-bottom: 80px }
.center-label { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 24px }

/* --- Nav --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all .5s cubic-bezier(.22,1,.36,1) }
.nav.scrolled { background: rgba(7,8,12,.92); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--brd) }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px }
.nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer }
.nav-logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--acc), var(--acc-s)); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--bg) }
.nav-logo-text { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.02em }
.nav-links { display: flex; align-items: center; gap: 36px }
.nav-link { cursor: pointer; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); transition: color .3s; font-weight: 500; position: relative }
.nav-link::after { content: ''; position: absolute; bottom: -6px; left: 50%; right: 50%; height: 1px; background: var(--acc); transition: all .3s; opacity: 0 }
.nav-link:hover { color: var(--acc) }
.nav-link:hover::after { left: 0; right: 0; opacity: 1 }
.nav-link.active { color: var(--acc) }
.nav-link.active::after { left: 0; right: 0; opacity: 1 }

/* --- Hamburger / Mobile Menu --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 36px; height: 36px; position: relative; padding: 0 }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--txt); position: absolute; left: 7px; transition: all .35s }
.hamburger span:nth-child(1) { top: 11px }
.hamburger span:nth-child(2) { top: 17px }
.hamburger span:nth-child(3) { top: 23px }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 17px }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 17px }
.mobile-menu { display: none; background: var(--bg2); border-top: 1px solid var(--brd); padding: 16px 24px }
.mobile-menu.open { display: block }
.mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--brd); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut) }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: none; transition: all .35s cubic-bezier(.22,1,.36,1) }
.btn-gold { padding: 15px 38px; background: var(--acc); color: var(--bg); font-size: 13px }
.btn-gold:hover { background: var(--acc-s); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(200,164,78,.25) }
.btn-ghost { padding: 15px 38px; background: transparent; color: var(--txt); font-size: 13px; border: 1px solid var(--brd-h) }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-3px) }
.btn-sm { padding: 11px 28px; font-size: 11.5px }

/* --- Cards --- */
.card { background: var(--card); border: 1px solid var(--brd); transition: all .45s cubic-bezier(.22,1,.36,1) }
.card:hover { border-color: rgba(200,164,78,.18); background: var(--card-h); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.3) }

/* --- Tags --- */
.tag { display: inline-block; padding: 6px 16px; border: 1px solid var(--brd); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-right: 8px; margin-bottom: 8px }

/* --- Form Inputs --- */
.input { width: 100%; padding: 16px 20px; background: var(--bg); border: 1px solid var(--brd); color: var(--txt); font-size: 15px; font-family: var(--sans); outline: none; transition: border-color .3s }
.input:focus { border-color: var(--acc) }
.input::placeholder { color: var(--dim) }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237E7F8C' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center }

/* --- Glow Ring --- */
.glow-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(200,164,78,.06); animation: gentlePulse 4s ease infinite; pointer-events: none }

/* --- Grid Utilities --- */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 100px }
.g2t { display: grid; grid-template-columns: 1fr 1fr; gap: 2px }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px }
.g5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px }
.g6 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px }

/* --- Footer --- */
footer { border-top: 1px solid var(--brd); padding: 72px 0 48px }
.footer-bottom { border-top: 1px solid var(--brd); padding-top: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px }
.footer-copy { font-size: 12.5px; color: var(--dim); font-weight: 300 }

/* --- Page Hero (subpages) --- */
.page-hero { min-height: 70vh; position: relative; display: flex; align-items: center; overflow: hidden }
.page-hero-bg { position: absolute; inset: 0 }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.18) contrast(1.1) saturate(.4) }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,8,12,.92) 0%, rgba(7,8,12,.7) 50%, rgba(7,8,12,.5) 100%) }
.page-hero-accent { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--acc), transparent); z-index: 2 }

/* --- ROI Calculator --- */
.calc-result { background: var(--card); border: 1px solid var(--brd); padding: 32px; text-align: center; transition: all .4s }
.calc-result .serif { font-size: 38px; color: var(--acc); letter-spacing: -.03em; margin-bottom: 8px }
.calc-result .calc-label { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--mut); font-weight: 500 }

/* --- Comparison Table --- */
.cmp-table { width: 100%; border-collapse: collapse }
.cmp-table th { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--acc); font-weight: 600; padding: 20px 16px; text-align: left; border-bottom: 2px solid var(--brd) }
.cmp-table th.cmp-highlight { background: rgba(200,164,78,.06) }
.cmp-table td { font-size: 13.5px; color: var(--mut); font-weight: 300; padding: 16px; border-bottom: 1px solid var(--brd); vertical-align: middle }
.cmp-table td.cmp-highlight { background: rgba(200,164,78,.03); color: var(--acc); font-weight: 500 }
.cmp-table td.cmp-feature { color: var(--txt); font-weight: 400; font-size: 14px }
.cmp-table tr:last-child td { border-bottom: none }
.cmp-check { color: var(--acc) }
.cmp-cross { color: #5a3a3a; opacity: .6 }

/* --- Timeline --- */
.timeline { position: relative; padding: 40px 0 }
.timeline-line { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--brd) }
.timeline-progress { position: absolute; top: 50%; left: 0; height: 2px; background: var(--acc); transition: width 1.5s cubic-bezier(.22,1,.36,1) }
.timeline-nodes { display: flex; justify-content: space-between; position: relative; z-index: 2 }
.timeline-node { text-align: center; flex: 1 }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brd); background: var(--bg); margin: 0 auto 16px; transition: all .4s; position: relative }
.timeline-dot.done { border-color: var(--acc); background: var(--acc) }
.timeline-dot.current { border-color: var(--acc); background: var(--bg); box-shadow: 0 0 0 6px rgba(200,164,78,.15); animation: gentlePulse 3s ease infinite }
.timeline-year { font-size: 11px; letter-spacing: .1em; color: var(--acc); font-weight: 600; margin-bottom: 6px }
.timeline-label { font-size: 12px; color: var(--mut); font-weight: 300; line-height: 1.4; max-width: 120px; margin: 0 auto }

/* --- Cookie Banner --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998; background: var(--bg2); border-top: 1px solid var(--brd); padding: 20px 0; transform: translateY(100%); transition: transform .4s cubic-bezier(.22,1,.36,1) }
.cookie-banner.visible { transform: translateY(0) }
.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap }
.cookie-banner p { font-size: 13px; color: var(--mut); font-weight: 300; line-height: 1.6; max-width: 700px }
.cookie-banner p a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px }
.cookie-banner button { padding: 10px 24px; background: var(--acc); color: var(--bg); font-size: 12px; font-family: var(--sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: none; cursor: pointer; transition: background .3s; flex-shrink: 0 }
.cookie-banner button:hover { background: var(--acc-s) }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 900px) {
  .hamburger { display: block }
  .nav-links { display: none !important }
  .nav-inner, .container { padding-left: 24px; padding-right: 24px }
  .section { padding: 80px 0 }
  .g2, .g2t { grid-template-columns: 1fr; gap: 48px }
  .g3, .g4 { grid-template-columns: 1fr 1fr }
  .g5 { grid-template-columns: 1fr 1fr }
  .g6 { grid-template-columns: 1fr 1fr }
  .page-hero { min-height: 50vh }
  .timeline-nodes { gap: 8px }
  .timeline-label { font-size: 10px; max-width: 90px }
  .cmp-table { font-size: 12px }
  .cmp-table th, .cmp-table td { padding: 12px 10px }
  .calc-result .serif { font-size: 28px }
}

@media (max-width: 540px) {
  .g3, .g4, .g5, .g6 { grid-template-columns: 1fr !important }
  .section-title { font-size: 32px }
}
