/* ==========================================================================
   Xperiia Digital AI LLP — Main Stylesheet v2
   Design: Luxury White · Gold Accents · Modern Agency
   ========================================================================== */

/* ── 1. TOKENS ─────────────────────────────────────────────────────────── */
:root {
  /* Gold system */
  --gold:      #C9A227;
  --gold-hi:   #FFE082;
  --gold-dk:   #8B6914;
  --gold-vl:   #FFF8E8;

  /* Backgrounds */
  --bg-white:  #FFFFFF;
  --bg-cream:  #FAFAF5;
  --bg-warm:   #F4EFE4;
  --bg-dark:   #08081A;
  --bg-navy:   #050D1F;

  /* Text */
  --text-dark:  #0F0E1A;
  --text-body:  #2C2C3E;
  --text-muted: #6B7080;
  --text-light: rgba(255,255,255,.90);
  --text-dim:   rgba(255,255,255,.55);

  /* Navy (retained for dark sections & backward compat) */
  --navy-0: #08081A;
  --navy-1: #001229;
  --navy-2: #001a3d;
  --navy-3: #002f6c;

  /* Accent */
  --blue-a: #1a6fff;
  --cyan:   #00D4FF;

  /* Glass — dark bg */
  --glass-d:   rgba(255,255,255,.07);
  --glass-d-b: rgba(255,255,255,.12);

  /* Glass — light bg */
  --glass-l:   rgba(255,255,255,.80);
  --glass-l-b: rgba(255,255,255,.95);

  /* Aliases for legacy code */
  --light-bg:    #FAFAF5;
  --light-text:  #0F0E1A;
  --light-muted: #6B7080;
  --muted:       rgba(255,255,255,.55);

  /* Radius */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── 2. RESET ───────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; font-size: 16px; }
body {
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── 3. TYPOGRAPHY ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -2px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -1px; }
h3 { font-size: 1.1rem; font-weight: 800; }
p  { line-height: 1.8; color: var(--text-muted); }

/* ── 4. LAYOUT ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-pad { padding: 100px 0; }

/* Section header */
.section-header { text-align: center; margin-bottom: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .62rem; font-weight: 700; letter-spacing: 4.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; display: block; width: 24px; height: 1px;
  background: currentColor; opacity: .5;
}

.section-title { color: var(--text-dark); margin-bottom: 16px; }
.section-title .accent {
  background: linear-gradient(90deg, var(--gold), var(--gold-hi), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem; line-height: 1.85;
  max-width: 560px; margin: 0 auto;
}

/* Dark section overrides */
.dark .section-title { color: #fff; }
.dark .section-sub   { color: var(--text-dim); }
.dark .eyebrow       { color: var(--gold-hi); }
.dark p              { color: var(--text-dim); }

/* ── 5. BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem; font-weight: 800; letter-spacing: .5px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-dk) 100%);
  color: #1a0e00;
  box-shadow: 0 4px 20px rgba(201,162,39,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,162,39,.55);
  filter: brightness(1.06);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201,162,39,.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,162,39,.2);
}
.btn-glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--text-dark);
  color: #fff;
  border: 1.5px solid transparent;
}
.btn-dark:hover {
  background: var(--navy-1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

/* ── 6. NAVIGATION ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(201,162,39,.12), 0 4px 24px rgba(0,0,0,.07);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 20px 28px;
  transition: padding var(--transition);
}
.site-header.scrolled .nav-inner { padding: 13px 28px; }

/* Logo — image */
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 34px; width: auto;
  max-width: 180px; object-fit: contain;
  transition: opacity var(--transition);
}
.nav-logo:hover .nav-logo-img { opacity: .82; }

/* White logo hidden by default; shown only on dark hero (homepage, unscrolled) */
.nav-logo-white { display: none; }
body.home .site-header:not(.scrolled) .nav-logo-dark  { display: none; }
body.home .site-header:not(.scrolled) .nav-logo-white { display: block; }

/* Desktop links */
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .3px;
  color: var(--text-body);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; border-radius: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 34px; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text-dark);
  transition: all .3s; transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 7. MOBILE MENU ─────────────────────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.nav-overlay.open { display: flex; }
.nav-overlay .nav-links {
  flex-direction: column; align-items: center; gap: 28px;
}
.nav-overlay .nav-links a {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 1.5px;
  color: var(--text-dark);
}
.nav-overlay .nav-links a:hover { color: var(--gold); }
.nav-overlay .btn { margin-top: 8px; }
.nav-overlay-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-cream); border: 1px solid rgba(0,0,0,.08);
  color: var(--text-dark); font-size: 1.3rem; cursor: pointer;
  transition: background var(--transition);
}
.nav-overlay-close:hover { background: var(--bg-warm); }

/* ── 8. PARALLAX UTILITY ────────────────────────────────────────────────── */
.parallax-layer { will-change: transform; }

/* ── 9. GLASS UTILITIES ─────────────────────────────────────────────────── */
.glass {
  background: var(--glass-d);
  border: 1px solid var(--glass-d-b);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
}
.glass-light {
  background: var(--glass-l);
  border: 1px solid rgba(201,162,39,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(10,22,40,.06);
}

/* ── 10. CARD BASE ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid rgba(201,162,39,.12);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08), 0 0 0 1px rgba(201,162,39,.22);
  border-color: rgba(201,162,39,.28);
}
.card-dark {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card-dark:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  border-color: rgba(201,162,39,.32);
}

/* ── 11. ICON TILES (3D extruded) ───────────────────────────────────────── */
.icon-tile {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  transform: perspective(280px) rotateX(12deg);
  transition: transform .35s cubic-bezier(.34,1.3,.64,1);
  position: relative;
}
.icon-tile::after {
  content: ''; position: absolute;
  bottom: -12px; left: 10%; right: 10%; height: 8px;
  border-radius: 50%; filter: blur(10px); opacity: .4;
  transition: opacity .35s;
}
*:hover > .icon-tile,
.card:hover .icon-tile,
.card-dark:hover .icon-tile {
  transform: perspective(280px) rotateX(0deg) translateY(-2px);
}
*:hover > .icon-tile::after,
.card:hover .icon-tile::after,
.card-dark:hover .icon-tile::after { opacity: .7; }

.icon-gold {
  background: linear-gradient(145deg, #b5860e 0%, #1c0e00 100%);
  color: #fde68a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.3),
    0 2px 4px rgba(0,0,0,.5), 0 6px 20px rgba(201,162,39,.45);
}
.icon-gold::after { background: rgba(201,162,39,.6); }

.icon-blue {
  background: linear-gradient(145deg, #1d4ed8 0%, #020c1f 100%);
  color: #93c5fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.3),
    0 2px 4px rgba(0,0,0,.5), 0 6px 20px rgba(26,111,255,.4);
}
.icon-blue::after { background: rgba(26,111,255,.55); }

.icon-cyan {
  background: linear-gradient(145deg, #0e7490 0%, #020e18 100%);
  color: #67e8f9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.3),
    0 2px 4px rgba(0,0,0,.5), 0 6px 20px rgba(0,212,255,.38);
}
.icon-cyan::after { background: rgba(0,212,255,.5); }

/* ── 12. SCROLL REVEAL ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }
.reveal-d6 { transition-delay: .6s; }

/* ── 13. PAGE INNER HERO (About, Services, Contact) ─────────────────────── */
.page-hero {
  padding: 160px 0 96px;
  background: linear-gradient(160deg, var(--bg-cream) 0%, var(--bg-white) 100%);
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(201,162,39,.1);
}
.page-hero-deco {
  position: absolute; pointer-events: none;
}
.page-hero-deco-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { margin-bottom: 22px; }
.page-hero .lead {
  font-size: 1.08rem; line-height: 1.85;
  color: var(--text-muted); max-width: 580px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--gold); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-dk); }
.breadcrumb-sep { opacity: .4; font-size: .7rem; }

/* ── 14. FORM ELEMENTS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 8px; letter-spacing: .3px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px;
  background: var(--bg-cream);
  border: 1.5px solid rgba(201,162,39,.15);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9rem; color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.12);
  background: var(--bg-white);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { appearance: none; cursor: pointer; }

/* ── 15. RESPONSIVE BASE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 72px 0; }
  h1 { font-size: 2.4rem; letter-spacing: -1px; }
  h2 { font-size: 1.8rem; }
  .page-hero { padding: 120px 0 72px; }
  .nav-logo-img { height: 28px; max-width: 150px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2rem; }
  .btn { padding: 12px 22px; font-size: .78rem; }
}
