/* ==========================================================================
   Tagfel — Mat Manufacturer & Exporter, Panipat
   Global stylesheet (layered on Bootstrap 5.3)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Neutrals — warm, textile-leaning */
    --ink: #161211;
    --ink-2: #2b2320;
    --ink-soft: #3d3431;
    --muted: #6f645e;
    --line: #e8dfd2;
    --sand: #fbf8f4;
    --sand-2: #f4eee4;
    --white: #ffffff;

    /* Brand — terracotta, reads as coir/jute and contrasts the green turf */
    --brand: #c2562b;
    --brand-dark: #9c421f;
    --brand-light: #e0784a;
    --brand-soft: #fdeee6;

    /* Support */
    --leaf: #2f6b4f;

    /* Type */
    --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Radii */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(22, 18, 17, .05), 0 2px 8px rgba(22, 18, 17, .04);
    --shadow-md: 0 4px 12px rgba(22, 18, 17, .07), 0 12px 32px rgba(22, 18, 17, .07);
    --shadow-lg: 0 12px 28px rgba(22, 18, 17, .10), 0 28px 64px rgba(22, 18, 17, .12);

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --t-fast: .18s var(--ease);
    --t-base: .32s var(--ease);
    --t-slow: .6s var(--ease);

    /* Layout */
    --nav-h: 74px;
    --bar-h: 38px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* keep anchored sections clear of the fixed header */
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink-soft);
    background: var(--sand);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: -.005em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p  { margin-bottom: 1.05rem; }

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; }

::selection {
    background: var(--brand);
    color: #fff;
}

/* Visible, consistent keyboard focus everywhere */
:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 2000;
    background: var(--ink);
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top var(--t-fast);
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.section {
    padding: clamp(64px, 8vw, 116px) 0;
    position: relative;
}

.section--tight { padding: clamp(48px, 5vw, 72px) 0; }

.section--sand { background: var(--sand-2); }

.section--ink {
    background: var(--ink);
    color: rgba(255, 255, 255, .74);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 { color: #fff; }

.container { max-width: 1200px; }

/* Small caps label that sits above a heading */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .9rem;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--brand-light); }

.section-head {
    max-width: 680px;
    margin: 0 auto clamp(38px, 5vw, 62px);
    text-align: center;
}

.lead-text {
    font-size: clamp(1.02rem, 1.4vw, 1.12rem);
    color: var(--muted);
}

.section--ink .lead-text { color: rgba(255, 255, 255, .68); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    --bs-btn-focus-box-shadow: none;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.01em;
    border-radius: var(--r-pill);
    padding: .78rem 1.6rem;
    border: 1.5px solid transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast),
                background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn:active { transform: translateY(1px); }

.btn-brand {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(194, 86, 43, .28);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(194, 86, 43, .34);
}

.btn-ink {
    background: var(--ink);
    color: #fff;
}

.btn-ink:hover,
.btn-ink:focus {
    background: var(--ink-2);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light-brand {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}

.btn-outline-light-brand:hover,
.btn-outline-light-brand:focus {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-outline-ink {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}

.btn-outline-ink:hover,
.btn-outline-ink:focus {
    border-color: var(--ink);
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-lg-brand { padding: .95rem 2rem; font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   5. Announcement bar
   -------------------------------------------------------------------------- */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    height: var(--bar-h);
    display: flex;
    align-items: center;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1045;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar a {
    color: #fff;
    font-weight: 500;
}

.topbar a:hover { color: var(--brand-light); }

.topbar .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-light);
    display: inline-block;
}

/* --------------------------------------------------------------------------
   6. Navbar
   -------------------------------------------------------------------------- */
.site-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    z-index: 1040;
    height: var(--nav-h);
    background: transparent;
    transition: background-color var(--t-base), box-shadow var(--t-base),
                border-color var(--t-base), height var(--t-base);
    border-bottom: 1px solid transparent;
}

.site-nav.is-stuck {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

/* Pages that don't have a hero start with the solid nav */
.site-nav.is-solid {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -.035em;
    color: #fff;
    line-height: 1;
}

.brand:hover { color: #fff; }

.brand__mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--brand);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(194, 86, 43, .35);
}

.brand__mark svg { width: 21px; height: 21px; }

.brand__sub {
    display: block;
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .19em;
    text-transform: uppercase;
    opacity: .62;
    margin-top: 3px;
}

.is-stuck .brand,
.is-solid .brand { color: var(--ink); }

.site-nav .nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .96rem;
    color: rgba(255, 255, 255, .88);
    padding: .5rem .95rem;
    position: relative;
    transition: color var(--t-fast);
}

.site-nav .nav-link::after {
    content: "";
    position: absolute;
    left: .95rem;
    right: .95rem;
    bottom: .18rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: #fff; }

.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }

.is-stuck .nav-link,
.is-solid .nav-link { color: var(--ink-soft); }

.is-stuck .nav-link:hover,
.is-stuck .nav-link.active,
.is-solid .nav-link:hover,
.is-solid .nav-link.active { color: var(--brand-dark); }

/* Hamburger */
.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 11px 10px;
    transition: border-color var(--t-fast), background-color var(--t-fast);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform var(--t-base), opacity var(--t-fast), background-color var(--t-fast);
}

.is-stuck .nav-toggle,
.is-solid .nav-toggle {
    border-color: var(--line);
    background: var(--white);
}

.is-stuck .nav-toggle span,
.is-solid .nav-toggle span { background: var(--ink); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        background: #fff;
        margin-top: .6rem;
        padding: .6rem;
        border-radius: var(--r-lg);
        border: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }

    .site-nav .nav-link,
    .is-stuck .nav-link { color: var(--ink); padding: .7rem 1rem; }

    .site-nav .nav-link::after { display: none; }

    .site-nav .nav-link.active {
        color: var(--brand-dark);
        background: var(--brand-soft);
        border-radius: var(--r-sm);
    }

    .nav-cta-wrap { padding: .4rem 1rem .6rem; }
    .nav-cta-wrap .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + var(--bar-h) + 40px) 0 90px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    transform: scale(1.06);
    animation: heroDrift 24s var(--ease) forwards;
}

@keyframes heroDrift {
    to { transform: scale(1); }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(105deg, rgba(12, 9, 8, .90) 0%, rgba(12, 9, 8, .72) 45%, rgba(12, 9, 8, .35) 100%),
        linear-gradient(to top, rgba(12, 9, 8, .85) 0%, transparent 45%);
}

.hero__inner { max-width: 760px; }

.hero h1 { color: #fff; margin-bottom: 1.1rem; }

.hero h1 .accent {
    color: var(--brand-light);
    display: inline-block;
}

.hero__sub {
    font-size: clamp(1.03rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, .82);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 2.6rem;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    padding: .42rem .95rem;
    border-radius: var(--r-pill);
}

.hero__chips svg { width: 16px; height: 16px; color: var(--brand-light); }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .6);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    display: grid;
    justify-items: center;
    gap: .5rem;
}

.scroll-cue:hover { color: #fff; }

.scroll-cue__line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .55), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-cue__line::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 1px;
    height: 14px;
    background: #fff;
    animation: cueDrop 2s var(--ease) infinite;
}

@keyframes cueDrop {
    0%   { transform: translateY(-16px); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(42px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   8. Marquee strip of credentials
   -------------------------------------------------------------------------- */
.cred-strip {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 1.5rem 0;
}

.cred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .09);
    border-radius: var(--r-md);
    overflow: hidden;
}

.cred {
    background: var(--ink);
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}

.cred svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--brand-light);
}

.cred strong {
    display: block;
    font-family: var(--font-display);
    color: #fff;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
}

.cred span {
    font-size: .8rem;
    color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about-figure {
    position: relative;
    padding-bottom: 62px;
    padding-right: 42px;
}

.about-figure__main {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}

.about-figure__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-figure__inset {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 54%;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 7px solid var(--sand);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.about-figure__inset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-figure__badge {
    position: absolute;
    left: -14px;
    top: 26px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--r-md);
    padding: .9rem 1.15rem;
    box-shadow: 0 10px 30px rgba(194, 86, 43, .35);
    font-family: var(--font-display);
    line-height: 1.2;
    max-width: 168px;
}

.about-figure__badge strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
}

.about-figure__badge span {
    font-family: var(--font-body);
    font-size: .74rem;
    opacity: .85;
}

.tick-list {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .7rem 1.4rem;
}

.tick-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .94rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.tick-list svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-top: .28rem;
    color: var(--brand);
}

.pull-quote {
    border-left: 3px solid var(--brand);
    background: var(--brand-soft);
    padding: 1.1rem 1.35rem;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin: 1.8rem 0 0;
    font-size: .97rem;
    color: var(--ink-soft);
}

.pull-quote p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Product gallery
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2.6rem;
}

.filter-btn {
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    padding: .5rem 1.15rem;
    transition: all var(--t-fast);
}

.filter-btn:hover {
    color: var(--ink);
    border-color: var(--ink);
    transform: translateY(-1px);
}

.filter-btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.filter-btn .count {
    font-size: .74rem;
    opacity: .55;
    margin-left: .3rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 1.4rem;
}

.tile {
    grid-column: span 1;
    animation: tileIn .4s var(--ease) both;
}

@keyframes tileIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.tile[hidden] { display: none; }

.product-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Transparent button covering the whole card: keeps the card keyboard-
   reachable without nesting headings and paragraphs inside a <button>. */
.product-card__hit {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sand-2);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.product-card:hover .product-card__media img { transform: scale(1.07); }

.product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 9, 8, .45), transparent 55%);
    opacity: 0;
    transition: opacity var(--t-base);
}

.product-card:hover .product-card__media::after,
.product-card:focus-within .product-card__media::after { opacity: 1; }

.product-card__zoom {
    position: absolute;
    right: .8rem;
    bottom: .8rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(8px) scale(.85);
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
}

.product-card__zoom svg { width: 17px; height: 17px; }

.product-card:hover .product-card__zoom,
.product-card:focus-within .product-card__zoom {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-card__body {
    display: block;
    flex: 1 1 auto;
    padding: 1rem 1.15rem 1.15rem;
}

.product-card__cat {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-dark);
    display: block;
    margin-bottom: .3rem;
}

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.01rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
}

.product-card__meta {
    font-size: .82rem;
    color: var(--muted);
    margin: .3rem 0 0;
}

.gallery-empty {
    text-align: center;
    color: var(--muted);
    padding: 3rem 0;
}

/* --------------------------------------------------------------------------
   11. Lightbox
   -------------------------------------------------------------------------- */
.lightbox .modal-content {
    background: transparent;
    border: 0;
}

.lightbox .modal-dialog { max-width: min(1000px, 94vw); }

.lightbox__frame {
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lightbox__img {
    width: 100%;
    max-height: 74vh;
    object-fit: contain;
    background: var(--sand-2);
    display: block;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--line);
}

.lightbox__bar h3 { font-size: 1.05rem; margin: 0; }

.lightbox__bar p {
    margin: .1rem 0 0;
    font-size: .82rem;
    color: var(--muted);
}

.lb-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    display: grid;
    place-items: center;
    transition: all var(--t-fast);
    flex: 0 0 42px;
}

.lb-nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.lb-nav svg { width: 18px; height: 18px; }

.lightbox__close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    display: grid;
    place-items: center;
    transition: all var(--t-fast);
}

.lightbox__close:hover { background: #fff; color: var(--ink); }

/* --------------------------------------------------------------------------
   12. Capability cards
   -------------------------------------------------------------------------- */
.cap-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.8rem 1.6rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.cap-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.cap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.cap-card:hover::before { transform: scaleX(1); }

.cap-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    display: grid;
    place-items: center;
    margin-bottom: 1.15rem;
}

.cap-card__icon svg { width: 24px; height: 24px; }

.cap-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }

.cap-card p {
    font-size: .92rem;
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    padding: clamp(60px, 8vw, 96px) 0;
}

.cta-band__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cta-band__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(12, 9, 8, .93) 18%, rgba(12, 9, 8, .55) 100%);
}

.cta-band h2 { color: #fff; }

.cta-band p { color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-panel {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    border-radius: var(--r-lg);
    padding: clamp(1.8rem, 3vw, 2.6rem);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Sits against the bottom edge so the panel matches the form's height
   without leaving a dead gap. */
.contact-panel__foot {
    margin-top: auto;
    padding-top: 1.8rem;
}

.contact-panel__foot p {
    font-size: .89rem;
    color: rgba(255, 255, 255, .6);
}

.contact-panel h3 { color: #fff; margin-bottom: 1.6rem; }

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.contact-item:last-of-type { border-bottom: 0; }

.contact-item__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: var(--brand-light);
    display: grid;
    place-items: center;
}

.contact-item__icon svg { width: 19px; height: 19px; }

.contact-item dt {
    font-size: .72rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .45);
    margin-bottom: .18rem;
}

.contact-item dd {
    margin: 0;
    color: #fff;
    font-weight: 500;
    font-size: .98rem;
    line-height: 1.5;
}

.contact-item dd a { color: #fff; }
.contact-item dd a:hover { color: var(--brand-light); }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.8rem, 3vw, 2.6rem);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.form-label {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .38rem;
}

.form-control,
.form-select {
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: .78rem 1rem;
    font-size: .95rem;
    background: var(--sand);
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.form-control::placeholder { color: #a89e96; }

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(194, 86, 43, .12);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid { border-color: #d0342c; }

.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(208, 52, 44, .12); }

.invalid-feedback { font-size: .8rem; }

.form-note {
    font-size: .8rem;
    color: var(--muted);
    margin: .9rem 0 0;
    text-align: center;
}

/* Honeypot — hidden from people, visible to naive bots */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .58);
    padding: clamp(52px, 6vw, 76px) 0 0;
    font-size: .92rem;
}

.site-footer .brand { color: #fff; }

.site-footer h4 {
    color: #fff;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.footer-links a { color: rgba(255, 255, 255, .58); }
.footer-links a:hover { color: var(--brand-light); }

.footer-bottom {
    margin-top: clamp(38px, 5vw, 56px);
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 1.4rem 0;
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   16. Back to top
   -------------------------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--t-base);
}

.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal { opacity: 1; transform: none; }
    .hero__media img { transform: none; }
}

/* --------------------------------------------------------------------------
   19. Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    :root { --bar-h: 0px; }

    .topbar { display: none; }

    .hero { min-height: 92svh; }

    .about-figure { padding-right: 0; padding-bottom: 48px; }
    .about-figure__inset { width: 62%; }
    .about-figure__badge { left: 0; }

    .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
    .product-card__body { padding: .75rem .85rem .9rem; }
    .product-card__title { font-size: .9rem; }
    .product-card__meta { display: none; }

    .footer-bottom { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   20. Inner pages (no hero) — confirmation, etc.
   -------------------------------------------------------------------------- */
.page-shell {
    padding-top: calc(var(--nav-h) + var(--bar-h));
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.page-shell > .section { flex: 1 0 auto; }

.confirm-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(2rem, 5vw, 3.4rem);
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
}

.confirm-card__mark {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.6rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    animation: markPop .55s var(--ease) both;
}

.confirm-card__mark svg { width: 38px; height: 38px; }

@keyframes markPop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.next-steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    text-align: left;
    display: grid;
    gap: .9rem;
    border-top: 1px solid var(--line);
    padding-top: 1.8rem;
}

.next-steps li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    font-size: .95rem;
    color: var(--muted);
}

.next-steps__num {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-top: .15rem;
}

/* --------------------------------------------------------------------------
   21. Form-level error notice (shown when submit.php rejects a submission)
   -------------------------------------------------------------------------- */
.form-alert {
    background: #fdecea;
    border: 1px solid #f3c4c0;
    border-left: 3px solid #d0342c;
    color: #8a201a;
    border-radius: var(--r-md);
    padding: .85rem 1.1rem;
    font-size: .9rem;
    margin-bottom: 1.4rem;
}

/* --------------------------------------------------------------------------
   22. WhatsApp action
   -------------------------------------------------------------------------- */
.btn-whatsapp {
    background: #25d366;
    color: #0b3d20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-weight: 600;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #1fb855;
    color: #0b3d20;
    transform: translateY(-2px);
}

.btn-whatsapp svg { width: 18px; height: 18px; }
