/* ═══════════════════════════════════════════════════════════════
   goldhat.css — GoldHat™ Cowboy Noir Enterprise Design System
   Version:   3.0.0
   Released:  2026-03-02
   Codename:  Cowboy Noir
   Source:    goldhatconsulting.com (master site)
   License:   Proprietary — GoldHat™ 98925168 · ArchDaemon™ 98940257
   ─────────────────────────────────────────────────────────────
   3.0.0  Full release. Portal + Study components unified.
          Adds: page-banner, abstract-box, stat-row, timeline,
          keywords, grid-2/3, content-warning, legal-notice,
          badges, section-num, study-meta, blockquote, tables.
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════
   1. TOKENS — identical to master site
   ═══════════════════════════════════════ */

:root {
    --gold-primary: #C9A227;
    --gold-light: #E8D48A;
    --gold-dark: #8B6914;
    --slate-deep: #2C3A47;
    --slate-medium: #3D4F5F;
    --forest-green: #2D5A4A;
    --mountain-blue: #4A6FA5;
    --cream: #FAF8F5;
    --warm-white: #FDFCFA;
    --charcoal: #1A1A1A;
    --warm-gray: #6B6B6B;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --max-width: 1200px;
    --border-radius: 8px;
}


/* ═══════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; }


/* ═══════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--slate-deep);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: var(--space-md); margin-bottom: var(--space-xs); }
h4 { font-size: 1.1rem; margin-bottom: var(--space-xs); }

p { margin-bottom: 1.25em; color: var(--warm-gray); }

a { color: var(--gold-dark); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-primary); }

blockquote {
    border-left: 4px solid var(--gold-primary);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
    background: var(--warm-white);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote p { color: var(--slate-medium); font-style: italic; margin-bottom: 0.5em; }
blockquote cite { display: block; font-size: 0.85rem; color: var(--gold-dark); font-style: normal; margin-top: 0.5em; }


/* ═══════════════════════════════════════
   4. HEADER & NAVIGATION
   ═══════════════════════════════════════ */

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(44, 58, 71, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--gold-primary);
}

.header-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex; justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.logo-icon { width: 48px; height: 48px; }

.logo-text {
    font-family: var(--font-display); font-size: 1.5rem;
    color: var(--gold-primary); font-weight: 700;
}

.logo-text span {
    display: block; font-size: 0.65rem; font-family: var(--font-body);
    font-weight: 400; color: var(--cream); letter-spacing: 0.15em;
    text-transform: uppercase; margin-top: -4px;
}

.main-nav { display: flex; gap: var(--space-md); list-style: none; }

.main-nav a {
    color: var(--cream); font-weight: 500; font-size: 0.95rem;
    padding: var(--space-xs) 0; position: relative;
}

.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--gold-primary);
    transition: width 0.3s ease;
}

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

.header-cta {
    background: var(--gold-primary); color: var(--slate-deep) !important;
    padding: var(--space-xs) var(--space-sm); border-radius: var(--border-radius);
    font-weight: 600; transition: all 0.3s ease;
}

.header-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.header-cta::after { display: none; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-xs); }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 6px 0; transition: 0.3s; }


/* ═══════════════════════════════════════
   5. HERO — for index page
   ═══════════════════════════════════════ */

.hero {
    min-height: 70vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--slate-deep) 0%, var(--slate-medium) 50%, var(--forest-green) 100%);
    padding-top: 80px;
}

.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 90, 74, 0.2) 0%, transparent 50%);
    opacity: 0.4; pointer-events: none;
}

.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23FAF8F5' d='M0,200 L0,150 Q120,100 240,120 T480,80 T720,100 T960,60 T1200,90 T1440,70 L1440,200 Z'/%3E%3C/svg%3E");
    background-size: cover; background-position: bottom;
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: var(--space-lg) var(--space-md); }
.hero-badge { display: inline-block; background: rgba(201, 162, 39, 0.2); border: 1px solid var(--gold-primary); color: var(--gold-light); padding: var(--space-xs) var(--space-sm); border-radius: 50px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: var(--space-md); }
.hero h1 { color: var(--cream); margin-bottom: var(--space-sm); text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero h1 .gold { color: var(--gold-primary); }
.hero-subtitle { font-size: 1.25rem; color: rgba(250, 248, 245, 0.9); margin-bottom: var(--space-md); max-width: 750px; margin-left: auto; margin-right: auto; }
.hero-location { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--gold-light); font-weight: 500; margin-bottom: var(--space-lg); }
.hero-ctas { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }


/* ═══════════════════════════════════════
   6. PAGE BANNER — for study subpages
   ═══════════════════════════════════════ */

.page-banner {
    padding: 120px var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--slate-deep) 0%, var(--slate-medium) 50%, var(--forest-green) 100%);
    text-align: center; position: relative; overflow: hidden;
}

.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(45, 90, 74, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-banner-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.page-banner h1 { color: var(--cream); margin-bottom: var(--space-sm); text-shadow: 0 2px 20px rgba(0,0,0,0.3); font-size: clamp(2rem, 4vw, 3rem); }
.page-banner .subtitle { font-size: 1.15rem; color: rgba(250, 248, 245, 0.85); margin-bottom: 0; }

.study-meta {
    display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center;
    margin-top: var(--space-md); font-size: 0.9rem; color: var(--gold-light);
}

.study-meta span { display: inline-flex; align-items: center; gap: 0.3em; }


/* ═══════════════════════════════════════
   7. TRUST BAR / STAT ROW
   ═══════════════════════════════════════ */

.trust-bar { background: var(--warm-white); padding: var(--space-lg) var(--space-md); border-bottom: 1px solid rgba(0,0,0,0.05); }

.trust-bar-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md); text-align: center;
}

.trust-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); }
.trust-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold-dark); font-weight: 700; line-height: 1; }
.trust-label { font-size: 0.9rem; color: var(--warm-gray); font-weight: 500; }

/* Stat row (inline variant for study pages) */
.stat-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-sm); margin: var(--space-md) 0;
}

.stat-box {
    background: var(--warm-white); border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius); padding: var(--space-sm);
    text-align: center; transition: transform 0.3s ease;
}

.stat-box:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.stat-value { font-family: var(--font-display); font-size: 2rem; color: var(--gold-dark); font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.85rem; color: var(--warm-gray); margin-top: 0.25em; }


/* ═══════════════════════════════════════
   6b. STUDY SUB-NAV — chapter links (study pages only)
   ═══════════════════════════════════════ */

.study-subnav {
    background: var(--warm-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.5rem var(--space-md);
    position: sticky; top: 68px; z-index: 990;
    margin-top: 90px;
}

.subnav-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    justify-content: center;
}

.study-subnav a {
    display: inline-block; padding: 0.3em 0.7em; border-radius: 50px;
    font-size: 0.78rem; font-weight: 500; color: var(--warm-gray);
    border: 1px solid rgba(0,0,0,0.06); transition: all 0.2s;
    white-space: nowrap; text-decoration: none;
}

.study-subnav a:hover {
    background: rgba(201, 162, 39, 0.1); color: var(--gold-dark);
    border-color: rgba(201, 162, 39, 0.3);
}

.study-subnav a.active {
    background: var(--gold-primary); color: var(--slate-deep);
    border-color: var(--gold-primary); font-weight: 600;
}

@media (max-width: 768px) {
    .study-subnav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .subnav-inner { flex-wrap: nowrap; justify-content: flex-start; }
    .study-subnav a { flex-shrink: 0; }
}


/* ═══════════════════════════════════════
   8. SECTION HEADERS
   ═══════════════════════════════════════ */

.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-lg); }
.section-label { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p { font-size: 1.15rem; line-height: 1.8; }

.section-num {
    color: var(--gold-primary); font-family: var(--font-display);
    font-weight: 700; margin-right: 0.3em;
}


/* ═══════════════════════════════════════
   9. MAIN CONTENT AREA
   ═══════════════════════════════════════ */

.services, .bundles, .trademarks, .contact { padding: var(--space-xl) var(--space-md); }
.services { background: var(--cream); }

.main-content {
    max-width: var(--max-width); margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}


/* ═══════════════════════════════════════
   10. CARDS
   ═══════════════════════════════════════ */

.card {
    background: var(--warm-white); border-radius: var(--border-radius);
    padding: var(--space-md); border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease; position: relative; overflow: hidden;
    margin-bottom: var(--space-sm);
}

.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
    background: var(--gold-primary); transition: height 0.4s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.card:hover::before { height: 100%; }

.card h3, .card h4 { color: var(--slate-deep); }
.card p { font-size: 0.95rem; }

/* Service card variant */
.service-card { background: var(--warm-white); border-radius: var(--border-radius); padding: var(--space-md); border: 1px solid rgba(0,0,0,0.05); transition: all 0.4s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0; background: var(--gold-primary); transition: height 0.4s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-card:hover::before { height: 100%; }

.service-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%); border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm); }
.service-icon svg { width: 28px; height: 28px; stroke: var(--cream); fill: none; stroke-width: 2; }

.service-card h3 { margin-bottom: var(--space-xs); font-size: 1.25rem; }
.service-card p { font-size: 0.95rem; margin-bottom: var(--space-sm); }

.service-list { list-style: none; font-size: 0.9rem; }
.service-list li { padding: var(--space-xs) 0; padding-left: 1.5rem; position: relative; color: var(--warm-gray); }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-primary); font-weight: 700; }

/* Trademark / network cards */
.trademarks { background: linear-gradient(135deg, var(--forest-green) 0%, var(--slate-deep) 100%); }
.trademarks .section-header h2, .trademarks .section-header p, .trademarks .section-label { color: var(--cream); }
.trademarks .section-label { color: var(--gold-light); }

.trademark-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.trademark-card { background: rgba(250, 248, 245, 0.95); border-radius: var(--border-radius); padding: var(--space-md); border-top: 4px solid var(--gold-primary); transition: transform 0.3s ease, box-shadow 0.3s ease; display: block; }
.trademark-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.trademark-card h3 { color: var(--gold-dark); margin-bottom: var(--space-xs); }
.trademark-serial { font-size: 0.8rem; color: var(--warm-gray); font-family: monospace; margin-bottom: var(--space-sm); }


/* ═══════════════════════════════════════
   11. STUDY-SPECIFIC COMPONENTS
   ═══════════════════════════════════════ */

/* Abstract box */
.abstract-box {
    background: var(--warm-white); border-left: 5px solid var(--gold-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: var(--space-md); margin-bottom: var(--space-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.abstract-box h3 { color: var(--gold-dark); margin-bottom: var(--space-sm); }
.abstract-box p { color: var(--slate-medium); font-size: 0.95rem; line-height: 1.8; }

/* Keywords */
.keywords { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-md) 0; }
.keyword {
    background: rgba(201, 162, 39, 0.12); border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--gold-dark); padding: 0.25em 0.75em; border-radius: 50px;
    font-size: 0.82rem; font-weight: 500;
}

/* Content warning */
.content-warning {
    background: linear-gradient(135deg, rgba(45, 90, 74, 0.08) 0%, rgba(74, 111, 165, 0.06) 100%);
    border: 1px solid rgba(45, 90, 74, 0.2); border-left: 5px solid var(--forest-green);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: var(--space-md); margin: var(--space-md) 0;
}

.content-warning h4 { color: var(--forest-green); margin-bottom: var(--space-xs); }
.content-warning p { color: var(--slate-medium); font-size: 0.9rem; }

/* Legal notice */
.legal-notice {
    background: var(--warm-white); border: 1px solid rgba(0,0,0,0.08);
    border-left: 4px solid var(--slate-medium); border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: var(--space-sm) var(--space-md); margin: var(--space-md) 0;
    font-size: 0.9rem; color: var(--slate-medium);
}

.legal-notice strong { color: var(--slate-deep); }

/* Badges */
.badge {
    display: inline-block; padding: 0.15em 0.6em; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}

.badge.active { background: rgba(45, 90, 74, 0.15); color: var(--forest-green); }
.badge.pending { background: rgba(201, 162, 39, 0.15); color: var(--gold-dark); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); margin: var(--space-md) 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin: var(--space-md) 0; }

/* Timeline */
.timeline { position: relative; padding-left: 2.5rem; margin: var(--space-md) 0; }

.timeline::before {
    content: ''; position: absolute; left: 0.75rem; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(180deg, var(--gold-primary) 0%, var(--forest-green) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative; padding-bottom: var(--space-md); padding-left: var(--space-sm);
}

.timeline-item::before {
    content: ''; position: absolute; left: -1.85rem; top: 0.3rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--gold-primary); border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--gold-primary);
}

.timeline-year {
    font-family: var(--font-display); font-weight: 700;
    color: var(--gold-dark); font-size: 1.1rem; margin-bottom: 0.25em;
}

.timeline-desc { color: var(--warm-gray); font-size: 0.95rem; line-height: 1.7; }
.timeline-desc strong { color: var(--slate-deep); }

/* Tables */
table {
    width: 100%; border-collapse: collapse; margin: var(--space-sm) 0;
    background: var(--warm-white); border-radius: var(--border-radius);
    overflow: hidden; border: 1px solid rgba(0,0,0,0.08);
}

thead { background: var(--slate-deep); }
th { color: var(--cream); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
td { color: var(--warm-gray); font-size: 0.9rem; }
tbody tr:hover { background: rgba(201, 162, 39, 0.04); }
tbody tr:last-child td { border-bottom: none; }


/* ═══════════════════════════════════════
   12. ARCHIVE GRID — portal auto-index
   ═══════════════════════════════════════ */

.archive-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.dir-card .service-icon { background: linear-gradient(135deg, var(--forest-green) 0%, var(--slate-deep) 100%); }
.file-icon { background: linear-gradient(135deg, var(--mountain-blue) 0%, var(--slate-medium) 100%); }
.dir-count { font-size: 0.85rem; color: var(--gold-dark); font-weight: 600; }
.service-list a { color: var(--gold-dark); text-decoration: none; font-weight: 500; }
.service-list a:hover { color: var(--gold-primary); text-decoration: underline; }
.more-indicator { color: var(--warm-gray) !important; font-style: italic; }
.more-indicator::before { content: '' !important; }

.empty-state { text-align: center; padding: var(--space-xl) var(--space-md); max-width: 600px; margin: 0 auto; }
.empty-icon { margin-bottom: var(--space-md); }
.empty-icon svg { stroke: var(--gold-primary); opacity: 0.5; }
.empty-state h3 { margin-bottom: var(--space-sm); }
.empty-state p { color: var(--warm-gray); font-size: 1.1rem; }


/* ═══════════════════════════════════════
   13. BUTTONS
   ═══════════════════════════════════════ */

.btn {
    display: inline-flex; align-items: center; gap: var(--space-xs);
    padding: 1rem 2rem; border-radius: var(--border-radius);
    font-weight: 600; font-size: 1rem; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer; border: none;
}

.btn-primary { background: var(--gold-primary); color: var(--slate-deep); box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 6px 30px rgba(201, 162, 39, 0.5); color: var(--slate-deep); }
.btn-secondary { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn-secondary:hover { background: var(--cream); color: var(--slate-deep); }


/* ═══════════════════════════════════════
   14. FOOTER
   ═══════════════════════════════════════ */

.site-footer { background: var(--slate-deep); color: var(--cream); padding: var(--space-lg) var(--space-md) var(--space-md); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid rgba(250, 248, 245, 0.1); }
.footer-brand .logo-text { margin-bottom: var(--space-sm); }
.footer-brand p { color: rgba(250, 248, 245, 0.7); font-size: 0.95rem; }
.footer-links h4 { color: var(--gold-primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.footer-links ul { list-style: none; }
.footer-links li { padding: var(--space-xs) 0; }
.footer-links a { color: rgba(250, 248, 245, 0.7); font-size: 0.95rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--gold-primary); }
.footer-bottom { padding-top: var(--space-md); display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: rgba(250, 248, 245, 0.5); }
.footer-legal { display: flex; gap: var(--space-md); }
.footer-legal a { color: rgba(250, 248, 245, 0.5); }
.footer-legal a:hover { color: var(--gold-primary); }


/* ═══════════════════════════════════════
   15. ANIMATIONS
   ═══════════════════════════════════════ */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }


/* ═══════════════════════════════════════
   16. RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .archive-grid, .trademark-grid, .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .trust-bar-inner, .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --space-lg: 3rem; --space-xl: 4rem; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--slate-deep); flex-direction: column; padding: var(--space-md); gap: var(--space-sm); }
    .main-nav.active { display: flex; }
    .mobile-toggle { display: block; }
    .archive-grid, .trademark-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .trust-bar-inner, .stat-row { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
    .study-meta { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero h1, .page-banner h1 { font-size: 2rem; }
    .hero-subtitle, .page-banner .subtitle { font-size: 1.05rem; }
    .hero-ctas { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .trust-bar-inner, .stat-row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════
   17. PRINT
   ═══════════════════════════════════════ */

@media print {
    .site-header, .hero, .page-banner, .trust-bar { display: none; }
    body { background: #fff; color: #222; }
    .card, .service-card, .abstract-box { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .trademarks { background: #fff; }
    .trademarks .section-header h2, .trademarks .section-header p { color: #222; }
    .site-footer { background: #fff; color: #222; border-top: 1px solid #ccc; }
}
