/* ============================================
   HVRA — Premium Tapware
   Architectural Minimalism Design System
   ============================================ */

/* --- Custom font: Alesand --- */
@font-face {
    font-family: 'Alesand';
    src: url('../fonts/Alesand Light.otf') format('opentype'),
         url('../fonts/Alesand Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alesand';
    src: url('../fonts/Alesand Regular.otf') format('opentype'),
         url('../fonts/Alesand Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alesand';
    src: url('../fonts/Alesand Bold.otf') format('opentype'),
         url('../fonts/Alesand Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alesand';
    src: url('../fonts/Alesand Extra Bold.otf') format('opentype'),
         url('../fonts/Alesand Extra Bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* Decorative cuts kept as separate families for ad-hoc display use */
@font-face {
    font-family: 'Alesand Round';
    src: url('../fonts/Alesand Extra Round.otf') format('opentype'),
         url('../fonts/Alesand Extra Round.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Alesand Outline';
    src: url('../fonts/Alesand Extra Outline.otf') format('opentype'),
         url('../fonts/Alesand Extra Outline.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Alesand Extrude';
    src: url('../fonts/Alesand Extra Extrude.otf') format('opentype'),
         url('../fonts/Alesand Extra Extrude.ttf') format('truetype');
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #fafaf8;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #6b6b6b;
    --color-text-muted: #999999;
    --color-accent: #1d3a5f;
    --color-accent-light: #f0e2c5;
    --color-border: #e8e6e1;
    --color-border-light: #f0eeea;
    --color-dark: #1d3a5f;
    --color-dark-surface: #234974;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-nav: 'Alesand', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --radius: 2px;
    --nav-height: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* --- Typography --- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}
.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-out);
}
.btn--primary {
    background: var(--color-dark);
    color: var(--color-bg);
}
.btn--primary:hover {
    background: var(--color-dark-surface);
}
.btn--outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}
.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}
.btn--secondary {
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.btn--secondary:hover {
    border-color: var(--color-text);
}
.btn--small {
    padding: 10px 20px;
    font-size: 0.8rem;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: var(--radius);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.4s var(--ease-out);
}
.nav.scrolled,
.nav[data-fixed-nav] {
    background: rgba(29, 58, 95, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* backdrop-filter creates a containing block, which traps the position:fixed
   mobile menu inside the 72px nav. Disable it whenever the menu is open so the
   menu can fill the viewport. */
.nav:has(.nav-menu.active) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav.scrolled .nav-logo,
.nav.scrolled .nav-link,
.nav.scrolled .nav-cart,
.nav[data-fixed-nav] .nav-logo,
.nav[data-fixed-nav] .nav-link,
.nav[data-fixed-nav] .nav-cart { color: #fff; }

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Minimum breathing room between the wordmark and the first menu link.
       With space-between alone the gap collapses to 0 at narrower viewports;
       this `gap` acts as a floor (and is a no-op when there's already room). */
    gap: clamp(40px, 5vw, 72px);
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo-img {
    height: 44px; /* golden ratio of 72px nav height (72 × 0.618) */
    width: auto;
    /* The PEPPY TAPS glyphs sit in the lower portion of the SVG viewBox, so
       a mathematically centered img appears optically low next to the menu
       text. Nudge up a couple pixels to bring the wordmark's visual center
       in line with the menu links. */
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-nav);
    /* Scales from 0.88rem at narrow desktop widths up to 1rem on large /
       high-DPI screens so the nav reads cleanly on 4K monitors without
       feeling oversized on a 13" laptop. Mobile keeps 1.4rem (see the
       mobile media-query override further down). */
    font-size: clamp(0.88rem, 0.72rem + 0.25vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav.scrolled .nav-link:hover { color: var(--color-accent-light); }

.nav-link--trade {
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav-link--trade:hover {
    background: #fff;
    color: var(--color-dark);
    border-color: #fff;
}
.nav.scrolled .nav-link--trade {
    border-color: rgba(255,255,255,0.4);
}
.nav.scrolled .nav-link--trade:hover {
    background: #fff;
    color: var(--color-dark);
    border-color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-cart {
    /* Hidden site-wide as of May 2026 — direct sales (filter cartridge,
       installation) now go through Stripe Buy Links rather than a
       Shopify Cart, so a global cart icon has no useful state. The
       button markup stays in nav for now in case a Spare Parts listing
       reintroduces a real cart later. */
    display: none;
    color: rgba(255,255,255,0.85);
    position: relative;
    transition: color 0.3s;
}
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 0.65rem;
    background: var(--color-accent);
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    padding: 4px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: #fff;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
    transform-origin: center;
}
.nav.scrolled .nav-toggle span { background: #fff; }
/* Active (X) state — must override scrolled rule (higher specificity) so the X
   is visible against the white menu background regardless of scroll position. */
.nav-toggle.active span,
.nav.scrolled .nav-toggle.active span { background: var(--color-text); }
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    padding: 12px 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s var(--ease-out);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: block;
    padding: 10px 24px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}
.dropdown-item:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

/* --- Hero --- */
.hero {
    position: relative;
    /* Two-line height so iOS Safari doesn't re-flow the hero when its
       address bar collapses on the first scroll. 100vh is the legacy
       fallback for browsers that don't support dvh; 100dvh is the
       dynamic-viewport unit that matches the *current* visible
       viewport — when Safari's URL bar shrinks the visible viewport
       grows, but dvh tracks it without a layout jump. Removed the
       jaggy "first scroll from hero" feel reported during QA. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
}
.hero-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a18 40%, #2a2520 100%);
    position: relative;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.ambient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.ambient-circle--1 {
    width: 600px; height: 600px;
    background: var(--color-accent);
    top: -200px; right: -100px;
    animation: ambientFloat 20s ease-in-out infinite;
}
.ambient-circle--2 {
    width: 400px; height: 400px;
    background: #5a7a8a;
    bottom: -100px; left: -100px;
    animation: ambientFloat 25s ease-in-out infinite reverse;
}
.ambient-circle--3 {
    width: 300px; height: 300px;
    background: var(--color-accent-light);
    top: 40%; left: 30%;
    animation: ambientFloat 18s ease-in-out infinite 5s;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}
.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero-title em {
    font-style: italic;
    color: var(--color-dark);
}
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #fff;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}
.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Audience Cards --- */
.audience {
    /* Top sits against the compact trust-bar; bottom sits against
       .why-peppy whose off-white bg already gives visual separation,
       so we can tighten the bottom more aggressively. */
    padding: clamp(36px, 4.5vw, 64px) 0 clamp(28px, 3.5vw, 48px);
}
.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.audience-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    /* Wide landscape — matches the source mockup aspect (~2.36:1) so
       the full kitchen scene + tap fits without cropping. */
    aspect-ratio: 7/3;
}
.audience-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.8s var(--ease-out);
}
/* Mockup backgrounds. Each source image already has the tap on the
   correct side for its card — Signature mockup has tap on the right
   (clears for left-side text), Flagship mockup has tap on the left
   (clears for right-side text). No flipping needed. */
.audience-card-image--signature {
    background-image: url('../img/mockup/peppy-mock-2.png');
    background-position: center;
}
.audience-card-image--flagship {
    background-image: url('../img/mockup/peppy-mock-3.png');
    /* Zoom in ~30% and shift so the tap sits near the LEFT edge of
       the card. Higher bg-position % = crops more from the LEFT of
       the source, which pulls the tap leftward in the visible area. */
    background-size: 130%;
    background-position: 100% center;
}
.audience-card:hover .audience-card-image {
    transform: scale(1.04);
}

.audience-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3vw, 44px);
    color: #fff;
}
/* Per-card content positioning. Signature: text on the LEFT side of
   the card (tap is on the right after flip), text-aligned LEFT. The
   side-gradient gives the text area enough darkness for legibility on
   the bright mockup. */
.audience-card--signature .audience-card-content {
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(to right,
        rgba(15, 25, 45, 0.78) 0%,
        rgba(15, 25, 45, 0.48) 38%,
        rgba(15, 25, 45, 0.10) 60%,
        transparent 75%);
}
/* Flagship: text on the RIGHT side, text-aligned RIGHT, gradient
   mirrored. */
.audience-card--flagship .audience-card-content {
    align-items: flex-end;
    text-align: right;
    background: linear-gradient(to left,
        rgba(15, 25, 45, 0.78) 0%,
        rgba(15, 25, 45, 0.48) 38%,
        rgba(15, 25, 45, 0.10) 60%,
        transparent 75%);
}

.audience-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    margin-bottom: 10px;
    line-height: 1.15;
}
.audience-card-text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    max-width: 42ch;
    margin-bottom: 14px;
    line-height: 1.55;
}
.audience-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    transition: gap 0.3s var(--ease-out);
}
.audience-card:hover .audience-card-link { gap: 14px; }

/* --- Products Grid --- */
.products {
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--color-surface);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
/* Three-up modifier — used on the homepage so we get two clean rows of 3
   (Signature Collection on row 1, Flagship + Filters on row 2). */
.products-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.product-card-link {
    display: block;
}
.product-card-image {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    background: #ffffff;
}
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--ease-out);
}
.product-placeholder--1 { background: linear-gradient(180deg, #f5f0eb, #e8e0d8); }
.product-placeholder--2 { background: linear-gradient(180deg, #eef1f4, #dde3e8); }
.product-placeholder--3 { background: linear-gradient(180deg, #f0ede8, #e0dbd4); }
.product-placeholder--4 { background: linear-gradient(180deg, #ededeb, #e0dfdc); }

.product-card:hover .product-placeholder { transform: scale(1.03); }

/* Tap silhouettes */
.product-silhouette {
    width: 60%;
    height: 70%;
    position: relative;
}
.product-silhouette--arc {
    background: linear-gradient(180deg, transparent 0%, rgba(139,115,85,0.08) 100%);
    border-radius: 0 0 50% 50%;
    border: 1px solid rgba(139,115,85,0.15);
    border-top: none;
}
.product-silhouette--arc::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 8%;
    background: rgba(139,115,85,0.12);
    border-radius: 4px 4px 0 0;
}
.product-silhouette--sena {
    width: 40%;
    background: linear-gradient(180deg, rgba(100,120,140,0.1) 0%, rgba(100,120,140,0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(100,120,140,0.15);
}
.product-silhouette--zenith {
    width: 50%;
    height: 65%;
    background: linear-gradient(180deg, rgba(139,115,85,0.06) 0%, rgba(139,115,85,0.12) 100%);
    clip-path: polygon(30% 0%, 70% 0%, 65% 85%, 50% 100%, 35% 85%);
}
.product-silhouette--flux {
    width: 35%;
    height: 75%;
    background: linear-gradient(180deg, rgba(120,120,115,0.08) 0%, rgba(120,120,115,0.04) 100%);
    border: 1px solid rgba(120,120,115,0.12);
    border-radius: 4px;
}

/* Real product images */
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4%;
    transition: transform 0.6s var(--ease-out);
}
/* Smaller-render modifier — used for portrait product photos (e.g. filter cartridge)
   so they appear at a similar visual size to the landscape tap photography. */
.product-card-img--small {
    padding: 16%;
}
.product-card:hover .product-card-img { transform: scale(1.03); }

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: var(--radius);
}
.product-card-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.product-card-desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.product-card-price {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
}
.products-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.products-cta {
    text-align: center;
    margin-top: clamp(40px, 5vw, 64px);
}

/* --- Features --- */
.features {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--color-dark);
    color: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.feature {
    text-align: center;
}
.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--color-accent-light);
}
.feature-icon svg {
    width: 100%;
    height: 100%;
}
.feature-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.feature-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* --- Inspiration --- */
.inspiration {
    padding: clamp(56px, 7vw, 100px) 0;
}
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}
.inspiration-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}
.inspiration-item--large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}
.inspiration-item--wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}
.inspiration-image {
    position: absolute;
    inset: 0;
    transition: transform 0.8s var(--ease-out);
}
.inspiration-item:hover .inspiration-image { transform: scale(1.05); }

.inspiration-image-real {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.inspiration-item:hover .inspiration-image-real { transform: scale(1.05); }

.inspiration-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s;
}
.inspiration-item:hover .inspiration-overlay { opacity: 1; }

.inspiration-tag {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 8px;
}
.inspiration-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.inspiration-overlay p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* --- Finishes --- */
.finishes {
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--color-surface);
}
.finishes-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.finishes-layout--centred {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.finishes-layout--centred .finishes-text {
    margin: 0 auto;
}
.finish-options {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
/* ─── Finish swatch picker — Billi-inspired square chips ──────
   Clean architectural squares, flat colours, label hidden by
   default and revealed as a small dark tooltip on hover. The
   only "selected" indicator is a slightly thicker dark border. */
.finish-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    cursor: pointer;
    /* Square card; the swatch fills nearly all of it. */
    width: 64px;
    height: 64px;
    border: 1.5px solid var(--color-border-light);
    border-radius: 6px;
    transition: border-color 0.2s var(--ease-out),
                transform 0.2s var(--ease-out);
}
.finish-option:hover {
    border-color: rgba(29, 58, 95, 0.45);
}
.finish-option.active {
    border-color: var(--color-accent);    /* navy */
    border-width: 2px;
}

.finish-swatch {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    /* Slight inset on hover/active so the swatch hugs the inner border */
    transition: transform 0.2s var(--ease-out);
}

/* Flat colour fills (Billi-style) — no metallic gradient, just clean
   solid panels. Each finish gets a representative single tone. */
.finish-swatch--chrome         { background: #d4d6d7; }
.finish-swatch--matte-black    { background: #1a1a1a; }
.finish-swatch--brushed-brass  { background: #e0b22a; }
.finish-swatch--gunmetal       { background: #3d4245; }
.finish-swatch--brushed-nickel { background: #b6b1ab; }

/* Label becomes a dark tooltip floating above the swatch on hover.
   Hidden in default flow — accessible via screen readers because the
   <span> still exists in the DOM with text content. */
.finish-name {
    /* Visually hidden by default but kept in DOM for a11y */
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1a1a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s, transform 0.18s var(--ease-out);
    z-index: 5;
}
/* Tooltip arrow */
.finish-name::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1a1a1a;
}
.finish-option:hover .finish-name,
.finish-option:focus-visible .finish-name {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.finish-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}
/* No background frame — let the tap image float on the section surface. */
.finish-preview-tap {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}
.finish-tap-img {
    max-height: 90%;
    max-width: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.4s var(--ease-out);
}

.finish-preview-label {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    text-align: center;
}

/* --- Support --- */
.support {
    padding: clamp(56px, 7vw, 100px) 0;
}
.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.support-card--wide {
    grid-column: span 2;
}
.support-card {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-out);
    display: block;
}
.support-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.support-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    color: var(--color-accent);
}
.support-icon svg { width: 100%; height: 100%; }
.support-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.support-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Consumables --- */
.consumables {
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--color-dark);
    color: #fff;
}
.consumables-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.consumable-product {
    display: flex;
    align-items: center;
    justify-content: center;
    /* No aspect-ratio constraint — the filter cartridge image is portrait;
       forcing the container to a square added a lot of empty navy padding
       around it. The grid uses align-items:center so both columns still
       line up vertically when this column hugs the image. */
}
.consumable-render {
    width: 200px;
    height: 300px;
    border-radius: 16px;
    position: relative;
}
.consumable-render--filter {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255,255,255,0.08);
}
.consumable-render--filter::before {
    content: 'HVRA';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.08);
}
.consumable-render--filter::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.consumables .section-subtitle {
    color: rgba(255,255,255,0.55);
    margin-bottom: 32px;
}
.consumable-options {
    margin-bottom: 32px;
}
.consumable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.consumable-name {
    font-size: 0.9rem;
}
.consumable-price {
    font-size: 0.9rem;
    font-weight: 500;
}
.consumable-price small {
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    margin-left: 4px;
    font-size: 0.8em;
}
.consumables .btn--primary {
    background: var(--color-accent);
}
.consumables .btn--primary:hover {
    background: var(--color-accent-light);
    color: var(--color-dark);
}

/* --- Dealer Locator --- */
.dealers {
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--color-surface);
}

/* Homepage-only: shrink the locator from 600px (where-to-buy default) to
   480px so it doesn't dominate the section. Only applies above the tablet
   breakpoint — on mobile/tablet the stockists.css mobile rules already
   cap the map at 310/420px, so we leave them alone. */
@media (min-width: 901px) {
    .dealers .st-locator,
    .dealers #stockistMap {
        min-height: 480px;
    }
    .dealers .st-results {
        /* Cap tighter than where-to-buy (600px) so the list panel doesn't
           push the grid row past the 480px min-height we set above. */
        max-height: 300px;
    }
}
.dealer-locator {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    min-height: 480px;
}
.dealer-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    background: var(--color-bg);
}
.dealer-search-input svg { color: var(--color-text-muted); flex-shrink: 0; }
.dealer-search-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
}
.dealer-result {
    padding: 20px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.dealer-result:hover {
    border-color: var(--color-accent);
    background: var(--color-bg);
}
.dealer-result h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.dealer-result p {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
}
.dealer-distance {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
}
.dealer-map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 480px;
    z-index: 1;
}

/* --- Dealer Map Markers --- */
.dealer-marker-inner {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border: 2.5px solid #fff;
    transition: transform 0.2s ease;
}
.dealer-marker:hover .dealer-marker-inner {
    transform: rotate(-45deg) scale(1.12);
}
.dealer-marker-inner > * { transform: rotate(45deg); }
/* Harvey Norman — brand green */
.dealer-marker--hn .dealer-marker-inner { background: #7AB800; }
/* Tradelink — brand navy */
.dealer-marker--tl .dealer-marker-inner { background: #003A70; }
/* Reece — brand red */
.dealer-marker--reece .dealer-marker-inner { background: #E4002B; }

.user-marker-dot {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(59,130,246,0.5);
}

/* --- Dealer Popup --- */
.dealer-popup { font-family: 'Inter', sans-serif; }
.dealer-popup strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.dealer-popup .dealer-popup-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 6px;
}
.dealer-popup p { font-size: 0.8rem; color: #666; margin: 0 0 6px; }
.dealer-popup a {
    display: block;
    font-size: 0.78rem;
    color: var(--color-accent);
    text-decoration: none;
    margin-bottom: 2px;
}
.dealer-popup a:hover { text-decoration: underline; }

/* --- Dealer Result Enhancements --- */
.dealer-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.dealer-result-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.dealer-phone, .dealer-directions {
    font-size: 0.78rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.dealer-phone:hover, .dealer-directions:hover { text-decoration: underline; }
.dealer-type-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
    background: #f0eeea;
    color: var(--color-text-secondary);
}
.dealer-type-badge--harvey-norman { background: #1a1a1a; color: #fff; }
.dealer-type-badge--tradelink { background: var(--color-accent); color: #fff; }
.dealer-results { max-height: 420px; overflow-y: auto; }

/* --- About --- */
.about {
    padding: clamp(56px, 7vw, 100px) 0;
}
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.about-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.about-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-accent);
}
.about-stat-label {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
}
.about-cta {
    margin-top: 28px !important;
}
.about-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s, transform 0.18s;
}
.about-link:hover {
    border-bottom-color: var(--color-accent);
    transform: translateX(2px);
}
.about-image {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #2a2520 0%, #4a3f35 50%, #3a3530 100%);
    border-radius: var(--radius);
}
.about-image-real {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Consumable real image */
.consumable-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Footer logo — match the nav wordmark height for visual consistency.
   The SVG viewBox has ~55px of empty whitespace on the left side, which
   makes the rendered "P" sit a few pixels right of the body text below.
   Negate that with a small left offset so the wordmark aligns with the
   tagline / contact lines. */
.footer-logo-img {
    height: 44px;
    width: auto;
    display: block;
    margin-left: -14px;
}

/* --- Newsletter --- */
.newsletter {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--color-surface);
}
.newsletter-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.newsletter-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--color-bg);
    outline: none;
    transition: border-color 0.3s;
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--color-text);
}
/* Inline status message (success / error / info tones). */
.newsletter-message {
    flex-basis: 100%;
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}
.newsletter-message[data-tone="success"] { color: #2d7a5a; }
.newsletter-message[data-tone="error"]   { color: #c23b3b; }
.newsletter-message[data-tone="info"]    { color: var(--color-text-secondary); }


/* --- Footer newsletter (slim row) ---
   Sits between .footer-grid and .footer-bottom on every page. Reuses
   the .newsletter-form class so js/main.js handles it via the same
   handler as the homepage signup. Inverted styling for the dark navy
   footer — translucent input, brighter status colours so they read
   against the dark background. Stacks on mobile. */
.footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-newsletter-text {
    flex: 0 1 auto;
    max-width: 380px;
}
.footer-newsletter-text h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}
.footer-newsletter-text p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
}
.footer-newsletter .newsletter-form {
    flex: 0 1 440px;
    max-width: 440px;
    margin: 0;
}
.footer-newsletter .newsletter-form input[type="email"] {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    padding: 12px 16px;
    font-size: 0.85rem;
    min-width: 0;
}
.footer-newsletter .newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}
.footer-newsletter .newsletter-form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.12);
}
.footer-newsletter .newsletter-form button {
    flex-shrink: 0;
    padding: 12px 24px;
    font-size: 0.85rem;
}
.footer-newsletter .newsletter-message {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
}
.footer-newsletter .newsletter-message[data-tone="success"] { color: #6fc99c; }
.footer-newsletter .newsletter-message[data-tone="error"]   { color: #ff8b8b; }
.footer-newsletter .newsletter-message[data-tone="info"]    { color: rgba(255,255,255,0.6); }

/* Hide the footer signup on the homepage only — the homepage already
   has the dedicated "Stay in the Flow" newsletter section above the
   footer, and a second signup right under it reads as repetitive.
   The .page-home body class is set on / (index.html) and the v2
   mirror at /pages/home-v2.html. */
.page-home .footer-newsletter { display: none; }

@media (max-width: 768px) {
    .footer-newsletter {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 0;
    }
    .footer-newsletter-text { max-width: none; }
    .footer-newsletter .newsletter-form {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }
}


/* --- Footer --- */
.footer {
    padding: clamp(60px, 8vw, 80px) 0 40px;
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #fff;
    margin-bottom: 16px;
}
.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}
.footer-social a {
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--color-accent-light); }

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    /* Match the brand column's logo height (44px) and margin-bottom (16px)
       so the column headings sit on the same visual line as the PEPPY TAPS
       wordmark, and the first link in each column starts at the same
       y-position as the "Where great design..." tagline below the logo. */
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0 0 16px;
}
.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    padding: 5px 0;
    transition: color 0.3s;
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    color: rgba(255,255,255,0.3);
    transition: color 0.3s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* --- Trust Bar --- */
.trust-bar {
    background: #f7f7f5;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border-light);
}
.trust-bar-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.trust-badge svg,
.trust-badge-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px;
    color: var(--color-accent);
    flex-shrink: 0;
    display: block;
}
.trust-badge-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.trust-badge span {
    font-family: var(--font-nav);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* --- Why Peppy Taps --- */
.why-peppy {
    /* Tight top to sit close to the cards above; keep generous bottom
       since the next section (.products) is white and needs breathing
       room to feel like a fresh chapter. */
    padding: clamp(28px, 3.5vw, 48px) 0 clamp(48px, 6vw, 80px);
    background: #f7f7f5;
}
.why-peppy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.why-peppy-card {
    padding: 32px;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s var(--ease-out);
}
.why-peppy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.why-peppy-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.why-peppy-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Trade Section --- */
.trade {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--color-dark);
    color: #fff;
}
.trade-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
/* Centre everything inside the left column so the eyebrow, title, copy,
   benefits list and CTA all share the same vertical centreline within the
   trade-content area. */
.trade-content {
    text-align: center;
}
.trade-content .section-eyebrow {
    color: var(--color-accent-light);
}
.trade-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin: 0 auto 24px;
    max-width: 480px;
}
.trade-benefits {
    list-style: none;
    margin-bottom: 32px;
    padding-left: 0;
}
.trade-benefits li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    padding: 8px 0;
}
.trade-cta.btn--primary {
    background: var(--color-accent);
}
.trade-cta.btn--primary:hover {
    background: var(--color-accent-light);
    color: var(--color-dark);
}
.trade-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
}
.trade-stat {
    text-align: center;
}
.trade-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-accent-light);
    margin-bottom: 4px;
}
.trade-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Consumable Actions --- */
.consumable-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn--subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid var(--color-accent);
    color: var(--color-accent-light);
    background: transparent;
    transition: all 0.3s var(--ease-out);
}
.btn--subscribe:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* --- Footer Contact --- */
.footer-contact {
    margin-bottom: 16px;
}
.footer-contact p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}
.footer-contact p + p {
    margin-top: 2px;
}
.footer-contact strong {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: rgba(255,255,255,0.95);
}

/* --- FAQ Accordion --- */
.faq {
    padding: clamp(56px, 7vw, 100px) 0;
    background: #f7f7f5;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
    line-height: 1.5;
    gap: 16px;
}
.faq-question:hover {
    color: var(--color-accent);
}
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    transition: transform 0.3s var(--ease-out);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.faq-answer-inner {
    padding: 0 0 24px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* --- Product Comparison Table --- */
.comparison {
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--color-bg);
}
.comparison-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
}
.comparison-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.comparison-table thead th {
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    text-align: center;
    border-bottom: 2px solid var(--color-border);
    vertical-align: bottom;
}
.comparison-table thead th:first-child {
    text-align: left;
}
/* .comparison-popular / .comparison-popular-col / .comparison-popular-badge
   removed May 2026 — table is intentionally neutral, no "Most Popular"
   recommendation. The middle product column does get a very subtle
   navy tint via nth-child below, but that's purely visual chunking
   (so the three product columns read as separate panels) — not a
   recommendation cue. The rgba alpha keeps the existing zebra
   striping showing through on alternate rows. */
.comparison-table thead th:nth-child(3),
.comparison-table tbody td:nth-child(3),
.comparison-table tfoot td:nth-child(3) {
    background: rgba(29, 58, 95, 0.06);
}
.comparison-table thead th:nth-child(3) {
    border-radius: var(--radius) var(--radius) 0 0;
}
.comparison-table tfoot td:nth-child(3) {
    border-radius: 0 0 var(--radius) var(--radius);
}
.comparison-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
}
.comparison-table tbody tr:nth-child(even) {
    background: #f7f7f5;
}
.comparison-table tbody td {
    padding: 16px 24px;
    text-align: center;
    color: var(--color-text-secondary);
}
.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--color-text);
}
.comparison-table .comparison-check {
    color: var(--color-accent);
    font-size: 1.1rem;
}
.comparison-table .comparison-dash {
    color: var(--color-text-muted);
}
.comparison-table tfoot td {
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-top: 2px solid var(--color-border);
    color: var(--color-text);
}
.comparison-table tfoot td:first-child {
    text-align: left;
}
.comparison-cta {
    text-align: center;
}

/* --- Testimonials Carousel --- */
.testimonials {
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--color-dark);
    color: #fff;
    overflow: hidden;
}
.testimonials .section-eyebrow {
    color: var(--color-accent-light);
}
.testimonials .section-header {
    margin-bottom: clamp(40px, 5vw, 64px);
}
.testimonial-carousel-wrapper {
    position: relative;
}
.testimonial-carousel {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 40px 32px;
    min-width: 0;
}
.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: 8px;
}
.testimonial-stars {
    color: var(--color-accent-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.testimonial-nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
}
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* --- Accessibility --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--color-dark);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Visible focus indicators for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animation for grid children */
[data-animate-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-animate-stagger].visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger].visible > *:nth-child(3) { transition-delay: 0.2s; }
[data-animate-stagger].visible > *:nth-child(4) { transition-delay: 0.3s; }
[data-animate-stagger].visible > *:nth-child(5) { transition-delay: 0.4s; }
[data-animate-stagger].visible > *:nth-child(6) { transition-delay: 0.5s; }
[data-animate-stagger].visible > * {
    opacity: 1;
    transform: translateY(0);
}
/* Fade-in from left */
[data-animate="fade-left"] {
    opacity: 0;
    transform: translateX(-32px);
}
[data-animate="fade-left"].visible {
    opacity: 1;
    transform: translateX(0);
}
/* Fade-in from right */
[data-animate="fade-right"] {
    opacity: 0;
    transform: translateX(32px);
}
[data-animate="fade-right"].visible {
    opacity: 1;
    transform: translateX(0);
}
/* Scale up */
[data-animate="scale"] {
    opacity: 0;
    transform: scale(0.92);
}
[data-animate="scale"].visible {
    opacity: 1;
    transform: scale(1);
}
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-animate],
    [data-animate-stagger] > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .support-grid { grid-template-columns: repeat(2, 1fr); }
    .why-peppy-grid { grid-template-columns: repeat(2, 1fr); }
    .inspiration-grid { grid-template-columns: repeat(2, 1fr); }
    .inspiration-item--large { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
    .inspiration-item--wide { grid-column: span 2; }
    .dealer-locator { grid-template-columns: 1fr; }
    .dealer-map { min-height: 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trade-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        /* Mirror the wordmark's ~14.7px internal left whitespace so the burger's
           right edge has the same optical breathing room as the logo's left edge.
           Vertical alignment is already correct: the three bars naturally sit on
           the wordmark's cap-top, centre and baseline of "PEPPY TAPS". */
        margin-right: 14px;
    }
    .nav-menu {
        position: fixed;
        inset: 0;
        /* Brand cream-light, matches the soft beige used elsewhere in the
           system (popups, chip backgrounds). Overrides --color-surface
           (#fff) which would feel too clinical for a full-screen overlay. */
        background-color: #faf7f0;
        /* Use dynamic viewport height too — fixes iOS Safari URL-bar
           collapse leaving a gap at the bottom when the menu is open. */
        min-height: 100vh;
        min-height: 100dvh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
        z-index: 999;
    }
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    .nav-links {
        flex-direction: column;
        gap: 0;
    }
    .nav-link {
        font-size: 1.4rem;
        /* Brand navy on the mobile menu — matches the rest of the site's
           accents and reads stronger than --color-text on the cream/white sheet. */
        color: var(--color-accent);
        padding: 12px 0;
        letter-spacing: 0.05em;
    }
    /* When the mobile menu is open, force navy text regardless of scrolled state
       (otherwise the inherited white nav-link colour becomes invisible on the
       white menu background). The filled trade button keeps its white text. */
    .nav.scrolled .nav-menu .nav-link:not(.nav-link--trade) { color: var(--color-accent); }
    .nav.scrolled .nav-menu .nav-cart { color: var(--color-text); }
    .nav.scrolled .nav-menu .nav-link:not(.nav-link--trade):hover { color: #14283f; }
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        min-width: auto;
        padding: 0 0 8px;
    }
    .dropdown-item { text-align: center; font-size: 0.9rem; padding: 6px 0; }
    .nav-actions {
        margin-top: 8px;        /* parent .nav-menu now has gap: 32px */
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    /* Hide the cart from the mobile menu — currently in demo mode, and
       a lone cart icon below the trade button looks orphaned and breaks
       the menu's visual rhythm. Re-enable once Shopify SDK is live and
       cart actually does something. */
    .nav-menu.active .nav-cart {
        display: none;
    }
    .nav-link--trade,
    .nav.scrolled .nav-link--trade {
        background: var(--color-dark);
        color: #fff;
        border-color: var(--color-dark);
        padding: 14px 32px;
        font-size: 0.95rem;
        /* Match the heavy Alesand weight of the nav-links above so the
           burger menu reads as one coherent block of typography. */
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .nav-link--trade:hover,
    .nav.scrolled .nav-link--trade:hover {
        background: var(--color-dark-surface);
        border-color: var(--color-dark-surface);
        color: #fff;
    }
    .nav-cart { color: var(--color-text); }

    .audience-grid { grid-template-columns: 1fr; gap: 16px; }
    /* Mobile: revert to a "full image with text overlay anchored at the
       bottom" layout. The desktop side-by-side text/tap split feels
       cramped at narrow widths AND the horizontal gradient can't carry
       the bright Flagship mockup against white text. Bottom gradient
       reads cleanly against any background. */
    .audience-card {
        aspect-ratio: 4/3;
    }
    /* Mobile crops — zoom both mockups in a touch and pin to the side
       where the tap sits in the source so the full tap is visible
       above the bottom text overlay (rather than cropped off centre). */
    .audience-card-image--signature {
        background-size: 140%;
        /* Source has tap on right; pin right so the tap shows in the
           upper portion of the card. Vertical 35% lifts the tap above
           the gradient zone. */
        background-position: 100% 35%;
    }
    .audience-card-image--flagship {
        background-size: 140%;
        background-position: 0% 35%;
    }
    /* Same content rules for both cards on mobile — anchored at the
       bottom, full-width. Two-layer overlay: a strong navy gradient
       covering the bottom ~65% (where the text sits) for legibility,
       plus a subtle radial vignette darkening the corners so the tap
       in the upper portion still reads as a feature without being
       completely washed out. */
    .audience-card--signature .audience-card-content,
    .audience-card--flagship .audience-card-content {
        align-items: flex-start;
        text-align: left;
        justify-content: flex-end;
        padding: 24px;
        background:
            radial-gradient(ellipse at 50% 35%,
                transparent 30%,
                rgba(0, 0, 0, 0.18) 70%,
                rgba(0, 0, 0, 0.32) 100%),
            linear-gradient(to top,
                rgba(8, 18, 38, 0.92) 0%,
                rgba(8, 18, 38, 0.78) 28%,
                rgba(8, 18, 38, 0.48) 50%,
                rgba(8, 18, 38, 0.10) 75%,
                transparent 90%);
    }
    .audience-card-text { max-width: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    /* Drop the 3-up homepage grid down to 2 across at tablet width so the
       cards keep a sensible width. */
    .products-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .finishes-layout { grid-template-columns: 1fr; }
    .consumables-layout { grid-template-columns: 1fr; }
    .consumable-product { order: -1; }
    .consumable-render { width: 160px; height: 240px; }
    .about-layout { grid-template-columns: 1fr; }
    .about-image { aspect-ratio: 3/2; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .inspiration-grid { grid-template-columns: 1fr 1fr; }
    .inspiration-item--large { grid-column: span 2; }
    .inspiration-item--wide { grid-column: span 2; }
    .why-peppy-grid { grid-template-columns: 1fr 1fr; }
    .trade-layout { grid-template-columns: 1fr; }
    .trade-stats { flex-direction: row; }
    .trust-bar-inner { gap: 16px; }
}

@media (max-width: 480px) {
    /* Keep products as a 2-up grid on phones (was 1fr).
       Tighter gap and smaller card text so two cards fit comfortably. */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card-name { font-size: 1rem; }
    .product-card-desc { font-size: 0.78rem; }
    .product-card-price { font-size: 0.88rem; }
    .product-card-badge { font-size: 0.62rem; padding: 4px 10px; }
    .features-grid { grid-template-columns: 1fr; }
    .support-grid { grid-template-columns: 1fr; }
    .why-peppy-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .newsletter-form { flex-direction: column; }
    .finish-options {
        gap: 12px;
        /* Cap the row width so 5 swatches wrap as 3 + 2 (was 4 + 1
           which left the 5th orphaned on its own row). Mobile option
           width is ~64px, so 3 × 64 + 2 × 12 gap = 216px; cap at
           228px for a small breathing margin. justify-content: center
           on the parent centres the 2nd-row items. */
        max-width: 228px;
        margin-left: auto;
        margin-right: auto;
    }
    .finish-option { min-width: 60px; padding: 8px 10px; }
    .about-stats { flex-direction: column; gap: 20px; }
    .inspiration-grid { grid-template-columns: 1fr; }
    .inspiration-item--large,
    .inspiration-item--wide { grid-column: span 1; }
    .inspiration-item { aspect-ratio: 3/2; }
    .inspiration-item--large { aspect-ratio: 3/2; }
    .inspiration-item--wide { aspect-ratio: 3/2; }
    .trade-stats { flex-direction: column; }
    .consumable-actions { flex-direction: column; }
    .trust-bar-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
    /* Match the base .products-grid 2-up mobile layout so the homepage
       Signature/Flagship rows stay 2-wide instead of collapsing to 1. */
    .products-grid--2,
    .products-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Homepage: centre-align everything on mobile ---
   The desktop layout uses left-aligned text inside two-column grids. On mobile
   those grids collapse to single columns, leaving text and button rows hugging
   the left edge. Centre everything for a tidier mobile read. */
@media (max-width: 768px) {
    .page-home main {
        text-align: center;
    }
    .page-home .section-header,
    .page-home .section-title,
    .page-home .section-subtitle,
    .page-home .section-eyebrow {
        text-align: center;
    }
    /* Section content blocks that are normally left-aligned on desktop */
    .page-home .hero-content,
    .page-home .hero-title,
    .page-home .hero-subtitle,
    .page-home .hero-cta,
    .page-home .why-peppy-card,
    .page-home .feature-card,
    .page-home .product-card,
    .page-home .audience-card-content,
    .page-home .finishes-content,
    .page-home .consumables-content,
    .page-home .consumable-product-info,
    .page-home .trade-content,
    .page-home .about-content,
    .page-home .support-card,
    .page-home .faq-item,
    .page-home .review-card,
    .page-home .dealer-info {
        text-align: center;
    }
    /* Centre flex / button rows */
    .page-home .hero-cta,
    .page-home .consumable-actions,
    .page-home .feature-actions,
    .page-home .audience-card-content,
    .page-home .finish-options {
        justify-content: center;
        align-items: center;
    }
    /* Constrained-width text blocks: centre them in their column */
    .page-home .hero-subtitle,
    .page-home .section-subtitle,
    .page-home .trade-text,
    .page-home .about-text {
        margin-left: auto;
        margin-right: auto;
    }
    /* Block-level icons inside centred cards need auto margins to centre */
    .page-home .support-icon,
    .page-home .why-peppy-icon,
    .page-home .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    /* Trade benefits list — already centred at desktop, just ensure mobile
       reads as centred too. (The shared rules above strip the bullet indent.) */
    /* Newsletter form: stack and centre */
    .page-home .newsletter-form {
        justify-content: center;
    }
    /* Footer */
    .page-home .footer-grid,
    .page-home .footer-col {
        text-align: left;
    }
    .page-home .footer-social {
        justify-content: flex-start;
    }
    /* Trust bar items */
    .page-home .trust-bar-inner {
        align-items: center;
        text-align: center;
    }
}

/* ─── Cookie Consent Banner & Modal ─────────────────────────────
   Lazy-injected by cookie-banner.js. Slides up from the bottom on
   first visit; the Manage button opens a centred modal with toggles
   for Analytics and Marketing. Wired to the footer "Cookie
   Settings" link via window.PeppyCookies.open(). */

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 9000;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 0;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
    max-width: 1080px;
    margin: 0 auto;
}
.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
}
.cookie-banner-body {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}
.cookie-banner-body a {
    color: var(--color-accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.cookie-banner-body a:hover { border-bottom-color: var(--color-accent); }

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-banner-actions .btn {
    padding: 10px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

/* Mobile: stack body + actions */
@media (max-width: 720px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px 18px;
    }
    .cookie-banner-actions {
        flex-wrap: wrap;
    }
    .cookie-banner-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ─── Manage Preferences Modal ─── */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 5vh 16px;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 50, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cookie-modal-panel {
    position: relative;
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 580px;
    width: 100%;
    margin: auto;
    overflow: hidden;
    animation: cookieModalIn 0.25s ease-out;
}
@keyframes cookieModalIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.cookie-modal-close:hover {
    background: var(--color-border-light);
    color: var(--color-text);
}
.cookie-modal-body {
    padding: 32px 32px 28px;
    max-height: 90vh;
    overflow-y: auto;
}
.cookie-modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 8px;
}
.cookie-modal-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0 0 20px;
}

/* Each consent category */
.cookie-category {
    border-top: 1px solid var(--color-border);
    padding: 18px 0;
}
.cookie-category:last-of-type {
    border-bottom: 1px solid var(--color-border);
}
.cookie-category-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.cookie-category h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
}
.cookie-category p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* iOS-style toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 4px;
}
.cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-track {
    width: 40px;
    height: 22px;
    background: var(--color-border);
    border-radius: 22px;
    position: relative;
    transition: background 0.2s;
    display: block;
}
.cookie-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--color-accent); }
.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb {
    transform: translateX(18px);
}
.cookie-toggle--locked .cookie-toggle-track {
    background: var(--color-accent);
    opacity: 0.5;
    cursor: not-allowed;
}
.cookie-toggle--locked .cookie-toggle-thumb { transform: translateX(18px); }
.cookie-toggle-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.cookie-modal-actions .btn { flex: 1; }

@media (max-width: 600px) {
    .cookie-modal-body { padding: 24px 22px 22px; }
    .cookie-modal-title { font-size: 1.3rem; }
    .cookie-modal-actions { flex-direction: column-reverse; }
    .cookie-category-head {
        flex-direction: column;
        gap: 10px;
    }
}

/* ─── PDP sticky mobile CTA ──────────────────────────────────
   Built dynamically by product.js on every PDP. The in-page
   "Find a Retailer" button sits below price/finish/spec content,
   which is a long scroll on mobile — this sticky bar appears
   once the in-page CTA scrolls out of view, so the conversion
   action is always one tap away. Hidden on desktop (the in-page
   CTA is reachable without scrolling at desktop widths). */
.pdp-sticky-cta {
    display: none;
}
@media (max-width: 768px) {
    .pdp-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(8, 18, 38, 0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(240, 226, 197, 0.18);
        transform: translateY(100%);
        transition: transform 0.3s var(--ease-out);
    }
    .pdp-sticky-cta.is-shown {
        transform: translateY(0);
    }
    .pdp-sticky-cta-btn {
        flex: 1;
        text-align: center;
        padding: 13px 14px;
        background: var(--color-accent-light);
        color: var(--color-accent);
        border-radius: 6px;
        font-family: var(--font-sans);
        font-size: 0.92rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-decoration: none;
        transition: background 0.15s, transform 0.1s;
    }
    .pdp-sticky-cta-btn:hover,
    .pdp-sticky-cta-btn:active {
        background: #fff;
    }
    /* Pad the bottom of PDP body so the sticky bar doesn't cover
       the footer on the way to the bottom of the page. */
    body[data-product-key] .footer {
        padding-bottom: 80px;
    }
}

/* ─── Configurator: sticky nav buttons on mobile ─────────────
   The Previous / Next Step buttons currently sit at the bottom
   of each step's content. On mobile that's a long scroll past
   cards + summary before the user can advance. Pin the nav
   bar to the bottom of the viewport so Next is always one tap
   away. Desktop layout unchanged.

   Uses position:fixed so the bar persists even when scrolled
   past the parent container (sticky was getting clipped by
   the parent's overflow boundary). */
@media (max-width: 768px) {
    .config-nav-buttons {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        display: flex;
        gap: 10px;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
        background: rgba(250, 247, 240, 0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(29, 58, 95, 0.10);
    }
    .config-nav-buttons .btn {
        flex: 1;
        margin: 0;
        padding: 13px 14px;
        font-size: 0.92rem;
    }
    .config-nav-buttons .btn[disabled] {
        opacity: 0.4;
        pointer-events: none;
    }
    /* Reserve space at the bottom of the configurator so its content
       isn't permanently hidden behind the fixed nav bar. */
    .configurator { padding-bottom: 90px; }
}
