/* ==========================================
   CLAWRITY - Main Stylesheet
   Property Legal Services Platform
   ========================================== */

/* CSS Variables */
:root {
    /* Brand colours */
    --primary-color: #fe6d32;
    --primary-dark:  #e05520;
    --primary-light: #fff4ee;

    /* Unified dark — replaces all #1a1a2e / #1a1a1a / #16213e / #2c3e50 */
    --dark:          #0f172a;
    --dark-mid:      rgba(255,255,255,0.07);  /* card bg on dark sections */

    /* Text */
    --text-color:    #1e293b;
    --text-light:    #64748b;

    /* Backgrounds */
    --bg-light:      #f8fafc;   /* subtle cool-white for alternate sections */
    --bg-warm:       #fff4ee;   /* warm orange-tint for chips / accents */
    --white:         #ffffff;

    /* UI */
    --border-color:  #e2e8f0;
    --border-radius: 10px;
    --box-shadow:    0 2px 12px rgba(15,23,42,0.08);
    --shadow-md:     0 8px 30px rgba(15,23,42,0.12);
    --transition:    all 0.25s ease;

    /* Status */
    --success: #16a34a;
    --danger:  #dc2626;
    --warning: #d97706;

    /* Semantic alias kept for compatibility */
    --secondary-color: var(--dark);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.65;

    --spacing-xs:  0.5rem;
    --spacing-sm:  1rem;
    --spacing-md:  1.5rem;
    --spacing-lg:  2rem;
    --spacing-xl:  3rem;
    --spacing-xxl: 4.5rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo img {
    height: 64px;
    width: auto;
}

/* ── Hamburger button ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.mobile-menu-toggle:hover { border-color: var(--primary-color); }

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animate to X */
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Main nav ── */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
    margin-left: 2rem;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-item > a {
    font-weight: 500;
    color: var(--text-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.nav-item > a:hover {
    color: var(--primary-color);
}

/* Chevron for dropdown items */
.nav-item.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23666'/%3E%3C/svg%3E") no-repeat center/contain;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-item.has-dropdown:hover > a::after,
.nav-item.has-dropdown.active > a::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23fe6d32'/%3E%3C/svg%3E");
}

/* ── Mega Menu ── */
.nav-item.has-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 12px;
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem;
    min-width: 480px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.nav-item.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Services mega menu: fluid equal columns ── */
.mega-menu--services {
    width: 860px;
    max-width: min(95vw, 1020px);
}

.mega-menu-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    column-gap: 0;
}

/* Each category column */
.mmcol {
    padding: 0 1.5rem 0 0;
    border-right: 1px solid #efefef;
}

.mmcol:last-child { border-right: none; padding-right: 0; }


h3.mmcol-heading,
.mmcol-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmcol-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmcol-list li a {
    color: var(--text-color);
    font-size: 0.8rem;
    display: block;
    padding: 0.32rem 0;
    transition: color 0.15s, padding-left 0.15s;
    line-height: 1.4;
}

.mmcol-list li a:hover {
    color: var(--primary-color);
    padding-left: 0.4rem;
}

/* ── Scoped overrides for the services mega menu ── */
.mega-menu.mega-menu--services h3.mmcol-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

.mega-menu.mega-menu--services .mmcol-list li a {
    font-size: 0.8rem;
    color: var(--text-color);
}

.mega-menu.mega-menu--services .mmcol-list li a:hover {
    color: var(--primary-color);
}

.mega-menu-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-btn {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.view-all-btn::after {
    content: '→';
    transition: transform 0.2s ease;
}

.view-all-btn:hover::after { transform: translateX(3px); }
.view-all-btn:hover { color: var(--primary-dark); }

/* ── Navigation Actions ── */
.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* Mobile overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary,
.btn-secondary,
.btn-text {
    padding: 0.78rem 1.6rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    letter-spacing: 0.01em;
    white-space: nowrap;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(254,109,50,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 18px rgba(254,109,50,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    color: var(--text-color);
    padding: 0.78rem 1rem;
    border-color: transparent;
    box-shadow: none;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
}

.hero-section.hero-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2.5rem 0;
    min-height: 580px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.65) 55%, rgba(15,23,42,0.35) 100%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-section.hero-with-bg .hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    display: block;
}

.hero-text h1 {
    font-size: 2.0rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    color: #fff;
}

.hero-section.hero-with-bg .hero-text h1 {
    font-size: 2.0rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #e2e8f0;
}

.hero-section.hero-with-bg .hero-text p {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #e2e8f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-section.hero-with-bg .hero-actions {
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-section.hero-with-bg .hero-stats {
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.stat-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */

.services-section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.service-card .service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.service-card .learn-more {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================
   CONTENT SECTIONS & SECTION LABELS
   ========================================== */

.content-section {
    padding: var(--spacing-xxl) 0;
}

.content-section.bg-light {
    background: var(--bg-light);
}

/* Consistent section label badge (orange pill above headings) */
.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}

/* On dark backgrounds */
.section-label--dark {
    background: rgba(254,109,50,0.18);
    color: var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Responsive grid utilities */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

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

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

.grid-3-2col {
    display: grid;
    grid-template-columns: 3fr 2fr;
}

.content-text h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.content-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.content-text ul {
    list-style: none;
    padding: 0;
}

.content-text ul li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.content-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

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

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */

.faq-answer {
    display: none;
}

.faq-answer.open {
    display: block;
}

.faq-question {
    position: relative;
    padding-right: 2.5rem !important;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
    content: '×';
}

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

/* ── Tablet: 2-col mega menu ── */
@media (max-width: 1100px) {
    .mega-menu--services { min-width: 580px; }
    .mega-menu-cols { grid-template-columns: repeat(2, 1fr); }

    .mmcol {
        padding-bottom: 1rem;
    }

    /* 2×2 grid: remove right border from even cols */
    .mmcol:nth-child(2n)  { border-right: none; padding-right: 0; }
    .mmcol:nth-child(2n+1):not(:last-child) { border-bottom: 1px solid #efefef; }
    .mmcol:nth-child(2n):not(:last-child)   { border-bottom: 1px solid #efefef; }
    .mmcol:last-child, .mmcol:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* ── Mobile: full-screen drawer ── */
@media (max-width: 768px) {
    .container,
    .header-container {
        padding: 0 1rem;
    }

    .logo img { height: 56px; }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Show overlay */
    /*.nav-overlay {
          display: block;
    }*/

    /* Drawer slides in from right */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 88vw);
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.25rem 2rem;
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
        z-index: 999;
        margin-left: 0;
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
        gap: 0;
    }

    .main-nav.active {
        right: 0;
    }

    /* Drawer header logo strip */
    .main-nav::before {
        content: 'Clawrity';
        display: block;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-color);
        padding-bottom: 1rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid var(--border-color);
    }

    /* Nav menu stacked */
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item > a {
        padding: 0.85rem 0.25rem;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 0.95rem;
        justify-content: space-between;
        min-height: 48px;
    }

    .nav-item > a:hover {
        background: transparent;
        color: var(--primary-color);
    }

    /* Chevron stays in mobile accordion */
    .nav-item.has-dropdown > a::after {
        flex-shrink: 0;
    }

    .nav-item.has-dropdown.active > a {
        color: var(--primary-color);
    }

    /* Mega menu — accordion on mobile */
    .mega-menu {
        position: static;
        min-width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        background: var(--bg-light);
        padding: 0.75rem 0 0.75rem 0.75rem;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    /* Block hover-open on mobile */
    .nav-item.has-dropdown:hover .mega-menu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
    }

    /* Open via JS .active class */
    .nav-item.has-dropdown.active .mega-menu {
        opacity: 1;
        visibility: visible;
        max-height: 1200px;
    }

    /* Stack columns vertically */
    .mega-menu-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mmcol {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0.75rem 0;
    }

    .mmcol--core {
        background: none;
        margin-left: 0;
    }

    .mmcol:last-child { border-bottom: none; }

    .mmcol-heading {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
    }

    .mmcol-list li a {
        font-size: 0.875rem;
        padding: 0.45rem 0.25rem;
        min-height: 44px;
    }

    .mega-menu-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    /* Nav actions */
    .nav-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-actions a,
    .nav-actions .btn-primary,
    .nav-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    /* Page layouts */
    .hero-content { grid-template-columns: 1fr; }
    .hero-section.hero-with-bg { min-height: auto; padding: 2rem 0; }
    .hero-section.hero-with-bg .hero-content { max-width: 100%; padding: 0 0.5rem; }
    .hero-text h1 { font-size: 1.9rem; letter-spacing: -0.01em; }
    .hero-section.hero-with-bg .hero-text h1 { font-size: 1.9rem; }
    .hero-text p  { font-size: 1rem; margin-bottom: 1.25rem; }
    .hero-actions { gap: 0.75rem; }
    .hero-stats   { gap: 1rem; margin-top: 1.5rem; }
    .stat-item    { font-size: 0.82rem; }
    .content-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-2col  { grid-template-columns: 1fr; }
    .grid-3col  { grid-template-columns: 1fr; }
    .grid-4col  { grid-template-columns: repeat(2, 1fr); }
    .grid-3-2col { grid-template-columns: 1fr; }
    .content-section { padding: 2.5rem 0; }
    .hero-section    { padding: 2.5rem 0; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .container, .header-container { padding: 0 0.875rem; }
    .logo img { height: 52px; }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-section.hero-with-bg .hero-text h1 { font-size: 1.5rem; }
    .hero-text p  { font-size: 0.95rem; }
    .grid-4col  { grid-template-columns: 1fr; }
    .btn-primary, .btn-secondary { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
    .section-header h2 { font-size: 1.5rem; }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
