/* ============================================================
   Mandrel Digital — Industrial & Clean Design System
   Light base, dark navy text, copper accent
   "Factory floor meets boardroom"
   ============================================================ */

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

:root {
    /* Backgrounds — light concrete/warm white palette */
    --bg-base: #f7f5f2;
    --bg-surface: #efece8;
    --bg-elevated: #ffffff;
    --bg-hover: #e8e4df;
    --bg-card: #ffffff;

    /* Text — dark navy hierarchy */
    --primary-text: #1a2332;
    --secondary-text: #4a5568;
    --muted-text: #7a8599;

    /* Borders */
    --border-subtle: rgba(26, 35, 50, 0.08);
    --border-light: rgba(26, 35, 50, 0.12);
    --border-medium: rgba(26, 35, 50, 0.2);

    /* Accent — copper */
    --accent: #b5703c;
    --accent-hover: #9a5d30;
    --accent-muted: rgba(181, 112, 60, 0.1);
    --accent-glow: rgba(181, 112, 60, 0.06);

    /* Navy — for hero/footer/dark sections */
    --navy: #1a2332;
    --navy-light: #243044;

    /* Semantic */
    --success: #16a34a;
    --error: #dc2626;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--primary-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-text);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: #ffffff;
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}


/* ============================================================
   Navigation
   ============================================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0.875rem 2rem;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy) !important;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo:hover {
    color: var(--accent) !important;
}

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

.nav-links a {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

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

.nav-links a.active {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--navy);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
    .nav-links {
        gap: 1.25rem;
    }
    .nav-links a {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1.25rem;
    }

    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-light);
        padding: 0.5rem 0;
        align-items: stretch;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        border-bottom: 1px solid var(--border-subtle);
    }

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

    .nav-links .nav-cta {
        display: none;
    }
}


/* ============================================================
   Layout Utilities
   ============================================================ */

main {
    margin-top: 56px;
}

.page-section {
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 2rem;
}

.section-alt {
    padding: 5rem 2rem;
    background-color: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}


/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 130, 74, 0.25);
}

.btn-secondary {
    border: 1.5px solid var(--border-medium);
    color: var(--primary-text) !important;
    background: transparent;
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}


/* ============================================================
   Hero Section (Homepage)
   ============================================================ */

.hero {
    padding: 6rem 2rem 5rem;
    background: var(--bg-base);
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 520px;
}

/* Hero visual — abstract tool mockup */
.hero-visual {
    background: var(--navy);
    border: 1px solid var(--navy-light);
    border-radius: 10px;
    padding: 1.75rem;
    position: relative;
    color: #ffffff;
}

.hero-visual-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.dot.active {
    background: var(--accent);
}

.hero-visual-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.tool-preview-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.tool-preview-row:last-child {
    border-bottom: none;
}

.tool-preview-label {
    color: rgba(255, 255, 255, 0.6);
}

.tool-preview-value {
    color: #d4915c;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
}

.tool-preview-bar {
    display: flex;
    gap: 3px;
    margin-top: 1rem;
}

.bar-segment {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.bar-segment.filled {
    background: #d4915c;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 4rem 2rem 3rem;
    }
}


/* ============================================================
   Feature Cards (What We Build section)
   ============================================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--secondary-text);
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* ============================================================
   Process Steps
   ============================================================ */

.process-steps {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: start;
    transition: background 0.2s;
}

.process-step:hover {
    background: var(--accent-glow);
    border-radius: 8px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    opacity: 0.6;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 680px;
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.step-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-muted);
    color: var(--accent);
    border-radius: 100px;
    font-weight: 500;
}

/* Process map (homepage preview) */
.process-compact {
    display: flex;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
}

.process-compact-step {
    flex: 1;
    text-align: center;
    padding: 1.75rem 1rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}

.process-compact-step:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Arrow connectors between steps */
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.25rem;
    opacity: 0.4;
}

.process-compact-step .step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.5;
    display: block;
}

.process-compact-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-text);
}

.process-compact-step p {
    font-size: 0.78rem;
    color: var(--muted-text);
    line-height: 1.5;
}

/* Progress line under the process map */
.process-line {
    max-width: 1140px;
    margin: 1.5rem auto 0;
    height: 3px;
    background: var(--border-light);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

@media (max-width: 900px) {
    .process-compact {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .process-compact-step {
        flex: 1 1 calc(33% - 0.5rem);
        min-width: 140px;
    }
    .process-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .process-compact-step {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .process-step {
        grid-template-columns: 48px 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .step-number {
        font-size: 1.75rem;
    }
}


/* ============================================================
   Case Study
   ============================================================ */

.case-study {
    padding: 5rem 2rem;
}

.case-study-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Case study hero */
.cs-hero {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 3rem;
    margin-bottom: 2.5rem;
}

.cs-hero .eyebrow {
    margin-bottom: 0.5rem;
}

.cs-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cs-hero-intro {
    color: var(--secondary-text);
    font-size: 1.05rem;
    max-width: 700px;
    line-height: 1.75;
}

/* Case study hero image */
.cs-hero-image {
    margin-bottom: 2.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cs-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Metrics row */
.cs-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.cs-metric {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.cs-metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.cs-metric-label {
    font-size: 0.8rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Case study body */
.cs-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cs-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.cs-section.full-width {
    grid-column: 1 / -1;
}

.cs-section h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cs-section p {
    color: var(--secondary-text);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.cs-section p:last-child {
    margin-bottom: 0;
}

.cs-list {
    list-style: none;
    padding: 0;
}

.cs-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary-text);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cs-list li:last-child {
    border-bottom: none;
}

.cs-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
}

/* Case study highlight (homepage) */
.cs-highlight {
    max-width: 1140px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.cs-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cs-highlight p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cs-highlight-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cs-highlight-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.cs-highlight-stat .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.cs-highlight-stat .label {
    font-size: 0.75rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .cs-hero {
        padding: 2rem;
    }

    .cs-hero h1 {
        font-size: 1.75rem;
    }

    .cs-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .cs-body {
        grid-template-columns: 1fr;
    }

    .cs-highlight {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}


/* ============================================================
   About Page
   ============================================================ */

.about-section {
    padding: 5rem 2rem;
}

.about-layout {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-photo {
    width: 280px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
}

.about-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-role {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}

.about-text p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo {
        width: 200px;
        margin: 0 auto;
    }
}


/* ============================================================
   Services Page
   ============================================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.service-card:hover {
    border-color: var(--accent);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--secondary-text);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--muted-text);
    font-size: 0.85rem;
}

.service-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

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


/* ============================================================
   Contact Page
   ============================================================ */

.contact {
    padding: 5rem 2rem;
}

.contact-container {
    max-width: 560px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--secondary-text);
    font-size: 1rem;
}

.contact-form {
    /* Wrapper handles background/border when in two-column layout */
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--primary-text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    color: var(--primary-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

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

.contact-submit {
    width: 100%;
    background: var(--accent);
    color: #ffffff !important;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.contact-submit:hover {
    background: var(--accent-hover);
}

.form-message {
    margin-top: 1rem;
    padding: 0.875rem;
    border-radius: 6px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.form-message.success {
    background-color: rgba(74, 222, 128, 0.1);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.2);
    display: block;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* Contact layout (two-column) */
.contact-layout {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.contact-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.contact-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-muted);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-step strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--primary-text);
}

.contact-step p {
    color: var(--secondary-text);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.contact-direct {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.contact-direct p {
    color: var(--muted-text);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.contact-direct a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   Footer
   ============================================================ */

footer {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #d4915c;
}

.footer-bottom {
    max-width: 1140px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ============================================================
   CTA Banner (reusable bottom CTA)
   ============================================================ */

.cta-banner {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--navy);
    color: #ffffff;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn-primary {
    background: #d4915c;
    color: #ffffff !important;
}

.cta-banner .btn-primary:hover {
    background: #c8824a;
}


/* ============================================================
   Page Hero (interior pages)
   ============================================================ */

.page-hero {
    padding: 4rem 2rem 3rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.page-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--secondary-text);
    font-size: 1.1rem;
    max-width: 600px;
}


/* ============================================================
   Diagnostic (preserved for future)
   ============================================================ */

.diagnostic {
    padding: 5rem 2rem;
}

.diagnostic-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.diagnostic-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.diagnostic-header p {
    color: var(--secondary-text);
    font-size: 1.05rem;
}

.diagnostic-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.step {
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.step.active {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.step .step-number {
    font-size: 1.5rem;
}

.step-title {
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.diagnostic-form {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
}

.diagnostic-form-group {
    margin-bottom: 1.25rem;
}

.diagnostic-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--primary-text);
    font-size: 0.9rem;
}

.diagnostic-form-group input,
.diagnostic-form-group select,
.diagnostic-form-group textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    color: var(--primary-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.diagnostic-form-group input:focus,
.diagnostic-form-group select:focus,
.diagnostic-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.diagnostic-form-group select {
    cursor: pointer;
}

.diagnostic-form-group select option {
    background-color: #ffffff;
    color: var(--primary-text);
}

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

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

/* Step content visibility */
.diagnostic-step-content {
    display: block;
}

.diagnostic-step-content.hidden {
    display: none;
}

/* Checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    cursor: pointer;
    padding: 0.4rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Diagnostic buttons */
.diagnostic-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.diagnostic-btn-submit {
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.diagnostic-btn-submit:hover {
    background: var(--accent-hover);
}

.diagnostic-btn-reset {
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--secondary-text);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.diagnostic-btn-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Results dashboard */
.results-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Diagnostic header h1 */
.diagnostic-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Terminal styles */
.diagnostic-terminal {
    position: relative;
    background: var(--navy);
    border: 1px solid var(--navy-light);
    border-radius: 8px;
    padding: 2rem;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #d4915c;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
}

.terminal-line {
    opacity: 0;
    animation: fadeInLine 0.3s ease-out forwards;
    position: relative;
    z-index: 1;
}

.terminal-line.completed {
    color: rgba(255, 255, 255, 0.5);
}

.terminal-line.completed::after {
    content: ' done';
    color: var(--success);
    margin-left: 0.5rem;
    font-weight: 600;
}

.terminal-line.active::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-left: 0.5rem;
    animation: pulse 1s ease-in-out infinite;
}

.terminal-prompt {
    color: #d4915c;
    font-weight: bold;
}

.terminal-text {
    color: rgba(255, 255, 255, 0.6);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 4px;
    animation: blink 1s infinite;
}

.progress-container {
    margin-top: 2rem;
}

.progress-label {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.4s ease;
}

@keyframes fadeInLine {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@media (max-width: 768px) {
    .diagnostic-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .diagnostic-actions {
        flex-direction: column;
    }

    .diagnostic-btn-submit,
    .diagnostic-btn-reset {
        width: 100%;
    }
}
