.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─────────────────────────────────────────────────────────────
   BREADCRUMB NAVIGATION
   SEO FIX CRITICAL: Breadcrumbs on all interior pages.
   Styles the {% include 'core/partials/breadcrumb.html' %} partial.
───────────────────────────────────────────────────────────── */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.breadcrumb__link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus {
    color: #ffffff;
    text-decoration: underline;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb__sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
}

.breadcrumb__current {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Dark background variant (for content pages) */
.content-page .breadcrumb__link   { color: var(--green-primary, #1a7340); }
.content-page .breadcrumb__link:hover { color: var(--green-dark, #145c30); }
.content-page .breadcrumb__sep    { color: var(--text-muted, #888); }
.content-page .breadcrumb__current { color: var(--text-muted, #888); }

/* ─────────────────────────────────────────────────────────────
   MENU TOGGLE BUTTON
   NOTE: All responsive nav rules live in style.css @media (max-width: 991px).
   This block only adds focus/hover polish that doesn't conflict.
───────────────────────────────────────────────────────────── */

/* Focus ring for accessibility (applied to .menu-toggle / .nav-toggle) */
.menu-toggle:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid var(--green-primary, #2D6B47);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────
   PRODUCTS HERO
   SEO FIX HIGH: Replaced gallery-hero with products-hero class
   on the products page for semantic correctness.
───────────────────────────────────────────────────────────── */
.products-hero {
    background: linear-gradient(135deg, var(--navy, #14385F) 0%, var(--green-dark, #145c30) 100%);
    padding: 3rem 0 2.5rem;
    color: #ffffff;
}

.products-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin: 0.5rem 0 1rem;
}

.products-hero h1 span {
    color: var(--green-light, #4ade80);
}

.products-hero .section-description {
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   CATEGORY FILTER TABS
───────────────────────────────────────────────────────────── */
.category-filter {
    background: var(--surface-alt, #f8fafc);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #475569);
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--green-primary, #1a7340);
    color: white;
    border-color: var(--green-primary, #1a7340);
}

.filter-tab.active {
    background: var(--green-primary, #1a7340);
    color: white;
    border-color: var(--green-primary, #1a7340);
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT CARD LINK WRAPPER
   SEO FIX: Product cards now link to detail pages.
───────────────────────────────────────────────────────────── */
.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card__link:hover .link,
.product-card__link:focus .link {
    color: var(--green-primary, #1a7340);
}

.product-card__link:focus {
    outline: 2px solid var(--green-primary, #1a7340);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT DETAIL PAGE
   SEO FIX CRITICAL: Styles for new /products/<slug>/ pages.
───────────────────────────────────────────────────────────── */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-detail__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    background: var(--surface-alt, #f8fafc);
    padding: 1.5rem;
}

.product-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--green-light-bg, #f0fdf4);
    color: var(--green-dark, #145c30);
    border: 1px solid var(--green-border, #bbf7d0);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.product-detail__info .meta {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green-primary, #1a7340);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.product-detail__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary, #475569);
    margin: 1.25rem 0 1.5rem;
}

.product-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem;
    background: var(--surface-alt, #f8fafc);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border, #e2e8f0);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
}

.product-meta-item i {
    color: var(--green-primary, #1a7340);
    width: 1rem;
    flex-shrink: 0;
}

.product-detail__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-wa {
    background: #2D6B47;
    border-color: #2D6B47;
    color: white;
}

.btn-wa:hover {
    background: #225738;
    border-color: #225738;
    color: white;
}

.product-detail__note {
    font-size: 0.8125rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER — 5-COLUMN GRID
   SEO FIX CRITICAL: Added Legal & Compliance column.
   Updated from 4-column to 5-column footer grid layout.
───────────────────────────────────────────────────────────── */
.foot-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 1.5fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1200px) {
    .foot-grid {
        grid-template-columns: 2fr 1fr 1fr 1.3fr 1fr;
        gap: 1rem;
    }
}
@media (max-width: 1024px) {
    .foot-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

@media (max-width: 768px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .foot-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────
   LEGAL / CONTENT PAGES
   Styles for Privacy Policy, Terms & Conditions, Medical Disclaimer
───────────────────────────────────────────────────────────── */
.content-narrow {
    max-width: 860px;
    margin: 0 auto;
}

.content-page h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy, #14385F);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--green-light-bg, #f0fdf4);
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary, #475569);
    margin-bottom: 1rem;
}

.content-page ul {
    margin: 0.75rem 0 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.content-page ul li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary, #475569);
}

.content-page address {
    font-style: normal;
    background: var(--surface-alt, #f8fafc);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    margin-top: 1rem;
    line-height: 1.9;
    font-size: 0.9375rem;
}

.content-page address a {
    color: var(--green-primary, #1a7340);
}

/* Disclaimer notice box */
.disclaimer-notice {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    margin-bottom: 2rem;
}

.disclaimer-notice i {
    color: #d97706;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.disclaimer-notice p {
    margin: 0;
    font-size: 0.9375rem;
    color: #78350f;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT PAGE — COMPANY INFO & TEAM
   SEO FIX: E-E-A-T signals — company registration, founder info
───────────────────────────────────────────────────────────── */
.info-grid {
    max-width: 640px;
    margin: 0 auto;
}

.info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--surface-alt, #f8fafc);
    border-radius: 8px;
    border: 1px solid var(--border, #e2e8f0);
}

.info-item dt {
    font-weight: 600;
    color: var(--navy, #14385F);
    font-size: 0.875rem;
    min-width: 160px;
    flex-shrink: 0;
}

.info-item dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary, #475569);
}

/* Commitment grid on About page */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .commitment-grid {
        grid-template-columns: 1fr;
    }
}

.commitment-item {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.commitment-item i {
    font-size: 1.5rem;
    color: var(--green-primary, #1a7340);
    margin-bottom: 0.875rem;
    display: block;
}

.commitment-item h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy, #14385F);
    margin-bottom: 0.5rem;
}

.commitment-item p {
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
    line-height: 1.7;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   PRODUCTS GRID SECTION
───────────────────────────────────────────────────────────── */
.products-grid-section {
    padding: 3rem 0;
}

/* ─────────────────────────────────────────────────────────────
   ALERT MESSAGES (contact form)
───────────────────────────────────────────────────────────── */
.alert-messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error,
.alert--warning {
    background: #fff8e1;
    color: #78350f;
    border: 1px solid #ffe082;
}


/* ─────────────────────────────────────────────────────────────
   ACCESSIBILITY FIXES (UI/UX review)
   Each rule fixes one measured WCAG 2.2 issue; palette is unchanged.
───────────────────────────────────────────────────────────── */

/* Header "Get a Quote": `.nav-links a { color: var(--ink) }` outranked `.btn-primary`,
   giving dark text on green (2.3:1). White on --green-primary is 6.4:1. */
.nav-links a.nav-cta, .navbar a.nav-cta,
.nav-links a.nav-cta:hover, .nav-links a.nav-cta.active { color: var(--white); }

/* Products hero is a dark gradient: the green eyebrow (1.8:1) and the green word in the
   heading (2.7:1) need a lighter tint of the same hue. */
.products-hero { --green-on-dark: #8FD3A9; }
.products-hero .eyebrow { color: var(--green-on-dark); }
.products-hero h1 span { color: var(--green-on-dark); }

/* "(optional)" in forms was --gray-light at 70% opacity (2.5:1). */
form.form label .optional, form#contactForm label .optional { color: var(--gray); opacity: 1; }

/* Footer links: 24px-high hit areas on phones. Spacing moves from margin to padding so the
   layout is unchanged but each link is at least 44px tall. */
@media (max-width: 767px), (pointer: coarse) {
  footer li { margin-bottom: 0; }
  footer .footer-col a, footer address a { margin-bottom: 0; padding-block: 0.6rem; }
  footer .legal a, footer .credit a { display: inline-block; margin: 0; padding: 0.7rem 0.5rem; }
}


/* ─────────────────────────────────────────────────────────────
   POLICY PAGES (Shipping Policy, Return & Exchange Policy)
   Built on the shared .content-page rules above; everything here is scoped to
   .policy-page / .policy-hero and does not touch the other legal pages.
───────────────────────────────────────────────────────────── */

/* Light hero: the shared breadcrumb is white-on-dark, so recolour it on these pages only. */
.policy-hero .breadcrumb__link { color: var(--green-primary); }
.policy-hero .breadcrumb__link:hover, .policy-hero .breadcrumb__link:focus-visible { color: var(--green-deep); }
.policy-hero .breadcrumb__sep, .policy-hero .breadcrumb__current { color: var(--gray); }

.policy-page .policy-toc {
    background: var(--surface-alt, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.policy-page .policy-toc__title {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--navy, #14385F);
}
.policy-page .policy-toc ul {
    list-style: none;
    margin: 0;
    display: block;
    columns: 2;
    column-gap: 2rem;
}
.policy-page .policy-toc li { break-inside: avoid; padding: 0.2rem 0; line-height: 1.5; }
.policy-page .policy-toc a { color: var(--green-primary, #1a7340); }

.policy-page .policy-body h2 { scroll-margin-top: 160px; }
.policy-page .policy-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy, #14385F);
    margin: 1.5rem 0 0.5rem;
}
.policy-page .policy-body ol {
    margin: 0.75rem 0 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.policy-page .policy-body ol li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary, #475569);
}
.policy-page .policy-body a { color: var(--green-primary, #1a7340); text-decoration: underline; }
.policy-page .policy-body strong { color: var(--navy, #14385F); }
.policy-page .policy-body hr { border: 0; border-top: 1px solid var(--border, #e2e8f0); margin: 2rem 0; }
.policy-page #contact-us { scroll-margin-top: 160px; }

@media (max-width: 640px) {
    .policy-page .policy-toc ul { columns: 1; }
    .policy-page .policy-toc { padding: 1rem 1.1rem; }
}

/* Catalogue product-code label; inherits the existing navy/green theme. */
.product-card__code { display: inline-block; margin-top: .2rem; color: var(--gray, #64748b); font-size: .75rem; letter-spacing: .02em; }


/* Home hero image slider — scoped to avoid affecting other hero sections. */
.hero-slider { isolation: isolate; }
.hero-slider > img.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 650ms ease, visibility 650ms ease;
  z-index: 0;
}
.hero-slider > img.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slider .hero-slider-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 56, 45, .72);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.hero-slider .hero-slider-control:hover,
.hero-slider .hero-slider-control:focus-visible {
  background: rgba(20, 56, 45, .95);
}
.hero-slider .hero-slider-control:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.hero-slider .hero-slider-prev { left: 1rem; }
.hero-slider .hero-slider-next { right: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .hero-slider > img.hero-slide { transition: none; }
}
