/* ========================================
   RESPONSIVE.CSS — Mobile-first overrides
   Breakpoints:
     default    = mobile (< 576px)
     576px+     = large phones
     768px+     = tablets portrait
     992px+     = tablets landscape / small laptops
     1200px+    = desktops
     1400px+    = large desktops
   ======================================== */

/* ── Base Reset ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; }
body {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/* ── Container ─────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) {
    .container { padding: 0 32px; }
}
@media (min-width: 1200px) {
    .container { padding: 0 40px; }
}

/* ══════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════ */

/* Mobile default: icons only + pill button */
.top-contact-bar {
    padding: 6px 0;
}

.top-contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    max-height: 44px;
}

.top-contact-left {
    display: none;
}

.top-contact-right {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
}

/* Hide email/phone text on mobile, show icons only */
.top-contact-link {
    font-size: 0;
    line-height: 0;
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-contact-link svg {
    width: 20px;
    height: 20px;
}

.btn-top-assessment {
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    white-space: nowrap;
}

/* Smart sticky: hide on scroll down */
.top-contact-bar {
    transition: transform 0.3s ease;
}
.top-contact-bar.bar-hidden {
    transform: translateY(-100%);
}

/* Tablet (768px+): show text */
@media (min-width: 768px) {
    .top-contact-bar .container {
        max-height: none;
    }
    .top-contact-link {
        font-size: 14px;
        line-height: 1.4;
    }
    .btn-top-assessment {
        font-size: 13px !important;
        padding: 8px 20px !important;
        border-radius: 6px !important;
    }
}

/* Desktop (992px+): full layout */
@media (min-width: 992px) {
    .top-contact-bar {
        padding: 12px 0;
    }
    .top-contact-link {
        font-size: 15px;
    }
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
}

/* Hide desktop nav below 992px */
.nav-menu {
    display: none;
}
@media (min-width: 992px) {
    .nav-menu {
        display: flex;
    }
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */

/* Mobile default */
.home-hero {
    padding: 32px 0 48px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Image first on mobile */
.hero-image-wrapper {
    order: 1;
}
.hero-content {
    order: 2;
}

.hero-image-card img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.hero-title-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    font-size: 1.75rem;
    line-height: 1.2;
    max-width: 100%;
    padding: 0;
    margin-top: 16px;
    text-align: center;
    color: #1B3358;
}

.hero-subheadline {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    text-align: center;
    margin: 16px 0;
}

.hero-services-list li {
    font-size: 16px;
    line-height: 2.2;
}

.hero-buttons {
    flex-direction: column;
    gap: 12px;
}

.btn-hero-primary,
.btn-hero-secondary {
    width: 100%;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet (768px+): 2 columns */
@media (min-width: 768px) {
    .home-hero {
        padding: 64px 0;
    }
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
    .hero-image-wrapper {
        order: 2;
    }
    .hero-content {
        order: 1;
    }
    .hero-title-overlay {
        font-size: 2.25rem;
        text-align: left;
    }
    .hero-subheadline {
        text-align: left;
    }
    .hero-image-card img {
        max-height: none;
        border-radius: 12px;
    }
    .hero-buttons {
        flex-direction: row;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: auto;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .home-hero {
        padding: 80px 0;
    }
    .hero-grid {
        gap: 60px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .hero-title-overlay {
        font-size: 3rem;
    }
}

/* ══════════════════════════════════════════
   TRUST BADGES / STATS
   ══════════════════════════════════════════ */

/* Mobile: 2x2 grid with card styling */
.trust-badges {
    background: #F5F6FA;
    padding: 40px 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.badge-item {
    flex-direction: column;
    gap: 6px;
    padding: 20px 16px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.badge-item.badge-with-icon {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.badge-number-large {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1B3358;
}

.badge-text,
.badge-text-small {
    font-size: 0.8rem;
    color: #666;
}

/* Tablet (768px+): 4 columns */
@media (min-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .badge-item {
        padding: 24px;
    }
    .badge-number-large {
        font-size: 1.6rem;
    }
}

/* Desktop: subtle hover */
@media (min-width: 992px) {
    .trust-badges {
        padding: 48px 0;
    }
    .badge-item {
        transition: transform 0.2s ease;
    }
    .badge-item:hover {
        transform: translateY(-2px);
    }
}

/* ══════════════════════════════════════════
   SERVICES SECTION ("What We Can Help With")
   ══════════════════════════════════════════ */

/* Mobile: single column */
.services-section {
    padding: 48px 0;
}

.services-heading {
    font-size: 1.5rem;
    text-align: center;
    color: #1B3358;
    margin-bottom: 24px;
}

.services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-card {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.service-card-title {
    font-size: 1.1rem;
}

/* Tablet (768px+): 2 columns */
@media (min-width: 768px) {
    .services-section {
        padding: 64px 0;
    }
    .services-heading {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop (992px+): 3 columns */
@media (min-width: 992px) {
    .services-section {
        padding: 80px 0;
    }
    .services-heading {
        font-size: 1.875rem;
        margin-bottom: 48px;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .service-card {
        padding: 32px;
    }
    .service-card-title {
        font-size: 1.25rem;
    }
}

/* ══════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════ */

/* Mobile: stacked */
.contact-section {
    padding: 48px 0;
}

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

.contact-column {
    padding: 32px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.contact-column:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 24px;
    color: #D5102B;
    margin-bottom: 8px;
}

.contact-title {
    font-size: 1.1rem;
}

.contact-text {
    font-size: 0.95rem;
    color: #555;
}

/* Tablet (768px+): 3 columns */
@media (min-width: 768px) {
    .contact-section {
        padding: 64px 0;
    }
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    .contact-column {
        border-bottom: none;
        padding: 24px;
    }
}

@media (min-width: 992px) {
    .contact-section {
        padding: 80px 0;
    }
    .contact-grid {
        max-width: 1200px;
        margin: 0 auto;
        gap: 48px;
    }
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

/* Mobile: accordion + stacked */
@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .footer-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0;
    }

    .footer-section:first-child {
        padding-bottom: 16px;
        margin-bottom: 8px;
        text-align: center;
    }

    .footer-section h4 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        margin: 0;
        font-size: 15px;
        user-select: none;
        -webkit-user-select: none;
    }

    .footer-section h4::after {
        content: '+';
        font-size: 1.25rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.5);
    }

    .footer-section.footer-open h4::after {
        content: '\2212';
    }

    .footer-section ul,
    .footer-section p:not(:first-of-type),
    .footer-section .footer-login {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .footer-section.footer-open ul,
    .footer-section.footer-open p:not(:first-of-type),
    .footer-section.footer-open .footer-login {
        max-height: 400px;
    }

    .footer-copyright {
        font-size: 12px;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

/* Tablet (768px+): 3 columns, no accordion */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px+): full layout */
@media (min-width: 992px) {
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ══════════════════════════════════════════
   TYPOGRAPHY SCALE
   ══════════════════════════════════════════ */

/* Mobile (default) */
h1, .h1 { font-size: 1.75rem; line-height: 1.2; }
h2, .h2 { font-size: 1.4rem; line-height: 1.2; }
h3, .h3 { font-size: 1.15rem; line-height: 1.3; }
body { font-size: 1rem; line-height: 1.6; }

@media (min-width: 768px) {
    h1, .h1 { font-size: 2.25rem; }
    h2, .h2 { font-size: 1.6rem; }
    h3, .h3 { font-size: 1.25rem; }
}

@media (min-width: 992px) {
    h1, .h1 { font-size: 2.75rem; }
    h2, .h2 { font-size: 1.875rem; }
    h3, .h3 { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════
   GLOBAL MOBILE BUTTONS
   ══════════════════════════════════════════ */
@media (max-width: 575px) {
    .btn, [class*="btn-hero"] {
        display: block;
        width: 100%;
        min-height: 48px;
        text-align: center;
    }
}

/* ══════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════ */
input, textarea, select {
    font-size: 16px; /* prevents iOS zoom */
}

/* ══════════════════════════════════════════
   iPAD SAFE AREAS
   ══════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
    .drawer-footer,
    .mobile-drawer .drawer-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .footer .footer-bottom {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ══════════════════════════════════════════
   TABLES (if any)
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ══════════════════════════════════════════
   IMAGES — Rounded on mobile
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
    .hero-image-card img,
    .service-card img,
    .event-listing-img {
        border-radius: 8px;
    }
}
