/* ============================================
   SÓKN ENGINEERING — SHARED STYLES
   ============================================ */

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

:root {
    --bg-deep: #0C0A09;
    --bg-surface: #111110;
    --bg-warm: #13120F;
    --gold: #C9A84C;
    --gold-hover: #D4B65E;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --text-primary: #F0EDE6;
    --text-secondary: #6B6B6B;
    --text-muted: rgba(240, 237, 230, 0.6);
    --red: #E63028;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   AMBIENT BACKGROUND + GRAIN
   ============================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(201, 168, 76, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 60%, rgba(201, 168, 76, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(230, 48, 40, 0.015) 0%, transparent 50%);
    animation: ambientShift 40s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% { opacity: 1; transform: scale(1) translate(0, 0); }
    33% { opacity: 0.7; transform: scale(1.1) translate(2%, -1%); }
    66% { opacity: 1; transform: scale(0.95) translate(-1%, 2%); }
    100% { opacity: 0.8; transform: scale(1.05) translate(1%, -2%); }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

nav, main, footer, .mobile-overlay {
    position: relative;
    z-index: 2;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(12, 10, 9, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.6s var(--ease-out-expo);
}

nav.scrolled {
    border-bottom-color: rgba(201, 168, 76, 0.1);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-svg { flex-shrink: 0; }

.nav-logo-text {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-logo-word {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 2px;
    transition: color 0.4s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.5s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background-color: var(--text-primary);
    transition: all 0.4s var(--ease-out-expo);
}

.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--bg-deep);
    z-index: 1005;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0s linear 0.5s;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0s linear 0s;
}

.mobile-overlay a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 2px;
}

.mobile-overlay a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.4s var(--ease-out-expo);
}

.mobile-overlay a:hover::after { width: 100%; }

/* ============================================
   SHARED BUTTONS & LINKS
   ============================================ */
.btn-gold {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--bg-deep);
    background-color: var(--gold);
    padding: 17px 42px;
    border-radius: 6px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    border: 1px solid var(--gold);
    cursor: pointer;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--text-primary);
    background-color: transparent;
    padding: 17px 42px;
    border-radius: 6px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

.text-link {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--gold);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.4s ease;
    display: inline-block;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.5s var(--ease-out-expo);
}

.text-link:hover::after { width: 100%; }
.text-link:hover { color: var(--gold-hover); }

/* ============================================
   SHARED PAGE STRUCTURES
   ============================================ */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background-color: var(--gold);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.section-body {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(240, 237, 230, 0.78);
}

.section-body + .section-body { margin-top: 24px; }

[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SUB-HERO (for non-home pages)
   ============================================ */
.sub-hero {
    padding: 220px 48px 140px;
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.sub-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.05);
    will-change: transform;
}

.sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(12,10,9,0.55) 0%, rgba(12,10,9,0.78) 45%, rgba(12,10,9,0.97) 100%),
        linear-gradient(90deg, rgba(12,10,9,0.65) 0%, rgba(12,10,9,0.25) 55%, rgba(12,10,9,0.55) 100%);
    pointer-events: none;
}

.sub-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.sub-hero-accent {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    margin-bottom: 40px;
}

.sub-hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6.5vw, 5.8rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 20ch;
    margin-bottom: 36px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

.sub-hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(240, 237, 230, 0.85);
    max-width: 680px;
    text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.sub-hero-waveform {
    position: absolute;
    right: -48px;
    bottom: 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.sub-hero-waveform path {
    stroke: var(--gold);
    stroke-width: 1;
    fill: none;
}

/* ============================================
   AUDITOR BADGE
   ============================================ */
.auditor-stamp {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 14px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 2px;
    background-color: rgba(201, 168, 76, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auditor-stamp-mark {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.auditor-stamp-mark::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 50%;
}

.auditor-stamp-text {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.5;
    white-space: nowrap;
}

.auditor-stamp-text small {
    color: rgba(240, 237, 230, 0.55);
    font-weight: 400;
    letter-spacing: 0.14em;
}

/* ============================================
   DISCLOSURE (progressive reveal)
   ============================================ */
.disclosure-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s ease, gap 0.3s ease;
}

.disclosure-toggle:hover {
    color: var(--gold-hover);
    gap: 14px;
}

.disclosure-toggle-icon {
    display: inline-block;
    width: 14px;
    height: 1px;
    background-color: var(--gold);
    position: relative;
    transition: background-color 0.3s ease;
}

.disclosure-toggle-icon::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 6px;
    width: 1px;
    height: 13px;
    background-color: var(--gold);
    transition: transform 0.35s var(--ease-out-expo), opacity 0.25s ease;
    transform-origin: center;
}

.disclosure-toggle[aria-expanded="true"] .disclosure-toggle-icon::before {
    transform: scaleY(0);
    opacity: 0;
}

.disclosure-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s var(--ease-out-expo), opacity 0.4s ease, margin 0.4s ease;
}

.disclosure-panel[data-open="true"] {
    max-height: 2400px;
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid rgba(201, 168, 76, 0.12);
    padding: 48px 48px 40px;
    background-color: var(--bg-deep);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gold);
}

.footer-logo-word {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-links a {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-copy {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.footer-disclaimer {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 300;
    color: rgba(107, 107, 107, 0.7);
    line-height: 1.7;
    max-width: 720px;
    text-align: right;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-animate] {
        opacity: 1;
        transform: none;
    }
    body::before { animation: none; }
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .nav-inner { padding: 0 32px; }
    .sub-hero { padding: 156px 32px 96px; }
    footer { padding: 40px 32px 32px; }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
    .nav-inner {
        padding: 0 24px;
        height: 64px;
    }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-overlay { display: flex; }

    .sub-hero {
        padding: 128px 24px 72px;
        min-height: 56vh;
    }
    .sub-hero-waveform { display: none; }

    footer { padding: 32px 24px; }
    .footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-disclaimer { text-align: center; }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
}

@media (max-width: 375px) {
    .footer-links { gap: 20px; }
}
