/* Glowstone - Navbar Styles - Responsive for all screens */

:root {
    --navbar-bg: rgba(15, 15, 15, 0.98);
    --navbar-bg-transparent: rgba(0, 0, 0, 0);
    --navbar-text: #e8e4df;
    --navbar-accent: #c9a962;
    --navbar-hover: rgba(201, 169, 98, 0.2);
    --text-light: #ebe4d8;
    --surface-elevated: #f5f0ea;
    --font-size-base: clamp(1rem, 0.98rem + 0.2vw, 1.0625rem);
    --text-micro: 0.6875rem;
    --text-caption: 0.75rem;
    --text-small: 0.8125rem;
    --text-lead: 1.125rem;
    --line-height-base: 1.6;
    --bs-body-font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Global responsive images - prevent overflow on all screens */
img {
    max-width: 100%;
}

/* Skip link - accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--navbar-accent);
    color: #0f0f0f;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--text-light);
    outline-offset: 2px;
}

body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background: #0f0f0f;
    color: #e8e4df;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p, li {
    line-height: var(--line-height-base);
}

input, textarea, select, button {
    font: inherit;
}

#home.hero {
    padding-top: 0;
    margin-top: 0;
}

/* Hero as first section - no top padding, full bleed behind fixed nav */
body > section.hero:first-of-type {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Prevent horizontal overflow on small screens */
html {
    overflow-x: clip;
}

/* Navbar - Base (transparent like Caesarstone, always on top over hero) */
.navbar {
    background: var(--navbar-bg-transparent) !important;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom: 1px solid transparent;
    padding: 0.75rem 0;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    min-height: max(60px, calc(60px + env(safe-area-inset-top, 0px)));
    z-index: 1100;
}

.navbar.scrolled {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(201, 169, 98, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 46px;
    }
}

.nav-link {
    color: var(--navbar-text) !important;
    font-size: clamp(0.85rem, 1.55vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.05rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-link:hover {
    color: var(--navbar-accent) !important;
    background: var(--navbar-hover);
}

.nav-link:focus,
.nav-link.active {
    color: var(--navbar-accent) !important;
}

/* Dropdown - hover to show on desktop */
.navbar .dropdown-menu {
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 4px;
    margin-top: 0;
    padding-top: 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Reveal whenever Bootstrap opens it — works at ALL widths (mobile tap +
   desktop click). The desktop :hover reveal lives in the 992px query below. */
.navbar .nav-item.dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Bridge: no gap between trigger and menu so hover stays active */
.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .nav-item.dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 8px;
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        display: block;
    }
    .navbar .nav-item.dropdown:hover .dropdown-menu,
    .navbar .nav-item.dropdown .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar .dropdown-item {
    color: var(--navbar-text);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--navbar-hover);
    color: var(--navbar-accent);
}

.navbar .dropdown-item.active {
    background: rgba(201, 169, 98, 0.15);
    color: var(--navbar-accent);
}

/* Navbar toggler - touch-friendly */
.navbar-toggler {
    border: 1px solid rgba(201, 169, 98, 0.3);
    padding: 0.5rem 0.75rem;
    min-width: 44px;
    min-height: 44px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 98, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232, 228, 223, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Large screens (992px+) - Full horizontal nav (nowrap keeps e.g. Contact Us on same row) */
@media (min-width: 992px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-nav {
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.45rem !important;
        letter-spacing: 0.03em;
        font-size: clamp(0.72rem, 1.1vw, 0.82rem);
    }
}

@media (min-width: 1400px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem !important;
        letter-spacing: 0.04em;
    }
}

/* Medium screens (768px - 991px) - Collapsed menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(201, 169, 98, 0.15);
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .nav-link {
        padding: 0.875rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(235, 228, 216, 0.06);
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Small screens (576px - 767px) */
@media (max-width: 767.98px) {
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-collapse {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Extra small screens (phones < 576px) */
@media (max-width: 575.98px) {
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-brand {
        letter-spacing: 0.1em;
    }

    .navbar-collapse {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0.5rem 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 1rem !important;
    }
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    .navbar .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Container padding on very small screens */
@media (max-width: 400px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Very small screens (320px) - ensure navbar fits */
@media (max-width: 360px) {
    .navbar-logo {
        height: 42px;
    }

    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Hero Section - Video Background (TinyPod-style) */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Scroll-driven: full viewport hero, video fills screen, extends behind nav */
.hero.hero-scroll-driven {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: 0;
    padding-top: 0;
}

.hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    z-index: 0;
    transform-origin: center center;
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroVideoFadeIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            transparent 30%,
            transparent 60%,
            rgba(0, 0, 0, 0.45) 100%
        );
    animation: heroOverlayFade 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 1;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.85;
}

.hero-scroll-hint-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
    animation: heroScrollHintPulse 2s ease-in-out infinite;
}

.hero-scroll-hint-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    animation: heroScrollHintPulse 2s ease-in-out infinite 0.3s;
}

@keyframes heroScrollHintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes heroOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroVideoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 400px) {
    .hero-content {
        padding: 1rem 0.75rem;
    }
}

/* Video hero - mobile: ensure smooth playback */
@media (max-width: 768px) {
    .hero-video-element {
        object-position: center center;
    }

    /* Non-scroll-driven hero: slightly stronger overlay on small screens */
    .hero:not(.hero-scroll-driven) .hero-video-overlay {
        background: linear-gradient(
            to bottom,
            rgba(15, 15, 15, 0.35) 0%,
            rgba(15, 15, 15, 0.5) 50%,
            rgba(15, 15, 15, 0.75) 100%
        );
    }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.8vw, 4.25rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.35vw, 1.42rem);
    font-weight: 500;
    color: rgba(235, 228, 216, 0.95);
    margin-bottom: 2.5rem;
    letter-spacing: 0.08em;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    border: 2px solid var(--text-light);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: var(--surface-elevated);
    color: #0f0f0f;
}

/*tures Bar - Pacific style (below hero) */
.features-bar {
    padding: 4rem 0;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

.feature-item {
    text-align: center;
}

.feature-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    color: var(--navbar-accent);
    margin-bottom: 0.25rem;
}

.feature-title {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.feature-desc {
    font-size: 1.08rem;
    color: rgba(232, 228, 223, 0.75);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991.98px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .features-bar {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Stats Bar */
.stats-bar {
    padding: 3rem 0;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--navbar-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(232, 228, 223, 0.8);
    letter-spacing: 0.05em;
}

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

/* The Magic of Quartz */
.magic-quartz-section {
    padding: 6rem 0;
    background: #0f0f0f;
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-center .section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--navbar-accent);
    margin-bottom: 0.75rem;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--text-light);
}

.magic-quartz-visual {
    text-align: center;
    margin-bottom: 3rem;
}

.magic-quartz-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.magic-quartz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.magic-card {
    background: rgba(235, 228, 216, 0.04);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 8px;
    padding: 2rem;
}

.magic-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navbar-accent);
    margin-bottom: 1rem;
}

.magic-card p {
    font-size: 0.95rem;
    color: rgba(232, 228, 223, 0.85);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991.98px) {
    .magic-quartz-grid {
        grid-template-columns: 1fr;
    }
}

/* Why People Love Us */
.why-love-section {
    padding: 3rem 0 3rem;
    background: #1a1a1a;
}

.why-love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.why-love-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(235, 228, 216, 0.03);
    border: 1px solid rgba(58, 170, 140, 0.12);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    color: rgba(232, 228, 223, 0.9);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, background 0.4s ease;
}

/* Animated green bottom line — matches the sustainability page cards. */
.why-love-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3aaa8c, transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.why-love-item.visible::before {
    transform: scaleX(1);
}

.why-love-item:hover {
    border-color: rgba(58, 170, 140, 0.45);
    background: rgba(58, 170, 140, 0.06);
}

@media (max-width: 360px) {
    .why-love-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-love-item {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Scroll targets - prevent content hiding behind fixed navbar (responsive for all screens) */
#collection, #vision, #about-us, #contact, #visualizer, #main-content, #why-glowstone {
    scroll-margin-top: clamp(70px, 10vw, 90px);
}
@supports (padding: env(safe-area-inset-top)) {
    #collection, #vision, #about-us, #contact, #visualizer, #main-content, #why-glowstone {
        scroll-margin-top: max(70px, calc(60px + env(safe-area-inset-top)));
    }
}

/* Collection Introduction Section - Eternal style */
.collection-intro {
    padding: 3rem 0 2rem;
    background: #1a1a1a;
}

.collection-intro-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.collection-intro .section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--navbar-accent);
    margin-bottom: 1rem;
}

.collection-intro .section-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--navbar-accent);
    margin: 1rem auto 0;
    opacity: 0.6;
}

.collection-heading {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.collection-text {
    font-size: 1.18rem;
    line-height: 1.8;
    color: rgba(232, 228, 223, 0.85);
    margin-bottom: 2rem;
}

.btn-collection {
    display: inline-block;
    padding: 1rem 2rem;
    color: var(--navbar-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    border: 2px solid var(--navbar-accent);
    transition: all 0.3s ease;
}

.btn-collection:hover {
    background: var(--navbar-accent);
    color: #0f0f0f;
}

/* Two CTA buttons (domestic / international) side by side, stacking on small screens */
.collection-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Our Story Section */
.our-story {
    padding: 6rem 0 3rem;
    background: #0f0f0f;
}

.our-story .row {
    --bs-gutter-x: 3rem;
}

/* Mission: image column stretches to match text column height (lg+); image fills with cover */
.our-story-image-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.our-story-image {
    border-radius: 8px;
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    min-height: 280px;
}

.our-story-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}

.our-story-content .section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--navbar-accent);
    margin-bottom: 1rem;
}

.our-story-content .section-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--navbar-accent);
    margin: 1rem 0 0;
    opacity: 0.6;
}

.our-story-heading {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.our-story-content p {
    font-size: 1.18rem;
    line-height: 1.8;
    color: rgba(232, 228, 223, 0.85);
    margin-bottom: 1.25rem;
}

.our-story-highlight {
    color: var(--navbar-accent) !important;
    font-weight: 500;
    margin-bottom: 0 !important;
}

/* Home page: Mission block — ABOUT US, heading, and body centered */
.our-story--home-mission .row > .col-lg-6:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.our-story--home-mission .our-story-content {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.our-story--home-mission .our-story-content .section-label::after {
    margin: 1rem auto 0;
}

/* Our Vision Section - Eternal, Pacific, Caesarstone inspired */
.vision-section {
    padding: 3rem 0 3rem;
    background: #1a1a1a;
}

.vision-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-content .section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--navbar-accent);
    margin-bottom: 1rem;
}

.vision-content .section-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--navbar-accent);
    margin: 1rem 0 0;
    opacity: 0.6;
}

.vision-heading {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.vision-text {
    font-size: 1.18rem;
    line-height: 1.8;
    color: rgba(232, 228, 223, 0.85);
    margin-bottom: 1.25rem;
}

.vision-highlight {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navbar-accent);
    margin-bottom: 2rem;
    font-style: italic;
}

.btn-vision {
    display: inline-block;
    padding: 0.875rem 2rem;
    color: var(--navbar-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 2px solid var(--navbar-accent);
    transition: all 0.3s ease;
}

.btn-vision:hover {
    background: var(--navbar-accent);
    color: #0f0f0f;
}

.vision-image {
    border-radius: 8px;
    overflow: hidden;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* Home page: Vision copy centered (matches Mission treatment) */
.vision-section--home .vision-content {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
}

.vision-section--home .vision-content .section-label::after {
    margin: 1rem auto 0;
}

@media (max-width: 991.98px) {
    .vision-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .vision-image {
        order: -1;
    }

    .vision-image img {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .vision-section {
        padding: 4rem 0;
    }

    .vision-image img {
        min-height: 250px;
    }
}

@media (max-width: 991.98px) {
    .our-story .row {
        flex-direction: column-reverse;
    }

    .our-story-image {
        min-height: min(360px, 50vw);
        max-height: 420px;
        flex: 0 0 auto;
    }

    .our-story-image img {
        min-height: 280px;
    }
}

@media (max-width: 575.98px) {
    .our-story {
        padding: 4rem 0;
    }

    .our-story-image {
        min-height: min(280px, 55vw);
        max-height: 340px;
    }

    .our-story-image img {
        min-height: 220px;
    }
}

/* Applications - Pacific: 4 cards, image reveals on hover */
.applications {
    padding: 6rem 0;
    background: #1a1a1a;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.app-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/5;
    overflow: hidden;
    text-decoration: none;
    border-radius: 4px;
}

.app-label {
    position: relative;
    z-index: 2;
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.08em;
    transition: opacity 0.4s ease;
}

.app-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.app-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.85);
    z-index: 1;
    transition: background 0.5s ease;
}

.app-card:hover::before {
    background: rgba(0, 0, 0, 0.25);
}

.app-card:hover .app-img img {
    transform: scale(1.12);
}

@media (max-width: 991.98px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .applications {
        padding: 4rem 0;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .app-card {
        aspect-ratio: 16/9;
    }
}

/* Download Brochure Section - Enhanced UI */
.brochure-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1612 100%);
}

.brochure-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 98, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.brochure-visual {
    position: relative;
    min-height: 320px;
}

.brochure-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brochure-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 15, 15, 0.9) 0%, transparent 100%);
}

.brochure-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(26, 26, 26, 0.95);
}

.brochure-section .section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--navbar-accent);
    margin-bottom: 0.75rem;
}

.brochure-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.brochure-text {
    font-size: 0.95rem;
    color: rgba(232, 228, 223, 0.8);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.btn-brochure {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--navbar-accent);
    color: #0f0f0f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-brochure svg {
    flex-shrink: 0;
}

.btn-brochure:hover {
    background: #d4b872;
    color: #0f0f0f;
    transform: translateX(4px);
}

@media (max-width: 767.98px) {
    .brochure-card {
        grid-template-columns: 1fr;
    }

    .brochure-visual {
        min-height: 220px;
    }

    .brochure-visual-overlay {
        background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.8) 100%);
    }

    .brochure-content {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .brochure-section {
        padding: 4rem 0;
    }
}

/* Contact Section - Pacific style */
.contact-section {
    padding: 2.5rem 0 3.5rem;
    background: #0f0f0f;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(232, 228, 223, 0.9);
}

.form-group .required {
    color: var(--navbar-accent);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 0.875rem 1rem;
    background: rgba(235, 228, 216, 0.06);
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    color-scheme: dark;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .char-count {
    font-size: 0.8rem;
    color: rgba(232, 228, 223, 0.5);
    margin-top: 0.25rem;
}

.form-group input::placeholder {
    color: rgba(232, 228, 223, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navbar-accent);
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--navbar-accent);
}

.form-checkbox label {
    margin: 0;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--navbar-accent);
    color: #0f0f0f;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-bottom: 3rem;
}

.btn-submit:hover {
    background: #d4b872;
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .contact-section {
        padding: 2rem 0 2.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer - Caesarstone-style: click + to expand (in document flow, not sticky) */
.footer {
    background: #0a0a0a;
}

/* Clear fixed navbar when scrolling footer into view */
#main-footer.footer-expandable {
    scroll-margin-top: max(72px, calc(60px + env(safe-area-inset-top, 0px)));
}

.footer-expandable {
    display: flex;
    flex-direction: column-reverse;
}

.footer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    background: rgba(10, 10, 10, 0.98);
    border: none;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
    color: var(--navbar-accent);
    cursor: pointer;
    transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease;
}

.footer-toggle-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .footer-toggle-inner {
        padding: 1rem 0;
        gap: 2rem;
    }
}

.footer-toggle-brand {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

@media (min-width: 576px) {
    .footer-toggle-brand {
        font-size: 0.85rem;
        letter-spacing: 0.14em;
    }
}

.footer-toggle-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding-left: 1rem;
}

@media (min-width: 576px) {
    .footer-toggle-icon-wrap {
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding-left: 1.25rem;
    }
}

.footer-toggle-icon {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 576px) {
    .footer-toggle-icon {
        font-size: 1.5rem;
    }
}

.footer-expandable.expanded .footer-toggle-icon {
    transform: rotate(45deg);
}

.footer-toggle:hover {
    background: rgba(20, 20, 20, 0.98);
}

/* Instant expand/collapse — max-height avoids 0fr/1fr clipping inside flex column-reverse */
.footer-content {
    max-height: 0;
    overflow: hidden;
    transition: none;
}

.footer-expandable.expanded .footer-content {
    max-height: min(320vh, 2800px);
}

.footer-content-inner {
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .footer-expandable.expanded .footer-content {
        max-height: none;
    }
    .footer-toggle-icon {
        transition-duration: 0.15s;
    }
}

.footer-top {
    padding: 2rem 0 1.5rem;
    border-top: 1px solid rgba(201, 169, 98, 0.12);
    transition: opacity 0.3s ease;
}

@media (min-width: 576px) {
    .footer-top {
        padding: 2.25rem 0 1.75rem;
    }
}

@media (min-width: 992px) {
    .footer-top {
        padding: 2.5rem 0 2rem;
    }
}

.footer-top .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-top .container {
        gap: 2.5rem;
    }
}

@media (min-width: 992px) {
    .footer-top .container {
        gap: 3rem;
    }
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

@media (min-width: 992px) {
    .footer-main {
        gap: 3rem;
    }
}

.footer-brand {
    flex-shrink: 0;
    min-width: 140px;
}

@media (min-width: 768px) {
    .footer-brand {
        min-width: 160px;
    }
}

@media (min-width: 992px) {
    .footer-brand {
        min-width: 180px;
    }
}

.footer-desc {
    font-size: 0.75rem;
    color: rgba(232, 228, 223, 0.6);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.footer-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.4rem;
}

@media (min-width: 576px) {
    .footer-logo img {
        height: 40px;
    }
}

@media (min-width: 992px) {
    .footer-logo img {
        height: 42px;
    }
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navbar-accent);
    margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
    .footer-tagline {
        font-size: 0.95rem;
    }
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(232, 228, 223, 0.75);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social:hover {
    color: var(--navbar-accent);
}

.footer-social-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

@media (min-width: 576px) {
    .footer-links {
        gap: 1.5rem 2rem;
    }
}

@media (min-width: 992px) {
    .footer-links {
        gap: 2rem 2.5rem;
    }
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--navbar-accent);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

@media (min-width: 576px) {
    .footer-col h4 {
        font-size: 0.72rem;
        margin-bottom: 0.65rem;
    }
}

@media (min-width: 992px) {
    .footer-col h4 {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
    color: rgba(232, 228, 223, 0.75);
    line-height: 1.5;
}

@media (min-width: 576px) {
    .footer-col li {
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) {
    .footer-col li {
        font-size: 0.825rem;
    }
}

.footer-col a {
    color: rgba(232, 228, 223, 0.8);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 576px) {
    .footer-col a {
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) {
    .footer-col a {
        font-size: 0.825rem;
    }
}

.footer-col a:hover {
    color: var(--navbar-accent);
}

.footer-bottom {
    padding: 0.75rem 0;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(235, 228, 216, 0.06);
}

@media (min-width: 576px) {
    .footer-bottom {
        padding: 0.875rem 0;
    }
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 576px) {
    .footer-bottom .container {
        flex-direction: row;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(232, 228, 223, 0.45);
    margin: 0;
}

@media (min-width: 576px) {
    .footer-bottom p {
        font-size: 0.74rem;
    }
}

@media (min-width: 992px) {
    .footer-bottom p {
        font-size: 0.78rem;
    }
}

/* Footer responsive - tablet */
@media (max-width: 991.98px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

/* Footer responsive - mobile: stack columns vertically for cleaner look */
@media (max-width: 575.98px) {
    .footer-links {
        flex-direction: column;
        gap: 1.25rem;
    }
}

/* Section placeholders - minimal height for scroll targets */
.section-placeholder {
    min-height: 0;
    padding: 0;
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .hero-content .hero-subtitle,
    .hero-content .btn-hero,
    .feature-item,
    .animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-video-element {
        animation: none;
        transform: scale(1);
    }

    .hero-video-overlay {
        animation: none;
    }

    .hero-video-wrap {
        will-change: auto;
    }

    .hero-scroll-hint {
        animation: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero content - animate on load */
.hero-content h1 {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .hero-subtitle {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content .btn-hero {
    animation: fadeInUp 1s ease-out 0.7s both;
}

/* Features bar - staggered fade in */
.feature-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.25s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }
.feature-item:nth-child(4) { animation-delay: 0.55s; }

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-left {
    transform: translateX(-50px) translateY(0);
}

.animate-on-scroll.animate-left.visible {
    transform: translateX(0);
}

.animate-on-scroll.animate-right {
    transform: translateX(50px) translateY(0);
}

.animate-on-scroll.animate-right.visible {
    transform: translateX(0);
}

.animate-on-scroll.animate-scale {
    transform: scale(0.92);
}

.animate-on-scroll.animate-scale.visible {
    transform: scale(1);
}

/* Stagger children */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.animate-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* App cards - stagger on scroll */
.app-card.animate-on-scroll {
    transform: translateY(40px) scale(0.98);
}

.app-card.animate-on-scroll.visible {
    transform: translateY(0) scale(1);
}

.app-card:nth-child(1) { transition-delay: 0s; }
.app-card:nth-child(2) { transition-delay: 0.1s; }
.app-card:nth-child(3) { transition-delay: 0.2s; }
.app-card:nth-child(4) { transition-delay: 0.3s; }

/* ===================================================================
   Larger body / paragraph text across all content pages.
   (Page CSS loads after style.css, so !important ensures this wins.
   Uses a clamp so it stays sensible on mobile through desktop.)
   =================================================================== */
.about-content p,
.about-banner-content p,
.benefit-card p,
.characteristics-intro,
.timeline-content p,
.value-card p,
.about-cta-content p,
.about-specs-card p,
.about-explore-card p,
.about-global-intro,
.series-intro p,
.product-content p,
.product-fact dd,
.care-content-block p,
.care-dosdonts-intro,
.care-applications-intro,
.care-accordion-body p,
.care-faq-item dd,
.care-warranty-content p,
.tech-cta-content p,
.tech-hero-text,
.sus-stat-card p {
    font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.15rem) !important;
}

/* Breadcrumb paths (Home / About / …) — larger & bold across the whole site */
.about-breadcrumb,
.tech-breadcrumb,
.contact-breadcrumb,
.faq-breadcrumb,
.care-breadcrumb,
.sh .bc,
.inst-hero .bc,
.product-page-header .breadcrumb {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

/* Hide the breadcrumb path (Home / … / …) on mobile (phones) per request */
@media (max-width: 767.98px) {
    .about-breadcrumb,
    .tech-breadcrumb,
    .contact-breadcrumb,
    .faq-breadcrumb,
    .care-breadcrumb,
    .sh .bc,
    .inst-hero .bc,
    .bc,
    .product-page-header .breadcrumb {
        display: none !important;
    }
}

/* Larger footer text across the whole site (overrides per-breakpoint sizes) */
.footer-col h4 { font-size: 0.95rem !important; }
.footer-col li,
.footer-col a { font-size: 1.02rem !important; }
.footer-tagline { font-size: 1.15rem !important; }
.footer-bottom p { font-size: 0.92rem !important; }

/* Contact-form inline status message (success / error) */
.form-status {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    font-size: 0.97rem;
    line-height: 1.5;
}
.form-status--ok {
    background: rgba(58, 170, 140, 0.15);
    color: #cdeee2;
    border: 1px solid rgba(58, 170, 140, 0.45);
}
.form-status--err {
    background: rgba(202, 84, 84, 0.15);
    color: #f1cccc;
    border: 1px solid rgba(202, 84, 84, 0.45);
}

/* ===== Satoshi everywhere — body + ALL headings, subheadings & text, every page ===== */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, li, ul, ol, label, small, strong, em, blockquote,
button, input, textarea, select, table, th, td,
.nav-link, .dropdown-item, .navbar, .footer, .btn, .breadcrumb,
.about-heading, .section-label, .tech-hero-content h1, .sus-sec-title,
.feature-title, .feature-label, .collection-heading, .contact-heading, .gs-hero-title {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Footer close (×) — mobile only, appears at top-right while the footer is expanded */
.footer-expandable { position: relative; }
.footer-close {
    position: absolute;
    top: 0.6rem;
    right: 0.85rem;
    z-index: 30;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid rgba(201, 169, 98, 0.35);
    border-radius: 50%;
    color: var(--navbar-accent);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.footer-expandable.expanded .footer-close { display: inline-flex; }
@media (min-width: 768px) { .footer-close { display: none !important; } }

/* ============================================================
   LIGHT THEME  (opt-in via <html data-theme="light">; dark is default)
   ============================================================ */
html[data-theme="light"] {
    --navbar-bg: rgba(255, 255, 255, 0.98);
    --navbar-bg-transparent: rgba(255, 255, 255, 0);
    --navbar-text: #211d17;
    --navbar-hover: rgba(201, 169, 98, 0.18);
    --text-light: #211d17;
}
html[data-theme="light"] body { background: #f6f3ee; color: #2a2620; }

/* Dark content sections -> light */
html[data-theme="light"] .features-bar,
html[data-theme="light"] .collection-intro,
html[data-theme="light"] .contact-section,
html[data-theme="light"] .brochure-section,
html[data-theme="light"] .applications,
html[data-theme="light"] .magic-quartz-section,
html[data-theme="light"] .our-story,
html[data-theme="light"] .stats-bar,
html[data-theme="light"] .vision-section,
html[data-theme="light"] .about-banner,
html[data-theme="light"] .about-benefits,
html[data-theme="light"] .about-characteristics,
html[data-theme="light"] .about-production,
html[data-theme="light"] .about-values,
html[data-theme="light"] .about-timeline,
html[data-theme="light"] .about-cta,
html[data-theme="light"] .sus-stats-section,
html[data-theme="light"] #main-content { background: #f6f3ee; }

/* Alternating / elevated blocks a touch deeper than the page */
html[data-theme="light"] .why-love-section,
html[data-theme="light"] .why-love-item,
html[data-theme="light"] .series-card,
html[data-theme="light"] .product-slab-image,
html[data-theme="light"] .product-render-item,
html[data-theme="light"] .feature-item,
html[data-theme="light"] .sus-stat-card,
html[data-theme="light"] .about-explore-card { background: #ffffff; border-color: rgba(0,0,0,0.10); }

/* Text: flip light text to dark; keep gold/green accents */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] p,
html[data-theme="light"] li,
html[data-theme="light"] .about-heading,
html[data-theme="light"] .collection-heading,
html[data-theme="light"] .contact-heading,
html[data-theme="light"] .feature-title,
html[data-theme="light"] .why-love-item,
html[data-theme="light"] .collection-text,
html[data-theme="light"] .feature-desc { color: #2a2620; }

/* Navbar (light) */
html[data-theme="light"] .navbar.scrolled { background: rgba(255,255,255,0.98) !important; border-bottom-color: rgba(0,0,0,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
html[data-theme="light"] .navbar .dropdown-menu { background: #ffffff; border-color: rgba(0,0,0,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
html[data-theme="light"] .navbar .dropdown-item { color: #2a2620; }

/* Footer (light) */
html[data-theme="light"] .footer { background: #ece7df; color: #2a2620; }
html[data-theme="light"] .footer-toggle { background: #e4ded4; color: #6a5b2e; border-top-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .footer-col h4 { color: #211d17; }
html[data-theme="light"] .footer-col a,
html[data-theme="light"] .footer-col li,
html[data-theme="light"] .footer-bottom p,
html[data-theme="light"] .footer-tagline { color: #4a443b; }

/* Form fields (light) */
html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea,
html[data-theme="light"] .contact-form select { background: #ffffff; color: #2a2620; border-color: rgba(0,0,0,0.18); }
/* Light theme — form labels + office/factory addresses were light (invisible on white) */
html[data-theme="light"] .contact-form label,
html[data-theme="light"] .form-group label { color: #2a2620 !important; }
html[data-theme="light"] .contact-info-content address { color: #4a443b !important; }
/* Light theme — input placeholders were light cream (invisible on white inputs) */
html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder { color: rgba(42, 38, 32, 0.5) !important; }

/* Theme toggle button (sun/moon) near the footer brand */
/* Light/Dark theme — sliding pill switch, anchored to the footer-bar container */
.footer-toggle-inner { position: relative; }
.footer-toggle-brand { margin-left: 4.5rem; }   /* reserve room so the switch never overlaps the brand */
.theme-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    background: none; border: 0; padding: 0;
    line-height: 0; cursor: pointer;
}
.theme-toggle .tt-track {
    position: relative; display: block; width: 58px; height: 28px;
    border-radius: 999px;
    background: rgba(201,169,98,0.14);
    border: 1px solid rgba(201,169,98,0.4);
    transition: background .25s ease;
}
html[data-theme="light"] .theme-toggle .tt-track { background: rgba(201,169,98,0.28); }
.theme-toggle .tt-knob {
    position: absolute; top: 2px; left: 2px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--navbar-accent, #c9a962);
    box-shadow: 0 1px 4px rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
html[data-theme="light"] .theme-toggle .tt-knob { transform: translateX(30px); }
.theme-toggle .tt-knob svg { width: 13px; height: 13px; color: #171614; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.theme-toggle:hover .tt-track { border-color: var(--navbar-accent, #c9a962); }
.theme-toggle:focus-visible .tt-track { outline: 2px solid var(--navbar-accent, #c9a962); outline-offset: 2px; }

/* Light theme — heroes stay dark (keep their text light) */
html[data-theme="light"] .faq-hero h1, html[data-theme="light"] .faq-hero p,
html[data-theme="light"] .faq-subtitle,
html[data-theme="light"] .contact-hero h1, html[data-theme="light"] .contact-hero p,
html[data-theme="light"] .tech-hero-content h1, html[data-theme="light"] .tech-hero-text,
html[data-theme="light"] .product-page-header h1 { color: #f3ede4 !important; }

/* Light theme — FAQ accordion */
html[data-theme="light"] .faq-item { background: #ffffff; border-color: rgba(0,0,0,0.08); }
html[data-theme="light"] .faq-item h3 { color: #2a2620 !important; }
html[data-theme="light"] .faq-answer p { color: #4a443b !important; }
/* Light theme — inset the question + answer from the white card's left edge */
html[data-theme="light"] .faq-btn { padding-left: 1.5rem; padding-right: 1.5rem; }
html[data-theme="light"] .faq-answer { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Light theme — navbar: links light over the dark hero, dark once scrolled onto light bg */
html[data-theme="light"] .nav-link { color: #f0e9dd !important; }
html[data-theme="light"] .navbar.scrolled .nav-link { color: #211d17 !important; }
html[data-theme="light"] .navbar.scrolled .nav-link:hover,
html[data-theme="light"] .navbar.scrolled .nav-link:focus,
html[data-theme="light"] .navbar.scrolled .nav-link.active { color: var(--navbar-accent) !important; }
/* Search icon: dark on the light navbar once scrolled (it was invisible there) */
html[data-theme="light"] .navbar.scrolled .gs-search-toggle { color: #211d17 !important; }
html[data-theme="light"] .navbar.scrolled .gs-search-toggle:hover { color: var(--navbar-accent) !important; }
/* Light theme — mobile collapsed menu panel (mobile only) */
@media (max-width: 991.98px) {
    html[data-theme="light"] .navbar-collapse { background: #ffffff; border-color: rgba(0,0,0,0.1); }
    html[data-theme="light"] .navbar-collapse .nav-link { color: #211d17 !important; }
}

/* =====================================================================
   LIGHT THEME — global text visibility pass
   ===================================================================== */
/* 1) All content text -> dark (beats simple component rules via specificity) */
html[data-theme="light"] :is(h1,h2,h3,h4,h5,h6,p,li,a,span,label,small,strong,em,blockquote,td,th,dd,dt,figcaption,summary) {
    color: #2a2620;
}
/* 2) Heroes & dark feature blocks stay dark -> keep their text light */
html[data-theme="light"] :is([class*="hero"]:not(.collection-hero):not(.inst-hero), #road-section, #care-hero, .sh, .gr-tooltip) :is(h1,h2,h3,h4,h5,h6,p,li,a,span,strong,em,.bc) {
    color: #f3ede4 !important;
}
/* 3) Keep brand accents (gold eyebrows/labels) */
html[data-theme="light"] :is(.section-label, .sus-sec-label, .gs-eyebrow, .footer-toggle-brand) {
    color: var(--navbar-accent) !important;
}
/* 4) Muted/secondary text stays readable */
html[data-theme="light"] :is(.collection-text, .feature-desc, .gr-subtitle, .about-content p) { color: #4a443b; }

/* Light theme — About page content sections (were dark via .about-tech) */
html[data-theme="light"] .about-section,
html[data-theme="light"] .about-tech,
html[data-theme="light"] .about-intro-centered { background: #f6f3ee !important; }

/* ===== Light theme — page-specific visibility fixes ===== */
/* Tech-spec data table */
html[data-theme="light"] .tech-table th,
html[data-theme="light"] .tech-table td,
html[data-theme="light"] .tech-table td:first-child { color: #2a2620 !important; }
html[data-theme="light"] .tech-table tbody tr { border-bottom-color: rgba(0,0,0,0.08); }

/* Care content sections (the care hero stays dark via #care-hero rule) */
html[data-theme="light"] .care-section { background: #f6f3ee !important; }
html[data-theme="light"] .care-section :is(h1,h2,h3,h4,h5,h6,p,li,span,button,summary,dt,dd) { color: #2a2620 !important; }
html[data-theme="light"] .care-section .section-label { color: var(--navbar-accent) !important; }

/* About "Where Our Slabs Shine" map section (light bg) -> dark text */
html[data-theme="light"] .gr-section :is(h2,h3,p,span,.gr-tag) { color: #2a2620 !important; }
html[data-theme="light"] .gr-section .section-label { color: var(--navbar-accent) !important; }

/* Footer brand + char counter readable in light */
html[data-theme="light"] .footer-toggle-brand { color: #6a5b2e !important; }
html[data-theme="light"] .char-count,
html[data-theme="light"] .form-group .char-count,
html[data-theme="light"] .contact-form .char-count { color: #6a6258 !important; }

/* Light theme — Certificates page content (.sh hero stays dark) */
html[data-theme="light"] .sc { background: #f6f3ee !important; }
html[data-theme="light"] .sc :is(h1,h2,h3,h4,h5,h6,p,li,span) { color: #2a2620 !important; }
html[data-theme="light"] .ci { background: #ffffff !important; border-color: rgba(0,0,0,0.1) !important; }

/* Light theme — Care applications bento labels sit over photos (with dark overlay) → keep light */
html[data-theme="light"] .care-applications .care-bento-label,
html[data-theme="light"] .care-applications .care-bento-collection-link,
html[data-theme="light"] .care-applications .care-bento-overlay span,
html[data-theme="light"] .care-applications .care-bento-overlay a { color: #f3ede4 !important; }

/* Light theme — the CE certificate logo is white; invert it so it shows on the white card */
html[data-theme="light"] .ci img[src*="ce-logo.png"] { filter: invert(1) !important; }

/* Light theme — Installation: COMPLETELY WHITE background with the moving squares over it */
html[data-theme="light"] .inst-bg { background: #ffffff !important; }
/* Remove the coloured glow so the background is pure white */
html[data-theme="light"] .inst-bg::before { background: none !important; }
/* Remove the dot grid for a clean white background */
html[data-theme="light"] .inst-bg::after { background-image: none !important; }
/* Keep the rotating squares moving in the background — soft gold outline, visible on white */
html[data-theme="light"] .inst-facet { border-color: rgba(201, 168, 76, 0.45) !important; }
/* hero text dark on the light bg */
html[data-theme="light"] .inst-hero h1 { color: #211d17 !important; }
html[data-theme="light"] .inst-hero h1 em { color: var(--inst-gold) !important; }
html[data-theme="light"] .inst-hero p { color: rgba(33, 29, 23, 0.72) !important; }
html[data-theme="light"] .inst-hero .bc,
html[data-theme="light"] .inst-hero .bc a { color: rgba(33, 29, 23, 0.55) !important; }
html[data-theme="light"] .inst-hero .bc a:hover { color: var(--inst-gold) !important; }
/* step blocks — white with a clear gold boundary so they stand out on the white page */
html[data-theme="light"] .inst-step-inner {
    background: #ffffff !important;
    border: 1.5px solid rgba(201, 168, 76, 0.6) !important;
    box-shadow: 0 6px 22px rgba(33, 29, 23, 0.08) !important;
}
html[data-theme="light"] .inst-step-inner:hover { border-color: var(--inst-gold) !important; }
html[data-theme="light"] .inst-step h2,
html[data-theme="light"] .inst-list li strong,
html[data-theme="light"] .inst-link { color: #211d17 !important; }
html[data-theme="light"] .inst-desc,
html[data-theme="light"] .inst-list li,
html[data-theme="light"] .inst-list li span { color: rgba(33, 29, 23, 0.72) !important; }
html[data-theme="light"] .inst-eyebrow,
html[data-theme="light"] .inst-step h2 em { color: var(--inst-gold) !important; }
/* Installation has a WHITE hero in light mode — make the (transparent) navbar dark so it's visible */
html[data-theme="light"] body.page-installation .navbar .nav-link { color: #211d17 !important; }
html[data-theme="light"] body.page-installation .navbar .nav-link:hover,
html[data-theme="light"] body.page-installation .navbar .nav-link.active { color: var(--navbar-accent) !important; }
html[data-theme="light"] body.page-installation .gs-search-toggle { color: #211d17 !important; }
html[data-theme="light"] body.page-installation .navbar-toggler { border-color: rgba(0, 0, 0, 0.18) !important; }
html[data-theme="light"] body.page-installation .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23211d17' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Collection hub intro — plain section on light bg, not a real hero (override keep-dark) */
html[data-theme="light"] #main-content .collection-hero h2 { color: #211d17 !important; }
html[data-theme="light"] #main-content .collection-hero p { color: #4a443b !important; }
html[data-theme="light"] #main-content .collection-hero .section-label { color: var(--navbar-accent) !important; }
/* Collection sort/filter bar — dark text in light mode */
html[data-theme="light"] .collection-sort-label { color: rgba(33, 29, 23, 0.6) !important; }
html[data-theme="light"] .collection-sort-btn { color: rgba(33, 29, 23, 0.72) !important; }
html[data-theme="light"] .collection-sort-btn.active { color: #0f0f0f !important; }

/* Light theme — homepage hero sits over the video; keep its text identical to dark mode */
html[data-theme="light"] #gs-hero :is(h1,h2,h3,h4,p,a),
html[data-theme="light"] #gs-hero .gs-hero-title,
html[data-theme="light"] #gs-hero .gs-panel h2 { color: var(--gs-hero-head) !important; }
html[data-theme="light"] #gs-hero #gs-p0 .gs-hero-title em { color: var(--gs-green) !important; }
html[data-theme="light"] #gs-hero .gs-panel h2 em { color: var(--gs-gold) !important; }
html[data-theme="light"] #gs-hero .gs-panel h2 strong { color: var(--gs-green) !important; }
html[data-theme="light"] #gs-hero .gs-eyebrow { color: var(--gs-gold) !important; }
html[data-theme="light"] #gs-hero .gs-desc { color: var(--gs-hero-copy) !important; }

/* Light theme — Care hero sits over the video; keep its text identical to dark mode */
html[data-theme="light"] #care-hero .care-panel h2 { color: var(--care-hero-head) !important; }
html[data-theme="light"] #care-hero .care-panel h2 em { color: var(--care-gold) !important; }
html[data-theme="light"] #care-hero .care-panel h2 strong { color: var(--care-green) !important; }
html[data-theme="light"] #care-hero .care-eyebrow { color: var(--care-gold) !important; }
html[data-theme="light"] #care-hero .care-desc { color: var(--care-hero-copy) !important; }

/* Light theme — Installation hero is transparent over the dark/green inst-bg (like dark mode) */
html[data-theme="light"] .inst-hero { background: transparent !important; }

/* Care hero accent words green (like the homepage "Texture"), in both themes */
.care-panel-title em, .care-panel-title strong { color: var(--care-green) !important; }
html[data-theme="light"] #care-hero .care-panel-title em,
html[data-theme="light"] #care-hero .care-panel-title strong { color: var(--care-green) !important; }

/* FAQ question — a little right padding so the text clears the +/- icon */
.faq-item h3 { padding-right: 1.75rem; }

/* Light theme — collection hub series cards: titles sit over the image overlay → keep light */
html[data-theme="light"] .series-card-title,
html[data-theme="light"] .series-card-overlay h3,
html[data-theme="light"] .series-card-overlay span:not(.series-card-cta) { color: #f5f0ea !important; }
/* Light theme — series page intro/description text dark */
html[data-theme="light"] .series-intro,
html[data-theme="light"] .series-intro p { color: #2a2620 !important; }

/* Light theme — collection hub header sits on the light page bg, not a dark hero → dark text */
html[data-theme="light"] .collection-section .collection-hero :is(h1, h2, p) { color: #2a2620 !important; }
html[data-theme="light"] .collection-section .collection-hero .section-label { color: var(--navbar-accent) !important; }

/* ============================================================
   Global site search — navbar icon + overlay
   ============================================================ */
.gs-search-toggle {
    margin-left: auto;
    background: none; border: 0; padding: 0.45rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #f3ede4; line-height: 0; border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}
.gs-search-toggle svg { width: 21px; height: 21px; }
.gs-search-toggle:hover { color: var(--navbar-accent, #c9a962); }
@media (min-width: 992px) {
    .gs-search-toggle { margin-left: 1.25rem; order: 5; }
}

.gs-search-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(8, 8, 10, 0.78);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex; align-items: flex-start; justify-content: center;
    padding: max(11vh, 80px) 1rem 2rem;
}
.gs-search-overlay.open { opacity: 1; visibility: visible; }
.gs-search-box {
    width: 100%; max-width: 680px;
    background: #15130f; border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px); transition: transform 0.25s ease;
}
.gs-search-overlay.open .gs-search-box { transform: none; }
.gs-search-field {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.1rem; border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}
.gs-search-ico { color: var(--navbar-accent, #c9a962); display: inline-flex; }
.gs-search-ico svg { width: 22px; height: 22px; }
.gs-search-field input {
    flex: 1; background: none; border: 0; outline: none;
    color: #f3ede4; font-size: 1.1rem; font-family: inherit; min-width: 0;
}
.gs-search-field input::placeholder { color: rgba(243, 237, 228, 0.45); }
.gs-search-close {
    background: none; border: 0; color: rgba(243, 237, 228, 0.6);
    font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 0.25rem;
}
.gs-search-close:hover { color: #f3ede4; }
.gs-search-results { max-height: min(60vh, 520px); overflow-y: auto; padding: 0.4rem; }
.gs-search-hint, .gs-search-empty, .gs-search-more {
    color: rgba(243, 237, 228, 0.5); font-size: 0.9rem;
    padding: 1.1rem 1rem; margin: 0; text-align: center;
}
.gs-r {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.6rem 0.8rem; border-radius: 10px;
    text-decoration: none; color: #f3ede4;
}
.gs-r:hover { background: rgba(201, 168, 76, 0.12); }
.gs-r-thumb {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px;
    background: #222 center / cover no-repeat;
}
.gs-r-thumb--page {
    display: flex; align-items: center; justify-content: center;
    color: var(--navbar-accent, #c9a962); background: rgba(201, 168, 76, 0.12);
}
.gs-r-thumb--page svg { width: 20px; height: 20px; }
.gs-r-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gs-r-title { font-weight: 600; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-r-sub { font-size: 0.8rem; color: rgba(243, 237, 228, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-r-type {
    font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--navbar-accent, #c9a962); border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 999px; padding: 0.18rem 0.5rem; flex: 0 0 auto;
}

/* ===== Collection dropdown — series accordion (+ to expand) ===== */
.gs-cmenu { min-width: 250px; }
.gs-cmenu .gs-cmenu-grp { list-style: none; }
.gs-cmenu .gs-cmenu-top { display: flex; align-items: center; border-radius: 8px; }
.gs-cmenu .gs-cmenu-top .gs-cmenu-all { flex: 1; font-weight: 600; padding: 0.5rem 1rem; color: #f3ede4; font-size: 0.92rem; white-space: nowrap; cursor: pointer; }
.gs-cmenu .gs-cmenu-top .gs-cmenu-all:hover { background: rgba(201, 168, 76, 0.1); color: var(--navbar-accent, #c9a962); }
.gs-cmenu .gs-cmenu-plus {
    width: 40px; flex: 0 0 40px; background: none; border: 0;
    color: var(--navbar-accent, #c9a962); font-size: 1.25rem; line-height: 1;
    cursor: pointer; border-radius: 6px; transition: background 0.2s ease;
}
.gs-cmenu .gs-cmenu-plus:hover { background: rgba(201, 168, 76, 0.14); }
.gs-cmenu .gs-cmenu-sub { list-style: none; margin: 0; padding: 0 0 0.35rem; }
.gs-cmenu .gs-cmenu-sub .dropdown-item { padding-left: 1.7rem; font-size: 0.9rem; }
.gs-cmenu .gs-cmenu-viewall {
    font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--navbar-accent, #c9a962) !important; opacity: 0.95;
}
.gs-cmenu .dropdown-divider { margin: 0.35rem 0.6rem; border-color: rgba(201, 168, 76, 0.18); }
