/* ================================================================
   GLOBAL RESPONSIVE FIXES — desktop untouched, mobile/tablet fixed
   ================================================================ */

/* ---------- Hero heading (Design.css/hero.css na .hero-title) ---------- */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 42px !important;
        line-height: 1.2 !important;
        margin-top: 24px !important;
        padding: 0 12px;
    }
    .hero-description {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-top: 20px !important;
        padding: 0 12px;
    }
    .hero-badge {
        font-size: 11px !important;
        padding: 10px 18px !important;
        letter-spacing: 2px !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 30px !important;
        line-height: 1.25 !important;
    }
    .hero-description {
        font-size: 14px !important;
    }
}

/* ---------- Services section cards ---------- */
@media (max-width: 1023px) {
    #services { padding-top: 40px; padding-bottom: 40px; }
    #services h2 { font-size: 30px !important; margin-bottom: 32px !important; }
    #services .reveal-card { height: 420px !important; }
}

@media (max-width: 640px) {
    #services h2 { font-size: 24px !important; }
    #services .reveal-card { height: 340px !important; }
}

/* ---------- Media section heading/stats ---------- */
@media (max-width: 1023px) {
    #media { padding-top: 50px; padding-bottom: 50px; }
    #media h2 { font-size: 30px !important; }
    #media p { font-size: 15px !important; line-height: 1.6 !important; }
}

@media (max-width: 640px) {
    #media h2 { font-size: 24px !important; }
}

/* Stats row */
@media (max-width: 1023px) {
    .max-w-6xl.grid.grid-cols-2.md\:grid-cols-5 {
        gap: 24px !important;
    }
    .max-w-6xl.grid.grid-cols-2.md\:grid-cols-5 h3 {
        font-size: 26px !important;
    }
    .max-w-6xl.grid.grid-cols-2.md\:grid-cols-5 p {
        font-size: 13px !important;
    }
}

/* ---------- Contact section heading/text ---------- */
@media (max-width: 640px) {
    #contact-section { padding-left: 12px; padding-right: 12px; }
    #contact-section .gt-heading { font-size: 30px !important; line-height: 1.15 !important; }
}

/* ---------- Contact cards (call/email/whatsapp/location) ---------- */
@media (max-width: 640px) {
    [data-reveal="cards"] .contact-card {
        padding: 16px !important;
        gap: 10px !important;
    }
    [data-reveal="cards"] .card-icon {
        width: 38px !important;
        height: 38px !important;
    }
    [data-reveal="cards"] .card-value {
        font-size: 13px !important;
        word-break: break-word;
    }
    [data-reveal="cards"] .card-label {
        font-size: 10px !important;
    }
}

/* ---------- Contact form fields ---------- */
@media (max-width: 640px) {
    .contact-card.bg-white\/5 { padding: 20px !important; }
    .form-input { font-size: 14px !important; padding: 16px 12px 6px !important; }
}



/* ---------- Section-level padding/margin ghatado ---------- */
@media (max-width: 1023px) {
    #media {
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }
    .max-w-6xl.grid.grid-cols-2.md\:grid-cols-5 {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    #services {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }
    #contact-section {
        padding-top: 50px !important;
    }
}

@media (max-width: 640px) {
    #media {
        padding-top: 24px !important;

    }
    .max-w-6xl.grid.grid-cols-2.md\:grid-cols-5 {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        gap: 16px 24px !important;
    }
}

/* ================= SERVICES MOBILE (2 CARDS) ================= */

@media (max-width: 767px) {

    #services .reveal-card {
        height: 230px !important;
        position: relative;
    }

    /* ✅ Default: chhota title bar niche dekhay (clean, minimal) */
    #services .card-title-bar {
        display: flex !important;
        position: absolute;
        left: 0; right: 0; bottom: 0;
        padding: 10px !important;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
        transition: opacity .3s ease;
    }

    #services .card-title-bar h3 {
        font-size: 13px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
    }

    /* ✅ Full overlay - default HIDDEN, matra 'tapped' class hoy tyare j dekhay */
    #services .card-overlay {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 14px !important;
        background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.9) 100%);
        transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
    }

    /* ✅ Tap thay tyare full overlay dekhay, title-bar chhupai jay */
    #services .reveal-card.tapped .card-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .35s ease, transform .35s ease, visibility 0s;
    }

    #services .reveal-card.tapped .card-title-bar {
        opacity: 0;
        pointer-events: none;
    }

    #services .card-overlay h3 {
        font-size: 15px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }

    #services .card-overlay p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }
}
