/* =============================================================
   HM Wedding & Event Planners — Responsive Stylesheet
   Breakpoints: 1440 / 1280 / 1100 / 992 / 820 / 768 / 576 / 400
   ============================================================= */

/* ---------- Large desktop ---------- */
@media (max-width: 1440px) {
    .container { padding: 0 32px; }
    .hero-arrow--prev { left: 16px; }
    .hero-arrow--next { right: 16px; }
}

/* Below the container's max-width the hero panel reaches the content edge,
   so the arrows drop to the bottom corners instead of sitting on the panel. */
@media (max-width: 1344px) {
    .hero-arrow { top: auto; bottom: 24px; transform: none; }
}

@media (max-width: 1280px) {
    :root { --section-y: 80px; }

    .section-title { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }

    .about-grid { gap: 52px; }
    .why-grid { gap: 50px; }
    .card-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .service-group-title { font-size: .78rem; letter-spacing: .22em; }
    .footer-grid { grid-template-columns: 1.3fr .8fr 1fr 1.2fr; gap: 34px; }
}

/* Header fit: larger brand name + full navigation must never collide */
@media (max-width: 1320px) {
    .brand-name { font-size: 1.3rem; }
    .brand-tagline { font-size: .74rem; }
    .nav-link { padding: 0 12px; font-size: .84rem; }
    .nav-link::after { left: 12px; right: 12px; }
    .nav-cta { padding: 10px 18px; font-size: .78rem; }
}

@media (max-width: 1180px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 1100px) {
    :root { --section-y: 74px; }

    .nav-desktop { display: none; }
    .hamburger { display: flex; }

    .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 34px; }
    .journey::before { display: none; }
    .journey-step::before {
        content: "";
        position: absolute;
        top: 10px;
        left: -50%;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .5));
    }
    .journey-step:nth-child(4n + 1)::before { display: none; }

    .gallery-grid { columns: 2; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

/* ---------- Tablet landscape ---------- */
@media (max-width: 992px) {
    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 46px;
    }

    .about-media { max-width: 520px; margin: 0 auto; }
    .about-badge { right: -10px; }
    .why-media { max-width: 560px; margin: 0 auto; }
    .why-frame { aspect-ratio: 16 / 11; }

    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 46px; }
    .process::before { display: none; }

    .vm-grid { gap: 24px; }
    .vm-card { padding: 44px 30px; }

    .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; }
    .faq-media { max-width: 540px; }
    .faq-aside { text-align: center; }
    .faq-aside .gold-divider--left { margin-left: auto; margin-right: auto; }

    .service-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-form-wrap { padding: 34px 30px 38px; }

    /* Extra room so the floating WhatsApp / back-to-top buttons never sit on the credit line */
    .footer-bottom .footer-bottom-inner { padding-bottom: 78px; }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 820px) {
    :root {
        --section-y: 66px;
        --header-h: 112px;
    }

    body { font-size: 16px; }

    .hero { min-height: 580px; height: min(92vh, 810px); }
    .hero-title { font-size: clamp(1.85rem, 5vw, 2.5rem); }
    .hero-desc { font-size: 1rem; }
    .hero-arrow { width: 44px; height: 44px; }
    .hero-arrow--prev { left: 8px; }
    .hero-arrow--next { right: 8px; }
    .hero-dots { bottom: 24px; }

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

    .experience-media { aspect-ratio: 16 / 9; }
    .why-points { grid-template-columns: minmax(0, 1fr); }

    .review-card { padding: 40px 30px; }
    .review-text { font-size: 1.3rem; }

    .cta-final { padding: 72px 0; }
    .cta-final .cta-content { padding: 38px 26px 40px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    :root {
        --section-y: 56px;
        --header-h: 70px;
    }

    .container { padding: 0 20px; }

    /* Top bar is desktop / tablet only — hidden on mobile */
    .topbar { display: none; }
    /* Nothing to slide away on mobile, so the sticky navbar never shifts up */
    :root { --topbar-h: 0px; }

    /* Navbar */
    .navbar-inner { min-height: 64px; }
    .brand { min-height: 48px; gap: 11px; }
    .brand-mark { width: 46px; height: 46px; font-size: 1.2rem; }
    .brand-name { font-size: 1.1rem; letter-spacing: .01em; white-space: normal; }
    .brand-tagline { display: none; }
    .nav-cta { display: none; }
    .mobile-menu { padding-top: 88px; }

    /* Hero */
    .hero { min-height: 570px; height: 88vh; }
    .hero-content { padding-top: calc(var(--header-h) + 6px); }
    .hero-panel {
        display: block;
        max-width: 100%;
        padding: 28px 24px 30px;
        border-radius: 18px;
        /* Same dark glass as desktop — a light gradient here made the white
           hero copy completely invisible on mobile */
        background: rgba(4, 16, 31, .70);
    }
    .hero-kicker { font-size: .68rem; letter-spacing: .22em; margin-bottom: 14px; }
    .hero-title { font-size: clamp(1.7rem, 7.2vw, 2.2rem); margin-bottom: 16px; }
    .hero-desc { font-size: .97rem; margin-bottom: 26px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { min-height: 48px; padding: 12px 22px; font-size: .82rem; }
    .hero-arrow { display: none; }
    .hero-dots { bottom: 18px; gap: 8px; }
    .hero-dot { width: 24px; }
    .hero-dot.is-active { width: 36px; }

    .section-title { font-size: clamp(1.75rem, 7vw, 2.2rem); }
    .section-lead { font-size: .98rem; }
    .section-head { margin-bottom: 40px; }

    /* Backdrop chips behind the photo-backed headings, tightened for mobile */
    .reviews .section-head,
    .vm-section .section-head,
    .cta-heading { padding: 18px 20px 22px; border-radius: 16px; }

    .intro-text { font-size: 1rem; line-height: 1.8; }

    /* About */
    .about-frame { aspect-ratio: 4 / 5; }
    .about-badge { right: 12px; bottom: -18px; padding: 14px 20px; }
    .about-badge-mark { font-size: 1.6rem; }
    .about-points li { font-size: .95rem; }

    /* Cards */
    .card-grid--4,
    .card-grid--3,
    .card-grid--5,
    .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
    .card-body { padding: 22px 20px 26px; }
    .card-title { font-size: 1.35rem; }

    .service-group { margin-bottom: 46px; }
    .service-group-title {
        font-size: .72rem;
        letter-spacing: .16em;
        gap: 14px;
    }

    /* Experience */
    .experience-media { aspect-ratio: 4 / 3; margin-bottom: 40px; }
    .process-media { aspect-ratio: 16 / 10; margin-bottom: 46px; }
    .intro-media { margin-top: 34px; }
    .journey {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-left: 10px;
    }
    .journey::before {
        display: block;
        top: 8px;
        bottom: 26px;
        left: 20px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, rgba(201, 164, 92, .7), rgba(201, 164, 92, .18));
    }
    .journey-step {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        text-align: left;
        padding: 13px 0;
    }
    .journey-step::before { display: none; }
    .journey-dot { flex: 0 0 auto; }
    .journey-label { font-size: .88rem; }

    /* Process */
    .process { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
    .process-step { text-align: left; display: grid; grid-template-columns: 74px minmax(0, 1fr); column-gap: 20px; align-items: start; }
    .process-num { width: 74px; height: 74px; font-size: 1.45rem; margin: 0; grid-row: span 2; }
    .process-title { font-size: 1.42rem; margin-bottom: 4px; }
    .process-step p { margin: 0; max-width: none; }

    /* Gallery */
    .gallery-filters { gap: 8px; margin-bottom: 30px; }
    .filter-btn { padding: 8px 15px; font-size: .76rem; min-height: 42px; }
    .gallery-grid { columns: 2; column-gap: 14px; }
    .gallery-item { margin-bottom: 14px; }
    .gallery-caption { opacity: 1; transform: none; padding: 30px 12px 12px; }

    .lightbox { padding: 16px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 14px; right: 14px; }
    .lightbox-btn { width: 44px; height: 44px; }

    /* Reviews */
    .review-card { padding: 34px 22px; }
    .review-quote { font-size: 3.6rem; }
    .review-text { font-size: 1.16rem; }

    /* FAQ */
    .faq-toggle { font-size: 1.12rem; padding: 16px 18px; gap: 14px; min-height: 60px; }
    .faq-a { padding: 0 18px 18px; font-size: .94rem; }

    /* CTA */
    .cta-final { padding: 56px 0; }
    .cta-final .cta-content { padding: 32px 20px 34px; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { width: 100%; }

    /* Contact */
    .contact-info,
    .contact-form-wrap { padding: 26px 20px 30px; }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .service-checks { grid-template-columns: minmax(0, 1fr); }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    /* Footer */
    .site-footer { padding-top: 56px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 40px; }
    .footer-bottom .footer-bottom-inner { padding-top: 20px; padding-bottom: 78px; font-size: .82rem; }

    /* Floating buttons — keep clear of browser controls & each other */
    .float-wa {
        right: 14px;
        bottom: 24px;
        min-height: 52px;
        padding: 0 16px 0 14px;
    }
    .float-wa-label { display: none; }
    .float-wa svg { width: 26px; height: 26px; }
    .scroll-top { left: 14px; bottom: 16px; width: 46px; height: 46px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 576px) {
    .brand-text { max-width: none; }
    .brand-name { font-size: 1.04rem; }
    .gallery-grid { columns: 1; }
    .btn { width: auto; }
    .hero-actions .btn { flex: 1 1 auto; }
    .contact-actions { flex-direction: column; }
    .contact-actions .btn { width: 100%; }
    .section-cta { flex-direction: column; align-items: stretch; }
    .section-cta .btn { width: 100%; }
}

@media (max-width: 400px) {
    .container { padding: 0 18px; }
    .hero-panel { padding: 22px 18px 24px; border-radius: 16px; }
    .brand-name { font-size: 1rem; }
    .brand-mark { width: 42px; height: 42px; font-size: 1.1rem; }
    .mobile-menu { padding: 88px 22px 32px; }
    .hero { min-height: 500px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .vm-card { padding: 38px 22px; }
}

/* ---------- Touch device adjustments ---------- */
@media (hover: none) {
    .gallery-caption { opacity: 1; transform: none; }
    .card:hover { transform: none; }
    .btn:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}
