/* Luxury Metallic & Dark Palette Style Controls */
:root {
    --primary: #111111;
    --accent: #c4a47c; /* Sophisticated Bronze-Gold tone */
    --accent-hover: #b3926a;
    --text: #222222;
    --light-bg: #f8f8f6;
    --white: #ffffff;
    --gray: #777777;
    --border: #e6e6e0;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Fixed Premium Header */
header {
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.logo span { color: var(--accent); }

/* Desktop Menu Link Set */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: #aaaaaa;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    padding: 8px 0;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent);
}

/* Mobile Hamburger Trigger Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

/* Animated Menu morphing into an 'X' close symbol */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Premium Mobile Overlay Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #111111;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-links li a {
    color: var(--white);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    font-weight: 300;
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

.mobile-nav-links li a:hover, .mobile-nav-links li a.active {
    color: var(--accent);
    transform: scale(1.05);
}

/* Page Layout Configurations */
.page {
    display: none;
    padding: 40px 0 80px 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.page.active-page {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO SPLASH SECTION --- */
.hero {
    padding: 160px 0; 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1600&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-card {
    max-width: 650px;
}

.hero h1 { 
    font-size: 46px; 
    margin-bottom: 20px; 
    font-weight: 700; 
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero p { 
    font-size: 15px; 
    margin-bottom: 35px; 
    color: #e5ccae; 
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Call-To-Action Controls */
.btn {
    background-color: var(--accent);
    color: var(--primary);
    padding: 15px 32px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}
.btn:hover { 
    background-color: var(--accent-hover); 
    transform: translateY(-2px); 
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* CTA Background Wrapper */
.cta-bg-wrapper {
    background-color: #222222;
    padding: 80px 0;
    margin-bottom: 60px;
}

.sticky-cta-bar {
    background-color: rgba(17, 17, 17, 0.4); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--accent);
}

.cta-text-side h3 {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.cta-text-side p {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- HORIZONTAL LOOPING SCROLLER --- */
.scroller-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--primary);
    padding: 50px 0;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
}

.scroller-track {
    display: flex;
    width: max-content;
    gap: 24px;
    animation: scrollLeft 35s linear infinite;
}

.scroller-item {
    width: 380px;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: var(--transition);
}

.scroller-item:hover {
    transform: scale(1.03);
    filter: brightness(1);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}

/* Typography Settings */
.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    color: var(--primary);
}
.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Product Catalog Matrix Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-img-wrapper {
    width: 100%;
    padding-top: 80%;
    position: relative;
    background-color: #eaeae6;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-tag {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.4;
}

.card-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Item Detailed Overlay Route Layout */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 32px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
.back-link:hover { color: var(--accent); }

.detail-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    background: var(--white);
    padding: 40px;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-detail-img-wrapper {
    width: 100%;
    padding-top: 75%;
    position: relative;
    background-color: #eaeae6;
    margin-bottom: 16px;
}

.main-detail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* --- UPDATED CAROUSEL THUMBNAIL LAYOUT SYSTEM --- */
.thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.thumbnails {
    display: flex;
    gap: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 4px 0;
}

.thumb-wrapper {
    flex: 0 0 calc(50% - 8px); /* Exactly 2 items visible (subtracting half the 16px gap) */
    width: calc(50% - 8px);
    padding-top: 35%; /* Increased Height */
    position: relative;
    background-color: #eaeae6;
    cursor: pointer;
}

.thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumb:hover, .thumb.active-thumb {
    border-color: var(--accent);
    opacity: 0.8;
}

.slider-arrow {
    background-color: rgba(17, 17, 17, 0.8);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 16px;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.arrow-left {
    left: -18px;
}

.arrow-right {
    right: -18px;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.detail-info h2 {
    font-size: 32px;
    margin: 10px 0 16px 0;
    color: var(--primary);
    font-weight: 400;
    line-height: 1.25;
}

.detail-price {
    font-size: 26px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.detail-desc {
    margin-bottom: 35px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* --- DESIGN INTERACTIVE PLATFORM CUSTOMIZER --- */
.customizer-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
}

.customizer-options {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.option-group h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    color: #888888;
    font-weight: 600;
}

.choice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.choice-btn {
    background-color: var(--light-bg);
    border: 1px solid transparent;
    padding: 16px 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.choice-btn:hover { background-color: #eaeae4; }

.choice-btn.selected {
    border-color: var(--accent);
    background-color: #fcf9f5;
    color: var(--accent);
    font-weight: 600;
}

.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.preview-pane {
    background-color: #111111;
    color: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 3px solid var(--accent);
}

.preview-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.preview-summary-item {
    margin-bottom: 18px;
    font-size: 15px;
}
.preview-summary-item strong {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    color: #777777;
    display: block;
    margin-bottom: 4px;
}
.preview-summary-item span {
    color: #dddddd;
}

/* --- CONFIRMATION BLUEPRINT MODAL OVERLAY --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

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

.modal-card {
    background-color: var(--primary);
    color: var(--white);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.modal-open .modal-card { transform: translateY(0); }

.modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(196, 164, 124, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 24px auto;
    border: 1px solid rgba(196, 164, 124, 0.2);
}

.modal-card h3 {
    font-size: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.modal-card p {
    color: #888888;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-blueprint-summary {
    background-color: #161616;
    padding: 24px;
    border-left: 3px solid var(--accent);
    text-align: left;
    margin-bottom: 24px;
}

.modal-summary-line {
    font-size: 13px;
    margin-bottom: 10px;
    color: #999999;
}
.modal-summary-line:last-child { margin-bottom: 0; }
.modal-summary-line span {
    color: var(--white);
    font-weight: 500;
    float: right;
}

.modal-ref-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.5px;
    background-color: #222222;
    padding: 6px 14px;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Creative Architecture Studio Footer */
footer {
    background-color: var(--primary);
    color: #666666;
    padding: 80px 0 40px 0;
    margin-top: 100px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 60px;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-brand h2 {
    max-width: 460px; 
    color: #bbbbbb; 
    font-weight: 300;
    font-size: 22px;
    line-height: 1.5;
}

.footer-address h5 {
    color: var(--white);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.address-block {
    line-height: 1.8;
    color: #999999;
    font-size: 14px;
}

/* ==================================================================
    HIGH-END EDITORIAL BREAKPOINTS FOR MOBILE IMMERSION
    ================================================================== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    header { padding: 16px 0; }
    nav ul { display: none; }
    .menu-toggle { display: flex; }
    .hero { padding: 150px 20px; background-position: 65% center; margin-top: -65px; margin-bottom: 24px; }
    .hero-card { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; border-left: none; }
    .hero h1 { font-size: 28px; line-height: 1.3; margin-bottom: 16px; }
    .hero p { font-size: 13px; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; padding: 16px; }
    .cta-bg-wrapper { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1200&q=80'); background-position: center; background-size: cover; background-repeat: no-repeat; padding: 40px 0; margin-bottom: 40px; }
    .sticky-cta-bar { flex-direction: column; text-align: center; padding: 30px 20px; }
    .sticky-cta-bar p { font-size: 18px; }
    .sticky-cta-bar .btn { width: 100%; justify-content: center; }
    .scroller-wrapper { padding: 30px 0; margin-bottom: -100px; }
    .scroller-item { width: 270px; height: 180px; }
    .section-title { font-size: 24px; }
    .section-subtitle { margin-bottom: 32px; }
    .grid { grid-template-columns: 1fr; gap: 32px; }
    .card:hover { transform: none; box-shadow: none; }
    .card-info { padding: 20px 4px; background: transparent; }
    .card-title { font-size: 15px; margin-bottom: 8px; }
    .detail-container { grid-template-columns: 1fr; padding: 20px; gap: 32px; }
    .detail-info h2 { font-size: 24px; }
    .customizer-layout { grid-template-columns: 1fr; padding: 20px; gap: 32px; }
    .choice-row { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 8px; scrollbar-width: none; }
    .choice-row::-webkit-scrollbar { display: none; }
    .choice-btn { flex: 0 0 auto; padding: 12px 24px; font-size: 12px; }
    .preview-pane { padding: 30px 20px; }
    footer { padding: 60px 0 30px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-bottom: 40px; margin-bottom: 40px; }
    .footer-brand h2 { font-size: 18px; margin: 0 auto; }
    .footer-address .btn { width: 100%; justify-content: center; }
    
    .thumb-wrapper { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); padding-top: 40%; } /* Exactly 2 items, Increased height for mobile */
    .slider-arrow { width: 30px; height: 30px; font-size: 14px; }
    .arrow-left { left: -10px; }
    .arrow-right { right: -10px; }
}
