/* ==========================================================================
   Charvi Extrusion - Hose and Pipe Fittings
   Core CSS3 only (Grid + Flexbox). No framework.
   Same rules as the other product pages, with the "hosepipe-" prefix, plus a
   stainless-steel swatch and the "Custom Sizes & Configurations" block.

   Every selector is prefixed "hosepipe-" and scoped to .hosepipe-page, so
   this file does not touch the site header, footer or any global styles.
   ========================================================================== */

:root {
    --primary: #102D3B;
    --primary-dark: #091F2A;
    --text: #222222;
    --muted: #666666;
    --border: #e5e5e5;
    --light: #f7f7f7;
    --white: #ffffff;
}

.hosepipe-page,
.hosepipe-page *,
.hosepipe-page *::before,
.hosepipe-page *::after { box-sizing: border-box; }

.hosepipe-page {
    --hosepipe-tint: #fff1f4;
    --hosepipe-radius: 12px;
    --hosepipe-radius-sm: 8px;
    --hosepipe-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -18px rgba(0, 0, 0, .22);
    --hosepipe-sticky-top: 100px;   /* match the height of the fixed site header */
    --hosepipe-font: "Inter", Arial, Helvetica, sans-serif;

    padding-block: clamp(24px, 3.5vw, 40px) clamp(56px, 7vw, 104px);
    background: var(--white);
    color: var(--text);
    font-family: var(--hosepipe-font);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

/* Low-specificity resets: every class below overrides them */
.hosepipe-page :where(h1, h2, h3, p, figure, ul, ol) { margin: 0; }
.hosepipe-page :where(ul, ol) { padding: 0; list-style: none; }
.hosepipe-page :where(img, svg) { display: block; max-width: 100%; }

.hosepipe-page :where(h2) {
    font-size: clamp(1.625rem, 1.25rem + 1vw, 2rem);    /* 26px -> 32px */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}
.hosepipe-page :where(h3) {
    font-size: 1.25rem;                                  /* 20px */
    font-weight: 600;
    line-height: 1.3;
}

.hosepipe-page a:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.hosepipe-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

/* Shared line-icon style for every inline SVG */
.hosepipe-icon {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.hosepipe-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-bottom: clamp(22px, 3vw, 32px);
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.6;
}
.hosepipe-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease;
}
.hosepipe-breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.hosepipe-breadcrumb [aria-hidden="true"] { color: #b5b5b5; }

/* ==========================================================================
   Layout
   ========================================================================== */
.hosepipe-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 45px;
    align-items: start;
}
.hosepipe-sidebar {
    position: sticky;
    top: var(--hosepipe-sticky-top);
}
.hosepipe-section { margin-top: clamp(52px, 6vw, 84px); }
.hosepipe-section-intro {
    max-width: 68ch;
    margin-top: 12px;
    color: var(--muted);
}

/* ==========================================================================
   Quick Links
   ========================================================================== */
.hosepipe-quick-links {
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius);
    background: var(--white);
    box-shadow: var(--hosepipe-shadow);
    overflow: hidden;
}
.hosepipe-quick-links h2 {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 1.125rem;
    letter-spacing: 0;
}
.hosepipe-quick-links ul {
    display: grid;
    gap: 2px;
    padding: 10px;
}
.hosepipe-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--hosepipe-radius-sm);
    background: var(--white);
    color: #333333;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.hosepipe-quick-links .hosepipe-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.75;
    opacity: .4;
    transition: opacity .2s ease, transform .2s ease;
}
.hosepipe-quick-links a:hover {
    background: var(--hosepipe-tint);
    color: var(--primary);
}
.hosepipe-quick-links a:hover .hosepipe-icon {
    opacity: 1;
    transform: translateX(3px);
}
.hosepipe-quick-links a.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}
.hosepipe-quick-links a.active .hosepipe-icon {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Product header
   ========================================================================== */
.hosepipe-header h1 {
    font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3rem);    /* 34px -> 48px */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.hosepipe-title-accent {
    width: 55px;
    height: 4px;
    margin-top: 18px;
    background: var(--primary);
}
.hosepipe-lead {
    max-width: 64ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.0625rem;
}

/* ==========================================================================
   Image + introduction
   ========================================================================== */
.hosepipe-intro {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 40px;
    align-items: center;
    margin-top: clamp(32px, 4vw, 44px);
}
.hosepipe-image { position: relative; }
/* Corner mark, as on an engineering drawing */
.hosepipe-image::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: 60px;
    height: 60px;
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
    border-top-left-radius: calc(var(--hosepipe-radius) + 6px);
}
.hosepipe-image img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--hosepipe-radius);
    background: #111;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 24px 40px -24px rgba(0, 0, 0, .5);
}
.hosepipe-summary p { margin-top: 16px; }

/* ---- Highlights (2 x 2) ---- */
.hosepipe-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(32px, 4vw, 44px);
}
.hosepipe-feature {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius);
    background: var(--white);
}
.hosepipe-feature p {
    margin-top: 6px;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.6;
}
.hosepipe-icon-box {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: var(--hosepipe-radius-sm);
    background: var(--light);
    color: var(--primary);
}
.hosepipe-icon-box .hosepipe-icon {
    width: 26px;
    height: 26px;
}

/* ==========================================================================
   Overview
   ========================================================================== */
.hosepipe-overview-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}
.hosepipe-overview-text p + p { margin-top: 16px; }
.hosepipe-overview-panel {
    padding: clamp(22px, 2.6vw, 30px);
    border-radius: var(--hosepipe-radius);
    background: var(--light);
}
.hosepipe-overview-panel h3 { margin-bottom: 14px; }

/* Dash-marked list */
.hosepipe-dash-list {
    display: grid;
    gap: 9px 24px;
}
.hosepipe-dash-list li {
    position: relative;
    padding-left: 22px;
    line-height: 1.5;
}
.hosepipe-dash-list li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: 0;
    width: 10px;
    height: 2px;
    background: var(--primary);
}

/* ==========================================================================
   Materials
   ========================================================================== */
.hosepipe-material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.hosepipe-material {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius);
    background: var(--white);
}
/* Hexagon = bar-stock cross-section, tinted to the metal */
.hosepipe-swatch {
    flex: none;
    width: 30px;
    height: 30px;
    margin-top: 2px;
}
.hosepipe-swatch--brass    { fill: #b8963e; }
.hosepipe-swatch--copper   { fill: #b4683c; }
.hosepipe-swatch--aluminum { fill: #aab1b8; }
.hosepipe-swatch--steel    { fill: #c9ced3; }
.hosepipe-swatch--alloy    { fill: #c98d57; }
.hosepipe-swatch--other    { fill: #8c8f93; }
.hosepipe-swatch--custom   { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 3 2.5; }
.hosepipe-material-name {
    font-weight: 600;
    line-height: 1.4;
}
.hosepipe-material-note {
    margin-top: 2px;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
}

/* ==========================================================================
   Applications
   ========================================================================== */
.hosepipe-application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 28px;
}
.hosepipe-application {
    position: relative;
    padding: 15px 18px 15px 38px;
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius-sm);
    background: var(--white);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.45;
}
.hosepipe-application::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 18px;
    width: 7px;
    height: 7px;
    background: var(--primary);
}
.hosepipe-note {
    max-width: 68ch;
    margin-top: 18px;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.6;
}

/* ==========================================================================
   Fitting types: one ruled matrix rather than separate cards
   ========================================================================== */
.hosepipe-fitting-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius);
    background: var(--border);   /* shows through the 1px gaps as rules */
    overflow: hidden;
}
.hosepipe-fitting {
    padding: 18px 20px;
    background: var(--white);
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   Custom sizes & configurations
   ========================================================================== */
.hosepipe-config-panel {
    margin-top: 28px;
    padding: clamp(22px, 2.6vw, 30px);
    border-radius: var(--hosepipe-radius);
    background: var(--light);
}
.hosepipe-config-panel .hosepipe-dash-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 28px;
}

/* ==========================================================================
   Manufacturing capabilities
   ========================================================================== */
.hosepipe-capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.hosepipe-capability {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 14px 14px;
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius);
    background: var(--white);
    font-weight: 600;
    line-height: 1.35;
}

/* ==========================================================================
   Quality
   ========================================================================== */
.hosepipe-quality {
    padding: clamp(28px, 4.5vw, 56px);
    border-radius: var(--hosepipe-radius);
    background: var(--light);
}
.hosepipe-quality > p {
    max-width: 70ch;
    margin-top: 14px;
    color: var(--muted);
}
.hosepipe-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}
.hosepipe-quality-grid li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius-sm);
    background: var(--white);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
}
.hosepipe-quality-grid .hosepipe-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    stroke-width: 2;
}

/* ==========================================================================
   Custom manufacturing
   ========================================================================== */
.hosepipe-custom {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 40px;
    align-items: center;
    padding: clamp(28px, 4.5vw, 56px);
    border: 1px solid var(--border);
    border-radius: var(--hosepipe-radius);
    background: var(--white);
    box-shadow: var(--hosepipe-shadow);
}
.hosepipe-custom-copy p { margin-top: 14px; }
.hosepipe-custom-copy .hosepipe-btn { margin-top: 26px; }
.hosepipe-custom-list {
    padding-left: 32px;
    border-left: 1px solid var(--border);
}
.hosepipe-custom-list h3 { margin-bottom: 14px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.hosepipe-cta {
    position: relative;
    padding: clamp(32px, 5vw, 64px);
    border-radius: var(--hosepipe-radius);
    background: var(--light);
}
.hosepipe-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 72px;
    border-top: 4px solid var(--primary);
    border-left: 4px solid var(--primary);
    border-top-left-radius: var(--hosepipe-radius);
}
.hosepipe-cta p {
    max-width: 62ch;
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.0625rem;
}
.hosepipe-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hosepipe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--primary);
    border-radius: var(--hosepipe-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hosepipe-btn--primary {
    background: var(--primary);
    color: var(--white);
}
.hosepipe-btn--primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white);
}
.hosepipe-btn--secondary {
    background: var(--white);
    color: var(--primary);
}
.hosepipe-btn--secondary:hover {
    background: var(--primary);
    color: var(--white);
}
/* Deliberately the quietest of the three */
.hosepipe-btn--whatsapp {
    padding-inline: 20px;
    border-color: transparent;
    background: transparent;
    color: var(--text);
    font-weight: 500;
}
.hosepipe-btn--whatsapp .hosepipe-icon {
    width: 20px;
    height: 20px;
    color: #128c4b;
}
.hosepipe-btn--whatsapp:hover {
    border-color: var(--border);
    background: var(--white);
}

/* ==========================================================================
   Tablet: 768px - 1199px
   ========================================================================== */
@media (max-width: 1199.98px) {
    .hosepipe-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 32px;
    }
    .hosepipe-quick-links h2 { padding-inline: 18px; }
    .hosepipe-quick-links ul { padding: 8px; }
    .hosepipe-quick-links a { padding-inline: 10px; }
    .hosepipe-fitting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hosepipe-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .hosepipe-intro,
    .hosepipe-overview-grid,
    .hosepipe-custom { grid-template-columns: minmax(0, 1fr); }
    .hosepipe-overview-grid,
    .hosepipe-custom { gap: 28px; }
    .hosepipe-feature-grid { grid-template-columns: minmax(0, 1fr); }
    .hosepipe-custom-list {
        padding: 24px 0 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }
    .hosepipe-custom-list .hosepipe-dash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Mobile: below 768px
   ========================================================================== */
@media (max-width: 767.98px) {
    /* minmax(0, 1fr), not plain 1fr: lets the column shrink below the width
       of the scrolling Quick Links row */
    .hosepipe-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .hosepipe-sidebar { position: static; }

    /* Quick Links become one scrolling row; it scrolls inside the card,
       so the page itself never overflows. */
    .hosepipe-quick-links h2 {
        padding: 14px 16px 0;
        border-bottom: 0;
        font-size: 1rem;
    }
    .hosepipe-quick-links ul {
        display: flex;
        gap: 8px;
        padding: 10px 16px 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    }
    .hosepipe-quick-links ul::-webkit-scrollbar { display: none; }
    .hosepipe-quick-links li { flex: none; }
    .hosepipe-quick-links li:last-child { padding-right: 24px; }
    .hosepipe-quick-links a {
        min-height: 44px;
        padding: 0 16px;
        border: 1px solid var(--border);
        white-space: nowrap;
    }
    .hosepipe-quick-links a.active { border-color: var(--primary); }
    .hosepipe-quick-links .hosepipe-icon { display: none; }
    .hosepipe-page .hosepipe-quick-links a:focus-visible { outline-offset: -3px; }

    .hosepipe-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hosepipe-fitting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
    .hosepipe-feature-grid { grid-template-columns: minmax(0, 1fr); }
    .hosepipe-quality-grid { grid-template-columns: minmax(0, 1fr); }
    .hosepipe-custom-list .hosepipe-dash-list { grid-template-columns: minmax(0, 1fr); }
    .hosepipe-cta-actions .hosepipe-btn,
    .hosepipe-custom-copy .hosepipe-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hosepipe-page *,
    .hosepipe-page *::before,
    .hosepipe-page *::after { transition: none !important; }
}
