/* ============================================
   GKN Foods — Mobile-first polish (≤767px)
   Loaded last — overrides tablet/multi-column rules
   ============================================ */
@media (max-width: 767px) {

    /* ---- Mobile header: always show GKN FOODS ---- */
    .logo-text {
        display: inline !important;
    }

    .logo-container a {
        max-width: calc(100vw - 60px);
    }

    .mobile-menu-btn {
        flex-shrink: 0;
    }

    /* Single-column cards (one by one) ---- */
    .equal-height-grid,
    .service-list-grid,
    .outlets-grid,
    .careers-benefits,
    .contact-quick-strip,
    .about-mission-grid,
    .directors-grid,
    .stats-strip,
    .gallery-grid,
    .outlets-expansion-types,
    .form-grid-auto,
    .form-grid-2,
    .contact-page-grid,
    .partnership-page-grid,
    .partnership-benefits-grid,
    .partnership-process-steps,
    .outlets-expansion-box,
    .outlets-partnership-box,
    .outlet-map-grid,
    .about-grid,
    .service-grid {
        grid-template-columns: 1fr !important;
    }

    .masonry-grid {
        column-count: 1 !important;
    }

    .equal-card,
    .service-card-detailed,
    .outlet-card,
    .director-card,
    .job-card {
        width: 100%;
        min-height: auto;
    }

    .equal-card {
        padding: 1.75rem 1.35rem;
    }

    .stagger-item,
    .equal-card,
    .service-card-detailed {
        margin-bottom: 0;
    }

    .equal-height-grid,
    .service-list-grid,
    .stagger-container {
        gap: 1.25rem !important;
    }

    /* Stats — stack vertically */
    .stats-strip {
        padding: 1.5rem 1.15rem !important;
        margin-top: -1.5rem !important;
        gap: 0 !important;
    }

    .stat-item {
        padding: 1rem 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item::after,
    .stat-item:nth-child(odd)::after,
    .stat-item:nth-child(1)::after,
    .stat-item:nth-child(3)::after {
        display: none !important;
    }

    /* Sections & spacing */
    .section-padding {
        padding: 3.5rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1.1rem;
    }

    /* Hero */
    .hero-grid {
        gap: 2rem;
    }

    .hero-image {
        height: min(52vw, 300px);
    }

    .hero-rotating-text {
        height: clamp(88px, 22vw, 120px);
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    /* Overlap / split sections */
    .overlap-grid {
        flex-direction: column;
        gap: 1.75rem;
    }

    .overlap-image img,
    .overlap-img {
        height: 240px;
    }

    .overlap-content {
        padding: 0 !important;
    }

    /* Partnership / CTA rows */
    .outlets-partnership-actions {
        flex-direction: column;
        width: 100%;
    }

    .outlets-partnership-actions .btn-primary,
    .outlets-partnership-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Outlet card body */
    .outlet-card-body {
        padding: 1.5rem 1.25rem;
    }

    .outlet-card-image {
        height: 220px;
    }

    .outlet-menu-tags {
        flex-direction: column;
        align-items: stretch;
    }

    .outlet-menu-tags span {
        justify-content: center;
    }

    /* Map */
    .outlet-map-info {
        padding: 1.5rem;
    }

    .outlet-map-frame iframe {
        min-height: 260px;
    }

    /* Forms */
    .premium-form-container {
        padding: 1.35rem 1.15rem;
    }

    .careers-form-wrap {
        max-width: 100%;
    }

    /* Masonry / gallery */
    .masonry-item {
        margin-bottom: 1rem;
    }

    .gallery-item {
        aspect-ratio: 16 / 10;
    }

    /* Inner page hero */
    .inner-page-hero {
        min-height: 140px;
        padding: 1.25rem 0 1.75rem;
    }

    .inner-page-hero h1 {
        font-size: 1.65rem;
    }

    .breadcrumb-list {
        max-width: 100%;
    }

    /* About mission cards */
    .about-mission-card {
        padding: 2rem 1.35rem;
    }

    /* School banner */
    .school-name-banner {
        padding: 1.15rem 1.25rem;
    }

    .school-name-title {
        font-size: 1.35rem;
    }

    /* Back to top — clear thumb zone */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    /* Partnership showcase */
    .partnership-audience-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem;
    }

    .partnership-audience-card {
        padding: 1.15rem 0.85rem;
    }

    .partnership-showcase {
        padding: 1.75rem 1.25rem;
    }

    .partnership-showcase-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.35rem 1.15rem;
    }

    .partnership-cta-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 0;
    }

    .partnership-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .partnership-hub-shell {
        padding: 1.65rem 1.15rem;
    }

    .partnership-benefit-card {
        padding: 1.25rem 1.1rem;
    }

    .partnership-process-block {
        padding: 1.25rem 1rem;
    }

    .partnership-audience-pills {
        gap: 0.5rem;
    }

    .partnership-audience-pills span {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
    }

    .partnership-hub-cta .btn-primary {
        width: 100%;
    }

    .outlet-main-title {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    .outlet-running-banner {
        padding: 0.75rem 1rem;
    }

    .outlet-fssai-badge {
        flex-direction: column;
        text-align: center;
    }

    .company-compliance-strip {
        grid-template-columns: 1fr;
    }

    .outlet-brand-title {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }

    .outlet-running-banner-compact {
        text-align: center;
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 390px) {
    .hero-text-item {
        font-size: 1.85rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .logo-container img {
        height: 52px;
    }

    .logo-text {
        font-size: 0.88rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 0.9rem;
    }

    .logo-text {
        font-size: 0.82rem;
    }
}
