/* ==============================================
   pages.css — Shared Styles for All Inner Pages
   Menuko Website
   ============================================== */

/* ---- Page Hero Banner ---- */
.page-hero {
    padding-top: max(160px, calc(100px + env(safe-area-inset-top)));
    padding-bottom: 5rem;
    background: var(--text-ink);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(207, 166, 96, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero .hero-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold-primary);
    margin-bottom: 1.2rem;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.page-hero p {
    font-size: 1.05rem;
    color: #AAAAAA;
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(207,166,96,0.7);
    margin-bottom: 2rem;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a { color: inherit; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold-primary); }
.breadcrumb span { color: rgba(255,255,255,0.2); }

/* Gold divider */
.gold-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    margin: 3rem auto;
}

/* ---- Collection Pages ---- */
.collection-section {
    padding: 7rem 0;
    background: var(--bg-cream);
}

.collection-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.6rem;
    border: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    border-radius: 2px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-ink);
    color: var(--white);
    border-color: var(--text-ink);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
}

.product-item {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.product-item:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}

.product-item-img {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.product-item-img-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s var(--ease-smooth);
}

.product-item:hover .product-item-img-inner {
    transform: scale(1.04);
}

.product-visual-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-align: center;
    padding: 1rem;
}

.product-item-body {
    padding: 1.8rem;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.product-item-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.product-item-body h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin-bottom: 0.6rem;
    color: var(--text-ink);
    font-weight: 600;
}

.product-item-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.product-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-ink);
    font-weight: 600;
}

.product-price small {
    font-size: 0.75rem;
    font-family: var(--font-body);
    color: var(--text-light);
    font-weight: 400;
}

.product-quote-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    border-bottom: 1px solid rgba(207,166,96,0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s;
}

.product-quote-link:hover {
    border-color: var(--gold-primary);
}

/* Property badges — shown on PHP-rendered product cards */
.product-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.property-badge {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(207,166,96,0.3);
    color: var(--gold-primary);
    background: rgba(207,166,96,0.05);
    border-radius: 2px;
    white-space: nowrap;
}

.product-options {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-style: italic;
}

/* Feature Highlight Strip */
.features-strip {
    background: var(--bg-alt);
    padding: 4rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.feature-item {
    padding: 1rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: var(--text-ink);
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(207,166,96,0.14) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-content {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.cta-banner p {
    font-size: 1.05rem;
    color: #999;
    max-width: 520px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.8;
}

.cta-btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Contact Page ---- */
.contact-section {
    padding: 7rem 0;
    background: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border-radius: 2px;
}

.contact-detail-text strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 0.3rem;
}

.contact-detail-text p {
    color: var(--text-ink);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 40px rgba(0,0,0,0.04);
}

.contact-form-wrapper h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    background: var(--bg-cream);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-ink);
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-primary);
    background: var(--white);
}

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

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

/* ---- FAQ Page ---- */
.faq-section {
    padding: 7rem 0;
    background: var(--bg-cream);
}

.faq-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 5rem;
    align-items: start;
}

.faq-sidebar {
    position: sticky;
    top: 100px;
}

.faq-sidebar-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.faq-cat-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color 0.3s, padding-left 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.faq-cat-link:hover,
.faq-cat-link.active {
    color: var(--gold-primary);
    padding-left: 0.5rem;
}

.faq-group-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 3.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: var(--text-ink);
}

.faq-group-title:first-child { margin-top: 0; }

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-ink);
    gap: 1.5rem;
    transition: color 0.3s;
    list-style: none;
    user-select: none;
}

.faq-question:hover { color: var(--gold-primary); }

.faq-arrow {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    transition: all 0.35s ease;
    color: var(--gold-primary);
    line-height: 1;
}

.faq-item.open .faq-question { color: var(--gold-primary); }

.faq-item.open .faq-arrow {
    background: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-primary);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding-bottom 0.45s ease;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.9;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.8rem;
}

/* ---- Materials Page ---- */
.materials-intro {
    padding: 5rem 0;
    background: var(--bg-alt);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.materials-intro h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.materials-intro p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.materials-section {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.material-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 3rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.4s ease;
}

.material-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.material-card.reversed {
    direction: rtl;
}

.material-card.reversed > * {
    direction: ltr;
}

.material-visual {
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.material-visual-inner {
    position: absolute;
    inset: 0;
    transition: transform 0.7s var(--ease-smooth);
}

.material-card:hover .material-visual-inner {
    transform: scale(1.04);
}

.material-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.material-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-primary);
    margin-bottom: 0.8rem;
    display: block;
}

.material-info h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-ink);
}

.material-info > p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.material-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin-bottom: 2.5rem;
}

.spec-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-ink);
    margin-bottom: 0.3rem;
}

.spec-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.color-swatches {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.swatch:hover { transform: scale(1.2); }

/* ---- Legal Pages ---- */
.legal-section {
    padding: 7rem 0;
    background: var(--bg-cream);
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--gold-primary);
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 3.5rem 0 1rem;
    color: var(--text-ink);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
    color: var(--text-ink);
}

.legal-content p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.95;
    margin-bottom: 1.2rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--gold-primary);
    border-bottom: 1px solid rgba(207,166,96,0.3);
    transition: border-color 0.3s;
}

.legal-content a:hover { border-color: var(--gold-primary); }

.legal-content hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin: 3rem 0;
}

/* ---- Utility / Refactored Inline Styles ---- */
.empty-products-msg {
    grid-column: 1/-1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-light);
}
.empty-products-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.empty-products-link {
    color: var(--gold-primary);
}
.product-item-img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.cta-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold-primary);
    margin-bottom: 1.2rem;
}
.btn-outline-white {
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.btn-outline-gold-sm {
    margin-bottom: 0.75rem;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

/* QR Menus "How it works" */
.how-it-works-section {
    background: var(--bg-alt);
    padding: 5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.how-it-works-header {
    text-align: center;
    margin-bottom: 4rem;
}
.how-it-works-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}
.how-it-works-title {
    font-family: var(--font-display);
    font-size: 3rem;
}
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}
.how-it-works-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-ink);
    color: var(--gold-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.how-it-works-step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.how-it-works-step-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ---- Materials Specific ---- */
.embossing-section { margin-top: 6rem; }
.embossing-header { text-align: center; margin-bottom: 4rem; }
.embossing-subtitle { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; color: var(--gold-primary); margin-bottom: 1rem; }
.embossing-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); }
.embossing-desc { color: var(--text-light); max-width: 600px; margin: 1rem auto 0; line-height: 1.8; }
.embossing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.embossing-item { padding: 2rem; border: 1px solid rgba(0,0,0,0.06); background: var(--white); }

.colours-section { background: var(--bg-alt); padding: 6rem 0; border-top: 1px solid rgba(0,0,0,0.06); }
.colours-header { text-align: center; margin-bottom: 4rem; }
.colours-subtitle { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; color: var(--gold-primary); margin-bottom: 1rem; }
.colours-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); }
.colours-desc { color: var(--text-light); max-width: 560px; margin: 1rem auto 0; font-size: 0.95rem; line-height: 1.8; }

.colour-group { margin-bottom: 3.5rem; }
.colour-group-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(0,0,0,0.07); }
.colour-group-note { font-size: .8rem; font-family: var(--font-body); color: var(--text-light); font-weight: 400; }

.pantone-note { background: var(--white); border: 1px solid rgba(0,0,0,0.06); padding: 2rem 2.5rem; display: flex; align-items: flex-start; gap: 1.5rem; max-width: 700px; }
.pantone-icon { font-size: 1.8rem; flex-shrink: 0; }
.pantone-title { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-primary); margin-bottom: .5rem; }
.pantone-desc { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.8; }
.pantone-strong { color: var(--text-ink); }
.pantone-link { color: var(--gold-primary); }

.btn-outline-dark { border: 1px solid rgba(0,0,0,0.15); color: var(--text-ink); }

/* ---- Configurator Page — Premium Redesign ---- */

/* ---- Hero ---- */
.configurator-hero {
    padding-top: max(140px, calc(90px + env(safe-area-inset-top)));
    padding-bottom: 4rem;
    background: #0D0C0B;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated gold radial background */
.configurator-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(207,166,96,0.18), transparent 65%),
        radial-gradient(ellipse 50% 40% at 20% 100%, rgba(207,166,96,0.07), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(207,166,96,0.07), transparent 60%);
    pointer-events: none;
    animation: heroGradientPulse 8s ease-in-out infinite alternate;
}

@keyframes heroGradientPulse {
    0%   { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Subtle grid texture overlay */
.configurator-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(207,166,96,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207,166,96,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.configurator-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.configurator-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.configurator-eyebrow::before,
.configurator-eyebrow::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--gold-primary);
    opacity: 0.5;
}

.configurator-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.configurator-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Trust badges row */
.configurator-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.trust-badge-icon {
    font-size: 1rem;
    filter: sepia(1) saturate(3) hue-rotate(5deg);
}

/* ---- Configurator Frame Section ---- */
.frame-section {
    background: #0D0C0B;
    padding: 0 3rem 3rem;
    position: relative;
}

.frame-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Glowing gold border treatment */
.frame-section-inner::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(207,166,96,0.5), rgba(207,166,96,0.05) 40%, rgba(207,166,96,0.05) 60%, rgba(207,166,96,0.3));
    z-index: 0;
    pointer-events: none;
}

.configurator-iframe-wrapper {
    width: 100%;
    /* aspect-ratio scales height with width — no more vh-based white gap at any zoom level */
    aspect-ratio: 16 / 10;
    max-height: 85vh;
    min-height: 420px;
    position: relative;
    background: #111;
    border-radius: 0;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(207,166,96,0.1);
}

.configurator-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.iframe-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0D0C0B;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-smooth);
}

.iframe-loading.hidden { opacity: 0; pointer-events: none; }

.loading-dots { display: flex; align-items: center; gap: 8px; }
.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-primary);
    display: inline-block;
    animation: loadBounce 1.4s infinite ease-in-out;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadBounce { 0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; } 40% { transform: scale(1); opacity: 1; } }

.loading-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: rgba(207,166,96,0.7);
    margin-top: 1.5rem;
    font-style: italic;
    letter-spacing: 1px;
}

/* ---- Mobile fallback ---- */
.mobile-fallback {
    display: none;
    text-align: center;
    padding: 5rem 2rem;
    background: #0D0C0B;
    color: var(--white);
}
.mobile-fallback h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.mobile-fallback p {
    color: rgba(255,255,255,0.45);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Below CTA ---- */
.configurator-cta {
    background: #0D0C0B;
    padding: 6rem 0 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.configurator-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(207,166,96,0.4), transparent);
}

.configurator-cta-eyebrow {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold-primary);
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.configurator-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.configurator-cta p {
    color: rgba(255,255,255,0.45);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
}

.configurator-cta-divider {
    width: 40px;
    height: 1px;
    background: var(--gold-primary);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.btn-ghost-white {
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.75);
    background: transparent;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btn-ghost-white:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* ---- Responsive Overrides ---- */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .faq-grid { grid-template-columns: 1fr; }
    .how-it-works-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Configurator tablet */
    .frame-section { padding: 0 1.5rem 2rem; }
    .configurator-trust { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .page-hero { padding-top: max(140px, calc(90px + env(safe-area-inset-top))); padding-bottom: 3.5rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .collection-section { padding: 4rem 0; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .contact-form-wrapper { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner { padding: 5rem 0; }
    .cta-btn-group { flex-direction: column; align-items: center; }
    .cta-btn-group .btn { width: 100%; max-width: 300px; }
    .material-info { padding: 2rem; }

    /* Configurator tablet-small */
    .frame-section { padding: 0 1rem 1.5rem; }
    .configurator-trust { gap: 1rem; }
    .trust-badge { font-size: 0.7rem; }
    .configurator-cta { padding: 4rem 0 5rem; }
    .configurator-cta h2 { font-size: 1.8rem; }
}

/* Mobile: hide iframe, show tap-to-open fallback */
@media (max-width: 480px) {
    .frame-section { padding: 0; }
    .frame-section-inner { display: none; }
    .mobile-fallback { display: block; }
    .configurator-hero { padding-bottom: 3rem; }
    .configurator-trust { flex-direction: column; gap: 0.75rem; }
    .faq-sidebar { position: static; top: auto; }
    .material-card { grid-template-columns: 1fr; }
    .material-card.reversed { direction: ltr; }
    .material-visual { min-height: 280px; }
}

@media (max-width: 768px) {
    .page-hero { padding-top: max(140px, calc(90px + env(safe-area-inset-top))); padding-bottom: 3.5rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .collection-section { padding: 4rem 0; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .contact-form-wrapper { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner { padding: 5rem 0; }
    .cta-btn-group { flex-direction: column; align-items: center; }
    .cta-btn-group .btn { width: 100%; max-width: 300px; }
    .material-info { padding: 2rem; }
    .contact-grid { gap: 2.5rem; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .page-hero p { font-size: 0.95rem; padding: 0 0.5rem; }
}

/* =====================================================
   PHASE 4 — Product Modal / Lightbox
   ===================================================== */

/* ---- Product card — click cursor & detail link ---- */
.product-item { cursor: pointer; }
.product-item .detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    border-bottom: 1px solid rgba(207,166,96,0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s, gap 0.2s;
    margin-top: 0.6rem;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: var(--font-body);
}
.product-item .detail-link:hover {
    border-color: var(--gold-primary);
    gap: 0.5rem;
}

/* ---- Modal Overlay ---- */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ---- Modal Box ---- */
.product-modal {
    background: var(--white);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    scroll-behavior: smooth;
}

.product-modal-overlay.open .product-modal {
    transform: translateY(0) scale(1);
}

/* ---- Modal Close ---- */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-ink);
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.16); }

/* ---- Modal Gallery (left panel) ---- */
.modal-gallery {
    position: relative;
    min-height: 400px;
    background: #111;
    overflow: hidden;
}

.modal-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-gallery-slide .modal-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-display);
    font-style: italic;
    color: rgba(255,255,255,0.35);
    font-size: 1.2rem;
    padding: 2rem;
    text-align: center;
}

/* Gallery nav arrows */
.modal-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-size: 1rem;
    transition: background 0.2s;
    line-height: 1;
}
.modal-gallery-btn:hover { background: rgba(255,255,255,0.25); }
.modal-gallery-btn.prev { left: 0.75rem; }
.modal-gallery-btn.next { right: 0.75rem; }
.modal-gallery-btn:disabled { opacity: 0.3; cursor: default; }

/* Gallery dots */
.modal-gallery-dots {
    position: absolute;
    bottom: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.modal-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.modal-gallery-dot.active {
    background: var(--gold-primary);
    transform: scale(1.3);
}

/* ---- Modal Info (right panel) ---- */
.modal-info {
    padding: 2.5rem 2.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-info-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 0.6rem;
}

.modal-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.75rem;
    color: var(--text-ink);
    line-height: 1.15;
}

.modal-info-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

/* Size variant tabs */
.modal-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-size-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.6rem;
    width: 100%;
}

.modal-size-btn {
    padding: 0.45rem 1rem;
    border: 1px solid rgba(0,0,0,0.18);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.modal-size-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}
.modal-size-btn.active {
    background: var(--text-ink);
    border-color: var(--text-ink);
    color: var(--white);
}

/* Properties in modal */
.modal-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.modal-options {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

/* Price row */
.modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-price {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--text-ink);
    font-weight: 600;
    line-height: 1;
}

.modal-price small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    display: block;
    margin-top: 0.2rem;
}

/* CTA buttons */
.modal-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-cta-group .btn {
    text-align: center;
    width: 100%;
    justify-content: center;
}

/* Demo link (QR menus) */
.modal-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--gold-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(207,166,96,0.3);
    padding-bottom: 1px;
    margin-top: 0.5rem;
    align-self: flex-start;
    transition: border-color 0.2s;
}
.modal-demo-link:hover { border-color: var(--gold-primary); }

/* ---- Responsive modal ---- */
@media (max-width: 768px) {
    .product-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    .modal-gallery {
        min-height: 260px;
        max-height: 260px;
    }
    .modal-info {
        padding: 1.75rem 1.5rem;
    }
}

/* Materials page cards — new card-based layout */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 2rem;
}

.material-card-header {
    position: relative;
    padding: 2.5rem 2rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.material-card-body {
    padding: 2rem;
}

.material-card-body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--text-ink);
}

.material-tagline {
    font-size: 0.88rem;
    color: var(--gold-primary);
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

.material-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.material-specs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    width: 120px;
    flex-shrink: 0;
}

.spec-bar {
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.spec-fill {
    height: 100%;
    background: var(--text-ink);
    border-radius: 2px;
}

.spec-fill.eco-fill { background: #22c55e; }

.material-props {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.material-props span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(207,166,96,0.3);
    color: var(--gold-primary);
    border-radius: 2px;
}

.material-visual {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.material-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.material-tag.eco   { color: #4ade80; }
.material-tag.popular { color: #C9A84C; }
.material-tag.premium { color: #e5e7eb; }

@media (max-width: 768px) {
    .materials-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PHASE 5 — Materials Page: Colour Swatch Grid
   ===================================================== */

.colour-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1.25rem 1rem;
}

.colour-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
    cursor: default;
}

.colour-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.9);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.colour-swatch-item:hover .colour-dot {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 3px rgba(255,255,255,1);
}

.colour-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-ink);
    display: block;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.colour-hex {
    font-size: 0.62rem;
    color: var(--text-light);
    font-family: monospace;
    letter-spacing: 0.03em;
    display: block;
}

@media (max-width: 600px) {
    .colour-swatches-grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 1rem 0.75rem;
    }
    .colour-dot {
        width: 40px;
        height: 40px;
    }
}
