/**
 * Pure Sips Water - Responsive Styles
 * @package PureSipsWater
 */

/* ============================
   TABLET LANDSCAPE: 1100px and below
   ============================ */
@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-inner {
        grid-template-columns: 0.6fr 1.2fr 1fr;
        gap: 20px;
    }
}

/* ============================
   TABLET: 992px and below
   ============================ */
@media (max-width: 992px) {
    /* --- Hero: single column, centered --- */
    .hero-section {
        min-height: 520px;
        background-position: center center;
        padding: 30px 0 50px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        min-height: auto;
    }

    .hero-image-wrap {
        display: none;
    }

    .hero-text {
        align-items: center;
        padding: 0 10px;
    }

    .hero-brand-name {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

    .hero-brand-sub {
        font-size: 0.95rem;
    }

    .hero-text h1 {
        max-width: 500px;
        font-size: 1rem;
    }

    .hero-cta {
        align-items: center;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-cta-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .hero-features {
        align-items: center;
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-feature-item {
        font-size: 0.92rem;
        background: rgba(255,255,255,0.75);
        padding: 6px 14px;
        border-radius: 30px;
        backdrop-filter: blur(4px);
    }

    /* Other layout fixes */
    .why-inner { grid-template-columns: 1fr; }
    .why-image-wrap { display: none; }
    .map-inner { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-inner { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 35px; }
    .main-navigation { display: none; }
    .menu-toggle { display: flex !important; }
    .header-whatsapp-btn span { display: none; }
    .content-with-sidebar { grid-template-columns: 1fr; }

    /* Google Reviews — tablet star sizing */
    .pgr-stars svg      { width: 14px; height: 14px; }
    .pgr-card-stars svg { width: 10px; height: 10px; }
    .pgr-score          { font-size: 1.1rem; }
}

/* ============================
   MOBILE: 768px and below
   ============================ */
@media (max-width: 768px) {
    :root {
        --psw-header-height: 65px;
    }

    .section-pad { padding: 50px 0; }
    .section-pad-sm { padding: 35px 0; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .container { padding: 0 15px; }

    /* Hero - full image visible on mobile */
    .hero-section {
        background-size: contain;           /* full image, no crop            */
        background-position: top center;    /* image anchors to top of section */
        background-color: #dff0fb;          /* sky-blue fills sides/bottom gap */
        min-height: 50vw;                   /* section height matches image    */
        padding: 38vw 0 14px;              /* top gap matches image height    */
        align-items: flex-end;
    }

    .hero-content {
        padding: 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        min-height: auto;
    }

    .hero-image-wrap { display: none; }

    .hero-text {
        align-items: center;
        padding: 0 5px;
    }

    .hero-brand-logo {
        margin-bottom: 6px;
    }

    .hero-brand-name {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-brand-sub {
        font-size: 0.88rem;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .hero-text h1 {
        font-size: 0.95rem;
        max-width: 320px;
        margin-bottom: 16px;
    }

    .hero-cta {
        align-items: center;
        max-width: 200px;
        margin: 0 auto;
        gap: 7px;
    }

    .hero-cta-btn {
        padding: 7px 14px;
        font-size: 0.72rem;
        letter-spacing: 0.5px;
        gap: 5px;
        border-radius: 40px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    }

    .hero-cta-btn svg,
    .hero-cta-btn i {
        font-size: 0.82rem;
    }

    .hero-features {
        align-items: center;
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hero-feature-item {
        font-size: 0.82rem;
        background: rgba(255,255,255,0.8);
        padding: 5px 12px;
        border-radius: 30px;
    }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 30px; }

    /* Certifications */
    .cert-grid { grid-template-columns: 1fr 1fr; gap: 15px; }

    /* Process */
    .process-steps { grid-template-columns: 1fr; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }

    /* Testimonials */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* Products grid */
    .products-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Services grid */
    .services-grid { grid-template-columns: 1fr 1fr; gap: 15px; }

    /* Floating WhatsApp */
    .floating-whatsapp { bottom: 20px; right: 15px; }
    .floating-whatsapp a { width: 52px; height: 52px; }

    /* Buttons */
    .btn-lg { padding: 13px 26px; font-size: 0.95rem; }

    /* Map */
    .map-embed { height: 300px; }

    /* Page hero */
    .page-hero { padding: calc(var(--psw-header-height) + 30px) 0 35px; }
    .page-hero h1 { font-size: 1.7rem; }

    /* Posts grid */
    .posts-grid { grid-template-columns: 1fr; }

    /* Footer map */
    .footer-map { height: 120px; }

    /* ---- Google Reviews: mobile star sizing ---- */
    .pgr-stars svg      { width: 13px; height: 13px; }
    .pgr-card-stars svg { width: 10px; height: 10px; }
    .pgr-score          { font-size: 1rem; }
    .pgr-google-icon    { width: 24px; height: 24px; }
    .psw-google-reviews { padding: 12px; }
    .pgr-card           { padding: 8px; }
    .pgr-avatar         { width: 28px; height: 28px; font-size: 0.78rem; }

    /* ---- Mobile Hero CTA Bar ---- */
    /* 1. Hide original .hero-cta buttons inside hero section */
    .hero-cta { display: none !important; }

    /* 2. Show the mobile CTA bar between hero & services */
    .hero-mobile-cta-bar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 16px;
        background: rgba(255,255,255,0.96);
        border-top: 1px solid rgba(0,119,182,0.1);
        border-bottom: 1px solid rgba(0,119,182,0.1);
    }
    .hero-mobile-cta-bar .hero-cta-btn {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 70px;
        max-width: 105px;
        padding: 7px 6px;
        font-size: 0.58rem;
        letter-spacing: 0.3px;
        gap: 3px;
        border-radius: 40px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.12);
        justify-content: center;
    }
    .hero-mobile-cta-bar .hero-cta-btn svg,
    .hero-mobile-cta-bar .hero-cta-btn i {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
}

/* ============================
   SMALL MOBILE: 480px and below
   ============================ */
@media (max-width: 480px) {
    /* Hero - smallest screens: full image still visible */
    .hero-section {
        background-size: contain;
        background-position: top center;
        background-color: #dff0fb;
        min-height: 50vw;
        padding: 40vw 0 12px;
    }

    .hero-brand-name {
        font-size: 1.9rem;
    }

    .hero-brand-sub {
        font-size: 0.82rem;
    }

    .hero-text h1 {
        font-size: 0.9rem;
        max-width: 280px;
    }

    .hero-cta {
        max-width: 180px;
        gap: 6px;
    }

    .hero-cta-btn {
        padding: 6px 12px;
        font-size: 0.68rem;
        letter-spacing: 0.4px;
    }

    .hero-features {
        gap: 6px;
    }

    .hero-feature-item {
        font-size: 0.76rem;
        padding: 4px 10px;
    }

    /* Certs */
    .cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cert-card { padding: 20px 15px; }
    .cert-icon { font-size: 2rem; }

    /* Products / Services single column */
    .products-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }

    /* Stats */
    .hero-stats { gap: 12px; }
    .hero-stat-number { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.7rem; }

    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .section-header { margin-bottom: 30px; }
    .form-wrap { padding: 25px 20px; }
    .testimonial-card { padding: 20px; }
    .why-feature { padding: 15px; }
    .process-step .step-number { width: 55px; height: 55px; font-size: 1.2rem; }
    .footer-brand .site-title { font-size: 1.2rem; }
    .post-nav-grid { grid-template-columns: 1fr; }

    /* ---- Google Reviews: small mobile star sizing ---- */
    .pgr-stars svg      { width: 12px; height: 12px; }
    .pgr-card-stars svg { width: 9px;  height: 9px; }
    .pgr-score          { font-size: 0.95rem; }
    .pgr-google-icon    { width: 22px; height: 22px; }
    .pgr-count          { font-size: 0.68rem; }

    /* ---- Mobile Hero CTA Bar: small mobile ---- */
    .hero-mobile-cta-bar {
        gap: 5px;
        padding: 8px 8px;
    }
    .hero-mobile-cta-bar .hero-cta-btn {
        flex: 1 1 calc(33.333% - 4px);
        min-width: 60px;
        max-width: 95px;
        padding: 6px 5px;
        font-size: 0.54rem;
        letter-spacing: 0.2px;
        gap: 3px;
    }
    .hero-mobile-cta-bar .hero-cta-btn svg,
    .hero-mobile-cta-bar .hero-cta-btn i {
        width: 11px;
        height: 11px;
    }
}

/* ============================
   PRINT STYLES
   ============================ */
@media print {
    .floating-whatsapp,
    .header-actions,
    .menu-toggle,
    .mobile-menu-overlay,
    .mobile-menu-panel,
    .whatsapp-cta-section,
    .footer-social,
    .footer-seo-text {
        display: none !important;
    }

    #masthead {
        position: static;
        background: white !important;
        box-shadow: none !important;
    }

    .site-title a,
    .nav-menu a {
        color: #000 !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .page-hero {
        background: #eee !important;
        -webkit-print-color-adjust: exact;
    }

    .page-hero h1 {
        color: #000 !important;
    }
}