/* ============================================================
   MCKENNA BROTHERS — MAIN STYLESHEET
   ============================================================

   TABLE OF CONTENTS
   1.  CSS Variables & Design Tokens
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Buttons & Links
   6.  Navigation
   7.  Hero Section
   8.  Marquee / Client Logos
   9.  Section: Services
   10. Section: About / Stats
   11. Section: News / Blog
   12. Section: Gallery
   13. Section: CTA Banner
   14. Section: Contact
   15. Footer
   16. Page: Single Post
   17. Page: Gallery Full
   18. Lightbox
   19. Forms
   20. Breadcrumbs
   21. Pagination
   22. Alerts / Flash Messages
   23. Animations & Keyframes
   24. Responsive (Tablet ≤ 1024px, Mobile ≤ 768px)
   ============================================================ */


/* ─────────────────────────────────────────────
   1. CSS VARIABLES & DESIGN TOKENS
───────────────────────────────────────────── */

:root {
    /* Brand colours */
    --red:           #CC0000;
    --red-dark:      #A50000;
    --red-light:     #E60000;
    --red-pale:      #FFF5F5;
    --yellow:        #F5C400;
    --yellow-light:  #FFF9E0;

    /* Neutrals */
    --black:         #111111;
    --dark:          #222222;
    --body:          #3D3D3D;
    --mid:           #6B6B6B;
    --light:         #9A9A9A;
    --border:        #E2E2E2;
    --bg:            #FFFFFF;
    --bg-alt:        #F6F6F6;
    --bg-dark:       #111111;
    --bg-darker:     #0A0A0A;

    /* Shadows */
    --shadow-xs:     0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);
    --shadow-red:    0 4px 24px rgba(204,0,0,0.22);

    /* Radius */
    --radius-sm:     4px;
    --radius:        8px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --radius-full:   9999px;

    /* Transitions */
    --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition:    0.22s var(--ease);
    --transition-md: 0.36s var(--ease);

    /* Layout */
    --max-width:     1320px;
    --nav-height:    76px;
    --section-pad:   100px;
    --section-pad-sm: 60px;

    /* Typography */
    --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
    --font-display:  'Barlow Condensed', 'Inter', sans-serif;
    --font-mono:     'JetBrains Mono', monospace;
}


/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
table { border-collapse: collapse; width: 100%; }


/* ─────────────────────────────────────────────
   3. TYPOGRAPHY
───────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem);   }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem;  }
h6 { font-size: 1rem;    }

p  { color: var(--body); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--dark); }
em     { font-style: italic; }

.text-red    { color: var(--red); }
.text-mid    { color: var(--mid); }
.text-light  { color: var(--light); }
.text-white  { color: #fff; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
}
.label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-heading { margin-bottom: 0.6rem; }
.section-sub      {
    font-size: 1.05rem;
    color: var(--mid);
    max-width: 520px;
    line-height: 1.7;
}
.section-sub.center { margin: 0 auto; }


/* ─────────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

section { position: relative; }

.section-pad { padding: var(--section-pad) 0; }
.section-pad-sm { padding: var(--section-pad-sm) 0; }

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

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4     { gap: 1rem; }
.gap-6     { gap: 1.5rem; }
.gap-8     { gap: 2rem; }

.bg-alt    { background: var(--bg-alt); }
.bg-dark   { background: var(--bg-dark); }
.bg-red    { background: var(--red); }


/* ─────────────────────────────────────────────
   5. BUTTONS & LINKS
───────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--red);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--red-pale);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-sm { padding: 9px 20px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 0.92rem; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--mid);
}
.btn-icon:hover { background: var(--red); color: #fff; border-color: var(--red); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--red);
    transition: gap var(--transition);
}
.link-arrow:hover { gap: 0.7rem; }
.link-arrow::after { content: '→'; }


/* ─────────────────────────────────────────────
   6. NAVIGATION
───────────────────────────────────────────── */

#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background var(--transition-md), box-shadow var(--transition-md);
}

#site-nav.transparent { background: transparent; }
#site-nav.scrolled    {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border), var(--shadow-xs);
}

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

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo-img {
    height: 38px;
    width: auto;
    display: block;
}
.footer-logo-img {
    height: 42px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.nav-logo-mark {
    width: 42px; height: 42px;
    background: var(--red);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nav-logo-mark span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -0.05em;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.nav-logo-text strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.01em;
}
.nav-logo-text span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
}

/* Nav logo image stays the same colour on both transparent and scrolled states */

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item { position: relative; }

/* Dropdown item is a flex row so link + chevron button sit side-by-side */
.nav-item--dropdown {
    display: flex;
    align-items: center;
}

/* Standalone chevron toggle button (desktop: decorative, mobile: accordion trigger) */
.nav-chevron {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px 6px 0;
    color: var(--dark);
    transition: color var(--transition);
    line-height: 1;
}
#site-nav.transparent .nav-chevron { color: rgba(255,255,255,0.88); }
.nav-item--dropdown:hover .nav-chevron { color: var(--red); }
.nav-item--dropdown:hover .chevron,
.nav-item--dropdown.dropdown-open .chevron { transform: rotate(180deg); }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    cursor: pointer;
    position: relative;
}
#site-nav.transparent .nav-link { color: rgba(255,255,255,0.88); }

/* Hover */
.nav-link:hover { color: var(--red); background: var(--red-pale); }

/* Active: bold red text + small dot — no underline */
.nav-link.active {
    color: var(--red);
    font-weight: 600;
    background: transparent;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--red);
}

/* Transparent nav (over dark hero) */
#site-nav.transparent .nav-link:hover  { color: #fff; background: rgba(255,255,255,0.1); }
#site-nav.transparent .nav-link.active {
    color: #fff;
    font-weight: 600;
    background: transparent;
}
#site-nav.transparent .nav-link.active::after { background: rgba(255,255,255,0.7); }

.chevron {
    width: 14px; height: 14px;
    transition: transform var(--transition);
    flex-shrink: 0;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;              /* flush with the nav item — no gap to cross */
    left: 50%;
    z-index: 1001;
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    /* 12px top padding acts as invisible hover bridge over the nav-height gap */
    padding: 12px 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    pointer-events: none;
}
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--body);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.nav-dropdown a:hover { background: var(--red-pale); color: var(--red); }
.nav-dropdown-icon {
    width: 28px; height: 28px;
    background: var(--bg-alt);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Nav right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-phone {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mid);
}
#site-nav.transparent .nav-phone { color: rgba(255,255,255,0.75); }

/* On transparent nav the hero background is dark/red — use white button for contrast */
#site-nav.transparent .nav-right .btn-primary {
    background: #fff;
    color: var(--red);
    border-color: #fff;
    font-weight: 700;
}
#site-nav.transparent .nav-right .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}
#site-nav.transparent .nav-toggle span { background: #fff; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─────────────────────────────────────────────
   7. HERO SECTION
───────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* Geometric background pattern */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(204,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204,0,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-red-shape {
    position: absolute;
    right: -100px;
    top: -10%;
    width: 55%;
    height: 120%;
    background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.9;
}

.hero-red-shape::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.hero-content { }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(204,0,0,0.15);
    border: 1px solid rgba(204,0,0,0.3);
    color: #FF6666;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-title em {
    font-style: normal;
    color: var(--red);
    position: relative;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 440px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat-num span { color: var(--red); }
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hero visual (right column) */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    isolation: isolate;
    outline: none;
}

/* Suppress focus outlines on purely presentational hero elements */
.hero-stats, .hero-stat, .hero-stat-num, .hero-stat-label,
.hero-visual, .hero-card, .hero-card-icon { outline: none; }

.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    width: 100%;
    max-width: 360px;
    transition: border-color var(--transition-md), transform var(--transition-md), background var(--transition-md);
}
.hero-card:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.1); transform: translateX(-4px); }

.hero-card-icon {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.85); /* icons always light on dark hero */
}
.hero-card h4 {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}
.hero-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.hero-card.featured {
    background: var(--red);
    border-color: rgba(255,255,255,0.15);
}
.hero-card.featured:hover { background: var(--red-dark); }
.hero-card.featured .hero-card-icon { color: rgba(255,255,255,0.95); }
.hero-card.featured h4,
.hero-card.featured p { color: rgba(255,255,255,0.9); }

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-scroll-line {
    width: 1px; height: 40px;
    background: rgba(255,255,255,0.5);
    transform-origin: top center;
    animation: scrollLine 2.4s ease-in-out infinite;
}


/* ─────────────────────────────────────────────
   8. MARQUEE / CLIENT LOGOS
───────────────────────────────────────────── */

.marquee-section {
    padding: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    overflow: hidden;
}

.marquee-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 32px 20px;
    text-align: center;
}
.marquee-header p {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light);
    margin: 0;
}

.marquee-track {
    padding-bottom: 36px;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* JS wraps both .marquee-content copies inside this animated element */
.marquee-inner {
    display: flex;
    will-change: transform;
    animation: marqueeScroll 32s linear infinite;
}
.marquee-track:hover .marquee-inner { animation-play-state: paused; }

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    border-right: 1px solid var(--border);
    height: 60px;
    flex-shrink: 0;
}

.marquee-logo {
    height: 32px;
    width: auto;
    max-width: 130px;
    filter: grayscale(1) opacity(0.5);
    transition: filter var(--transition-md);
    object-fit: contain;
}
.marquee-item:hover .marquee-logo { filter: grayscale(0) opacity(1); }

/* Text logo fallback */
.marquee-logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--light);
    white-space: nowrap;
    transition: color var(--transition);
}
.marquee-item:hover .marquee-logo-text { color: var(--dark); }


/* ─────────────────────────────────────────────
   9. SECTION: SERVICES
───────────────────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    transition: box-shadow var(--transition-md), border-color var(--transition-md), transform var(--transition-md);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-md);
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px; height: 52px;
    background: var(--red-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-bottom: 20px;
    transition: background var(--transition-md), color var(--transition-md);
}
.service-card:hover .service-icon { background: var(--red); color: #fff; }

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--mid);
    margin-bottom: 20px;
}
.service-card .link-arrow { font-size: 0.82rem; }

/* Services page alternating grid */
.service-grid {
    gap: 64px;
    align-items: center;
}


/* ─────────────────────────────────────────────
   10. SECTION: ABOUT / STATS
───────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}
.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.about-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #E8E8E8 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 3rem;
}

.about-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-red);
}
.about-badge strong {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}
.about-badge span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    display: block;
}

.about-content .label { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p  { color: var(--mid); margin-bottom: 16px; }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}
.about-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.about-feature-icon {
    width: 32px; height: 32px;
    background: var(--red-pale);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}
.about-feature-text strong { display: block; font-size: 0.88rem; color: var(--dark); margin-bottom: 2px; }
.about-feature-text span   { font-size: 0.82rem; color: var(--mid); }

/* Stats bar */
.stats-bar {
    background: var(--bg-dark);
    padding: 56px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat-item {
    text-align: center;
    padding: 24px;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.stat-number sup {
    font-size: 1.4rem;
    color: var(--red);
}
.stat-number .suffix { font-size: 1.8rem; color: var(--red); }
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}


/* ─────────────────────────────────────────────
   11. SECTION: NEWS / BLOG CARDS
───────────────────────────────────────────── */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-md), transform var(--transition-md);
    display: flex;
    flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.news-card-img {
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.news-card:hover .news-card-img img { transform: scale(1.04); }

.news-card-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #E5E5E5 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--border);
}

.news-card-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--light);
    margin-bottom: 12px;
}
.news-card-meta span { display: flex; align-items: center; gap: 4px; }
.news-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.3;
    transition: color var(--transition);
}
.news-card:hover h3 { color: var(--red); }
.news-card p {
    font-size: 0.875rem;
    color: var(--mid);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}
.news-card .link-arrow { margin-top: auto; }


/* ─────────────────────────────────────────────
   12. SECTION: GALLERY GRID
───────────────────────────────────────────── */

.gallery-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    justify-content: center;
}
.gallery-filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--mid);
    cursor: pointer;
    transition: all var(--transition);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.gallery-grid {
    columns: 3;
    column-gap: 20px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-md);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}


/* ─────────────────────────────────────────────
   13. SECTION: CTA BANNER
───────────────────────────────────────────── */

.cta-banner {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}
.cta-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cta-banner h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #fff;
    margin-bottom: 8px;
}
.cta-banner p {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    margin: 0;
}
.cta-banner-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
}


/* ─────────────────────────────────────────────
   14. SECTION: CONTACT
───────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.contact-info p { color: var(--mid); margin-bottom: 32px; }

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.contact-detail-icon {
    width: 44px; height: 44px;
    background: var(--red-pale);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--red);
}
.contact-detail-text strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--light);
    margin-bottom: 4px;
    font-weight: 600;
}
.contact-detail-text a, .contact-detail-text span {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
}
.contact-detail-text a:hover { color: var(--red); }

.contact-certifications {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.contact-certifications p {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--light);
    margin-bottom: 12px;
}
.cert-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cert-badge {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mid);
}

/* Contact form */
.contact-form-wrap {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}
.contact-form-wrap h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}
.contact-form-wrap > p {
    color: var(--mid);
    font-size: 0.9rem;
    margin-bottom: 28px;
}


/* ─────────────────────────────────────────────
   15. FOOTER
───────────────────────────────────────────── */

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

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social-link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
}
.footer-social-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--red); }
.footer-bottom-links { display: flex; gap: 24px; }


/* ─────────────────────────────────────────────
   16. PAGE: SINGLE POST
───────────────────────────────────────────── */

.post-header {
    padding: 120px 0 60px;
    background: var(--bg-dark);
    text-align: center;
}
.post-header .label { justify-content: center; margin-bottom: 20px; }
.post-header h1 {
    color: #fff;
    max-width: 760px;
    margin: 0 auto 20px;
}
.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }

.post-featured-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.post-body-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding: 60px 0 80px;
    align-items: start;
}

.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--body);
}
.post-content h2, .post-content h3 { margin: 2em 0 0.8em; }
.post-content p  { margin-bottom: 1.4em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.post-content li { margin-bottom: 0.4em; }
.post-content img { border-radius: var(--radius); margin: 2em 0; }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content blockquote {
    border-left: 4px solid var(--red);
    padding: 16px 24px;
    margin: 2em 0;
    background: var(--red-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--dark);
}

.post-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

.sidebar-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-card h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--light);
    margin-bottom: 16px;
}
.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.sidebar-post:last-child { border: none; margin: 0; padding: 0; }
.sidebar-post-thumb {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}
.sidebar-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    transition: color var(--transition);
}
.sidebar-post-title:hover { color: var(--red); }
.sidebar-post-date { font-size: 0.75rem; color: var(--light); margin-top: 4px; display: block; }


/* ─────────────────────────────────────────────
   18. LIGHTBOX
───────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-md);
    padding: 20px;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.lightbox-nav:hover { background: var(--red); border-color: var(--red); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }


/* ─────────────────────────────────────────────
   19. FORMS
───────────────────────────────────────────── */

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-label .req { color: var(--red); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--dark);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-select { cursor: pointer; }
.form-help { font-size: 0.78rem; color: var(--light); margin-top: 5px; }


/* ─────────────────────────────────────────────
   20. BREADCRUMBS
───────────────────────────────────────────── */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--light);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--mid); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border); }


/* ─────────────────────────────────────────────
   21. PAGINATION
───────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--mid);
    transition: all var(--transition);
    padding: 0 12px;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .active { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }


/* ─────────────────────────────────────────────
   22. ALERTS / FLASH MESSAGES
───────────────────────────────────────────── */

.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.alert-error   { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }


/* ─────────────────────────────────────────────
   23. ANIMATIONS & KEYFRAMES
───────────────────────────────────────────── */

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

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

@keyframes scrollLine {
    0%   { transform: scaleY(0); opacity: 0; }
    25%  { transform: scaleY(1); opacity: 1; }
    70%  { transform: scaleY(1); opacity: 0.6; }
    100% { transform: scaleY(1); opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}


/* ─────────────────────────────────────────────
   24. RESPONSIVE
───────────────────────────────────────────── */

/* Tablet */
/* Shrink nav link text + hide phone at mid-sizes */
@media (max-width: 900px) {
    .nav-phone { display: none; }
    .nav-link { padding: 8px 10px; font-size: 0.82rem; }
    .nav-inner { padding: 0 20px; }
    .nav-right { gap: 8px; }
}

@media (max-width: 1100px) {
    :root { --section-pad: 72px; }

    .hero-inner      { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual     { display: none; }
    .hero-red-shape  { width: 35%; clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 0% 100%); }

    .services-grid   { grid-template-columns: repeat(2, 1fr); }
    .about-grid      { gap: 48px; }
    .stats-grid      { grid-template-columns: repeat(2, 1fr); }
    .stats-grid .stat-item:nth-child(2) { border-right: none; }

    .news-grid       { grid-template-columns: repeat(2, 1fr); }
    .footer-top      { grid-template-columns: 1fr 1fr; gap: 36px; }

    .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
    .post-body-wrap  { grid-template-columns: 1fr; }
    .post-sidebar    { position: static; }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --nav-height: 60px; --section-pad: 56px; --section-pad-sm: 40px; }

    .container { padding: 0 16px; }

    /* Nav */
    .nav-inner { padding: 0 16px; }
    .nav-links, .nav-right .nav-phone, .nav-right .btn { display: none; }
    .nav-toggle { display: flex; }

    /* Logo image scales down on narrow screens */
    .nav-logo-img { height: 30px; }

    /* Mobile open drawer */
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg);
        padding: 16px 16px 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        gap: 2px;
        align-items: stretch;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        z-index: 999;
    }

    /* Mobile nav links — full-width tap targets */
    .nav-links.mobile-open .nav-link {
        padding: 13px 14px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
        width: 100%;
        box-shadow: none;
    }
    /* Dropdown item: link fills width, chevron button on right */
    .nav-links.mobile-open .nav-item--dropdown {
        display: flex;
        align-items: center;
    }
    .nav-links.mobile-open .nav-item--dropdown .nav-link {
        flex: 1;
        width: auto;
    }
    .nav-links.mobile-open .nav-chevron {
        padding: 13px 12px;
        color: var(--mid);
        flex-shrink: 0;
    }
    .nav-item.dropdown-open > .nav-chevron .chevron {
        transform: rotate(180deg);
    }
    .nav-links.mobile-open .nav-link.active {
        color: var(--red);
        background: var(--red-pale);
        box-shadow: none;
    }
    /* Active link dot hidden in mobile drawer */
    .nav-links.mobile-open .nav-link.active::after { display: none; }

    /* Dropdown accordion: hidden by default, shown when .dropdown-open */
    .nav-dropdown {
        display: none;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        border-radius: 0;
        margin: 0 0 6px 16px;
        padding: 4px 0;
        pointer-events: auto;
        background: transparent;
        z-index: auto;
        min-width: 0;
    }
    .nav-item.dropdown-open > .nav-dropdown {
        display: flex;
        flex-direction: column;
    }
    .nav-dropdown a {
        padding: 10px 14px;
        font-size: 0.875rem;
        border-radius: var(--radius-sm);
        color: var(--mid);
    }
    .nav-dropdown a:hover { background: var(--red-pale); color: var(--red); }

    /* CTA button at bottom of mobile menu */
    .nav-mobile-cta { display: block !important; }

    /* Divider before CTA */
    .nav-mobile-divider { display: block !important; }

    /* Hero — let content dictate height, no dead space */
    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: var(--nav-height);
        padding-bottom: 0;
    }
    .hero-inner { padding: 36px 0 48px; gap: 28px; }
    .hero-red-shape { display: none; }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .hero-stat {
        padding: 16px 12px;
        border-right: 1px solid rgba(255,255,255,0.08);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .hero-stat:nth-child(even) { border-right: none; }
    .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
    .hero-stat-num { font-size: 1.6rem; }
    .hero-title { font-size: clamp(2.2rem, 8vw, 3.2rem); margin-bottom: 16px; }
    .hero-desc { font-size: 1rem; margin-bottom: 28px; }
    .hero-badge { margin-bottom: 16px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { flex: 1; justify-content: center; min-width: 0; }
    .hero-scroll { display: none; }

    /* Grids */
    .services-grid, .news-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { columns: 2; column-gap: 12px; }
    .gallery-filter-bar { gap: 8px; }
    .gallery-item { margin-bottom: 12px; }

    /* Stats bar */
    .stats-bar { padding: 40px 0; }
    .stat-number { font-size: 2.4rem; }
    .stat-item { padding: 16px 12px; }
    .stats-grid .stat-item:nth-child(even) { border-right: none; }
    .stats-grid .stat-item:nth-child(1),
    .stats-grid .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.07); }

    /* Services page grid — tighter gap, always content-first ordering */
    .service-grid { gap: 28px; }
    /* Odd sections (bg-alt) have features first in HTML; swap on mobile so content leads */
    .bg-alt .service-grid .reveal:first-child { order: 2; }
    .bg-alt .service-grid .reveal:last-child  { order: 1; }
    /* Shrink the features card padding on mobile */
    .service-grid [style*="border-radius:var(--radius-lg)"] { padding: 24px !important; }
    /* Services page hero */
    [style*="padding:140px 0 72px"] { padding: 110px 0 48px !important; }

    /* Services quick-nav */
    .services-quick-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* CTA Banner */
    .cta-banner { padding: 48px 0; }
    .cta-banner-inner { flex-direction: column; text-align: center; gap: 24px; }
    .cta-banner-actions { justify-content: center; flex-wrap: wrap; }
    .cta-banner-actions .btn { flex: 1 1 140px; justify-content: center; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
    .footer-bottom-links { justify-content: center; gap: 12px; flex-wrap: wrap; }
    .site-footer { padding-top: 48px; }

    /* Post */
    .post-header { padding: 90px 0 36px; }
    .post-header h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .post-body-wrap { padding: 32px 0 48px; gap: 32px; }
    .post-featured-img { width: 100%; height: auto; max-height: 260px; object-fit: cover; }

    /* Contact form */
    .contact-form-wrap { padding: 20px; border-radius: var(--radius); }

    /* About page */
    .about-img-placeholder { aspect-ratio: 3/2; }

    /* Section padding */
    .section-pad { padding: var(--section-pad) 0; }

    /* Images — prevent overflow */
    img, video, iframe { max-width: 100%; height: auto; }
    .post-content img { width: 100%; }
}

@media (max-width: 480px) {
    .gallery-grid { columns: 1; }
    .hero-actions { flex-wrap: wrap; }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .post-meta { flex-wrap: wrap; gap: 8px; font-size: 0.78rem; }
    .breadcrumb { font-size: 0.78rem; }
    /* Page hero headers — tighten on very small screens */
    [style*="padding:140px 0 72px"] { padding: 100px 0 48px !important; }
}
