/* =========================================================
   PLANTARZ HEALTHCARE DISTRIBUTION LLC — SITE STYLES
   Color Guide:
   --navy   #0B1D3A  Primary Navy   - Headers, Nav, Footer
   --blue   #1E3A8A  Secondary Blue - Buttons, Links, Highlights
   --green  #28A745  Accent Green   - CTAs, Icons, Success
   --teal   #17A2B8  Supporting Teal- Sections, BG Accents
   --gray   #F4F6F8  Light Gray     - Backgrounds, Cards

   RESPONSIVE STRATEGY
   - Fluid type/spacing via clamp() so most sizes scale
     smoothly without needing a breakpoint at all.
   - Breakpoints (max-width, "cascade down" pattern):
       1200px  large desktop / wide layout tweaks
        992px  small desktop / laptop
        900px  tablet landscape (original breakpoint, kept)
        768px  tablet portrait / mobile nav switch
        576px  large phones
        400px  small phones
   ========================================================= */

:root {
    --navy: #0B1D3A;
    --blue: #1E3A8A;
    --green: #28A745;
    --teal: #17A2B8;
    --gray: #F4F6F8;
    --white: #FFFFFF;
    --text-dark: #1A2333;
    --text-muted: #5B6B82;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(11, 29, 58, 0.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg, video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.25;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all .2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px; /* touch target */
}

.btn-accent {
    background: var(--green);
    color: var(--white);
}

    .btn-accent:hover {
        background: #218838;
        transform: translateY(-2px);
    }

.btn-secondary {
    background: var(--blue);
    color: var(--white);
}

    .btn-secondary:hover {
        background: #16307a;
        transform: translateY(-2px);
    }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

    .btn-outline-light:hover {
        background: rgba(255,255,255,0.12);
    }

.btn-sm {
    padding: 9px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    padding: 8px 24px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-hours {
    color: var(--teal);
    font-weight: 600;
}

/* ===== HEADER / NAV ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(11,29,58,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* allow text truncation instead of overflow */
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(15px, 2.4vw, 18px);
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .logo-text small {
        display: block;
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 11px;
        color: var(--text-muted);
        letter-spacing: 0;
        white-space: normal;
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

    .main-nav a {
        font-weight: 600;
        font-size: 15px;
        color: var(--text-dark);
        padding: 6px 0;
        border-bottom: 2px solid transparent;
        transition: color .2s ease, border-color .2s ease;
    }

        .main-nav a:hover,
        .main-nav a.active {
            color: var(--blue);
            border-bottom-color: var(--green);
        }

.nav-cta.btn {
    border-bottom: none !important;
}

    .nav-cta.btn:hover {
        color: var(--white);
    }

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
}

    .nav-toggle-label span {
        width: 26px;
        height: 3px;
        background: var(--navy);
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
    padding: clamp(48px, 8vw, 80px) 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-block;
    background: rgba(40, 167, 69, 0.18);
    color: #7FE39A;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.eyebrow-dark {
    background: rgba(30, 58, 138, 0.1);
    color: var(--blue);
}

.hero-text h1 {
    color: var(--white);
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-text p {
    font-size: clamp(15px, 2vw, 17px);
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 28px);
    color: var(--teal);
}

.hero-stat span {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.hero-media-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: clamp(32px, 6vw, 48px) 24px;
    text-align: center;
}

.icon-lg {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.hero-media-card p {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
    background: var(--gray);
    border-bottom: 1px solid #E4E9EF;
}

.trust-strip-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
}

/* ===== SECTIONS ===== */
.section {
    padding: clamp(48px, 8vw, 80px) 0;
}

.section-alt {
    background: var(--gray);
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(32px, 5vw, 48px) auto;
}

    .section-heading h2 {
        font-size: clamp(24px, 4vw, 32px);
        margin: 12px 0;
    }

    .section-heading p {
        color: var(--text-muted);
    }

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== CARD GRID (Home Products Preview) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid #E9EDF2;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(11,29,58,0.12);
    }

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px auto;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== FEATURE GRID (Why Choose Us) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(23, 162, 184, 0.12);
    color: var(--teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-muted);
    font-size: 14.5px;
}

.feature-wide {
    margin-top: 32px;
    background: var(--white);
    border: 1px solid #E9EDF2;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--navy);
    color: var(--white);
    padding: clamp(40px, 7vw, 56px) 0;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(21px, 3.5vw, 26px);
    margin-bottom: 8px;
}

.cta-banner p {
    color: rgba(255,255,255,0.75);
}

/* ===== PAGE HEADER (Products / About / Contact) ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
    padding: clamp(44px, 8vw, 64px) 0;
    text-align: center;
}

    .page-header h1 {
        color: var(--white);
        font-size: clamp(26px, 5vw, 36px);
        margin: 10px 0 14px 0;
    }

    .page-header p {
        color: rgba(255,255,255,0.85);
        max-width: 560px;
        margin: 0 auto;
    }

/* ===== PRODUCTS PAGE ===== */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px 28px;
    border-radius: var(--radius);
}

.product-row-alt {
    background: var(--gray);
}

.product-icon {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    background: var(--navy);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.product-content h2 {
    font-size: clamp(19px, 3vw, 22px);
    margin-bottom: 8px;
}

.product-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ===== ABOUT PAGE ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.two-col-item h2 {
    font-size: clamp(20px, 3.5vw, 24px);
    margin-bottom: 14px;
}

.two-col-item p {
    color: var(--text-muted);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.contact-info h2, .contact-form-wrap h2 {
    font-size: clamp(20px, 3.5vw, 24px);
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(40, 167, 69, 0.12);
    color: var(--green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 14.5px;
}

.contact-item a:hover {
    color: var(--blue);
}

.contact-note {
    color: var(--teal);
    font-weight: 600;
    margin-top: 4px;
}

.contact-form-wrap {
    background: var(--gray);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 36px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        font-size: 13.5px;
        margin-bottom: 6px;
        color: var(--navy);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #D6DDE6;
        border-radius: 6px;
        font-family: var(--font-body);
        font-size: 16px; /* >=16px prevents iOS auto-zoom on focus */
        background: var(--white);
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--teal);
            box-shadow: 0 0 0 3px rgba(23,162,184,0.15);
        }

.map-section {
    line-height: 0;
}

    .map-section iframe,
    .map-section img {
        width: 100%;
        height: auto;
    }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

    .footer-logo .logo-mark {
        background: var(--green);
    }

    .footer-logo .logo-text {
        color: var(--white);
    }

        .footer-logo .logo-text small {
            color: rgba(255,255,255,0.6);
        }

.footer-brand p {
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-badge {
    color: var(--teal);
    font-weight: 600;
    font-size: 13.5px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col a {
    color: rgba(255,255,255,0.75);
    transition: color .2s ease;
}

    .footer-col a:hover {
        color: var(--green);
    }

.footer-contact li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

/* Utility for large images/media so they never force horizontal scroll */
table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* ---- Large desktop / wide screens: give the layout a bit
   more room and cap line lengths so text doesn't stretch ---- */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
}

/* ---- Laptop / small desktop ---- */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .hero-inner {
        gap: 36px;
    }

    .feature-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 28px;
    }
}

/* ---- Small laptop / large tablet landscape ---- */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: clamp(26px, 4.5vw, 36px);
    }

    .hero-media-card {
        padding: 36px 24px;
    }

    .contact-grid {
        gap: 36px;
    }

    .product-row {
        gap: 24px;
        padding: 28px 22px;
    }
}

/* ---- Tablet portrait (kept from original) ---- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-media-card {
        order: -1;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Mobile nav switch / tablet-to-phone ---- */
@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle-label {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 16px rgba(11,29,58,0.1);
        display: none;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
    }

        .main-nav a {
            width: 100%;
            padding: 10px 0;
        }

    .nav-toggle:checked ~ .main-nav {
        display: flex;
    }

    .nav-cta.btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 48px 0;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-row {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner .btn {
        width: 100%;
    }

    .section {
        padding: 48px 0;
    }

    .trust-strip-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ---- Large phones ---- */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .top-bar-inner {
        gap: 14px;
        padding: 8px 16px;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

        .hero-actions .btn {
            width: 100%;
            text-align: center;
        }

    .hero-stats {
        gap: 22px;
    }

    .hero-media-card {
        padding: 28px 18px;
    }

    .card {
        padding: 26px 18px;
    }

    .product-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .contact-form-wrap {
        padding: 22px;
    }

    .section-heading {
        margin-bottom: 28px;
    }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
    .logo-text {
        font-size: 14px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-stat strong {
        font-size: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Accessibility: respect reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
