/* ============================================================
   Tilla to Talim — BASE + DESIGN TOKENS (shared stylesheet)
   ------------------------------------------------------------
   Two-layer token system:
     Layer 1 — raw brand palette (--navy, --blue, --bright-blue, ...)
     Layer 2 — semantic roles (--color-*, --text-*, --border-*,
               --surface-*, --radius-*, --shadow-*, --font-*)
   Change a token once in :root and the whole site follows.
   Palette = the logo's own olive-green / kraft-gold / cream family,
   sampled from images/brand/logo.webp. Everything below derives from it.
   ============================================================ */

:root { 
    /* Anchor jumps stop below the sticky navbar (~75px) with breathing room */ 
    scroll-behavior: smooth; 
    scroll-padding-top: 90px; 
 
    /* ─────────── Layer 1 · Brand palette ─────────── 
       Theme: Tilla to Talim — brand palette ramp. 
       Deep forest = dark bands. Forest = fills / CTA. Olive + gold = accents. 
       Gold is the PREMIUM luminous accent; pale sage is the mist wash. 
       Change a hex here and the entire site follows. */ 
    --navy:       #3E5031;   /* FOREST — fills / CTA / bands           */ 
    --navy-deep:  #2A351F;   /* DEEP FOREST — footer / dark bands      */ 
    --green:      #5A6B3A;   /* OLIVE — vivid accent (legacy)   */ 
    --green-deep: #3E5031;   /* FOREST (legacy name)                   */ 
    --green-dark: #2A351F;   /* DEEP FOREST — primary hover (legacy)   */ 
    --green-soft: #E9EDD9;   /* PALE SAGE — light mist wash          */ 
    /* ─── GOLD RAMP — warm accents + the site's ICON COLOUR SYSTEM ───
       Icons used to inherit the blue primary, which is why every page
       read as one flat blue. Icons now default to gold; blue is kept for
       structure (nav, fills, bands) so the two layers read apart. ─── */
    --gold-100: #FFF9EC;   /* icon plate on light surfaces       */ 
    --gold-200: #FDF0D2;   /* icon plate hover / chips           */ 
    --gold-300: #F2D99B;   /* LIGHT GOLDEN — glyphs on dark forest */ 
    --gold-400: #E3BE6C;   /* mid gold — borders on dark         */ 
    --gold-500: #D4A24C;   /* signature gold — badges, stars     */ 
    --gold-600: #B8871F;   /* rich gold — icon hover on light    */ 
    --gold-700: #A8761F;   /* DEEP GOLD — glyphs on light        */ 
    --gold-800: #7A5514;   /* bronze — small gold text on light  */ 

    /* ─── SECONDARY ACCENTS — one hue per product line ───
       Rotated across icon plates and stat figures so long card grids keep
       some colour variety instead of flattening into a single tone. ─── */
    --copper:       #C2703D;   /* terracotta accent           */ 
    --copper-soft:  #FBEDE2; 
    --copper-deep:  #A85A2B;   /* deeper copper — text/hover on light */ 
    --emerald:      #1F8A6E;   /* fresh green                 */ 
    --emerald-soft: #E2F5EE; 
    --petrol:       #4E6540;   /* deep olive (was teal)       */ 
    --petrol-soft:  #E7EDD8;   /* pale olive plate            */ 
    --diamond:      #8A8672;   /* warm stone                  */ 
    --diamond-soft: #F2EFE6; 

    --orange:     var(--copper);      /* live / status dot — copper  */ 
    --gold:       var(--gold-500);    /* premium accent — real gold  */ 
    --gold-soft:  var(--gold-100);    /* gold mist wash              */ 
    --deep-green: #232C1A;   /* DEEPEST FOREST — darkest sections    */ 
    --teal-green: #5A6B3A;   /* legacy name (unused)                 */ 
    --ivory:      #FBF8EE;   /* warm cream section bg                */ 
    --ivory-2:    #F2EFDF;   /* deeper cream section bg              */ 
    --white:      #FFFFFF;

    /* ─── Logo ramp — olive greens, kraft gold and cream (source of truth).
       The legacy green/gold names above all mirror values from this ramp. ─── */
    --deep-navy:   #2A351F;   /* darkest  — authority bands   */
    --blue:        #4C6339;   /* mid      — accents / hover   */
    --royal-blue:  #5A6B3A;   /* vivid    — links, eyebrows   */
    --bright-blue: #C9A24C;   /* luminous — premium highlight */
    --light-blue:  #B6C29B;   /* soft     — accents on dark   */
    --pale-blue:   #E9EDD9;   /* palest   — mist wash         */ 
 
    --wa-green:       #25D366;  /* WhatsApp (legacy name)         */ 
    --wa-green-dark:  #1EBE5D;  /* WhatsApp hover (legacy)        */ 
    --wa-green-contrast: #0B8043; /* WhatsApp green that passes AA on white (5.0:1) */

    /* ─── SOCIAL BRAND COLOURS — sampled from each platform's own mark.
       A Facebook chip should read as Facebook, not as brand blue. Change a
       hex here and every social chip on the site follows. ─── */
    --brand-facebook:     #1877F2; 
    --brand-facebook-d:   #0E5FC4; 
    --brand-instagram:    #D62976;  /* solid fallback / chip base */ 
    --brand-instagram-d:  #962FBF; 
    --brand-linkedin:     #0A66C2; 
    --brand-linkedin-d:   #084C8F; 
    --brand-youtube:      #FF0000; 
    --brand-youtube-d:    #C40000; 
    --brand-x:            #111111; 
    --brand-x-d:          #000000; 
    --brand-twitter:      #1DA1F2; 
    --brand-twitter-d:    #0C85D0; 
    --brand-tiktok:       #010101; 
    --brand-tiktok-d:     #000000; 
    --brand-pinterest:    #E60023; 
    --brand-pinterest-d:  #B8001C; 
    --brand-telegram:     #229ED9; 
    --brand-telegram-d:   #1A7EAD; 
    --brand-whatsapp:     var(--wa-green); 
    --brand-whatsapp-d:   var(--wa-green-dark); 

    /* Instagram's real five-stop mark, used as a chip background */
    --gradient-instagram: linear-gradient(45deg, 
        #FEDA75 0%, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5 100%); 
 
    /* Ink ramp (neutrals) */ 
    --ink-900: #201D15;   /* headings / strong text */ 
    --ink-700: #474334;   /* body text              */ 
    --ink-600: #57513F;   /* secondary text         */ 
    --ink-500: #6A6452;   /* muted text             */ 
    --ink-400: #8C8676;   /* soft labels / meta     */ 
    --ink-300: #ADA795;   /* faint / placeholders   */ 
    --ink-200: #E9E5D8;   /* hairline               */ 
    --ink-100: #DFDACB;   /* borders                */ 
 
    /* ─────────── Layer 2 · Semantic roles ─────────── */ 
    --color-primary:       var(--navy);         /* main fills (forest)    */ 
    --color-primary-deep:  var(--navy-deep);    /* darkest (footer/dark)  */ 
    --color-primary-soft:  var(--pale-blue);    /* light mist wash        */ 
    --color-accent:        var(--royal-blue);   /* vivid olive accents    */ 
    --color-accent-dark:   var(--blue);         /* accent hover (deeper)  */ 
    --color-accent-bright: var(--light-blue);   /* soft accents ON DARK   */ 
    --color-accent-soft:   var(--pale-blue);    /* chip / icon wash       */ 
    --color-highlight:     var(--bright-blue);  /* luminous premium accent */
    --color-gold:          var(--gold-500);        /* signature gold       */ 
    --color-blue:          var(--navy);         /* legacy name → primary  */ 
    --color-blue-soft:     var(--light-blue);   /* soft sage (unused)     */ 
    --color-cta:           var(--navy);         /* CTA buttons / nav act  */ 
    --color-cta-dark:      var(--deep-navy);    /* CTA hover (darker)     */ 
    --color-deep:          var(--deep-green); 
    --color-whatsapp:      var(--wa-green); 
    --color-whatsapp-dark: var(--wa-green-dark); 

    /* ─── Icon system — gold-forward ───
       Two values because the same glyph needs different weights on light
       vs dark: deep gold holds ~4:1 on white, light golden shines on navy. */
    --color-icon:             var(--gold-700);  /* glyph on LIGHT       */ 
    --color-icon-strong:      var(--gold-600);  /* glyph hover          */ 
    --color-icon-on-dark:     var(--gold-300);  /* glyph on DARK forest */ 
    --color-icon-plate:       var(--gold-100);  /* icon plate on light  */ 
    --color-icon-plate-hover: var(--gold-200);  /* icon plate hover     */ 

    /* Gold roles */ 
    --color-gold-light: var(--gold-300); 
    --color-gold-deep:  var(--gold-700); 
    --color-gold-text:  var(--gold-800);  /* small gold text on light */ 
    --color-gold-soft:  var(--gold-100); 

    /* Secondary accent roles — used in rotation, never all at once */ 
    --color-copper:  var(--copper); 
    --color-emerald: var(--emerald); 
    --color-petrol:  var(--petrol); 
    --color-diamond: var(--diamond); 

    /* Social roles */ 
    --color-facebook:  var(--brand-facebook); 
    --color-instagram: var(--brand-instagram); 
    --color-linkedin:  var(--brand-linkedin); 
    --color-youtube:   var(--brand-youtube); 
 
    --surface-bg:     var(--white); 
    --surface-card:   var(--white); 
    --surface-ivory:  var(--ivory); 
    --surface-cream:  var(--ivory-2); 
 
    --text-strong: var(--ink-900); 
    --text-body:   var(--ink-700); 
    --text-second: var(--ink-600); 
    --text-muted:  var(--ink-500); 
    --text-soft:   var(--ink-400); 
    --text-faint:  var(--ink-300); 
    --text-on-dark: var(--white); 
 
    --border-color:   var(--ink-100); 
    --border-soft:    var(--ink-200); 
 
    /* Accent alpha tints (decorative — olive accent). 
       Used on dark forest for eyebrows, dots, rings, dividers. */ 
    --accent-tint-040: rgba(90, 107, 58, 0.04); 
    --accent-tint-050: rgba(90, 107, 58, 0.05); 
    --accent-tint-080: rgba(90, 107, 58, 0.08); 
    --accent-tint-120: rgba(90, 107, 58, 0.12); 
    --accent-tint-200: rgba(90, 107, 58, 0.2); 
    --accent-tint-150: rgba(90, 107, 58, 0.15); 
    --accent-tint-250: rgba(90, 107, 58, 0.25); 
    --accent-tint-280: rgba(90, 107, 58, 0.28); 
    --accent-tint-400: rgba(90, 107, 58, 0.4); 
    --accent-tint-500: rgba(90, 107, 58, 0.5); 
    --accent-line:   rgba(62, 80, 49, 0.75);  /* keyline on LIGHT surfaces (5.2:1) */ 
    --primary-tint:  rgba(42, 53, 31, 0.05); 
    --ink-050:       #FAF9F1; 
    --white-tint-040: rgba(255, 255, 255, 0.04); 
    --white-tint-070: rgba(255, 255, 255, 0.07); 
    --white-tint-080: rgba(255, 255, 255, 0.08); 
    --white-tint-120: rgba(255, 255, 255, 0.12); 
    --white-tint-150: rgba(255, 255, 255, 0.15); 
    --white-tint-200: rgba(255, 255, 255, 0.2); 
    --white-tint-400: rgba(255, 255, 255, 0.4); 
    --white-tint-600: rgba(255, 255, 255, 0.6); 
    --white-tint-750: rgba(255, 255, 255, 0.75); 
 
    /* Shadows */ 
    --shadow-xs: 0 2px 8px rgba(38, 49, 30, 0.07); 
    --shadow-sm: 0 4px 16px rgba(38, 49, 30, 0.09); 
    --shadow-md: 0 8px 24px rgba(42, 53, 31, 0.14); 
    --shadow-lg: 0 12px 32px rgba(42, 53, 31, 0.16); 
    --shadow-card-hover: 0 10px 28px rgba(42, 53, 31, 0.14); 
    --shadow-tile: 0 6px 16px rgba(42, 53, 31, 0.15);       /* icon tile lift */ 
    --shadow-wa: 0 3px 12px rgba(37, 211, 102, 0.3); 
    --shadow-wa-hover: 0 5px 18px rgba(37, 211, 102, 0.45); 
    --shadow-btn-glow: 0 10px 24px rgba(42, 53, 31, 0.38); /* CTA hover glow */ 
    --shadow-gold: 0 10px 24px rgba(168, 118, 31, 0.3);  /* gold accent glow */ 
    --shadow-gold-hover: 0 14px 30px rgba(168, 118, 31, 0.4); 
    --shine-gradient: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); /* CTA shine sweep */ 
 
    /* Gradients & overlays */ 
    --gradient-footer: linear-gradient(135deg, var(--deep-navy) 0%, var(--blue) 160%); 
    --gradient-footer-top: linear-gradient(90deg, var(--blue) 0%, var(--navy) 100%); 
    --gradient-gold: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 55%, var(--gold-600) 100%); 
    --gradient-band: linear-gradient(120deg, var(--deep-navy) 0%, var(--blue) 62%, var(--royal-blue) 100%); 
    --gradient-panel: linear-gradient(155deg, var(--navy) 0%, var(--blue) 72%, var(--royal-blue) 130%); 
    --overlay-page: linear-gradient(90deg, 
        rgba(38, 49, 30, 0.92) 0%, rgba(38, 49, 30, 0.55) 60%, rgba(38, 49, 30, 0.15) 100%); 
    --overlay-slide: linear-gradient(90deg, 
        rgba(38, 49, 30, 0.86) 0%, rgba(38, 49, 30, 0.5) 60%, rgba(38, 49, 30, 0.12) 100%); 
 
    /* Radius scale */ 
    --radius-sm:  4px; 
    --radius-md:  8px; 
    --radius-lg:  12px; 
    --radius-xl:  16px; 
    --radius-card: 10px;   /* product cards          */ 
    --radius-pill: 999px; 
 
    /* Typography */ 
    --font-display: 'Playfair Display', serif; 
    --font-body: 'Inter', sans-serif; 
 
    /* Motion timings */ 
    --transition-fast: 0.2s ease; 
    --transition-base: 0.25s ease; 
    --transition-slow: 0.4s ease; 

    /* ─── SPACING SCALE (Design System) ─── 
       Consistent vertical rhythm: 8px base unit.
       Section padding: 48px (3rem) — gives breathing room.
       Inner container: 24px (1.5rem) — content needs space.
       Header margin: 48px (3rem) — separates heading from content.
       Card gaps: 24px (1.5rem) — consistent grid spacing.
       Component padding: 16-24px — comfortable touch targets (44px+). */ 
    --space-xs:  8px;   
    --space-sm:  12px;  
    --space-md:  16px;  
    --space-lg:  24px;  
    --space-xl:  32px;  
    --space-2xl: 48px;  
    --space-3xl: 64px;  
    --space-section: 48px;  /* section vertical padding */ 
    --space-inner:   24px;  /* inner container padding */ 
    --space-header:  48px;  /* section header margin-bottom */ 
    --space-card:    24px;  /* card grid gap */ 
 
    /* Feedback (form success / error) */ 
    --success-bg:    #E8F5E9; 
    --success-text:  #1B5E20; 
    --success-border:#C8E6C9; 
    --error-bg:      #FDECEA; 
    --error-text:    #B71C1C; 
    --error-border:  #F5C6CB; 
    --badge-pop:     #E8624A; 
    --shadow-strong: 0 8px 24px rgba(42, 53, 31, 0.32); 
 
    /* Legacy aliases — existing inline var(--teal)/var(--gold) etc. 
       in page markup keeps working; prefer semantic tokens above. */ 
    --teal: var(--navy); 
    --teal-dark: var(--deep-navy); 
    --teal-light: var(--pale-blue); 
    --gold-light: var(--gold-300); 
    --ivory-3: var(--ivory);

    /* Legacy tint names → real gold tints (kept so old refs still resolve).
       These were quietly aliased to the accent tints, which was part of
       why the UI read as one flat tone. */
    --gold-tint-040: rgba(212, 162, 76, 0.04); 
    --gold-tint-050: rgba(212, 162, 76, 0.05); 
    --gold-tint-080: rgba(212, 162, 76, 0.08); 
    --gold-tint-120: rgba(212, 162, 76, 0.12); 
    --gold-tint-150: rgba(212, 162, 76, 0.15); 
    --gold-tint-200: rgba(212, 162, 76, 0.2); 
    --gold-tint-250: rgba(212, 162, 76, 0.25); 
    --gold-tint-280: rgba(212, 162, 76, 0.28); 
    --gold-tint-400: rgba(212, 162, 76, 0.4); 
    --gold-tint-500: rgba(212, 162, 76, 0.5); 
    --gold-line:     rgba(212, 162, 76, 0.72); 
}
/* ── Continuous animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-bob {
    animation: float 3s ease-in-out infinite;
}

/* ───────────────────────── Base ───────────────────────── */

*:focus-visible {
    outline: 2px solid var(--color-gold-deep);
    outline-offset: 2px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--surface-bg);
    overflow-x: hidden;
}

/* AOS reveals elements with `fade-left` from 100px to the right of where they
   land (aos.css sets translate3d(100px, 0, 0)), so until such an element
   animates in it reaches past the viewport: on the homepage and contact page the
   contact column's right edge measured 1295px against a 1249px viewport. The
   body rule above already stops a scrollbar being drawn, but the overshoot still
   counts towards the document's scroll width, which is the kind of thing that
   later turns into a sideways-scrolling page.
   Clipping the inline axis of the sections that hold a rightward-animated element
   removes the overshoot at its source. It is deliberately scoped to those
   sections rather than html/body: clipping the page root turns the body into a
   scroll container and breaks the sticky navbar (#sc-navbar). `:has()` degrades
   safely — a browser without it ignores the rule and behaves as it does today. */
section:has([data-aos="fade-left"]) {
    overflow-x: clip;
}

a {
    transition: color var(--transition-fast);
}

/* Bare links inside page copy: without this they inherit Bootstrap's #0d6efd,
   which is the one blue left that no token covers. Wrapped in :where() so the
   rule adds no specificity — component styles such as .side-value a keep their
   own colour. Without it, this beat those (0,2,1 vs 0,1,1) and painted dark
   olive links on the dark green contact panel, i.e. invisible text. */
main :where(a:not([class])) {
    color: var(--color-accent);
}

main :where(a:not([class])):hover,
main :where(a:not([class])):focus-visible {
    color: var(--color-accent-dark);
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
}

/* ───── FONTS ───── */
.font-playfair {
    font-family: var(--font-display);
}

.font-playfair em {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
}

/* ── PAGE HERO BANNER ──
   No image here: each template renders its own banner from
   config/config.php → pages.<page>.hero_img as an inline background-image, so
   this rule only carries the layout. */
.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

/* The banner carries its own content padding (.page-hero-content); the
   generic `section > .container` rhythm would add another 24px top/bottom
   and make every inner-page banner taller than needed. */
.page-hero > .container {
    padding-top: 0;
    padding-bottom: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-page);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-on-dark);
    padding: 32px 0;
}

.breadcrumb-item a {
    color: var(--color-gold-light);
    text-decoration: none;
    font-size: 13px;
    /* 24px tap target on phones; the negative margin keeps the line box as it was. */
    display: inline-block;
    padding: 4px 0;
    margin: -4px 0;
}

.breadcrumb-item.active {
    color: var(--text-on-dark);
    font-size: 13px;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-soft);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.12;
}

/* Page titles sit on dark hero imagery — force light text there
   (the generic h1 rule would otherwise make them near-black). */
.page-hero-content .page-title,
.page-hero-content h1 {
    color: var(--text-on-dark);
}

.page-title em {
    font-style: italic;
    color: var(--color-gold-light);
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold-text);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
}

.section-title em {
    font-style: italic;
    color: var(--green);
}

.bg-ivory {
    background: var(--surface-ivory);
}

.bg-ivory2 {
    background: var(--surface-cream);
}

/* ══ ICON TONE HELPERS ══
   Gold is the default icon colour. Drop one of these classes on any icon
   plate element and both the plate and its glyph re-colour, because the
   plates read --tone-bg / --tone. Used to rotate the accent hues through
   long card grids (services, stats, values) so they don't all read alike. */
.i-gold    { --tone: var(--gold-700);  --tone-bg: var(--gold-100); }
.i-copper  { --tone: var(--copper);    --tone-bg: var(--copper-soft); }
.i-emerald { --tone: var(--emerald);   --tone-bg: var(--emerald-soft); }
.i-petrol  { --tone: var(--petrol);    --tone-bg: var(--petrol-soft); }
.i-diamond { --tone: var(--diamond);   --tone-bg: var(--diamond-soft); }

/* Same rotation for elements that only need a colour and no plate —
   stat figures, eyebrow rules, year labels. Pair with color: var(--tone). */
.t-gold    { --tone: var(--gold-500); }
.t-copper  { --tone: var(--copper); }
.t-emerald { --tone: var(--emerald); }
.t-petrol  { --tone: var(--petrol); }
.t-diamond { --tone: var(--diamond); }

/* ── Service Cards (icon-based, no images) — shared home + service ── */
.svc-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--surface-card);
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
    height: 100%;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

/* Top accent line */
.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--royal-blue), var(--bright-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

.svc-card:hover {
    border-color: var(--bright-blue);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-tint-120);
    filter: brightness(1.02);
}

.svc-icon-wrap {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: var(--tone-bg, var(--color-icon-plate));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.svc-card:hover .svc-icon-wrap {
    transform: translateY(-3px);
    box-shadow: var(--shadow-tile);
}

.svc-icon-wrap i {
    font-size: 28px;
    color: var(--tone, var(--color-icon));
    transition: color var(--transition-base);
}

.svc-num {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-primary);
    color: var(--text-on-dark);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--surface-card);
}

.svc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.svc-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-strong);
    transition: color var(--transition-fast);
}

.svc-card:hover .svc-title {
    color: var(--color-accent-dark);
}

.svc-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.svc-tags span {
    display: inline-block;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

/* ── INFO CARDS (shared: service + contact "Why Buyers Work With Us") ── */
.info-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 26px;
    background: var(--surface-card);
    height: 100%;
    transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--bright-blue));
}

.info-card:hover {
    border-color: var(--bright-blue);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-tint-120);
}

.info-icon {
    width: 68px;
    height: 68px;
    background: var(--tone-bg, var(--color-icon-plate));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.info-card:hover .info-icon {
    transform: translateY(-3px);
    box-shadow: var(--shadow-tile);
}

.info-icon i {
    font-size: 28px;
    color: var(--tone, var(--color-icon));
}

.info-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-strong);
    transition: color var(--transition-fast);
    line-height: 1.4;
}

.info-card:hover .info-title {
    color: var(--color-accent-dark);
}

.info-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ── COLLECTION CARDS (shared: home collections + pro-details related) ── */
.cat-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    color: var(--text-strong);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.cat-card:hover,
.cat-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

/* Blue accent line that slides in from the bottom on hover */
.cat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--royal-blue), var(--bright-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: 3;
}

.cat-card:hover::after {
    transform: scaleX(1);
}

/* Image — fixed, responsive thumbnail height (a square crop made the cards far
   too tall). `object-fit: cover` still fills it neatly with the 500 × 500
   product photos from the graphics guide, whatever their aspect. */
.cat-img {
    height: clamp(140px, 16vw, 190px);
    overflow: hidden;
    background: var(--surface-cream);
    position: relative;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.cat-card:hover .cat-img img {
    transform: scale(1.08);
}

/* Grade badge on image — gold accent */
.cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-gold);
    color: var(--color-primary-deep);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* Bottom gradient that deepens on hover — navy blue tint */
.cat-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(42, 53, 31, 0.28) 100%);
    opacity: 0.6;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 1;
}

.cat-card:hover .cat-img::after {
    opacity: 1;
}

/* Info strip — flex column so the action buttons line up across every card
   in a row, no matter how long the name or description is */
.cat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
    background: var(--surface-card);
    transition: background var(--transition-base);
}

.cat-card:hover .cat-info {
    background: var(--accent-tint-040);
}

.cat-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    transition: color var(--transition-fast);
    /* Two-line clamp keeps long names from stretching one card only */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card:hover .cat-name {
    color: var(--color-accent-dark);
}

/* Short description — live from DB, 2-line clamp (flex:1 pushes the actions down) */
.cat-desc {
    flex: 1;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card link — image + text block. The card itself is a <div> so the action
   buttons below can be real links (an <a> inside an <a> is invalid HTML). */
.cat-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

/* Actions: View Details (outline) + Enquire (solid gold) */
.cat-actions {
    display: flex;
    gap: 8px;
    margin: 0 16px;
    padding: 12px 0 14px;
    border-top: 1px solid var(--border-soft);
    transition: border-color var(--transition-base);
}

.cat-card:hover .cat-actions {
    border-top-color: var(--accent-tint-200);
}

.cat-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-base), color var(--transition-base),
        border-color var(--transition-base), box-shadow var(--transition-base),
        transform var(--transition-fast);
}

.cat-btn i {
    font-size: 12px;
}

/* Visible keyboard focus on both actions */
.cat-btn:focus-visible {
    outline: 2px solid var(--color-gold-deep);
    outline-offset: 2px;
}

/* Secondary action — white outline by default */
.cat-btn--view {
    border: 1.5px solid var(--border-color);
    background: var(--surface-card);
    color: var(--text-body);
}

/* Primary action — solid navy by default */
.cat-btn--enq {
    border: 1.5px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--text-on-dark);
}

/* The two actions are deliberate opposites: each one's hover is the other's
   default look, so the pair swaps on hover (outline ↔ solid navy). */
.cat-btn--view:hover,
.cat-btn--view:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cat-btn--enq:hover,
.cat-btn--enq:focus-visible {
    background: var(--surface-card);
    border-color: var(--border-color);
    color: var(--text-body);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Long labels on desktop; the short label takes over on phones */
.cat-btn .lbl-short {
    display: none;
}

@media (max-width: 575px) {
    .cat-actions {
        gap: 8px;
        margin: 0 12px;
        padding: 10px 0 12px;
    }

    .cat-btn {
        gap: 4px;
        padding: 8px 6px;
        font-size: 11px;
    }

    .cat-btn .lbl-long {
        display: none;
    }

    .cat-btn .lbl-short {
        display: inline;
    }
}

/* ── PRODUCT CARDS (shared: home + product + pro-details) ── */
.product-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
    cursor: pointer;
    height: 100%;
    box-shadow: var(--shadow-xs);
}

.product-card:hover {
    border-color: var(--bright-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-tint-120);
    filter: brightness(1.02);
}

.product-img {
    height: 210px;
    overflow: hidden;
    position: relative;
    background: var(--surface-cream);
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-gold);
    color: var(--color-primary-deep);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.product-info {
    padding: 16px 18px;
}

.product-type {
    font-size: 11px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.35;
}

.product-price {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-gold-deep);
}

.product-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-soft);
}

.btn-view {
    background: var(--color-icon-plate);
    color: var(--color-gold-text);
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    background: var(--color-gold);
    color: var(--color-primary-deep);
}

/* ── CTA STRIP ── */
.cta-strip {
    background: var(--gradient-band);
    border-top: 3px solid var(--color-gold);
}

.cta-strip .text-white,
.cta-strip h3 {
    color: var(--text-on-dark);
}

.btn-gold {
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
    color: var(--text-on-dark);
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition-base), color var(--transition-base),
        transform var(--transition-base), box-shadow var(--transition-base);
    border: none;
    cursor: pointer;
}

/* CTA shine sweep (animations.md: CTA Button Shine Effect)
   Uses transform (GPU-accelerated) per the doc's performance rules. */
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shine-gradient);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.btn-gold:hover::before,
.btn-gold:focus-visible::before {
    transform: translateX(230%) skewX(-20deg);
}

/* Arrow slide on CTA hover (animations.md: Button Arrow Slide) */
.btn-gold i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-gold:hover i,
.btn-gold:focus-visible i {
    transform: translateX(5px);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--color-primary-deep);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-glow);
}

/* Buttons placed ON dark surfaces flip to a warm gold fill — it lifts the
   CTA off the deep navy band while staying inside the brand's premium range. */
.page-hero .btn-gold,
.slide-content .btn-gold,
.cta-strip .btn-gold,
.footer-nl-strip .btn-gold {
    background: var(--gradient-gold);
    color: var(--color-primary-deep);
    border: 1.5px solid var(--gold-tint-400);
}

.page-hero .btn-gold:hover,
.page-hero .btn-gold:focus-visible,
.slide-content .btn-gold:hover,
.slide-content .btn-gold:focus-visible,
.cta-strip .btn-gold:hover,
.cta-strip .btn-gold:focus-visible,
.footer-nl-strip .btn-gold:hover,
.footer-nl-strip .btn-gold:focus-visible {
    background: var(--color-gold-light);
    color: var(--color-primary-deep);
    border-color: var(--color-gold-light);
    box-shadow: var(--shadow-gold-hover);
}

.btn-outline-w {
    border: 1.5px solid var(--white-tint-600);
    color: var(--text-on-dark);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition-base), color var(--transition-base);
}

.btn-outline-w:hover {
    background: var(--white-tint-120);
    color: var(--text-on-dark);
}

/* Same outline button for LIGHT surfaces — .btn-outline-w is invisible
   there (white text and border on a cream/white section). */
.btn-outline {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition-base), color var(--transition-base);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--text-on-dark);
}

/* ── CONTACT FORM (shared: home + contact) ── */
.contact-form-wrap {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-xs);
    height: 100%; /* match side panel height so both cards align */
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 5px;
}

.form-control,
.form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    padding: 11px 14px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background-color: var(--surface-bg);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--gold-tint-200);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-faint);
}

.btn-submit {
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
    color: var(--text-on-dark);
    padding: 13px 36px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base),
        box-shadow var(--transition-base);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shine-gradient);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.btn-submit:hover::before,
.btn-submit:focus-visible::before {
    transform: translateX(230%) skewX(-20deg);
}

.btn-submit:hover,
.btn-submit:focus-visible {
    background: var(--color-primary-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-glow);
}

/* ── CONTACT SIDE PANEL (shared: home + contact) ── */
.contact-side {
    background: var(--gradient-panel);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    color: var(--text-on-dark);
    height: 100%;
}

.side-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.side-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.7;
}

.side-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.side-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-tint-200);
    border: 1px solid var(--gold-tint-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-icon i {
    font-size: 18px;
    color: var(--color-icon-on-dark);
}

.side-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-icon-on-dark);
    margin-bottom: 4px;
}

.side-value {
    font-size: 14px;
    color: var(--text-on-dark);
    line-height: 1.6;
}

.side-value a {
    color: var(--text-on-dark);
    text-decoration: none;
    /* 24px tap target on phones; the negative margin keeps the line box as it was. */
    display: inline-block;
    padding: 4px 0;
    margin: -4px 0;
}

.side-value a:hover {
    text-decoration: underline;
    color: var(--color-icon-on-dark);
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}

/* ── SOCIAL CHIPS (shared: contact side panel + footer) ──
   Each chip carries its own platform's colour so a Facebook icon reads as
   Facebook instead of brand blue. Solid brand fill + white mark = the same
   treatment the real badges use; Instagram keeps its five-stop gradient. */
.social-btn,
.f-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white-tint-150);
    border: 1px solid var(--white-tint-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    font-size: 17px;
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base),
        transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

.social-btn i,
.f-social i {
    color: inherit;
    line-height: 1;
}

.social-btn:hover,
.f-social:hover {
    color: var(--text-on-dark);
    transform: translateY(-3px);
}

/* Facebook */
.social-btn[href*="facebook"],
.f-social[href*="facebook"] {
    background: var(--brand-facebook);
    border-color: var(--brand-facebook);
}

.social-btn[href*="facebook"]:hover,
.f-social[href*="facebook"]:hover {
    background: var(--brand-facebook-d);
    border-color: var(--brand-facebook-d);
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.35);
}

/* Instagram — gradient chip, brightened on hover */
.social-btn[href*="instagram"],
.f-social[href*="instagram"] {
    background: var(--gradient-instagram);
    border-color: transparent;
}

.social-btn[href*="instagram"]:hover,
.f-social[href*="instagram"]:hover {
    background: var(--gradient-instagram);
    filter: brightness(1.08);
    box-shadow: 0 8px 18px rgba(214, 41, 118, 0.35);
}

/* LinkedIn */
.social-btn[href*="linkedin"],
.f-social[href*="linkedin"] {
    background: var(--brand-linkedin);
    border-color: var(--brand-linkedin);
}

.social-btn[href*="linkedin"]:hover,
.f-social[href*="linkedin"]:hover {
    background: var(--brand-linkedin-d);
    border-color: var(--brand-linkedin-d);
    box-shadow: 0 8px 18px rgba(10, 102, 194, 0.35);
}

/* WhatsApp */
.social-btn[href*="wa.me"],
.social-btn[href*="whatsapp"],
.f-social[href*="wa.me"],
.f-social[href*="whatsapp"] {
    background: var(--brand-whatsapp);
    border-color: var(--brand-whatsapp);
}

.social-btn[href*="wa.me"]:hover,
.social-btn[href*="whatsapp"]:hover,
.f-social[href*="wa.me"]:hover,
.f-social[href*="whatsapp"]:hover {
    background: var(--brand-whatsapp-d);
    border-color: var(--brand-whatsapp-d);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

/* YouTube */
.social-btn[href*="youtube"],
.f-social[href*="youtube"] {
    background: var(--brand-youtube);
    border-color: var(--brand-youtube);
}

.social-btn[href*="youtube"]:hover,
.f-social[href*="youtube"]:hover {
    background: var(--brand-youtube-d);
    border-color: var(--brand-youtube-d);
    box-shadow: 0 8px 18px rgba(255, 0, 0, 0.3);
}

/* X / Twitter */
.social-btn[href*="twitter"],
.social-btn[href*="//x.com"],
.f-social[href*="twitter"],
.f-social[href*="//x.com"] {
    background: var(--brand-x);
    border-color: var(--brand-x);
}

.social-btn[href*="twitter"]:hover,
.social-btn[href*="//x.com"]:hover,
.f-social[href*="twitter"]:hover,
.f-social[href*="//x.com"]:hover {
    background: var(--brand-x-d);
    border-color: var(--brand-x-d);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* TikTok / Pinterest / Telegram */
.social-btn[href*="tiktok"],
.f-social[href*="tiktok"] {
    background: var(--brand-tiktok);
    border-color: var(--brand-tiktok);
}

.social-btn[href*="pinterest"],
.f-social[href*="pinterest"] {
    background: var(--brand-pinterest);
    border-color: var(--brand-pinterest);
}

.social-btn[href*="t.me"],
.f-social[href*="t.me"] {
    background: var(--brand-telegram);
    border-color: var(--brand-telegram);
}

.social-btn[href*="tiktok"]:hover,
.f-social[href*="tiktok"]:hover,
.social-btn[href*="pinterest"]:hover,
.f-social[href*="pinterest"]:hover,
.social-btn[href*="t.me"]:hover,
.f-social[href*="t.me"]:hover {
    filter: brightness(1.12);
    box-shadow: var(--shadow-xs);
}

.whatsapp-strip {
    background: var(--color-whatsapp);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    text-decoration: none;
    transition: background var(--transition-base);
}

.whatsapp-strip:hover {
    background: var(--color-whatsapp-dark);
}

.whatsapp-strip i {
    font-size: 26px;
    color: var(--text-on-dark);
}

.whatsapp-strip span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-on-dark);
    line-height: 1.4;
}

/* ── RESPONSE MSG (AJAX forms) ── */
.response-msg {
    font-size: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.response-msg.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.response-msg.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

/* ════════════════════════════════════════════════════════════════
   SECTION SPACING SYSTEM — Consistent vertical rhythm
   Applied globally so all pages share the same spacing.
   ════════════════════════════════════════════════════════════════ */

/* Section base spacing — consistent 48px vertical rhythm */
section[class*="py-"] {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

/* Inner container breathing room */
section > .container {
    padding-top: var(--space-inner);
    padding-bottom: var(--space-inner);
}

/* Bootstrap widens a row's negative side margins with its gutter utility (`g-*`),
   but a .container only ever reserves `--bs-gutter-x: 1.5rem` (12px) of padding.
   A `g-5` row (3rem) is therefore 24px wider than the container's content box: at
   a 485px viewport the footer row measured 509px wide sitting at `left: -12px`, so
   once the container filled the screen the row stuck out 12px on each side and the
   right edge was clipped by the page's `overflow-x: hidden`. Matching the container's
   gutter to the row's restores the spacing the gutter was asked for and removes the
   overflow. The three `g-5` rows in the build — the footer body, the About story and
   the product-detail gallery — are all direct children of a .container. */
.container:has(> .row.g-5) {
    --bs-gutter-x: 3rem;
}

/* Section header — eyebrow + title block */
section .text-center.mb-4,
section .text-center.mb-5 {
    margin-bottom: var(--space-header);
}

/* Section header eyebrow spacing */
.section-eyebrow {
    margin-bottom: 10px;
}

/* Section title spacing from content */
.section-title {
    margin-bottom: 24px;
}

/* Card grid consistent gaps */
.row.g-4 > [class*="col-"] {
    padding-bottom: var(--space-card);
}

/* ── Reduced motion (animations.md performance rules) ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .float-bob,
    .story-img-badge,
    .marquee-inner {
        animation: none !important;
    }

    .btn-gold::before,
    .btn-submit::before {
        display: none;
    }

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

/* ═══════════ PAGINATION ═══════════
   Numbered pagination for product grids (homepage grid + product.php).
   Shared component, so it lives here rather than in a single page sheet.
   Design tokens from this file — matches the gold badge + navy CTA palette.
   ═══════════════════════════════════ */

.pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 0 12px;
}

/* Showing counter — top line */
.pagination-info {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Bar: prev / page numbers / next */
.pagination-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Page number buttons */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-num,
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base),
        transform var(--transition-base), box-shadow var(--transition-base);
    border: 1.5px solid var(--border-color);
    background: var(--surface-card);
    color: var(--text-body);
    cursor: pointer;
}

/* Hover — lift + glow */
.page-num:hover,
.page-btn:hover {
    background: var(--color-primary);
    color: var(--text-on-dark);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(42, 53, 31, 0.25);
}

/* Active page — gold gradient (matches badge style) */
.page-num.active {
    background: var(--gradient-gold);
    color: var(--color-primary-deep);
    border-color: var(--gold-400);
    cursor: default;
    box-shadow: 0 4px 14px rgba(168, 118, 31, 0.25);
    transform: translateY(-1px);
}

/* Disabled state */
.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Prev / Next label */
.page-prev,
.page-next {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    gap: 4px;
}

.page-prev i,
.page-next i {
    font-size: 11px;
}

/* Ellipsis */
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 40px;
    font-size: 14px;
    color: var(--text-soft);
    letter-spacing: 2px;
}

/* ── Responsive pagination ── */
@media (max-width: 575px) {
    .pagination-bar {
        gap: 5px;
    }

    .page-num,
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        padding: 0 8px;
    }

    .page-btn.page-prev,
    .page-btn.page-next {
        padding: 0 10px;
        font-size: 11px;
    }

    .pagination-info {
        font-size: 12px;
    }
}