/* ISO Vision AI — shared styles for local/vertical landing pages.
   Mirrors the AI Front Door design system (dark premium editorial) with the
   mobile wrap fixes baked in (text-wrap balance/pretty, flowing hero). */
:root {
    --ink: #0a0a0a; --charcoal: #141414; --graphite: #2a2a2a; --steel: #404040;
    --cream: #f5f2ed; --muted: #9a958c; --gold: #c9a227; --gold-light: #e8c547;
    --gold-dim: rgba(201,162,39,0.15); --emerald: #2dd4bf; --emerald-dim: rgba(45,212,191,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--ink); color: var(--cream); line-height: 1.7; font-size: 17px;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
    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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
.gold { color: var(--gold-light); } .emerald { color: var(--emerald); }
.serif-i { font-style: italic; font-weight: 500; }
.eyebrow { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 22px 0; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); border-bottom: 1px solid transparent; }
nav.scrolled { padding: 14px 0; background: rgba(10,10,10,0.82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 600; letter-spacing: 0.02em; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--cream); opacity: 0.8; transition: all 0.25s; }
.nav-links a:hover { opacity: 1; color: var(--gold-light); }
.nav-links a.active { opacity: 1; color: var(--gold); }
.nav-cta { font-size: 0.88rem; font-weight: 600; padding: 11px 24px; border: 1px solid var(--gold); border-radius: 2px; color: var(--gold) !important; opacity: 1 !important; transition: all 0.3s; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 120; }
.menu-toggle span { width: 26px; height: 2px; background: var(--cream); transition: all 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; padding: 16px 32px; border-radius: 2px; cursor: pointer; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,162,39,0.25); }
.btn-secondary { border-color: rgba(245,242,237,0.25); color: var(--cream); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; }
section { position: relative; z-index: 2; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: #050505; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url('images/ai-front-door-hero.jpg') center right / cover no-repeat; opacity: 0.9; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,5,5,0.96) 0%, rgba(5,5,5,0.78) 38%, rgba(5,5,5,0.25) 70%, rgba(5,5,5,0.55) 100%), linear-gradient(0deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0) 30%); }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 760px; padding-top: 80px; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); margin: 26px 0 28px; text-shadow: 0 2px 44px rgba(0,0,0,0.55); }
.hero h1 .line { display: block; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--cream); opacity: 0.88; max-width: 620px; margin-bottom: 38px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-loc { margin-top: 44px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hero-loc::before { content: ''; width: 42px; height: 1px; background: var(--gold); opacity: 0.6; }

/* SECTION SHELL */
.section-pad { padding: 130px 0; }
.section-head { max-width: 780px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); margin: 18px 0 22px; }
.section-head p { font-size: 1.15rem; color: var(--cream); opacity: 0.8; line-height: 1.65; }

/* SERVE / CHIPS */
.serve { background: linear-gradient(180deg, #050505, var(--ink)); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; max-width: 920px; }
.chip { font-size: 0.95rem; font-weight: 500; color: var(--cream); padding: 12px 20px; border: 1px solid rgba(201,162,39,0.3); border-radius: 40px; background: rgba(201,162,39,0.05); transition: all 0.3s; }
.chip:hover { border-color: var(--gold); background: rgba(201,162,39,0.12); }
.chip.home { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-light); }
.serve-note { margin-top: 30px; font-size: 1rem; color: var(--muted); }

/* SPLIT / STATS */
.split { background: var(--ink); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 56px; }
.stat-stack { display: grid; gap: 22px; }
.stat { border: 1px solid rgba(255,255,255,0.08); border-left: 3px solid var(--gold); border-radius: 8px; padding: 24px 26px; background: rgba(255,255,255,0.015); }
.stat .big { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat .lab { margin-top: 8px; font-size: 0.98rem; color: var(--cream); opacity: 0.85; }
.lead { font-size: 1.18rem; line-height: 1.7; opacity: 0.92; }
.lead strong { color: var(--gold-light); }
.sub-note { margin-top: 20px; color: var(--muted); font-size: 1.02rem; }

/* PROOF / CARD BANDS */
.band { background: linear-gradient(180deg, var(--ink), #0c0c0b); }
.band.alt { background: linear-gradient(180deg, #0c0c0b, var(--ink)); }
.card { margin-top: 48px; border-radius: 16px; padding: 56px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(201,162,39,0.1), rgba(45,212,191,0.04) 45%, transparent 75%); border: 1px solid rgba(201,162,39,0.25); }
.card h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 16px; }
.card p { font-size: 1.12rem; color: var(--cream); opacity: 0.85; max-width: 660px; margin: 0 auto 32px; }

/* SERVICES */
.svc { background: #0c0c0b; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.svc-card { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 34px 32px; background: rgba(255,255,255,0.015); transition: all 0.4s; }
.svc-card:hover { transform: translateY(-6px); border-color: rgba(201,162,39,0.4); }
.svc-card h3 { font-size: 1.7rem; margin-bottom: 10px; }
.svc-card p { color: var(--cream); opacity: 0.82; font-size: 1.02rem; }
.svc-num { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--gold); display: block; margin-bottom: 14px; letter-spacing: 0.1em; }

/* FAQ */
.faq { background: var(--ink); }
.faq-list { max-width: 840px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.09); }
.faq-item summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--cream); position: relative; transition: color 0.25s; }
.faq-item summary:hover { color: var(--gold-light); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: 'DM Sans', sans-serif; font-size: 1.7rem; color: var(--gold); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 44px 26px 0; color: var(--cream); opacity: 0.82; font-size: 1.04rem; line-height: 1.68; }

/* CLOSE */
.close { background: linear-gradient(180deg, #0c0c0b, var(--ink)); text-align: center; }
.close h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.close p { font-size: 1.18rem; color: var(--cream); opacity: 0.8; max-width: 580px; margin: 0 auto 38px; }

/* FOOTER */
footer { padding: 60px 0; border-top: 1px solid rgba(255,255,255,0.07); background: #070707; position: relative; z-index: 2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: var(--cream); opacity: 0.7; transition: all 0.25s; }
.footer-links a:hover { opacity: 1; color: var(--gold-light); }
.footer-copy { font-size: 0.82rem; color: var(--muted); width: 100%; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { .reveal, .btn, .svc-card, .chip { transition: none; } .reveal { opacity: 1; transform: none; } }

/* RESPONSIVE */
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; gap: 40px; } .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .menu-toggle { display: flex; }
    .nav-links { position: fixed; inset: 0; background: rgba(8,8,8,0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
    .nav-links.mobile-open { transform: translateX(0); }
    .nav-links a { font-size: 1.3rem; }
    .nav-cta { display: none; }
    .container, .container-wide { padding: 0 22px; }
    .section-pad { padding: 90px 0; }
    .hero-bg { background-position: 70% 42%; opacity: 0.95; }
    .hero-scrim { background: linear-gradient(180deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.6) 36%, rgba(5,5,5,0.38) 58%, rgba(5,5,5,0.84) 100%); }
    .hero-content { padding-top: 58px; max-width: 100%; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 2.85rem); line-height: 1.14; margin: 18px 0 22px; }
    .hero h1 .line { display: inline; }
    .hero h1 .line.gold { display: block; margin-top: 0.2em; }
    .hero-ctas { gap: 12px; }
    .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
    .card { padding: 40px 24px; }
    .svc-card { padding: 28px 24px; }
}
