/* ═══════════════════════════════════════════════════
   SORNIONE — SHARED STYLES
   All pages import this via <link>
═══════════════════════════════════════════════════ */
:root {
  --gold:        #b8922a;
  --gold-mid:    rgba(184,146,42,0.15);
  --gold-dim:    rgba(184,146,42,0.06);
  --black:       #080808;
  --near-black:  #111111;
  --white:       #ffffff;
  --off-white:   #f8f8f6;
  --grey:        #f2f2f0;
  --border:      rgba(0,0,0,0.07);
  --border-dark: rgba(255,255,255,0.07);
  --text:        #1a1a1a;
  --muted:       #666666;
  --light-text:  #999999;
  --nav-h:       76px;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', system-ui, sans-serif;
  --font-mono:   'Space Mono', monospace;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { font-family:var(--font-sans); font-weight:300; color:var(--text); background:var(--white); overflow-x:hidden; -webkit-font-smoothing:antialiased; }
img { display:block; max-width:100%; }
a { text-decoration:none; color:inherit; }

/* ── TYPOGRAPHY ── */
.t-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.t-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.t-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.t-sub {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.1rem 2.6rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary { background:var(--gold); color:var(--white); }
.btn-primary:hover { background:#a07828; }
.btn-dark { background:var(--black); color:var(--white); }
.btn-dark:hover { background:var(--gold); }
.btn-outline { border:1.5px solid var(--black); color:var(--black); background:transparent; }
.btn-outline:hover { background:var(--black); color:var(--white); }
.btn-outline-white { border:1.5px solid rgba(255,255,255,0.3); color:rgba(255,255,255,0.8); background:transparent; }
.btn-outline-white:hover { border-color:var(--gold); color:var(--gold); }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 10000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  transition: box-shadow 0.3s;
  box-sizing: border-box;
  width: 100%;
}
.site-nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.08); }

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 400;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.85rem;
  height: var(--nav-h);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--black); }
.nav-link svg { width:9px; height:9px; stroke:currentColor; fill:none; stroke-width:2; flex-shrink:0; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease);
  pointer-events: none;
  z-index: 10001;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.nav-dropdown-section {
  padding: 1rem 1.2rem 0.3rem;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-mono);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 400;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.nav-dropdown a:hover {
  color: var(--black);
  border-left-color: var(--gold);
  background: var(--off-white);
  padding-left: 1.5rem;
}
.nav-dropdown-divider { height:1px; background:var(--border); margin:0.3rem 1.2rem; }

.nav-actions { display:flex; align-items:center; flex-shrink:0; }
/* Mobile-only CTA: hidden on desktop so it does not duplicate the desktop button. */
.nav-mobile-cta { display:none; }
.nav-actions .btn {
  padding: 0.8rem 1.4rem;
  font-size: 0.62rem;
  white-space: nowrap;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── FOOTER ── */
/* ── FOOTER ── */
.site-footer {
  background: #050505;
  padding: 5rem 4rem 3rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2.5rem;
}
.footer-brand { }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 300;
  margin-bottom: 0.8rem;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.5rem;
}
.footer-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.9;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.footer-social a:hover { border-color:var(--gold); color:var(--gold); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:0.7rem; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.footer-links a:hover { color:rgba(255,255,255,0.8); }
.footer-contact-line {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.footer-contact-line a { transition:color 0.3s; }
.footer-contact-line a:hover { color:var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { font-size:0.72rem; color:rgba(255,255,255,0.18); }
.footer-legal a { color:rgba(255,255,255,0.25); margin-left:1.2rem; transition:color 0.3s; }
.footer-legal a:hover { color:var(--gold); }
.footer-reg { font-size:0.65rem; color:rgba(255,255,255,0.12); font-family:var(--font-mono); }

/* ── SECTION WRAPPER ── */
.section { padding: 8rem 4rem; }
.section-sm { padding: 5rem 4rem; }
.section-dark { background:var(--black); color:var(--white); }
.section-off { background:var(--off-white); }
.section-gold { background:var(--gold); color:var(--white); }
.container { max-width:1280px; margin:0 auto; }

/* ── SECTION HEADER ── */
.section-head { margin-bottom:4rem; }
.section-head .t-label { margin-bottom:1.2rem; }
.section-head .t-heading { font-size:clamp(2.2rem,4vw,3.8rem); }

/* ── DIVIDER ── */
.gold-divider { height:2px; background:var(--gold); width:48px; display:block; }

/* ── CARDS ── */
.card-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.card-grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:2rem; }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 55vh;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 5rem) 4rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  filter: brightness(0.6) saturate(0.7);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8,8,8,0.95) 40%, rgba(8,8,8,0.5) 100%);
}
.page-hero-content { position:relative; z-index:2; max-width:700px; }
.page-hero-content .t-label { margin-bottom:1.5rem; }
.page-hero-content .t-heading { font-size:clamp(3rem,7vw,6rem); color:var(--white); margin-bottom:1.5rem; }
.page-hero-content .t-sub { color:rgba(255,255,255,0.5); max-width:520px; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity:1; transform:none; } /* no-JS fallback */
.js-ready .reveal { opacity:0; transform:translateY(28px); transition:opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.js-ready .reveal.in { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--light-text);
  padding: calc(var(--nav-h) + 1.5rem) 4rem 1.5rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color:var(--muted); transition:color 0.3s; }
.breadcrumb a:hover { color:var(--gold); }
.breadcrumb span { color:var(--black); font-weight:500; }
.breadcrumb-sep { color:rgba(0,0,0,0.2); font-size:0.6rem; }

/* ── RESPONSIVE ── */

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media(max-width:1100px){
  .site-nav { padding: 0 1.5rem; }
  .nav-link { padding: 0 0.6rem; font-size: 0.6rem; letter-spacing: 0.1em; }
  .nav-actions .btn { padding: 0.7rem 1rem; font-size: 0.58rem; }
}

@media(max-width:1024px){
  .site-nav { padding: 0 1.5rem; }
  .section { padding:6rem 2rem; }
  .section-sm { padding:4rem 2rem; }
  .site-footer { padding:4rem 2rem 2rem; }
  .footer-top { grid-template-columns:1fr 1fr; gap:3rem; }
  .page-hero { padding:calc(var(--nav-h) + 3rem) 2rem 3rem; }
  .breadcrumb { padding:calc(var(--nav-h) + 1rem) 2rem 1rem; }
  .card-grid-3 { grid-template-columns:repeat(2,1fr); }
  .card-grid-2 { grid-template-columns:1fr; }
}

@media(max-width:768px){
  /* Hide desktop nav, show hamburger */
  .nav-menu { display:none; }
  .nav-menu.is-open {
    display:flex;
    flex-direction:column;
    position:fixed;
    top:var(--nav-h);
    left:0;
    right:0;
    bottom:0;
    max-height:calc(100dvh - var(--nav-h));
    background:#ffffff;
    z-index:9999;
    overflow-y:auto;
    overscroll-behavior:contain;
    box-shadow:0 8px 40px rgba(0,0,0,0.16);
    justify-content:flex-start;
  }
  .nav-toggle { display:flex; }
  .nav-actions { display:none; }
  .site-nav { padding:0 1.25rem; }
  body.nav-menu-open { overflow:hidden; }

  /* Mobile drawer */
  .nav-item { border-bottom:1px solid rgba(0,0,0,0.06); width:100%; }
  .nav-link {
    padding: 1rem 1.25rem;
    height: auto;
    font-size: 0.76rem;
    color: #333;
    justify-content: space-between;
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #f8f8f6;
    display: none;
    min-width: 0;
    padding: 0.3rem 0;
    pointer-events: none;
  }
  .nav-dropdown.mobile-dropdown-open {
    display: block;
    pointer-events: all;
  }
  .nav-dropdown-section { padding: 0.7rem 1.25rem 0.2rem; font-size: 0.56rem; }
  .nav-dropdown a { padding: 0.7rem 1.8rem; font-size: 0.75rem; border-left: none; }
  .nav-dropdown a:hover { padding-left: 1.8rem; }
  .nav-dropdown-divider { margin: 0.2rem 1.25rem; }
  .nav-mobile-cta {
    display:block !important;
    margin:1.2rem 1.25rem;
    text-align: center;
    background: var(--gold);
    color: #fff;
    padding: 0.95rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
  }

  /* Page layout */
  .section { padding: 4rem 1.25rem; }
  .section-sm { padding: 3rem 1.25rem; }
  .site-footer { padding: 3rem 1.25rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .page-hero { min-height: 45vh; }
  .breadcrumb { padding: calc(var(--nav-h) + 0.8rem) 1.25rem 0.8rem; font-size: 0.68rem; }
  .hero-title { line-height: 1.05; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }
  .why-card { padding: 2rem 1.25rem; }
  .service-body { padding: 3rem 1.25rem; }
  .faq-item { padding: 1.5rem 1.25rem; }
  .guide-body { padding: 1.5rem; }
  .footer-reg { font-size: 0.62rem; line-height: 1.7; }
}

/* ── CONTRAST FIXES ── */
.t-sub { color: #444444; font-size: 0.95rem; line-height: 2.1; }

/* Hero sub text — needs to be readable on dark background */
.hero-sub {
  color: rgba(255,255,255,0.75) !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}

/* Footer — readable but still dark */
.footer-desc { color: rgba(255,255,255,0.65); }
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: rgba(255,255,255,0.95); }
.footer-contact-line { color: rgba(255,255,255,0.65); }
.footer-legal { color: rgba(255,255,255,0.5); }
.footer-reg { color: rgba(255,255,255,0.5); font-size: 0.68rem; }
.footer-tagline { color: rgba(255,255,255,0.35) !important; }

/* Dark section body text */
.why-desc { color: rgba(255,255,255,0.65); }
.demo-content .t-sub,
.intro-left .t-sub { color: rgba(255,255,255,0.65); }
.page-hero-content .t-sub { color: rgba(255,255,255,0.65); }

/* Muted text on white — keep readable */
.t-sub { color: #444444; }
.service-p { color: #555555; }
.process-desc { color: #555555; }
.faq-a { color: #555555; }
.article-body p { color: #555555; }

/* ── GOLD CONTRAST FIX — small labels on white backgrounds ── */
.t-label { color: #7a6018; }
.t-label::before { background: #7a6018; }
.service-tile-num, .process-num, .timeline-year,
.guide-tag, .project-tag, .value-num,
.footer-col-title { color: #907220; }
.sidebar-card-title { color: #7a6018; }
.nav-dropdown-section { color: #7a6018; }
/* Gold on dark backgrounds — keep bright */
.live-badge, .demo-stat-l, .system-live-badge,
.scenario-time, .hero-eyebrow,
.hero-stat-label { color: var(--gold); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── HAMBURGER ANIMATION ── */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle span { transition: transform 0.3s, opacity 0.3s; }

/* ── FOCUS STYLES ── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid #907220;
  outline-offset: 3px;
}
