/* ============================================
   APRO HYGIÈNE — MAQUETTE 1 — Page Styles
   ============================================ */

/* ============ PAGE BANNER ============ */
.page-banner {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--teal-soft) 100%);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 360px;
    height: 360px;
    background: var(--teal);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(60px);
}
.page-banner-inner {
    position: relative;
    text-align: center;
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.breadcrumb a { color: var(--teal); font-weight: 500; }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb .sep { color: var(--muted); opacity: 0.5; }
.breadcrumb .current { color: var(--navy); font-weight: 500; }

.page-banner h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    color: var(--navy);
    margin-bottom: 16px;
}
.page-banner p {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============ CATEGORIES PAGE ============ */
.cats-page { padding: 90px 0; }
.cats-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.cats-count {
    color: var(--navy);
    font-weight: 600;
}
.cats-count strong { color: var(--teal); }
.cats-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 4px 6px 4px 18px;
    min-width: 280px;
}
.cats-search input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 10px 0;
    font-family: inherit;
    font-size: 0.92rem;
}
.cats-search button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    transition: var(--transition);
}
.cats-search button:hover { background: var(--teal-dark); }

.cats-page .cat-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ============ PRODUCT DETAIL ============ */
.product-detail { padding: 80px 0; }
.pd-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}
.pd-gallery {
    position: sticky;
    top: 120px;
}
.pd-main-img {
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 520px;
    margin-bottom: 16px;
    overflow: hidden;
}
.pd-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.pd-thumb {
    background: var(--bg-soft);
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumb:hover, .pd-thumb.active { border-color: var(--teal); }

.pd-info {
    padding: 10px 0;
}
.pd-cat {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    background: var(--teal-light);
    border-radius: 50px;
    margin-bottom: 16px;
}
.pd-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 16px;
    color: var(--navy);
}
.pd-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.pd-rating .stars { color: var(--accent); }
.pd-rating span { color: var(--muted); font-size: 0.9rem; }

.pd-desc {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 1.02rem;
}

.pd-specs {
    background: var(--bg-soft);
    padding: 24px 28px;
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.pd-specs h4 {
    color: var(--navy);
    margin-bottom: 14px;
    font-size: 1rem;
}
.pd-specs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-specs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}
.pd-specs li:last-child { border-bottom: none; }
.pd-specs li strong { color: var(--navy); font-weight: 600; }
.pd-specs li span { color: var(--muted); }

.pd-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pd-actions .btn { flex: 1; min-width: 180px; }

.pd-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.pd-feat {
    text-align: center;
    padding: 8px;
}
.pd-feat i {
    color: var(--teal);
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.pd-feat strong {
    display: block;
    color: var(--navy);
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Related products */
.related-products { padding: 80px 0; background: var(--bg-soft); }

/* ============ ABOUT PAGE ============ */
.story {
    padding: 90px 0;
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.story-grid.reverse { direction: rtl; }
.story-grid.reverse > * { direction: ltr; }
.story-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-md);
}
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-text p {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 14px;
    line-height: 1.75;
}

.values {
    padding: 90px 0;
    background: var(--bg-soft);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.value-card {
    background: #fff;
    padding: 38px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: var(--transition);
    text-align: center;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 22px;
}
.value-card h3 { margin-bottom: 10px; color: var(--navy); }
.value-card p { color: var(--muted); font-size: 0.95rem; }

.stats-band {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
}
.stats-grid-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-band-item { text-align: center; }
.stat-band-item strong {
    display: block;
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Parkinsans', sans-serif;
}
.stat-band-item span { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }

.cta-band {
    padding: 80px 0;
    background: var(--bg-soft);
}
.cta-band-inner {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    background-image: radial-gradient(circle at top right, rgba(31, 169, 184, 0.25), transparent 60%);
}
.cta-band-inner h2 { color: #fff; max-width: 540px; }
.cta-band-inner p { color: rgba(255, 255, 255, 0.78); margin-top: 8px; }

/* ============ CONTACT PAGE ============ */
.contact-page { padding: 80px 0; }
.contact-page-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}
.contact-card-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.contact-card-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.cci-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.contact-card-item strong { color: var(--navy); display: block; margin-bottom: 4px; font-size: 1rem; }
.contact-card-item a, .contact-card-item span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.contact-card-item a:hover { color: var(--teal); }

.contact-map-full {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 480px;
    box-shadow: var(--shadow-md);
}
.contact-map-full iframe { width: 100%; height: 100%; border: none; }

/* ============ RESPONSIVE PAGES ============ */
@media (max-width: 1100px) {
    .cats-page .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .pd-grid, .story-grid, .contact-page-grid { grid-template-columns: 1fr; gap: 40px; }
    .pd-gallery { position: static; }
    .pd-main-img { height: 380px; padding: 24px; }
    .story-img { height: 320px; }
    .values-grid { grid-template-columns: 1fr; }
    .stats-grid-band { grid-template-columns: repeat(2, 1fr); }
    .cta-band-inner { padding: 40px 28px; flex-direction: column; text-align: center; }
    .page-banner { padding: 60px 0 50px; }
    .cats-page .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-features { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cats-page .cat-grid { grid-template-columns: 1fr; }
    .pd-thumbs { grid-template-columns: repeat(3, 1fr); }
    .cats-search { min-width: 100%; }
}

/* ============================================
   MEGA MENU — Categories dropdown
   ============================================ */

.nav-item-mega {
    position: static; /* mega menu spans the full container width */
}

.nav-link-mega {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}
/* Extend the trigger's effective hoverable area downward so the cursor
   can travel toward the dropdown without leaving the trigger first. */
.nav-link-mega::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
}
.mega-caret {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}
.nav-item-mega.open .mega-caret,
.nav-item-mega:hover .mega-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(31, 45, 61, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    /* Small close delay gives the cursor time to cross the gap to the panel */
    transition: opacity 0.25s ease 0.15s, transform 0.25s ease 0.15s, visibility 0s linear 0.4s;
    z-index: 50;
    pointer-events: none;
}
.nav-item-mega:hover .mega-menu,
.nav-item-mega:focus-within .mega-menu,
.nav-item-mega.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    /* Open immediately on enter */
    transition: opacity 0.25s ease 0s, transform 0.25s ease 0s, visibility 0s linear 0s;
}

/* Invisible hover bridge above the open panel: covers the visual gap between
   the trigger link and the dropdown so :hover stays active when traversing. */
.nav-item-mega:hover .mega-menu::before,
.nav-item-mega:focus-within .mega-menu::before,
.nav-item-mega.open .mega-menu::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: transparent;
    pointer-events: auto;
}

.mega-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px 24px 32px;
}

.mega-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 16px;
}
.mega-head h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-top: 6px;
}
.mega-summary {
    color: var(--muted);
    font-size: 0.92rem;
}
.mega-summary strong {
    color: var(--teal);
    font-weight: 700;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.mega-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.mega-cat:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
    transform: translateX(3px);
}
.mega-cat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.mega-cat:hover .mega-cat-icon {
    background: var(--teal);
    color: #fff;
}
.mega-cat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.mega-cat-text strong {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-cat-text small {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.mega-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 24px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.mega-footer .btn { padding: 11px 22px; font-size: 0.9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .mega-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    /* Inside the mobile nav drawer, behave like an accordion */
    .nav.open .nav-item-mega {
        width: 100%;
    }
    .nav.open .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border-top: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .nav.open .nav-item-mega.open .mega-menu {
        max-height: 1200px;
    }
    .nav.open .mega-inner {
        padding: 16px 0 8px;
    }
    .nav.open .mega-head {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    .nav.open .mega-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .nav.open .mega-footer {
        flex-direction: column;
    }
    .nav.open .mega-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .nav.open .mega-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ADMIN-ONLY: Edit product button (visible to logged-in editors)
   ============================================ */
.apro-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(31, 45, 61, 0.18);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: fit-content;
    max-width: 100%;
}
.apro-edit-btn:hover {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 169, 184, 0.32);
    color: #fff !important;
}
.apro-edit-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.apro-edit-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}
.apro-edit-text strong {
    font-weight: 600;
    font-size: 0.92rem;
}
.apro-edit-text small {
    opacity: 0.75;
    font-size: 0.72rem;
    margin-top: 2px;
}
.apro-edit-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.apro-edit-btn:hover .apro-edit-arrow {
    transform: rotate(15deg) scale(1.08);
}

/* ============================================
   CATEGORY SEO CONTENT BLOCK
   Rendered under the product grid on category archive pages —
   200+ words of Maroc/Casablanca-targeted keyword content.
   ============================================ */
.cat-seo-block {
    padding: 60px 0 90px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
    border-top: 1px solid var(--line);
}
.cat-seo-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.cat-seo-inner h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.25;
}
.cat-seo-inner > p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 36px;
}
.cat-seo-inner > p strong { color: var(--navy); font-weight: 600; }
.cat-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
.cat-seo-item {
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: var(--transition);
}
.cat-seo-item:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.cat-seo-item h3 {
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-seo-item h3 i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--teal-light);
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.cat-seo-item p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}
.cat-seo-item p strong { color: var(--navy); }
.cat-seo-cta {
    text-align: center;
    margin: 0;
}

@media (max-width: 900px) {
    .cat-seo-block { padding: 40px 0 70px; }
    .cat-seo-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================
   PRODUCT QUOTE REQUEST — MODAL
   ============================================ */
.apro-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.apro-quote-modal[hidden] { display: none !important; }
.apro-quote-modal.open   { display: flex; animation: aproFadeIn 0.25s ease; }

@keyframes aproFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aproSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.apro-quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 45, 61, 0.68);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.apro-quote-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(31, 45, 61, 0.28);
    max-width: 620px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px 34px 30px;
    animation: aproSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.apro-quote-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: none;
    color: var(--muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.apro-quote-close:hover {
    background: var(--navy);
    color: #fff;
    transform: rotate(90deg);
}

.apro-quote-head {
    text-align: center;
    margin-bottom: 22px;
    padding-right: 28px;
}
.apro-quote-head .eyebrow { margin-bottom: 10px; }
.apro-quote-head h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.25;
}
.apro-quote-head h3 .accent { color: var(--teal); }
.apro-quote-head p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}

/* Product preview strip */
.apro-quote-product {
    display: flex;
    gap: 14px;
    align-items: center;
    background: linear-gradient(180deg, var(--teal-light) 0%, #ffffff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 22px;
}
.apro-quote-product-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
}
.apro-quote-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.apro-quote-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.apro-quote-product-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--teal);
}
.apro-quote-product-info strong {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.apro-quote-product-ref {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

/* Form */
.apro-quote-form { display: flex; flex-direction: column; gap: 12px; }
.apro-quote-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.apro-quote-field { display: flex; flex-direction: column; gap: 5px; }
.apro-quote-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.apro-quote-field input,
.apro-quote-field textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}
.apro-quote-field input:focus,
.apro-quote-field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-light);
}
.apro-quote-field input:invalid:not(:placeholder-shown) {
    border-color: #E74C3C;
}
.apro-quote-hp { display: none !important; }

.apro-quote-submit {
    margin-top: 6px;
    position: relative;
}
.apro-quote-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.apro-quote-btn-loading i { margin-right: 6px; }

.apro-quote-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 4px 0 0;
}
.apro-quote-note i { color: var(--teal); margin-right: 4px; }

.apro-quote-result {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 8px;
}
.apro-quote-result.apro-quote-success {
    background: rgba(31, 169, 184, 0.1);
    color: var(--teal-dark);
    border: 1px solid rgba(31, 169, 184, 0.3);
}
.apro-quote-result.apro-quote-error {
    background: rgba(231, 76, 60, 0.08);
    color: #C0392B;
    border: 1px solid rgba(231, 76, 60, 0.28);
}

/* Body lock when modal open */
body.apro-quote-open { overflow: hidden; }

@media (max-width: 560px) {
    .apro-quote-modal { padding: 12px; align-items: flex-end; }
    .apro-quote-card {
        padding: 28px 22px 22px;
        border-radius: 22px 22px 0 0;
        max-height: 92vh;
    }
    .apro-quote-row { grid-template-columns: 1fr; }
    .apro-quote-head h3 { font-size: 1.2rem; }
}

/* ============================================================
   BLOG — listing (page-blog.php) + single (single.php)
   ============================================================ */
.blog-page { padding: 60px 0 90px; background: #fff; }
.blog-count-bar {
    background: linear-gradient(135deg, rgba(31,169,184,0.08), rgba(44,62,80,0.05));
    border: 1px solid rgba(31,169,184,0.18);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 34px;
    color: var(--navy);
    font-size: 0.95rem;
}
.blog-count-bar strong { color: var(--teal); font-size: 1.15rem; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.blog-card {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 18px;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(31,169,184,0.14);
    border-color: rgba(31,169,184,0.35);
}

.blog-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f6f8;
}
.blog-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.06); }

.blog-card-cat {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--teal);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(31,169,184,0.35);
}

.blog-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}
.blog-card-meta {
    display: flex;
    gap: 16px;
    color: #7a8794;
    font-size: 0.82rem;
}
.blog-card-meta i { color: var(--teal); margin-right: 4px; }

.blog-card-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 4px 0 6px;
    color: var(--navy);
}
.blog-card-title a {
    color: inherit; text-decoration: none;
    transition: color .2s ease;
}
.blog-card-title a:hover { color: var(--teal); }

.blog-card-excerpt {
    color: #556370;
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-card-more {
    margin-top: 10px;
    align-self: flex-start;
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s ease;
}
.blog-card-more:hover { gap: 10px; }

/* Pagination */
.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #f4f6f8;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: all .2s ease;
}
.blog-pagination .page-numbers:hover {
    background: rgba(31,169,184,0.12);
    color: var(--teal);
    border-color: rgba(31,169,184,0.35);
}
.blog-pagination .page-numbers.current {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 6px 16px rgba(31,169,184,0.35);
}
.blog-pagination .page-numbers.dots {
    background: transparent;
    color: #98a2ad;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7a8794;
}
.blog-empty p { margin-bottom: 18px; font-size: 1.05rem; }

/* --- Single post --- */
.single-post-banner {
    background: linear-gradient(135deg, #223140 0%, #2C3E50 60%, #1FA9B8 100%);
    color: #fff;
    padding: 90px 0 60px;
    position: relative;
    overflow: hidden;
}
.single-post-banner::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(31,169,184,0.35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,0.08), transparent 40%);
    pointer-events: none;
}
.single-post-banner .container { position: relative; z-index: 2; max-width: 900px; }
.single-post-banner .breadcrumb {
    color: rgba(255,255,255,0.75);
    margin-bottom: 22px;
}
.single-post-banner .breadcrumb a { color: rgba(255,255,255,0.9); }
.single-post-banner .breadcrumb a:hover { color: #fff; }
.single-post-banner .breadcrumb .sep { color: rgba(255,255,255,0.4); }
.single-post-banner .breadcrumb .current { color: #fff; }

.single-post-cat {
    display: inline-block;
    background: rgba(31,169,184,0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
}

.single-post-title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 22px;
    color: #fff;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
}
.single-post-meta i { color: rgba(255,255,255,0.7); margin-right: 4px; }
.single-post-meta .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
}

.single-post-hero {
    background: #fff;
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}
.single-post-hero .container { max-width: 1100px; }
.single-post-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.single-post-content {
    padding: 60px 0 90px;
    background: #fff;
}
.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
    align-items: start;
}
@media (max-width: 900px) {
    .single-post-layout { grid-template-columns: 1fr; gap: 40px; }
}

.single-post-body {
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.8;
}
.single-post-body > * { margin-bottom: 1.2em; }
.single-post-body h2 {
    font-size: 1.65rem;
    margin: 1.8em 0 0.6em;
    color: var(--navy);
    line-height: 1.3;
}
.single-post-body h3 {
    font-size: 1.3rem;
    margin: 1.6em 0 0.4em;
    color: var(--navy);
}
.single-post-body p { margin: 0 0 1.2em; }
.single-post-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.single-post-body a:hover { color: #178796; }
.single-post-body ul, .single-post-body ol {
    padding-left: 1.4em;
    margin: 0 0 1.4em;
}
.single-post-body li { margin-bottom: 0.5em; }
.single-post-body blockquote {
    border-left: 4px solid var(--teal);
    background: rgba(31,169,184,0.05);
    padding: 18px 22px;
    margin: 1.6em 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #445565;
}
.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.4em 0;
}
.single-post-body figure { margin: 1.6em 0; }
.single-post-body pre {
    background: #f4f6f8;
    padding: 18px;
    border-radius: 12px;
    overflow-x: auto;
}
.single-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
}
.single-post-body th, .single-post-body td {
    border: 1px solid #e5e9ee;
    padding: 10px 14px;
    text-align: left;
}
.single-post-body th { background: #f4f6f8; }

.single-post-share {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eef1f4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--navy);
    font-size: 0.95rem;
}
.single-post-share strong { margin-right: 6px; }
.single-post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f4f6f8;
    color: var(--navy);
    text-decoration: none;
    transition: all .25s ease;
}
.single-post-share a:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(31,169,184,0.35);
}

/* Aside sidebar */
.single-post-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
@media (max-width: 900px) {
    .single-post-aside { position: static; }
}
.post-aside-card {
    background: linear-gradient(135deg, #fbfdfe 0%, #f4f9fa 100%);
    border: 1px solid #e6eef1;
    border-radius: 18px;
    padding: 26px 22px;
}
.post-aside-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.15rem;
}
.post-aside-card h4 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.post-aside-card p {
    margin: 0 0 18px;
    color: #556370;
    font-size: 0.94rem;
    line-height: 1.55;
}
.post-aside-card .btn { margin-bottom: 8px; }
.post-aside-card .btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.post-aside-cats ul { list-style: none; margin: 0; padding: 0; }
.post-aside-cats li { border-bottom: 1px solid #eaeff2; }
.post-aside-cats li:last-child { border-bottom: none; }
.post-aside-cats li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.93rem;
    transition: color .2s;
}
.post-aside-cats li a:hover { color: var(--teal); }
.post-aside-cats .pill {
    background: rgba(31,169,184,0.12);
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

/* Related posts under single */
.related-blog {
    padding: 60px 0 90px;
    background: #f7f9fb;
    border-top: 1px solid #eef1f4;
}
.related-blog .section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .single-post-banner { padding: 60px 0 45px; }
    .single-post-title { font-size: 1.5rem; }
    .single-post-hero img { max-height: 320px; border-radius: 14px; }
    .single-post-content { padding: 40px 0 60px; }
    .single-post-body { font-size: 1rem; }
    .blog-page { padding: 40px 0 60px; }
    .blog-grid { grid-template-columns: 1fr; gap: 22px; }
}
