/* ==========================================================================
   Nashville IT Health — Design System
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --green-bright: #62BC47;
    --green-primary: #38A169;
    --green-hover: #2d8a55;
    --green-dark: #276749;
    --green-light: #48bb78;
    --blue-hero: #1D4ED8;
    --blue-hero-hover: #1e40af;
    --text-dark: #1a202c;
    --text-heading: #333333;
    --text-body: #4a5568;
    --text-secondary: #555555;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-card: #f7fafc;
    --border-card: #e5e5e5;
    --footer-bg: #0C1115;

    /* Typography */
    --font-heading: 'Raleway', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container-max: 1140px;
    --header-max: 1400px;
    --content-max: 800px;
    --section-padding: 80px 40px;
    --card-gap: 25px;
    --card-radius: 8px;
    --card-padding: 30px 25px;
    --btn-radius: 999px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.container--wide {
    max-width: var(--header-max);
}

.container--narrow {
    max-width: var(--content-max);
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--green-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
}

.skip-link:focus {
    top: 8px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
    background: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

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

.site-logo img {
    height: 80px;
    width: auto;
}

/* ---------- Navigation ---------- */
.main-nav .nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav .nav-list > li > a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav .nav-list > li > a:hover {
    color: var(--green-primary);
}

.nav-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

/* Dropdown menus */
.has-dropdown {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 240px;
    background: var(--green-bright);
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.has-dropdown:hover .sub-menu,
.has-dropdown.open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: background 0.15s ease;
}

.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Header CTA */
.header-cta {
    font-size: 14px;
    padding: 10px 22px;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-heading);
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-toggle .close-icon {
    display: none;
}

.mobile-toggle[aria-expanded="true"] .hamburger-icon {
    display: none;
}

.mobile-toggle[aria-expanded="true"] .close-icon {
    display: block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-hover);
}

.btn-hero-blue {
    background: var(--blue-hero);
    color: #fff;
}

.btn-hero-blue:hover {
    background: var(--blue-hero-hover);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--green-primary);
}

.btn-outline-green {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}

.btn-outline-green:hover {
    background: var(--green-primary);
    color: #fff;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero {
    padding: 60px 0 80px;
    text-align: center;
    color: #fff;
    background: var(--green-bright);
}

.hero-home {
    padding: 80px 0 100px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero .btn {
    margin-top: 10px;
}

/* ==========================================================================
   Section Patterns
   ========================================================================== */
.section {
    padding: var(--section-padding);
}

.section--alt {
    background: var(--bg-card);
}

.section--green {
    background: var(--green-primary);
    color: #fff;
}

.section--green h2 {
    color: #fff;
}

.section--green p {
    color: rgba(255, 255, 255, 0.9);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Green italic section headers (service pages) */
.section-header--green h2 {
    color: var(--green-primary);
    font-style: italic;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.card-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--green-bright);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-primary);
    margin-top: 16px;
}

.card-link:hover {
    color: var(--green-hover);
}

/* ==========================================================================
   Stat Cards (Cybersecurity page)
   ========================================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-card);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Benefits / Checklist
   ========================================================================== */
.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    font-size: 17px;
    color: var(--text-heading);
    line-height: 1.6;
}

.benefits-list li + li {
    border-top: 1px solid #eee;
}

.benefit-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--green-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.benefit-check svg {
    width: 14px;
    height: 14px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 80px 40px;
    background: var(--green-primary);
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Comparison Section (Homepage)
   ========================================================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.comparison-col h3 {
    font-size: 22px;
    margin-bottom: 24px;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-secondary);
}

.comparison-marker {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.comparison-marker--red {
    background: #FED7D7;
    color: #E53E3E;
}

.comparison-marker--green {
    background: #C6F6D5;
    color: #38A169;
}

.comparison-marker svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
}

/* ==========================================================================
   Industry Cards (Homepage)
   ========================================================================== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    text-align: center;
}

.industry-card .card-icon {
    margin: 0 auto 20px;
}

.industry-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--green-primary);
}

.industry-card__icon svg {
    width: 100%;
    height: 100%;
}

.industry-card h3 {
    margin-bottom: 12px;
}

.industry-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: left;
}

.industry-card__ideal {
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-card);
    padding-top: 16px;
    margin-top: 20px;
}

/* ==========================================================================
   Contact Info Section
   ========================================================================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.contact-info-item {
    padding: 30px 20px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--green-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.contact-info-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-info-item a:hover {
    color: var(--green-primary);
}

/* ---------- Business Hours ---------- */
.hours-table {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.hours-table tr td {
    padding: 10px 16px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.hours-table tr td:first-child {
    font-weight: 600;
    color: var(--text-heading);
}

.hours-table tr td:last-child {
    text-align: right;
    color: var(--text-secondary);
}

.hours-emergency {
    background: var(--green-bright);
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: var(--card-radius);
    font-weight: 600;
    margin-top: 20px;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.form-group label .required {
    color: #E53E3E;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    background: #fff;
    color: var(--text-heading);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15);
}

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

.form-message {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 15px;
}

.form-message--success {
    background: #C6F6D5;
    color: #276749;
    border: 1px solid #9AE6B4;
}

.form-message--error {
    background: #FED7D7;
    color: #9B2C2C;
    border: 1px solid #FEB2B2;
}

/* ==========================================================================
   IT Health Quiz
   ========================================================================== */

.quiz {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.quiz__progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz__progress-bar {
    height: 100%;
    background: var(--green-primary);
    border-radius: 3px;
    width: 0;
    transition: width 0.4s ease;
}

.quiz__step-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.quiz__question {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 24px;
    line-height: 1.3;
}

.quiz__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz__option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    border: 2px solid var(--border-card);
    border-radius: var(--card-radius);
    background: var(--bg-card);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.quiz__option:hover {
    border-color: var(--green-primary);
    background: #f0fff4;
    transform: translateX(4px);
}

.quiz__option.selected {
    border-color: var(--green-primary);
    background: #f0fff4;
}

.quiz__gate-subtext {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.quiz__gate-form {
    margin-top: 0;
}

.quiz__gate-form .form-row {
    gap: 16px;
}

/* Quiz Results */
.quiz-result {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.quiz-result__grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.quiz-result__label {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.quiz-result__score {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.quiz-result__desc {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 24px;
}

.quiz-result__bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto 32px;
}

.quiz-result__bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

.quiz-result__cta {
    margin-top: 8px;
}

.quiz-result__phone {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.quiz-result__phone a {
    color: var(--green-primary);
    font-weight: 600;
}

@media (max-width: 600px) {
    .quiz {
        padding: 24px 16px;
    }

    .quiz__question {
        font-size: 1.25rem;
    }

    .quiz-result {
        padding: 32px 16px;
    }
}

/* ==========================================================================
   Values Grid (About page)
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
}

.value-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
}

.value-card .card-icon {
    margin: 0 auto 20px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Methodology / Process Steps (About page)
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 16px;
    padding: 20px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--green-bright);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ==========================================================================
   HIPAA Safeguards (Cybersecurity page)
   ========================================================================== */
.safeguards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.safeguard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
}

.safeguard-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--green-primary);
}

.safeguard-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.safeguard-card ul li svg {
    width: 16px;
    height: 16px;
    color: var(--green-bright);
    flex-shrink: 0;
}

/* ==========================================================================
   Defense Layers (Cybersecurity page)
   ========================================================================== */
.defense-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
}

.defense-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
}

.defense-card .card-icon {
    margin: 0 auto 16px;
}

.defense-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.defense-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Content Pages (Legal, HIPAA, Security Guide)
   ========================================================================== */
.content-body {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 60px 40px;
}

.content-body h2 {
    font-size: 28px;
    margin: 40px 0 16px;
}

.content-body h3 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.content-body p {
    margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
    margin: 0 0 16px 24px;
}

.content-body ul {
    list-style: disc;
}

.content-body ol {
    list-style: decimal;
}

.content-body li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* ---------- Footer Transitional CTA ---------- */
.footer-transitional-cta {
    background: var(--green-dark);
    padding: 50px 0;
}

.transitional-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.transitional-cta-content h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}

.transitional-cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 600px;
}

.footer-transitional-cta .btn-primary {
    background: #fff;
    color: var(--green-dark);
    flex-shrink: 0;
}

.footer-transitional-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ---------- About Page — Founder & Name Sections ---------- */
.about-story p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 20px;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.founder-card {
    max-width: 700px;
    margin: 0 auto;
}

.founder-info h2 {
    font-size: 30px;
    margin-bottom: 4px;
}

.founder-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 16px;
}

.founder-info > p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 16px;
}

.founder-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.founder-contact a {
    color: var(--green-primary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.founder-contact a:hover {
    color: var(--green-hover);
}

.founder-divider {
    color: var(--text-muted);
}

.about-name h2 {
    margin-bottom: 16px;
}

.about-name p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 16px;
}

.about-name p:last-child {
    margin-bottom: 0;
}

.footer-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand h4 .green {
    color: var(--green-bright);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-phone a {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.footer-phone a:hover {
    color: var(--green-bright);
}

.footer-icon {
    width: 16px;
    height: 16px;
    color: var(--green-bright);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--green-bright);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Hero Enhancements (dual CTA, geography)
   ========================================================================== */
.hero-geography {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ==========================================================================
   Credential Strip (homepage — below hero)
   ========================================================================== */
.credential-strip {
    background: #f0fff0;
    padding: 40px;
    border-bottom: 1px solid #d6f5d6;
}

.credential-strip .stat-grid {
    max-width: var(--container-max);
    margin: 0 auto;
}

.credential-item {
    text-align: center;
    padding: 16px 12px;
}

.credential-item .stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.credential-item .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Problem Cards (homepage — dark section)
   ========================================================================== */
.section--dark {
    background: var(--text-dark);
    color: #fff;
}

.section--dark .section-header h2 {
    color: #fff;
}

.section--dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.problem-cards {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.problem-card {
    padding: 28px 32px;
    border-left: 4px solid var(--green-primary);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    transition: background 0.2s ease;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.problem-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ==========================================================================
   Guide Section (homepage — proof points)
   ========================================================================== */
.guide-section p {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 16px;
}

.proof-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.proof-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-card);
}

.proof-point svg {
    width: 24px;
    height: 24px;
    color: var(--green-primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 2px;
}

.proof-point span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.5;
}

/* ==========================================================================
   Plan Steps (homepage — large numbered steps)
   ========================================================================== */
#how-it-works {
    scroll-margin-top: 100px;
}

.plan-steps {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.plan-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.plan-step__number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--green-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
}

.plan-step__content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.plan-step__content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Service Detail Sections (AI & App Dev page)
   ========================================================================== */
.service-detail {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-card);
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail h3 {
    margin-bottom: 16px;
    color: var(--text-heading);
}

.benefits-list--compact {
    padding-left: 0;
}

.benefits-list--compact li {
    padding: 8px 0 8px 32px;
    font-size: 15px;
    border-top: none;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   UI Delight — 3D, Glow, Motion
   ========================================================================== */

/* ---------- Enhanced Palette ---------- */
:root {
    --glow-green: rgba(98, 188, 71, 0.35);
    --glow-green-strong: rgba(56, 161, 105, 0.5);
    --shadow-lifted: 0 4px 6px rgba(0,0,0,0.04), 0 10px 24px rgba(0,0,0,0.06);
    --shadow-lifted-hover: 0 12px 28px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-green-glow: 0 4px 20px rgba(56,161,105,0.25);
    --gradient-hero: linear-gradient(135deg, #276749 0%, #38A169 30%, #62BC47 60%, #48bb78 100%);
    --gradient-cta: linear-gradient(135deg, #276749 0%, #38A169 50%, #276749 100%);
    --gradient-hero-dark: linear-gradient(135deg, rgba(39,103,73,0.92) 0%, rgba(12,17,21,0.85) 100%);
}

/* ---------- Header Glassmorphism ---------- */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
}

/* ---------- Hero — Gradient Mesh + Orbs ---------- */
.hero {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 500px at 15% 20%, rgba(255,255,255,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 80%, rgba(39,103,73,0.4) 0%, transparent 60%),
        radial-gradient(ellipse 300px 300px at 60% 10%, rgba(72,187,120,0.25) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero > * {
    position: relative;
    z-index: 1;
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-orb--1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    top: -60px;
    right: 8%;
    animation: float-orb 8s ease-in-out infinite;
}

.hero-orb--2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    bottom: -40px;
    left: 12%;
    animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-orb--3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(72,187,120,0.15) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation: float-orb 12s ease-in-out infinite 2s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ---------- Hero — Dark Green Variant ---------- */

/* Dark hero base: composites photo (if set) behind dark green gradient */
.hero--dark {
    background: var(--gradient-hero-dark), var(--hero-bg-image, none) center / cover no-repeat;
}

/* Brighter green glow overlays tuned for dark bg */
.hero--dark::before {
    background:
        radial-gradient(ellipse 600px 500px at 15% 20%, rgba(98,188,71,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 80%, rgba(39,103,73,0.55) 0%, transparent 60%),
        radial-gradient(ellipse 300px 300px at 60% 10%, rgba(72,187,120,0.30) 0%, transparent 50%);
}

/* White text — WCAG AA on dark bg */
.hero--dark h1,
.hero--dark h2,
.hero--dark h3 {
    color: #ffffff;
}

.hero--dark p {
    color: rgba(255, 255, 255, 0.9);
}

.hero--dark .hero-geography,
.hero--dark .hero-sub {
    color: rgba(255, 255, 255, 0.7);
}

/* Buttons on dark hero */
.hero--dark .btn-primary {
    background: #ffffff;
    color: #276749;
    border-color: #ffffff;
}

.hero--dark .btn-primary:hover,
.hero--dark .btn-primary:focus {
    background: rgba(255, 255, 255, 0.9);
    color: #276749;
    border-color: rgba(255, 255, 255, 0.9);
}

.hero--dark .btn-outline-white {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.hero--dark .btn-outline-white:hover,
.hero--dark .btn-outline-white:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* ---------- Hero — Tech Pattern Overlay ---------- */

/* Circuit/grid SVG pattern + noise texture combined in a single ::after layer.
   Both backgrounds are stacked in one declaration (circuit on top, noise below). */
.hero--dark.hero--pattern::after {
    /* Stack: noise texture (bottom) + circuit pattern (top) */
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.75'%3E%3Crect x='0' y='0' width='80' height='80'/%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Cline x1='0' y1='40' x2='20' y2='40'/%3E%3Cline x1='60' y1='40' x2='80' y2='40'/%3E%3Cline x1='40' y1='0' x2='40' y2='20'/%3E%3Cline x1='40' y1='60' x2='40' y2='80'/%3E%3Ccircle cx='40' cy='40' r='3' fill='rgba(255,255,255,0.04)' stroke='none'/%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.04)' stroke='none'/%3E%3Ccircle cx='60' cy='20' r='2' fill='rgba(255,255,255,0.04)' stroke='none'/%3E%3Ccircle cx='20' cy='60' r='2' fill='rgba(255,255,255,0.04)' stroke='none'/%3E%3Ccircle cx='60' cy='60' r='2' fill='rgba(255,255,255,0.04)' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 80px 80px, 256px 256px;
    pointer-events: none;
}

/* ---------- 3D Cards ---------- */
.card,
.industry-card,
.value-card,
.stat-card,
.proof-point,
.safeguard-card,
.defense-card {
    box-shadow: var(--shadow-lifted);
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.card:hover,
.industry-card:hover,
.value-card:hover,
.safeguard-card:hover,
.defense-card:hover {
    box-shadow: var(--shadow-lifted-hover);
    transform: translateY(-4px);
}

/* JS-driven tilt class */
.card-3d {
    transform-style: preserve-3d;
    perspective: 800px;
}

/* ---------- Card Icon Glow ---------- */
.card-icon {
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover .card-icon,
.industry-card:hover .card-icon,
.value-card:hover .card-icon,
.defense-card:hover .card-icon {
    box-shadow: 0 0 20px var(--glow-green), 0 0 40px rgba(98,188,71,0.15);
    transform: scale(1.05);
}

/* ---------- 3D Buttons ---------- */
.btn-primary {
    box-shadow: 0 2px 0 var(--green-dark), 0 4px 12px rgba(56,161,105,0.3);
    transform: translateY(0);
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--green-dark), 0 8px 20px rgba(56,161,105,0.35);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--green-dark), 0 2px 6px rgba(56,161,105,0.2);
}

.btn-hero-blue {
    box-shadow: 0 2px 0 #1e3a8a, 0 4px 12px rgba(29,78,216,0.3);
    transform: translateY(0);
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-hero-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #1e3a8a, 0 8px 20px rgba(29,78,216,0.35);
}

.btn-hero-blue:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #1e3a8a, 0 2px 6px rgba(29,78,216,0.2);
}

.btn-outline-white {
    box-shadow: 0 2px 0 rgba(255,255,255,0.3);
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-outline-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(255,255,255,0.3), 0 8px 20px rgba(255,255,255,0.1);
}

.btn-outline-green {
    box-shadow: 0 2px 0 rgba(56,161,105,0.2);
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-outline-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--green-dark), 0 8px 20px rgba(56,161,105,0.3);
}

/* ---------- Stat Number Gradient Text ---------- */
.stat-number,
.credential-item .stat-number {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- CTA — Animated Gradient ---------- */
.cta-section {
    background: var(--gradient-cta);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 300px at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 400px 250px at 85% 30%, rgba(72,187,120,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Problem Card Glow Border ---------- */
.problem-card {
    border-left: 4px solid var(--green-primary);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green-bright), var(--green-primary));
    box-shadow: 0 0 12px var(--glow-green), 0 0 24px rgba(98,188,71,0.15);
}

/* ---------- Step Number 3D ---------- */
.plan-step__number,
.step-number {
    box-shadow: 0 3px 0 var(--green-dark), 0 6px 16px rgba(56,161,105,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-step:hover .plan-step__number,
.step:hover .step-number {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 0 var(--green-dark), 0 10px 24px rgba(56,161,105,0.3);
}

/* ---------- Benefit Check Glow ---------- */
.benefit-check {
    box-shadow: 0 0 0 3px rgba(98,188,71,0.12);
    transition: box-shadow 0.3s ease;
}

.benefits-list li:hover .benefit-check {
    box-shadow: 0 0 0 3px rgba(98,188,71,0.12), 0 0 12px var(--glow-green);
}

/* ---------- Nav Link Hover Glow ---------- */
.main-nav .nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-bright));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.main-nav .nav-list > li > a {
    position: relative;
}

.main-nav .nav-list > li > a:hover::after {
    transform: scaleX(1);
}

/* ---------- Dropdown Enhanced ---------- */
.sub-menu {
    background: linear-gradient(135deg, var(--green-bright), var(--green-primary));
    border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- Footer Transitional CTA Glow ---------- */
.footer-transitional-cta .btn-primary {
    box-shadow: 0 2px 0 rgba(39,103,73,0.5), 0 4px 16px rgba(255,255,255,0.15);
}

.footer-transitional-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(39,103,73,0.5), 0 8px 24px rgba(255,255,255,0.2);
}

/* ---------- Form Input Focus Glow ---------- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(56,161,105,0.15), 0 0 16px rgba(56,161,105,0.08);
}

/* ---------- Credential Strip Shimmer ---------- */
.credential-strip {
    position: relative;
    overflow: hidden;
}

.credential-strip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 8s ease-in-out infinite 3s;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ---------- Staggered Grid Reveals ---------- */
.fade-in-stagger > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.fade-in-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.fade-in-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.fade-in-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.fade-in-stagger > *:nth-child(6) { transition-delay: 0.4s; }

.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-orb { display: none; }
    .fade-in, .fade-in-stagger > * { opacity: 1; transform: none; }
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.page-404 {
    text-align: center;
    padding: 160px 40px 100px;
}

.page-404 h1 {
    font-size: 120px;
    color: var(--green-bright);
    margin-bottom: 16px;
}

.page-404 h2 {
    margin-bottom: 16px;
}

.page-404 p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ==========================================================================
   Responsive — Tablet (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 22px;
    }

    .section {
        padding: 60px 30px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .defense-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        gap: 24px;
    }

    /* Service detail sections */
    .service-detail {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    /* Transitional CTA */
    .transitional-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Credential strip */
    .credential-strip .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Proof points */
    .proof-points {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 120px 0 60px;
    }

    /* Header collapses to hamburger at tablet */
    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 20px;
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav .nav-list > li > a {
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid #eee;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 20px;
        background: #f0fff0;
        display: none;
    }

    .has-dropdown.open .sub-menu {
        display: block;
    }

    .sub-menu li a {
        color: var(--text-heading);
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

/* ==========================================================================
   Responsive — Mobile (767px)
   ========================================================================== */
@media (max-width: 767px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    body {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 40px 20px;
    }

    /* Header mobile */
    .header-inner {
        padding: 0 20px;
    }

    /* Card grids */
    .card-grid,
    .card-grid--2col,
    .card-grid--4col {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-grid {
        grid-template-columns: 1fr;
    }

    /* Credential strip */
    .credential-strip {
        padding: 24px 20px;
    }

    .credential-item .stat-number {
        font-size: 22px;
    }

    /* Service detail sections */
    .service-detail {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .benefits-list--compact li {
        padding: 6px 0 6px 28px;
        font-size: 14px;
    }

    /* Problem cards */
    .problem-card {
        padding: 20px 24px;
    }

    /* Proof points */
    .proof-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Plan steps */
    .plan-step {
        gap: 16px;
    }

    .plan-step__number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* Hero buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-geography {
        font-size: 12px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .defense-grid {
        grid-template-columns: 1fr;
    }

    .safeguards-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 50px;
    }

    .hero p {
        font-size: 16px;
    }

    /* CTA */
    .cta-section {
        padding: 60px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Content */
    .content-body {
        padding: 40px 20px;
    }

    /* About story */
    .about-story p {
        font-size: 16px;
    }

    /* Transitional CTA mobile */
    .footer-transitional-cta {
        padding: 40px 0;
    }

    .transitional-cta-content h3 {
        font-size: 20px;
    }

    .transitional-cta-content p {
        font-size: 15px;
    }
}
