/*
Theme Name: Aeronexis
Theme URI:
Author: Aeronexis Technologies
Author URI:
Description: Custom WordPress theme for Aeronexis Technologies - Advanced NDT Solutions for Wind Energy & Composite Industries. Includes Home, About, Services, Training, Careers, and Contact page templates with a cohesive teal/orange brand system.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Tags: business, custom-colors, custom-menu, featured-images, full-width-template, theme-options
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeronexis
*/

:root {
    --c-teal-dark: #1d3d4d;
    --c-teal: #2a4d5e;
    --c-cream: #f1e6cd;
    --c-cream-light: #f8f1de;
    --c-gold: #d9b75c;
    --c-gold-light: #e6c97a;
    --c-orange: #e07b34;
    --c-orange-dark: #c8651f;
    --c-text: #2a2a2a;
    --c-muted: #6a6a6a;
    --c-white: #ffffff;
    --c-border: rgba(0,0,0,0.08);
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--c-text);
    line-height: 1.65;
    background: var(--c-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--c-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Top announcement bar ---------- */
.top-bar {
    background: var(--c-teal-dark);
    color: #fff;
    padding: 0.6rem 0;
    font-size: 0.95rem;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.top-bar-text { font-weight: 500; }
.top-bar-btn {
    background: #fff;
    color: var(--c-teal-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.top-bar-btn:hover { background: var(--c-gold); color: var(--c-teal-dark); text-decoration: none; }

/* ---------- Main header ---------- */
.site-header {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
    color: var(--c-teal-dark);
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

/* Aeronexis header logo */
.aeronexis-header-logo {
    flex-direction: row !important;
    align-items: center;
    gap: 0.85rem;
}
.aeronexis-header-logo .logo-mark-svg {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.aeronexis-header-logo .logo-mark-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.aeronexis-header-logo .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.aeronexis-header-logo .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-teal-dark);
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.aeronexis-header-logo:hover .brand-name { color: var(--c-orange); }
.aeronexis-header-logo .brand-sub {
    font-size: 0.65rem;
    color: var(--c-orange);
    margin-top: 0.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    color: var(--c-teal-dark);
}
.logo-fox { color: var(--c-orange); }
.logo-everett { color: var(--c-teal-dark); }
.logo-sep {
    display: inline-block;
    width: 1px;
    height: 1.4rem;
    background: var(--c-teal-dark);
    transform: skewX(-15deg);
}
.logo-tag {
    font-size: 0.7rem;
    color: var(--c-muted);
    margin-top: 0.15rem;
    letter-spacing: 0.04em;
}
.logo-hub { color: var(--c-teal-dark); font-weight: 600; }

/* Drawer header — hidden by default (only used on mobile) */
.drawer-header { display: none; }

/* Primary nav */
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.main-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}
.main-nav > ul > li { position: relative; flex-shrink: 0; }
.main-nav > ul > li > a {
    color: var(--c-teal-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1.25rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a,
.main-nav > ul > li.is-active > a { color: var(--c-orange); text-decoration: none; }

/* Active page underline indicator */
.main-nav > ul > li.is-active > a {
    position: relative;
    font-weight: 600;
}
.main-nav > ul > li.is-active > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.65rem;
    height: 3px;
    background: var(--c-orange);
    border-radius: 2px;
    animation: aeronexis-underline-in 0.3s ease;
}
@keyframes aeronexis-underline-in {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.main-nav .caret { font-size: 0.7rem; opacity: 0.7; transition: transform 0.15s; }
.main-nav > ul > li:hover .caret { transform: rotate(180deg); }

/* Dropdown sub-panel */
.sub-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #f4f7f9;
    border-top: 3px solid var(--c-orange);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    padding: 1.75rem;
    min-width: 320px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 200;
    border-radius: 0 0 4px 4px;
}
.main-nav > ul > li:hover .sub-panel,
.main-nav > ul > li:focus-within .sub-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.sub-panel a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    color: var(--c-text);
    border-radius: 4px;
    transition: background 0.12s;
}
.sub-panel a:hover { background: rgba(224,123,52,0.08); text-decoration: none; }
.sub-panel a strong { color: var(--c-orange); font-size: 1rem; font-weight: 600; }
.sub-panel a span:not(.sub-icon) { color: var(--c-muted); font-size: 0.85rem; line-height: 1.45; }

/* Resource Center mega-panel */
.sub-panel.four-col {
    grid-template-columns: repeat(4, 1fr);
    min-width: 920px;
    gap: 2rem;
    padding: 2rem 2.5rem 1rem;
}
.sub-panel.four-col a { text-align: left; align-items: flex-start; }
.sub-panel.four-col .sub-icon {
    font-size: 1.5rem;
    color: var(--c-teal-dark);
    margin-bottom: 0.5rem;
    display: inline-block;
}
.sub-panel-footer {
    grid-column: 1 / -1;
    background: #e7edf0;
    color: var(--c-teal-dark);
    text-align: center;
    padding: 0.85rem 1rem;
    font-weight: 500;
    margin: 1rem -2.5rem -1rem;
    border-radius: 0 0 4px 4px;
}

/* Right-side actions */
.header-actions { display: flex; gap: 0.6rem; align-items: center; flex-shrink: 0; }
.btn-outline-thin {
    background: transparent;
    border: 1.5px solid var(--c-orange);
    color: var(--c-orange);
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.btn-outline-thin:hover { background: var(--c-orange); color: #fff; text-decoration: none; }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-teal-dark);
    margin: 5px 0;
    transition: transform 0.2s, opacity 0.2s;
}
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}
.btn-orange { background: var(--c-orange); color: #fff; }
.btn-orange:hover { background: var(--c-orange-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-teal { background: var(--c-teal-dark); color: #fff; }
.btn-teal:hover { background: var(--c-teal); color: #fff; text-decoration: none; }
.btn-outline { border-color: var(--c-teal-dark); color: var(--c-teal-dark); background: transparent; }
.btn-outline:hover { background: var(--c-teal-dark); color: #fff; text-decoration: none; }

/* ---------- Hero Banner ---------- */
.hero-banner {
    position: relative;
    color: #fff;
    padding: 6rem 0 7rem;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29,61,77,0.85) 0%, rgba(42,77,94,0.78) 100%);
    z-index: -1;
}
.hero-content { position: relative; max-width: 1100px; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(224,123,52,0.15);
    border: 1px solid rgba(224,123,52,0.4);
    color: var(--c-gold-light);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}
.hero-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.btn-outline-light {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--c-teal-dark);
    text-decoration: none;
}
.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #f0f4f6;
    max-width: 920px;
    margin: 0 0 2rem;
}
.btn-lg { padding: 0.95rem 2.25rem; font-size: 1rem; }

/* legacy hero classes (used by other pages) */
.hero:not(.hero-banner) {
    background: linear-gradient(135deg, var(--c-teal-dark) 0%, var(--c-teal) 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero:not(.hero-banner) h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    max-width: 820px;
    color: #fff;
}
.hero:not(.hero-banner) p.lead {
    font-size: 1.1rem;
    color: #cfdde3;
    max-width: 700px;
    margin: 0 0 2rem;
}

/* ---------- Stats banner ---------- */
.stats {
    background: var(--c-cream);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-number { font-size: 2.75rem; font-weight: 700; color: var(--c-orange); line-height: 1; }
.stat-label { margin-top: 0.5rem; color: var(--c-teal-dark); font-size: 1rem; font-weight: 500; }

/* ---------- Section bases ---------- */
.section { padding: 4.5rem 0; }
.section-cream { background: var(--c-cream); }
.section-cream-light { background: var(--c-cream-light); }
.section-teal { background: var(--c-teal-dark); color: #fff; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-gold { background: var(--c-gold-light); }
.section-light { background: #f3f4f5; }

.eyebrow {
    display: inline-block;
    background: var(--c-orange);
    color: #fff;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.part-heading {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.1;
    color: var(--c-orange);
    margin: 0 0 1.5rem;
}
.part-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--c-text);
    max-width: 1100px;
    margin: 0 0 3rem;
}
.section-heading {
    font-size: 2.1rem;
    color: var(--c-teal-dark);
    margin: 0 0 1rem;
}
.section-heading.centered { text-align: center; }
.section-subheading {
    font-size: 1.05rem;
    color: var(--c-muted);
    max-width: 760px;
    margin: 0 0 2.5rem;
}
.section-subheading.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Two-column with image ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3.5rem;
}
.two-col.reverse > div:first-child { order: 2; }
.two-col h3 { color: var(--c-teal-dark); font-size: 1.65rem; margin: 0 0 1rem; }
.two-col p { color: var(--c-text); }
.two-col .image-block {
    background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-dark) 100%);
    border-radius: 8px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    aspect-ratio: 4/3;
}

/* ---------- Feature lists ---------- */
.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.feature-list li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.65rem;
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-orange);
    font-weight: 700;
}

/* ---------- Concept cards (Part 1 list block) ---------- */
.concepts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.concept {
    background: var(--c-white);
    border-left: 4px solid var(--c-orange);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.concept h4 { margin: 0 0 0.35rem; color: var(--c-teal-dark); font-size: 1.05rem; }
.concept p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }

/* ---------- Icon feature grid ---------- */
.icon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.icon-feature { text-align: center; }
.icon-feature .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.icon-feature h4 { margin: 0 0 0.5rem; color: var(--c-teal-dark); font-size: 1.05rem; }
.icon-feature p { margin: 0; color: var(--c-muted); font-size: 0.9rem; }
.section-teal .icon-feature h4 { color: #fff; }
.section-teal .icon-feature p { color: #cfdde3; }
.section-teal .icon-feature .icon { background: var(--c-gold); color: var(--c-teal-dark); }

/* ---------- Gold callout boxes ---------- */
.gold-box {
    background: var(--c-gold-light);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.gold-box h3 { color: var(--c-teal-dark); font-size: 1.6rem; margin: 0 0 0.75rem; }
.gold-box p { color: var(--c-text); margin: 0 0 1rem; }
.gold-box .feature-list li::before { color: var(--c-teal-dark); }

/* ---------- Testimonial / Orange band ---------- */
.testimonial-band {
    background: var(--c-orange);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.testimonial-band .stars {
    color: var(--c-gold-light);
    font-size: 1.25rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}
.testimonial-band blockquote {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 760px;
    margin: 0 auto 1rem;
    color: #fff;
}
.testimonial-band cite { font-style: normal; font-weight: 600; color: #fff; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--c-teal-dark); color: #fff; padding: 4.5rem 0; }
.faq-section h2 { color: #fff; text-align: center; margin: 0 0 2.5rem; font-size: 2rem; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-item:hover { background: rgba(255,255,255,0.1); }
.faq-item summary { font-weight: 600; outline: none; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--c-gold); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0.75rem 0 0; color: #cfdde3; font-size: 0.95rem; }

/* ---------- Section dividers (orange split) ---------- */
.split-top { border-top: 5px solid var(--c-orange); }
.split-bottom { border-bottom: 5px solid var(--c-orange); }
.split-both { border-top: 5px solid var(--c-orange); border-bottom: 5px solid var(--c-orange); }

/* ---------- Final CTA ---------- */
.final-cta {
    background: var(--c-cream);
    padding: 5rem 0;
    border-top: 5px solid var(--c-orange);
}
.final-cta + .site-footer { border-top: 0; }
.final-cta .two-col { margin: 0; }
.final-cta h2 { font-size: 2rem; color: var(--c-teal-dark); margin: 0 0 1rem; }
.final-cta p { color: var(--c-text); margin: 0 0 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-cream); color: var(--c-text); padding: 5rem 0 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 1.1fr 1.2fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: start;
}
.footer-col h4 {
    color: var(--c-orange);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.9rem; }
.footer-col a {
    color: var(--c-text);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--c-orange); text-decoration: none; }

.footer-brand { display: flex; justify-content: flex-end; align-items: flex-start; }
.footer-logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}
.footer-logo .logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
}
.footer-logo .logo-fox { color: var(--c-orange); }
.footer-logo .logo-everett { color: var(--c-teal-dark); }
.footer-logo .logo-sep {
    display: inline-block;
    width: 1px;
    height: 1.75rem;
    background: var(--c-teal-dark);
    transform: skewX(-15deg);
}
.footer-logo .logo-tag {
    font-size: 0.8rem;
    color: var(--c-muted);
    margin-top: 0.35rem;
    letter-spacing: 0.04em;
    align-self: flex-end;
}
.footer-logo .logo-hub { color: var(--c-teal-dark); font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--c-muted);
}
.footer-copyright { display: flex; align-items: center; gap: 0.5rem; }
.footer-legal a {
    color: var(--c-muted);
    margin-right: 1.25rem;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-legal a:last-child { margin-right: 0; }
.footer-legal a:hover { color: var(--c-orange); }

/* ---------- Aeronexis footer (optimized) ---------- */
.site-footer { padding: 3.5rem 0 1.25rem; }

.footer-grid-aeronexis {
    grid-template-columns: 1.8fr 1fr 1.4fr 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
    align-items: start;
}
.footer-brand-col { padding-right: 0.5rem; }
.footer-brand-col .aeronexis-logo {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.15 !important;
    flex-wrap: nowrap;
}
.footer-brand-col .footer-logo-mark {
    display: inline-flex !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    max-width: 46px;
    flex-shrink: 0 !important;
}
.footer-brand-col .footer-logo-mark svg {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    display: block !important;
}
.footer-brand-col .aeronexis-logo .brand-name {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: var(--c-teal-dark);
    letter-spacing: 0.01em;
    line-height: 1.2 !important;
    display: inline-block !important;
    margin: 0;
}
.footer-brand-col .aeronexis-logo:hover .brand-name { color: var(--c-orange); }
.footer-brand-col .brand-tagline {
    color: var(--c-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 0.65rem;
    max-width: 300px;
}
.footer-brand-col .brand-motto {
    display: inline-block;
    color: var(--c-orange);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    padding: 0.35rem 0.75rem;
    background: rgba(224,123,52,0.1);
    border-radius: 999px;
}

/* Column headers - smaller and tighter */
.footer-col h4 {
    color: var(--c-orange);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem !important;
    text-transform: none;
    letter-spacing: 0;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(224,123,52,0.2);
    position: relative;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 32px;
    height: 2px;
    background: var(--c-orange);
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col a {
    font-size: 0.92rem;
    color: var(--c-text);
    transition: color 0.15s, padding-left 0.15s;
    display: inline-block;
}
.footer-col a:hover {
    color: var(--c-orange);
    padding-left: 4px;
}
.footer-col .social-links { list-style: none; padding: 0; margin: 0; }
.footer-col .social-links li { margin-bottom: 0.55rem; }
.footer-col .social-links a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.65rem;
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
}
.footer-col .social-links a:hover { color: var(--c-orange); }
.footer-col .social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    background: var(--c-orange);
    color: #fff;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
    overflow: hidden;
}
.footer-col .social-icon svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
    fill: currentColor;
}
.footer-col .social-links a:hover .social-icon {
    background: var(--c-teal-dark);
    transform: translateY(-2px);
}

/* ---------- Plan cards (Self-Funded page) ---------- */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.plan-cards.three-col { grid-template-columns: repeat(3, 1fr); }
.plan-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.plan-card.featured { background: #d9b75c; border-color: #c8a443; }
.plan-card.featured h3, .plan-card.featured p { color: #2a2a2a; }
.plan-card h3 { color: var(--c-orange); font-size: 1.05rem; margin: 0; font-weight: 700; }
.plan-card p { color: var(--c-muted); margin: 0; font-size: 0.9rem; flex: 1; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; align-self: flex-start; }

/* ---------- Turnkey diagram ---------- */
.turnkey { align-items: center; }
.diagram {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    margin: 0 auto;
}
.diagram::before {
    content: "";
    position: absolute;
    inset: 12%;
    border: 2px dashed rgba(217,183,92,0.5);
    border-radius: 50%;
}
.diagram-center {
    position: absolute;
    inset: 30%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.diagram-center .logo-fox { color: var(--c-orange); }
.diagram-center .logo-everett { color: var(--c-teal-dark); }
.diagram-sep {
    display: inline-block;
    width: 1px;
    height: 1.1rem;
    background: var(--c-teal-dark);
    transform: skewX(-15deg);
}
.diagram-node {
    position: absolute;
    background: var(--c-gold);
    color: var(--c-teal-dark);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.diagram-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.diagram-node.n2 { top: 30%; right: -5%; }
.diagram-node.n3 { bottom: 15%; right: 0; }
.diagram-node.n4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.diagram-node.n5 { top: 30%; left: -5%; }

/* ---------- Cost containment / icon block ---------- */
.cost-containment { align-items: center; }
.cc-icon {
    background: #f7eccd;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cc-icon-circle {
    width: 110px;
    height: 110px;
    background: #fff;
    border: 6px solid var(--c-orange);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--c-orange);
}
.cc-icon-label {
    display: inline-block;
    background: rgba(29,61,77,0.85);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}
.section-gold .two-col h2 { color: var(--c-teal-dark); }
.section-gold .two-col p { color: var(--c-text); }

/* ---------- Good fit block ---------- */
.fit-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}
.fit-block h2 { margin: 0 0 1rem; font-size: 1.8rem; }
.fit-block p { margin: 0 0 2rem; }

/* ---------- Breaking grid ---------- */
.break-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.break-item strong {
    display: block;
    color: var(--c-gold);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.break-item p { color: #cfdde3; font-size: 0.9rem; margin: 0; }

/* ---------- Partner logo cloud ---------- */
.partner-row { align-items: center; }
.logo-cloud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.logo-slot {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 1rem 0.75rem;
    text-align: center;
    color: var(--c-muted);
    font-weight: 600;
    font-size: 0.85rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Compare cards ---------- */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.compare-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.compare-card-img {
    background: var(--c-cream);
    color: var(--c-teal-dark);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
}
.compare-card-img.dark { background: var(--c-teal-dark); color: #fff; }
.compare-card-img.light { background: #e6f0ee; color: var(--c-teal-dark); font-size: 0.85rem; line-height: 1.4; }
.compare-card h4 {
    margin: 1.25rem 1.25rem 0.5rem;
    color: var(--c-teal-dark);
    font-size: 1rem;
    line-height: 1.4;
}
.compare-card p { margin: 0 1.25rem 1rem; color: var(--c-muted); font-size: 0.9rem; flex: 1; }
.compare-card a {
    margin: 0 1.25rem 1.25rem;
    color: var(--c-orange);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.compare-card a:hover { text-decoration: underline; }

/* ---------- Team grid (About) ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.team-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 1.75rem 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-orange), #d65d24);
    color: #fff;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}
.team-card h4 { margin: 0 0 0.35rem; color: var(--c-teal-dark); font-size: 1.05rem; }
.team-card .role { color: var(--c-muted); font-size: 0.9rem; }

/* ---------- Job listings (Career) ---------- */
.jobs { display: flex; flex-direction: column; gap: 0.75rem; }
.job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-orange);
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.job-row:hover { transform: translateX(4px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); text-decoration: none; }
.job-info h4 { margin: 0 0 0.25rem; color: var(--c-teal-dark); font-size: 1.05rem; }
.job-info .job-meta { color: var(--c-muted); font-size: 0.9rem; }
.job-cta { color: var(--c-orange); font-weight: 600; flex-shrink: 0; margin-left: 1rem; }

/* ---------- Blog grid & cards ---------- */
.latest-posts-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.latest-posts-head .part-heading { margin: 0; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}
.blog-card-thumb {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--c-cream);
}
.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--c-teal-dark), var(--c-teal));
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-placeholder span {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.4;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
    display: inline-block;
    background: var(--c-orange);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.blog-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--c-teal-dark);
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--c-orange); }
.blog-card-meta {
    color: var(--c-muted);
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
}
.blog-meta-sep { margin: 0 0.4rem; }
.blog-card-excerpt {
    color: var(--c-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}
.blog-card-read {
    color: var(--c-orange);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}
.blog-card-read:hover { text-decoration: underline; }

.blog-empty {
    background: #fff;
    border: 1px dashed var(--c-border);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--c-muted);
}
.blog-empty h2 { color: var(--c-teal-dark); margin: 0 0 0.5rem; }
.blog-empty a { color: var(--c-orange); font-weight: 600; }

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    color: var(--c-teal-dark);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--c-orange);
    color: #fff;
    border-color: var(--c-orange);
}

/* ---------- Single post template ---------- */
.post-hero {
    position: relative;
    color: #fff;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
    isolation: isolate;
}
.post-hero.has-thumb { padding: 5rem 0 4.5rem; min-height: 420px; display: flex; align-items: flex-end; }
.post-hero.compact { padding: 3rem 0 2.5rem; }
.post-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.post-hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-teal-dark), var(--c-teal));
    z-index: -2;
}
.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29,61,77,0.65) 0%, rgba(29,61,77,0.9) 100%);
    z-index: -1;
}
.post-hero-content { position: relative; max-width: 900px; width: 100%; }

/* Breadcrumb */
.post-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.25rem;
}
.post-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.15s;
}
.post-breadcrumb a:hover { color: var(--c-orange); }
.post-breadcrumb .crumb-sep { margin: 0 0.4rem; opacity: 0.5; }
.post-breadcrumb .crumb-current { color: #fff; font-weight: 500; }

.post-hero-cat {
    display: inline-block;
    background: var(--c-orange);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.post-hero-cat:hover { background: #c8651f; text-decoration: none; }
.post-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin: 0 0 1.25rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.post-hero-meta {
    color: #cfdde3;
    font-size: 0.95rem;
}
.post-hero-meta strong { color: #fff; }
.post-meta-sep { margin: 0 0.5rem; opacity: 0.5; }

.post-article { padding: 4rem 0; }
.post-container { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; box-sizing: border-box; }
.post-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--c-text);
}
.post-content > * + * { margin-top: 1.25em; }
.post-content h2 { color: var(--c-teal-dark); font-size: 1.75rem; margin-top: 2.5em; }
.post-content h3 { color: var(--c-teal-dark); font-size: 1.35rem; margin-top: 2em; }
.post-content h4 { color: var(--c-teal-dark); font-size: 1.1rem; }
.post-content p { margin: 0 0 1.25em; }
.post-content a { color: var(--c-orange); text-decoration: underline; }
.post-content a:hover { color: #c8651f; }
.post-content img,
.post-content figure {
    border-radius: 8px;
    margin: 2em auto;
    max-width: 100%;
    height: auto;
    display: block;
}
.post-content figure img { margin: 0; }
.post-content figure figcaption {
    text-align: center;
    color: var(--c-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}
.wp-block-image,
.alignwide,
.alignfull {
    margin: 2em 0;
}
.alignwide { max-width: 100%; }
.alignfull { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: 0 1.5em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 1em 1.5em; max-width: 50%; }
.post-content::after { content: ""; display: block; clear: both; }
.post-content blockquote {
    border-left: 4px solid var(--c-orange);
    background: var(--c-cream-light);
    padding: 1.25rem 1.5rem;
    margin: 2em 0;
    font-style: italic;
    color: var(--c-teal-dark);
    border-radius: 0 6px 6px 0;
}
.post-content ul,
.post-content ol { padding-left: 1.5em; margin: 0 0 1.25em; }
.post-content li { margin-bottom: 0.5em; }
.post-content code {
    background: var(--c-cream-light);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}
.post-content pre {
    background: var(--c-teal-dark);
    color: #e6f0f0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}
.post-content pre code { background: none; padding: 0; }

.post-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
    font-size: 0.9rem;
}
.post-tags-label { font-weight: 600; color: var(--c-teal-dark); margin-right: 0.5rem; }
.post-tags a {
    display: inline-block;
    background: var(--c-cream);
    color: var(--c-teal-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    margin: 0 0.25rem 0.5rem 0;
    text-decoration: none;
    font-size: 0.85rem;
}
.post-tags a:hover { background: var(--c-orange); color: #fff; }

.post-share {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.post-share-label { font-weight: 600; color: var(--c-teal-dark); }
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-cream);
    color: var(--c-teal-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.share-btn:hover {
    background: var(--c-orange);
    color: #fff;
    transform: translateY(-2px);
}

.back-to-blog {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.post-nav-link:hover {
    border-color: var(--c-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-decoration: none;
}
.post-nav-link.next { text-align: right; }
.post-nav-dir { color: var(--c-orange); font-size: 0.8rem; font-weight: 600; }
.post-nav-title { color: var(--c-teal-dark); font-weight: 600; }

.post-comments-section {
    border-top: 1px solid var(--c-border);
}

/* ---------- Gallery ---------- */
.gallery-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.gallery-filter {
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-teal-dark);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gallery-filter:hover {
    border-color: var(--c-orange);
    color: var(--c-orange);
}
.gallery-filter.is-active {
    background: var(--c-orange);
    color: #fff;
    border-color: var(--c-orange);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--c-cream);
    cursor: zoom-in;
    text-decoration: none;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29,61,77,0.92) 0%, rgba(29,61,77,0.4) 60%, transparent 100%);
    color: #fff;
    padding: 1.25rem 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; text-decoration: none; }
.gallery-item-overlay h4 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
}
.gallery-item-cat {
    display: inline-block;
    background: var(--c-orange);
    color: #fff;
    padding: 0.18rem 0.55rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}
.gallery-zoom-icon {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(224,123,52,0.95);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Lightbox ---------- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,20,30,0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox-content {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    text-align: center;
}
.gallery-lightbox img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    margin: 0 auto;
}
.gallery-lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-lightbox-caption strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.gallery-lightbox-caption span {
    color: #cfdde3;
    font-size: 0.95rem;
    line-height: 1.5;
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: var(--c-orange);
    border-color: var(--c-orange);
}
.gallery-lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.75rem; }
.gallery-lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; padding-bottom: 4px; }
.gallery-lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; padding-bottom: 4px; }

/* ---------- 404 page ---------- */
.error-404 {
    position: relative;
    color: #fff;
    padding: 5rem 0 6rem;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.error-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-teal-dark) 0%, var(--c-teal) 100%);
    z-index: -2;
}
.error-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(224,123,52,0.18), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(245,158,11,0.12), transparent 55%);
    z-index: -1;
}
.error-content { position: relative; max-width: 880px; }
.error-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.error-digit {
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.error-logo {
    display: inline-flex;
    width: clamp(80px, 12vw, 130px);
    height: clamp(80px, 12vw, 130px);
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}
.error-logo svg { width: 100%; height: 100%; }

.error-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}
.error-message {
    color: #cfdde3;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.error-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-search {
    max-width: 520px;
    margin: 0 auto 3rem;
}
.error-search .search-row {
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.4rem;
    backdrop-filter: blur(8px);
}
.error-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
}
.error-search input::placeholder { color: rgba(255,255,255,0.5); }
.error-search .btn { flex-shrink: 0; }

.error-links h3 {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem;
    font-weight: 600;
}
.error-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.error-link-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: left;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    display: block;
}
.error-link-card:hover {
    background: rgba(224,123,52,0.15);
    border-color: var(--c-orange);
    transform: translateY(-2px);
    text-decoration: none;
}
.error-link-card strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.error-link-card span {
    color: #cfdde3;
    font-size: 0.82rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ---------- Legal pages (Privacy / Terms) ---------- */
.hero-banner.compact-legal { padding: 3rem 0 2.5rem; min-height: 0; }
.hero-banner.compact-legal .hero-title { font-style: normal; font-family: inherit; }
.legal-content h2 {
    color: var(--c-teal-dark);
    font-size: 1.4rem;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
}
.legal-content h2:first-of-type { margin-top: 1.5em; }
.legal-content ul { padding-left: 1.5em; margin: 0 0 1.25em; }
.legal-content ul li { margin-bottom: 0.5em; }
.legal-effective {
    background: var(--c-cream-light);
    border-left: 4px solid var(--c-orange);
    padding: 0.85rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 2rem;
    color: var(--c-teal-dark);
}

/* ---------- Expertise grid (Home) ---------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.expertise-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.expertise-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-orange);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    text-decoration: none;
}
.expertise-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-cream);
    color: var(--c-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.2s, color 0.2s;
}
.expertise-card:hover .expertise-icon { background: var(--c-orange); color: #fff; }
.expertise-card h4 { margin: 0 0 0.5rem; color: var(--c-teal-dark); font-size: 1rem; line-height: 1.3; }
.expertise-card p { margin: 0; color: var(--c-muted); font-size: 0.85rem; line-height: 1.5; }

/* ---------- Training programs grid ---------- */
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.training-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    border-color: var(--c-orange);
}
.training-num {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--c-orange);
    opacity: 0.7;
    margin-bottom: 0.75rem;
}
.training-card h3 {
    color: var(--c-teal-dark);
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}
.training-card > p {
    color: var(--c-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.55;
}
.training-card .feature-list { margin: 0; }
.training-card .feature-list li {
    font-size: 0.85rem;
    color: var(--c-text);
    margin-bottom: 0.4rem;
    padding-left: 1.4rem;
}

/* ---------- Training format grid ---------- */
.format-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.format-block {
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.format-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--c-teal-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.format-block h4 { color: var(--c-teal-dark); margin: 0 0 0.5rem; font-size: 1rem; }
.format-block p { color: var(--c-muted); font-size: 0.88rem; margin: 0; line-height: 1.5; }

/* ---------- Career areas ---------- */
.career-areas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
.career-area {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.career-area:hover {
    transform: translateY(-4px);
    border-color: var(--c-orange);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.career-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-cream);
    color: var(--c-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.2s, color 0.2s;
}
.career-area:hover .career-icon { background: var(--c-orange); color: #fff; }
.career-area h4 { margin: 0 0 0.5rem; color: var(--c-teal-dark); font-size: 1.05rem; }
.career-area p { margin: 0; color: var(--c-muted); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Resume CTA ---------- */
.resume-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-left: 4px solid var(--c-orange);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}
.resume-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-cream);
    color: var(--c-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.resume-label {
    display: block;
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-bottom: 0.15rem;
}
.resume-email {
    color: var(--c-orange);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    word-break: break-word;
}
.resume-email:hover { text-decoration: underline; }

/* ---------- Service blocks (numbered) ---------- */
.service-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
}
.service-number {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    color: var(--c-orange);
    opacity: 0.85;
}
.service-content { min-width: 0; }
.service-content h2 {
    color: var(--c-teal-dark);
    font-size: 1.85rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}
.service-content > p {
    font-size: 1.05rem;
    color: var(--c-text);
    margin: 0 0 1.5rem;
    max-width: 880px;
}
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
.service-grid.one-col { grid-template-columns: 1fr; }
.service-list-box {
    background: #fff;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-orange);
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
}
.service-list-box h4 {
    margin: 0 0 1rem;
    color: var(--c-teal-dark);
    font-size: 1.1rem;
    font-weight: 700;
}
.service-list-box .feature-list { margin: 0; }
.feature-list.two-col-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
}

/* ---------- Why Choose Us / Advantage grid ---------- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.advantage-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}
.advantage-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.advantage-card h4 { margin: 0 0 0.5rem; color: #fff; font-size: 1rem; }
.advantage-card p { margin: 0; color: #cfdde3; font-size: 0.85rem; line-height: 1.5; }

/* ---------- Industries grid ---------- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.industry-tag {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--c-teal-dark);
    transition: transform 0.15s, border-color 0.15s, color 0.15s;
}
.industry-tag:hover {
    transform: translateY(-3px);
    border-color: var(--c-orange);
    color: var(--c-orange);
    cursor: default;
}

/* ---------- Vision & Mission ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.vm-card {
    background: #fff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--c-orange);
    transition: transform 0.2s, box-shadow 0.2s;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.vm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-cream);
    color: var(--c-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.vm-card h3 {
    margin: 0 0 0.75rem;
    color: var(--c-teal-dark);
    font-size: 1.6rem;
    font-weight: 700;
}
.vm-card p { margin: 0; color: var(--c-text); font-size: 1rem; line-height: 1.7; }

/* ---------- Core Values ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.value-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: var(--c-orange);
}
.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-orange), #d65d24);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.value-card h4 { margin: 0 0 0.5rem; color: var(--c-teal-dark); font-size: 1.1rem; }
.value-card p { margin: 0; color: var(--c-muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Contact cards ---------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 2rem 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-cream);
    color: var(--c-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.contact-card h4 { margin: 0 0 0.5rem; color: var(--c-teal-dark); font-size: 1.05rem; }
.contact-card p { margin: 0 0 0.75rem; color: var(--c-muted); font-size: 0.9rem; line-height: 1.4; }
.contact-card a {
    color: var(--c-orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    margin-top: auto;
    line-height: 1.4;
}
.contact-card a:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-form {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--c-text);
    font-weight: 500;
}
.contact-form label em {
    color: var(--c-orange);
    font-style: normal;
    margin-left: 2px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    font: inherit;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: 5px;
    background: #fafbfc;
    color: var(--c-text);
    transition: border-color 0.15s, background 0.15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--c-orange);
    background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { align-self: flex-start; }

/* Honeypot - hidden from real users, visible to dumb bots */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* AJAX form response banner */
.form-response {
    margin-top: 1rem;
    padding: 0;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
}
.form-response.is-loading,
.form-response.is-success,
.form-response.is-error {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
}
.form-response.is-loading {
    background: var(--c-cream-light);
    color: var(--c-teal-dark);
    border-left: 3px solid var(--c-orange);
}
.form-response.is-success {
    background: rgba(34, 139, 70, 0.08);
    color: #1f5d34;
    border-left: 3px solid #2a9d54;
}
.form-response.is-success strong { color: #2a9d54; font-size: 1.1rem; line-height: 1.4; }
.form-response.is-error {
    background: rgba(220, 38, 38, 0.06);
    color: #8b1c1c;
    border-left: 3px solid #c2410c;
}
.form-response.is-error strong { color: #c2410c; font-size: 1.1rem; line-height: 1.4; }

/* Spinner */
.form-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(29, 61, 77, 0.2);
    border-top-color: var(--c-orange);
    border-radius: 50%;
    animation: aeronexis-spin 0.7s linear infinite;
    flex-shrink: 0;
    margin-top: 2px;
}
@keyframes aeronexis-spin {
    to { transform: rotate(360deg); }
}

/* Submit button loading state */
.btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}
.form-note { font-size: 0.8rem; color: var(--c-muted); margin: 0; }

/* ---------- Responsive ---------- */
/* ============================================================
   RESPONSIVE — Three breakpoints:
   1024px  → tablet landscape / small laptop
   768px   → tablet portrait / large phone
   480px   → phone
   ============================================================ */

/* ---- Large laptop — tighten nav so 8 items fit ---- */
@media (max-width: 1280px) {
    .main-nav > ul { gap: 1.1rem; }
    .main-nav > ul > li > a { font-size: 0.9rem; }
    .aeronexis-header-logo .brand-sub { display: none; }
    .header-actions .btn-orange { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* ---- Mid laptop — go to hamburger early ---- */
@media (max-width: 1100px) {
    .main-nav > ul { gap: 0.8rem; }
    .main-nav > ul > li > a { font-size: 0.85rem; }
    .header-actions { display: none; }
}

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
    .container { padding: 0 1.25rem; }
    .main-nav > ul { gap: 0.75rem; }
    .main-nav > ul > li > a { font-size: 0.82rem; }
    .sub-panel.four-col { min-width: 0; max-width: calc(100vw - 2rem); grid-template-columns: repeat(2, 1fr); }
    .header-actions .btn-outline-thin { display: none; }
    .plan-cards { grid-template-columns: repeat(2, 1fr); }
    .logo-cloud { grid-template-columns: repeat(3, 1fr); }
    .break-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid { grid-template-columns: repeat(3, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .service-number { font-size: 4rem; }
    .career-areas { grid-template-columns: repeat(3, 1fr); }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .training-grid { grid-template-columns: repeat(2, 1fr); }
    .format-grid { grid-template-columns: repeat(2, 1fr); }
    .error-links-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet portrait / large phone ---- */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    /* Top bar */
    .top-bar { padding: 0.5rem 0; font-size: 0.85rem; }
    .top-bar-inner { flex-direction: column; gap: 0.5rem; text-align: center; padding: 0 1rem; }
    .top-bar-btn { padding: 0.4rem 1rem; font-size: 0.8rem; }

    /* Header / nav collapse */
    .header-inner {
        padding: 0.65rem 0;
        gap: 0.75rem;
        flex-wrap: nowrap;
        position: relative;
    }
    .mobile-toggle {
        display: block;
        order: 3;
        position: relative;
        z-index: 101;
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .mobile-toggle span {
        width: 24px;
        height: 2px;
        background: var(--c-teal-dark);
        margin: 3px 0;
    }
    /* Hamburger hides when drawer opens — drawer has its own close button */
    .mobile-toggle.is-open { display: none !important; }

    /* Drawer header — sticky bar with title + close (×) button (mobile only) */
    .drawer-header {
        display: flex !important;
        position: sticky;
        top: 0;
        margin: -1.25rem -1.25rem 1rem;
        padding: 0.85rem 1.25rem;
        background: #fff;
        border-bottom: 1px solid var(--c-border);
        align-items: center;
        justify-content: space-between;
        z-index: 2;
    }
    .drawer-title {
        color: var(--c-orange);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.18em;
    }
    .drawer-close {
        background: #fff;
        border: 2px solid var(--c-orange);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--c-orange);
        transition: background 0.15s, color 0.15s;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }
    .drawer-close:hover,
    .drawer-close:focus {
        background: var(--c-orange);
        color: #fff;
        outline: 0;
    }

    .aeronexis-header-logo {
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
    }
    .aeronexis-header-logo .logo-mark-svg { width: 38px; height: 38px; flex-shrink: 0; }
    .aeronexis-header-logo .brand-text { min-width: 0; overflow: hidden; }
    .aeronexis-header-logo .brand-name {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .aeronexis-header-logo .brand-sub {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-actions { display: none; }

    /* Full-screen drawer-style mobile nav */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0;
        width: 100% !important;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: none !important;
        background: #fff;
        display: flex !important;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden !important;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 100;
        padding: 1.25rem 1.25rem 2rem !important;
        box-shadow: none;
        border: 0;
        box-sizing: border-box;
    }
    .main-nav.is-open {
        transform: translateX(0);
    }
    .main-nav > ul {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        align-items: stretch;
        list-style: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .main-nav > ul > li {
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        list-style: none;
    }
    .main-nav > ul > li > a {
        display: flex;
        padding: 1rem 0;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--c-border);
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--c-teal-dark);
        width: 100%;
        box-sizing: border-box;
        text-decoration: none;
    }
    .main-nav > ul > li.has-sub > a::after {
        content: "+";
        font-size: 1.4rem;
        font-weight: 400;
        color: var(--c-orange);
        transition: transform 0.2s;
    }
    .main-nav > ul > li.has-sub > a .caret { display: none; }
    .main-nav > ul > li.has-sub.is-open > a::after { content: "−"; }

    /* Mobile drawer: active link highlight */
    .main-nav > ul > li.is-active > a {
        color: var(--c-orange);
        background: var(--c-cream-light);
        padding-left: 0.75rem;
        margin: 0 -0.75rem;
        border-radius: 4px;
    }
    .main-nav > ul > li.is-active > a::after { display: none; }

    .sub-panel,
    .sub-panel.four-col {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        border: 0 !important;
        background: var(--c-cream-light);
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        display: none;
        grid-template-columns: 1fr;
        padding: 0.5rem !important;
        margin: 0 !important;
        gap: 0.35rem;
        border-radius: 0;
        box-sizing: border-box;
    }
    .main-nav > ul > li.is-open .sub-panel,
    .main-nav > ul > li.is-open .sub-panel.four-col {
        display: block;
    }
    .sub-panel a {
        display: block !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.75rem 0.85rem;
        margin: 0 0 0.35rem;
        background: #fff;
        border-radius: 6px;
        text-decoration: none;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        text-align: left;
    }
    .sub-panel a:last-child { margin-bottom: 0; }
    .sub-panel a strong {
        display: block;
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
        color: var(--c-orange);
    }
    .sub-panel a span:not(.sub-icon) {
        display: block;
        font-size: 0.8rem;
        color: var(--c-muted);
        line-height: 1.4;
    }
    .sub-panel .sub-icon {
        display: inline-block;
        margin-bottom: 0.35rem;
    }
    .sub-panel-footer {
        display: block !important;
        margin: 0.5rem 0 0 !important;
        padding: 0.75rem !important;
        background: var(--c-orange) !important;
        color: #fff !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        text-align: center !important;
    }

    /* Body scroll lock when drawer is open */
    body.menu-open { overflow: hidden; position: relative; }

    /* Hero */
    .hero-banner { padding: 3.5rem 0 4rem; }
    .hero-title { font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.2; }
    .hero-eyebrow { font-size: 0.75rem; padding: 0.3rem 0.85rem; margin-bottom: 1rem; }
    .hero-body { font-size: 0.95rem; line-height: 1.6; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 0.65rem; }
    .hero-buttons .btn { text-align: center; width: 100%; }
    .btn-lg { padding: 0.8rem 1.5rem; font-size: 0.95rem; }

    /* Sections */
    .section { padding: 3rem 0; }
    .section-heading { font-size: 1.5rem; }
    .section-subheading { font-size: 0.95rem; margin-bottom: 2rem; }
    .part-heading { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 1rem; }
    .part-intro { font-size: 0.95rem; margin-bottom: 2rem; }

    /* Stats */
    .stats { padding: 2rem 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .stat-number { font-size: 2.25rem; }
    .stat-label { font-size: 0.9rem; }

    /* Two-column → stack */
    .two-col, .turnkey, .cost-containment { grid-template-columns: 1fr; gap: 1.75rem; }
    .two-col.reverse > div:first-child { order: 0; }
    .cta-image img { aspect-ratio: 16/10; }

    /* Cards */
    .plan-cards, .plan-cards.three-col { grid-template-columns: 1fr; gap: 1rem; }
    .plan-card { padding: 1.5rem 1.25rem; }
    .expertise-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .expertise-card { padding: 1.5rem 1.25rem; }
    .team-grid, .contact-cards { grid-template-columns: 1fr; gap: 1rem; }
    .values-grid, .vm-grid { grid-template-columns: 1fr; gap: 1rem; }
    .career-areas { grid-template-columns: 1fr; gap: 1rem; }
    .training-grid { grid-template-columns: 1fr; gap: 1rem; }
    .format-grid { grid-template-columns: 1fr; gap: 1rem; }
    .error-404 { padding: 3rem 0 4rem; min-height: 60vh; }
    .error-links-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-lightbox { padding: 1rem; }
    .gallery-lightbox-prev,
    .gallery-lightbox-next { width: 40px; height: 40px; }
    .gallery-lightbox-prev { left: 0.5rem; }
    .gallery-lightbox-next { right: 0.5rem; }
    .error-search .search-row { flex-direction: column; }
    .error-search .btn { width: 100%; }
    .error-actions { flex-direction: column; }
    .error-actions .btn { width: 100%; }
    .advantage-grid { grid-template-columns: 1fr; gap: 1rem; }
    .industries-grid { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .logo-cloud { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .break-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }

    /* Service blocks */
    .service-block { grid-template-columns: 1fr; gap: 0.5rem; }
    .service-number { font-size: 3rem; }
    .service-content h2 { font-size: 1.4rem; }
    .service-grid { grid-template-columns: 1fr; gap: 1rem; }
    .service-list-box { padding: 1.25rem 1.25rem; }
    .feature-list.two-col-list { grid-template-columns: 1fr; }

    /* Gold callout / cost-containment */
    .gold-box { padding: 1.75rem 1.25rem; }
    .gold-box h3 { font-size: 1.25rem; }
    .cc-icon { padding: 2rem 1.25rem; }
    .cc-icon-circle { width: 90px; height: 90px; font-size: 2rem; }

    /* Diagram (turnkey solutions) */
    .diagram { max-width: 280px; }
    .diagram-node { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
    .diagram-center { font-size: 0.85rem; }

    /* Testimonial band */
    .testimonial-band { padding: 2.5rem 0; }
    .testimonial-band blockquote { font-size: 1rem; }

    /* FAQ */
    .faq-section { padding: 3rem 0; }
    .faq-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .faq-item { padding: 0.85rem 1rem; }

    /* Forms */
    .contact-form { padding: 1.5rem 1.25rem; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0.85rem; }
    .contact-form input,
    .contact-form select,
    .contact-form textarea { font-size: 1rem; padding: 0.7rem 0.85rem; }

    /* Jobs */
    .job-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 1rem 1.25rem; }
    .job-cta { margin-left: 0; }

    /* Resume CTA */
    .resume-cta { flex-direction: column; align-items: flex-start; gap: 0.85rem; padding: 1.25rem; }

    /* Compare cards */
    .compare-card-img { height: 140px; font-size: 0.85rem; }

    /* Final CTA */
    .final-cta { padding: 3rem 0; }
    .final-cta h2 { font-size: 1.5rem; }
    .final-cta .hero-buttons { justify-content: stretch; }

    /* Footer */
    .site-footer { padding: 3rem 0 1.5rem; }
    .footer-grid,
    .footer-grid-aeronexis {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    .footer-brand-col { grid-column: auto; padding-right: 0; }
    .footer-brand-col .aeronexis-logo { gap: 0.65rem !important; }
    .footer-brand-col .footer-logo-mark {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px;
        max-width: 42px;
    }
    .footer-brand-col .footer-logo-mark svg {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    .footer-brand-col .aeronexis-logo .brand-name {
        font-size: 1.25rem !important;
        white-space: nowrap;
    }
    .footer-brand-col .brand-tagline { max-width: 100%; font-size: 0.92rem; }
    .footer-col h4 {
        font-size: 1.05rem !important;
        margin-bottom: 0.85rem !important;
        white-space: nowrap;
    }
    .footer-col ul li { margin-bottom: 0.5rem !important; }
    .footer-col a {
        font-size: 0.95rem !important;
        white-space: normal;
        display: inline-block;
    }
    .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; gap: 0.5rem; }
    .footer-brand { grid-column: auto; justify-content: flex-start; margin-top: 0; }

    /* Blog */
    .latest-posts-head { flex-direction: column; align-items: flex-start; }
    .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .post-hero { min-height: 280px; padding: 3rem 0 2.5rem; }
    .post-content { font-size: 1rem; }
    .post-content h2 { font-size: 1.4rem; }
    .post-content h3 { font-size: 1.2rem; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-link.next { text-align: left; }

    /* Tap-friendly touch targets */
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- Phone ---- */
@media (max-width: 480px) {
    .container { padding: 0 0.85rem; }

    /* Top bar - hide the small button on tiny screens */
    .top-bar-text { font-size: 0.8rem; }
    .top-bar-btn { font-size: 0.75rem; padding: 0.35rem 0.85rem; }

    /* Header - tighten */
    .aeronexis-header-logo .logo-mark-svg { width: 34px; height: 34px; }
    .aeronexis-header-logo .brand-name { font-size: 0.9rem; }
    .aeronexis-header-logo .brand-sub { font-size: 0.5rem; }

    /* Hero */
    .hero-banner { padding: 3rem 0 3.5rem; }
    .hero-title { font-size: 1.5rem; line-height: 1.25; }
    .hero-body { font-size: 0.9rem; }

    /* Sections tighter */
    .section { padding: 2.5rem 0; }
    .section-heading, .part-heading { font-size: 1.4rem; }
    .stat-number { font-size: 2rem; }

    /* Cards - tighter padding */
    .plan-card, .expertise-card, .career-area, .value-card, .contact-card { padding: 1.25rem 1rem; }
    .vm-card { padding: 1.75rem 1.25rem; }
    .vm-card h3 { font-size: 1.35rem; }
    .gold-box { padding: 1.5rem 1rem; }

    /* Service number - smaller */
    .service-number { font-size: 2.5rem; }
    .service-content h2 { font-size: 1.25rem; }

    /* Logo cloud - single column on tiny phones */
    .logo-cloud { grid-template-columns: 1fr; }

    /* Testimonial band */
    .testimonial-band blockquote { font-size: 0.95rem; }
    .testimonial-band { padding: 2rem 0; }

    /* Final CTA */
    .final-cta h2 { font-size: 1.35rem; }
    .final-cta p { font-size: 0.9rem; }

    /* Form labels and inputs */
    .contact-form { padding: 1.25rem 1rem; }

    /* Footer */
    .footer-brand-col .aeronexis-logo { flex-direction: row; align-items: center; }
    .footer-bottom { font-size: 0.8rem; }

    /* Buttons - full width-ish for thumb reach */
    .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.85rem 1.5rem; }
}

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