/*
 * Copyright (c) 2026 SeraphimGate Systems LLC. All rights reserved.
 * Proprietary Notice: This stylesheet is proprietary SGS tooling.
 * Licensed to clients only for use as deployed by SeraphimGate Systems LLC.
 * Not licensed for redistribution, sublicensing, derivative works,
 * reverse engineering, or reuse outside the client environment.
 */

/* SeraphimGate Design System v2.0 - Arcane Technomancer */

:root {
    /* --- COLOR PALETTE --- */

    /* Parchment Scale - Backgrounds */
    --void: #0a0908;
    --parchment-deep: #100e0c;
    --parchment: #161311;
    --parchment-mid: #1c1915;
    --parchment-light: #262118;
    --parchment-hover: #302a1f;

    /* Ink Scale - Text */
    --ink-bright: #efe3c8;
    --ink: #d4c5a0;
    --ink-dim: #8a7d63;
    --ink-faint: #5a5040;

    /* Gold System - Primary Brand */
    --gold-bright: #f0d060;
    --gold: #c9a84c;
    --gold-dim: #9a7d30;
    --gold-deep: #6b5520;
    --gold-glow: rgba(240, 208, 96, 0.18);
    --gold-ghost: rgba(201, 168, 76, 0.07);

    /* Jewel Accents - Semantic Colors */
    /* Sapphire - Info/Tech */
    --sapphire: #5a9fd4;
    --sapphire-dim: #3a6f9b;
    --sapphire-glow: rgba(90, 159, 212, 0.15);
    --sapphire-ghost: rgba(90, 159, 212, 0.06);

    /* Emerald - Success */
    --emerald: #5cb87a;
    --emerald-dim: #3d8a55;
    --emerald-glow: rgba(92, 184, 122, 0.15);
    --emerald-ghost: rgba(92, 184, 122, 0.06);

    /* Ruby - Warning */
    --ruby: #d46a6a;
    --ruby-dim: #9b4a4a;
    --ruby-glow: rgba(212, 106, 106, 0.15);
    --ruby-ghost: rgba(212, 106, 106, 0.06);

    /* Amethyst - Tips/Creative */
    --amethyst: #a47ad4;
    --amethyst-dim: #7a5a9b;
    --amethyst-glow: rgba(164, 122, 212, 0.15);
    --amethyst-ghost: rgba(164, 122, 212, 0.06);

    /* Amber - Benchmark/Pricing */
    --amber: #d4a24a;
    --amber-dim: #b08530;
    --amber-glow: rgba(212, 162, 74, 0.15);
    --amber-ghost: rgba(212, 162, 74, 0.06);

    /* Structure Tokens */
    --border: #2d2620;
    --border-light: #3d3426;
    --border-gold: rgba(201, 168, 76, 0.25);

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
    --font-ui: 'JetBrains Mono', monospace;
}

/* --- RESET & BASIC SETUP --- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--void);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Scanline Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(201, 168, 76, 0.008) 2px,
            rgba(201, 168, 76, 0.008) 3px);
    pointer-events: none;
    z-index: 10000;
}

a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold-dim);
    transition: all 0.25s ease;
}

a:hover {
    color: var(--gold-bright);
    border-bottom: 1px solid var(--gold-bright);
    text-shadow: 0 0 8px var(--gold-glow);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- TYPOGRAPHY RULES --- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--gold-glow);
}

h2 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--gold-bright);
    text-transform: uppercase;
}

h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink-bright);
    text-transform: uppercase;
    margin-top: 2rem;
}

p.lead {
    font-size: 1.2rem;
    color: var(--ink-bright);
    margin-bottom: 1.5rem;
}

small,
.meta,
.date,
.tag {
    font-family: var(--font-ui);
}

/* --- LAYOUT STRUCTURES --- */

.container {
    width: 100%;
    max-width: 1140px;
    /* Narrower column for "codex" feel */
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* --- NAVIGATION --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 9, 8, 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

/* Widen the container inside the header so nav items don't overlap the logo */
header .container {
    max-width: 1200px;
}

/* Prismatic Gradient Bar (Nav Top) */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold-dim) 15%,
            var(--gold-bright) 35%,
            var(--sapphire) 55%,
            var(--amethyst-dim) 75%,
            transparent 100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.575rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    border: none;
    /* Override default link border */
}

.logo-glyph {
    width: 63px;
    height: 63px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.15));
    transition: filter 0.3s ease;
}

.logo:hover .logo-glyph {
    filter: drop-shadow(0 0 14px rgba(240, 208, 96, 0.35));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-bright);
    border: none;
    padding: 0.5rem 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
    background-color: var(--gold-ghost);
    box-shadow: 0 0 10px var(--gold-glow);
    text-shadow: none;
}

/* --- HERO SECTION --- */

.hero {
    background-color: var(--parchment-deep);
    padding: 8rem 0 5rem 0;
    /* Account for fixed header */
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Radial Glow */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse, rgba(240, 208, 96, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 50%, rgba(90, 159, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero p {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-dim);
}

.hero p.hero-target-industries {
    font-style: normal;
    font-size: 1.15rem;
    color: var(--ink-bright);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Hero Logo Accent */
.hero-logo {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(240, 208, 96, 0.2));
    animation: heroLogoPulse 4s ease-in-out infinite alternate;
}

@keyframes heroLogoPulse {
    from {
        filter: drop-shadow(0 0 20px rgba(240, 208, 96, 0.15));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(240, 208, 96, 0.35));
    }
}

/* --- FOOTER --- */

footer {
    background-color: var(--parchment-deep);
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Prismatic Gradient Bar (Footer Top) */
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    /* Overlap border */
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold-dim) 15%,
            var(--gold-bright) 35%,
            var(--sapphire) 55%,
            var(--amethyst-dim) 75%,
            transparent 100%);
    opacity: 0.5;
}

.ornament {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.5rem;
    color: var(--gold-dim);
    margin: 1rem 0 2rem;
    display: block;
    text-align: center;
}

/* Footer Logo */
.footer-logo-wrap {
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.1));
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.7;
}

footer p {
    font-family: var(--font-ui);
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    color: var(--ink-dim);
    text-transform: uppercase;
}

/* --- COMPONENTS --- */

/* Left-Border Accent Card */
.card-accent {
    background-color: var(--parchment);
    padding: 1.25rem;
    border-left: 3px solid var(--gold);
    /* Default to Gold, override with semantics */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card-sapphire {
    border-color: var(--sapphire);
    background-color: var(--sapphire-ghost);
}

.card-emerald {
    border-color: var(--emerald);
    background-color: var(--emerald-ghost);
}

.card-ruby {
    border-color: var(--ruby);
    background-color: var(--ruby-ghost);
}

.pillar-tag-ruby {
    color: var(--ruby) !important;
}

.pillar-icon-ruby {
    color: var(--ruby);
}

.card-amethyst {
    border-color: var(--amethyst);
    background-color: var(--amethyst-ghost);
}

.card-amber {
    border-color: var(--amber);
    background-color: var(--amber-ghost);
}

.card-accent h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    border-bottom: none;
    color: var(--ink-bright);
}

.card-accent p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--ink);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--void);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: none !important;
    /* Override link style */
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(240, 208, 96, 0.35);
    color: var(--void);
    border-bottom: none;
}

/* Blog List */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-preview h2 {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.blog-preview h2 a {
    color: var(--ink-bright);
    border-bottom: none;
}

.blog-preview h2 a:hover {
    color: var(--gold-bright);
}

/* --- POST SPECIFIC LAYOUT --- */

.hero-post {
    padding-top: 10rem;
    /* Extra breathing room for title for single posts */
    padding-bottom: 6rem;
    background-color: var(--parchment-deep);
    border-bottom: 1px solid var(--border);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-post h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-post .tag {
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-post .meta {
    margin-top: 1rem;
    color: var(--ink-faint);
}

.hero-post .meta .separator {
    color: var(--gold);
}

.hero-post .ornament {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    margin: 0;
    z-index: 3;
}

.post-container {
    padding-top: 3rem;
}

.post-content {
    margin-top: 5rem;
    position: relative;
    display: block;
    clear: both;
    /* Ensure no overlap */
    font-size: 1.15rem;
    color: var(--ink);
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.post-content img {
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.post-content h1,
.post-content h2 {
    margin-top: 3rem;
    color: var(--gold-bright);
}

/* --- CARD: GOLD VARIANT --- */
.card-gold {
    border-color: var(--gold);
    background-color: var(--gold-ghost);
}

/* --- BLOG INDEX --- */

.archive-tag {
    color: var(--amethyst);
    margin-bottom: 1rem;
}

.archive-list {
    margin-top: 2rem;
}

.archive-preview {
    border-left-color: var(--gold-dim);
}

.archive-meta {
    color: var(--ink-faint);
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
}

.archive-read-more-container {
    margin-top: 1rem;
}

.archive-read-more {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- ABOUT PAGE --- */

.about-meta-tag {
    color: var(--ink-faint);
}

.about-meta-separator {
    color: var(--gold);
}

.leadership-bio {
    max-width: 900px;
    margin: 0 auto;
}

.resume-bio {
    margin: 4rem auto;
}

.bio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.trust-builders-avatar {
    margin: 0 auto 1.5rem;
}

.bio-header h2 {
    color: var(--ink-bright);
    margin-bottom: 0.5rem;
}

.bio-title {
    color: var(--gold);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.bio-content {
    color: var(--ink);
    line-height: 1.8;
    font-size: 1.1rem;
}

.bio-content p+p {
    margin-top: 1.5rem;
}

.bio-cta-container {
    text-align: center;
    margin: 2.5rem 0;
}

.bio-resume-btn {
    display: inline-block;
}

.cta-section {
    margin-top: 4rem;
    text-align: center;
}

.cta-title {
    margin-top: 2rem;
}

.cta-description {
    max-width: 600px;
    margin: 1rem auto;
    color: var(--ink-dim);
}

.cta-btn {
    margin-top: 1.5rem;
}

.about-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink);
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.about-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-intro {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink);
    padding-bottom: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-card {
    padding: 1.5rem;
}

.pillar-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pillar-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.pillar-title {
    margin-top: 0 !important;
    border-bottom: none !important;
    font-size: 0.85rem !important;
}

.pillar-summary {
    font-size: 1rem;
    color: var(--ink-bright);
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.pillar-details {
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.proof-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proof-points li {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background-color: var(--parchment-mid);
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.pillar-card:hover .proof-points li {
    border-color: var(--border-light);
    color: var(--ink);
}

/* --- CONTACT FORM --- */

.contact-tag {
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-ui);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.required {
    color: var(--ruby);
}

.optional {
    color: var(--ink-faint);
    font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--parchment);
    border: 1px solid var(--border);
    color: var(--ink-bright);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-faint);
    opacity: 0.6;
}

.form-group select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a5040' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--parchment);
    color: var(--ink-bright);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--ruby);
    box-shadow: 0 0 8px var(--ruby-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
    min-width: 180px;
    text-align: center;
    position: relative;
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-submit-btn.loading {
    color: transparent;
}

.contact-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid var(--void);
    border-top-color: transparent;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Feedback Messages */
.form-feedback {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0;
    transition: all 0.3s ease;
    display: none;
}

.form-feedback.visible {
    display: block;
    padding: 0.8rem 1rem;
}

.form-feedback.success {
    color: var(--emerald);
    background-color: var(--emerald-ghost);
    border-left: 3px solid var(--emerald);
}

.form-feedback.error {
    color: var(--ruby);
    background-color: var(--ruby-ghost);
    border-left: 3px solid var(--ruby);
}

/* Trap — obscured deliberately */
.form-guard {
    position: absolute;
    left: -9999px;
}

/* ================================================================
   MOBILE RESPONSIVE
   ================================================================ */

/* --- Hamburger Toggle Button (hidden on desktop) --- */

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    transition: border-color 0.3s ease;
}

.nav-toggle:hover {
    border-color: var(--gold);
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X animation when open */
header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Tablet & Below (768px) --- */

@media (max-width: 768px) {

    /* Show hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Header grows when menu is open */
    header {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
    }

    nav {
        flex-wrap: wrap;
    }

    /* Nav links: hidden by default, dropdown when open */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 1rem 0 1.5rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    header.nav-open .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.65rem;
        border: none;
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover {
        background-color: var(--gold-ghost);
        border-color: var(--border);
        box-shadow: none;
    }

    /* Logo: shrink text slightly */
    .logo {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .logo-glyph {
        width: 28px;
        height: 28px;
    }

    /* Hero sections */
    .hero {
        padding: 7rem 0 3rem 0;
    }

    .hero-post {
        padding-top: 7rem;
        padding-bottom: 4rem;
    }

    .hero-post h1 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    /* Typography scale-down */
    h1 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 0.78rem;
    }

    /* Post content */
    .post-content {
        margin-top: 3rem;
    }

    /* Blog grid */
    .blog-list {
        grid-template-columns: 1fr;
    }

    /* About page pillars */
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    /* About meta */
    .about-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Pricing: stack to single column on mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card-featured {
        transform: none;
    }

    /* Trust builders: stack vertically */
    .trust-builders-section {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .trust-builders-profile {
        flex-basis: auto;
    }
}

/* --- Phone (480px) --- */

@media (max-width: 480px) {

    body {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 0 2.5rem 0;
    }

    .hero-post {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .hero-post h1 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
        line-height: 1.35;
    }

    h1 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }

    h2 {
        font-size: 1.15rem;
    }

    .post-content {
        margin-top: 2rem;
    }

    .post-content img {
        margin-bottom: 1.25rem;
    }

    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-submit-btn {
        width: 100%;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.58rem;
    }

    /* Footer text */
    footer p {
        font-size: 0.42rem;
    }

    /* Hero logo */
    .hero-logo {
        width: 56px;
        height: 56px;
        max-width: 56px;
        max-height: 56px;
    }
}

/* ================================================================
   HOMEPAGE OVERHAUL STYLES (v2.0)
   ================================================================ */

/* --- HERO OVERRIDES --- */
.hero-logo-container {
    margin-bottom: 2rem;
}

.hero-logo-v4 {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
}

.hero-tag {
    color: var(--sapphire);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    color: var(--ink-bright);
    font-style: normal;
    font-size: 1.3rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-cta-primary {
    font-size: 0.8rem;
    padding: 1rem 2rem;
}

.hero-cta-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold) !important;
    color: var(--gold);
    font-size: 0.8rem;
    padding: 1rem 2rem;
    box-shadow: none;
}

.hero-cta-secondary:hover {
    background: var(--gold-ghost);
    border-color: var(--gold-bright);
}

.hero-proof-points {
    justify-content: center;
    gap: 1rem;
}

/* --- POSITIONING STATEMENT --- */
.positioning-statement {
    text-align: center;
    max-width: 900px;
    margin: 5rem auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.positioning-title {
    font-size: 1.8rem;
    color: var(--ink-bright);
}

.positioning-lead {
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.positioning-body {
    font-size: 1.1rem;
    color: var(--ink-dim);
    line-height: 1.8;
}

/* --- SERVICES GRID (HOMEPAGE) --- */
.homepage-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pillar-icon-sapphire {
    color: var(--sapphire);
}

.pillar-icon-amethyst {
    color: var(--amethyst);
}

.pillar-icon-amber {
    color: var(--amber);
}

.pillar-tag-sapphire {
    color: var(--sapphire);
    margin-bottom: 0.2rem;
}

.pillar-tag-amethyst {
    color: var(--amethyst);
    margin-bottom: 0.2rem;
}

.pillar-tag-amber {
    color: var(--amber);
    margin-bottom: 0.2rem;
}

.pillar-title {
    color: var(--ink-bright);
}

.pillar-proof-points {
    margin-top: 1.5rem;
}

/* --- ORNAMENTS --- */
.ornament-spaced {
    margin: 5rem 0;
    text-align: center;
    display: block;
}

/* --- PRICING STRATEGY --- */
.pricing-strategy {
    margin: 4rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-tag {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--ink-dim);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pricing-card-ruby {
    border-color: var(--ruby);
    background: var(--ruby-ghost);
}

.pricing-tier-title-ruby {
    color: var(--ruby) !important;
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.pricing-price-ruby {
    font-family: var(--font-ui);
    color: var(--ruby);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-check-ruby {
    color: var(--ruby);
}

.pricing-card-base {
    border-color: var(--border-light);
    background: var(--parchment-mid);
}

.pricing-card-featured {
    border-color: var(--gold);
    background: var(--gold-ghost);
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pricing-recommended-tag {
    background: var(--gold);
    color: var(--void);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.pricing-tier-title {
    color: var(--ink-bright);
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.pricing-tier-title-featured {
    color: var(--gold-bright);
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: var(--font-ui);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price-featured {
    font-family: var(--font-ui);
    color: var(--gold-bright);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price-alt {
    font-family: var(--font-ui);
    color: var(--ink-bright);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-interval {
    font-size: 0.8rem;
    color: var(--ink);
    font-weight: normal;
}

.pricing-target {
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink);
}

.pricing-feature-item {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-check {
    position: absolute;
    left: 0;
}

.feature-check-emerald {
    color: var(--emerald);
}

.feature-check-gold {
    color: var(--gold);
}

.pricing-footer {
    text-align: center;
    margin-top: 2rem;
}

.pricing-footer p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--ink-dim);
}

/* --- TRUST BUILDERS SECTION --- */
.trust-builders-section {
    background: var(--parchment-deep);
    padding: 3rem;
    border: 1px solid var(--border);
    margin: 5rem 0;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.trust-builders-content {
    flex: 1;
    min-width: 250px;
}

.trust-builders-tag {
    color: var(--sapphire);
    margin-bottom: 1rem;
}

.trust-builders-title {
    font-size: 2rem;
    margin-top: 0;
    color: var(--ink-bright);
}

.trust-builders-body {
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.trust-builders-industries {
    color: var(--ink-dim);
    font-style: italic;
}

.trust-builders-profile {
    flex: 0 1 300px;
    text-align: center;
}

.trust-builders-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--parchment-mid);
    border: 2px solid var(--border-light);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trust-builders-avatar span {
    color: var(--ink-faint);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    padding: 1rem;
}

.trust-builders-name {
    margin: 0 0 0.2rem 0;
    color: var(--gold);
}

.trust-builders-role {
    color: var(--ink-dim);
}

/* Headshot Image */
.trust-builders-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* --- MAUI STRONG PAGE --- */
.nav-maui-strong {
    color: var(--emerald) !important;
}

.nav-maui-strong:hover {
    color: var(--emerald) !important;
    border-color: var(--emerald) !important;
    background-color: var(--emerald-ghost) !important;
    box-shadow: 0 0 10px var(--emerald-glow) !important;
}

.maui-strong-tag {
    color: var(--emerald) !important;
}

.maui-strong-intro {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 1rem;
}

.maui-strong-lead {
    font-size: 1.2rem;
    color: var(--ink-bright);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.maui-strong-rate {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.maui-strong-card {
    padding: 2rem;
}

.maui-strong-price {
    font-family: var(--font-ui) !important;
    font-size: 2rem !important;
    color: var(--emerald) !important;
    border-bottom: none !important;
    letter-spacing: 0.05em !important;
}

.maui-strong-services h2 {
    text-align: center;
}

.maui-strong-grid {
    margin-bottom: 3rem;
}

.maui-strong-ctas {
    margin-top: 1.5rem;
}

/* Emergency Pricing Card */
.pricing-emergency {
    margin-top: 1.5rem;
}

.pricing-emergency-btn {
    margin-top: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--ruby), #8b2040) !important;
    color: #fff !important;
}

/* ── Blog Post Tables ──────────────────────────────────── */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 167, 103, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

.post-content thead {
    background: rgba(196, 167, 103, 0.12);
}

.post-content th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border-bottom: 2px solid rgba(196, 167, 103, 0.3);
}

.post-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    vertical-align: top;
}

.post-content tbody tr:hover {
    background: rgba(196, 167, 103, 0.06);
}

.post-content tbody tr:last-child td {
    border-bottom: none;
}

/* ── Blog Post Horizontal Rules ────────────────────────── */
.post-content hr {
    border: none;
    border-top: 1px solid rgba(196, 167, 103, 0.2);
    margin: 2.5rem auto;
    max-width: 60%;
}