:root, .theme-forest {
    --primary: #2A5A4A; /* Forest Green */
    --secondary: #D4A373; /* Warm Timber */
    --bg-light: #EAE6DF; /* Soft earthy background */
    --bg-panel: #F7F5F0; /* Creamy panel */
    --text-main: #333333;
    --text-muted: #666666;
    --radius: 12px;
    --on-primary: #FFFFFF; /* High contrast text on primary bg */
    
    /* Finish Colors */
    --c-sage: #8F9E8B;
    --c-terra: #C67A66;
    --c-mustard: #E2B75A;
    --c-teal: #4A7A7A;
}

.theme-ocean {
    --primary: #1C3B47; /* Deep Ocean Blue */
    --secondary: #E07A5F; /* Coral */
    --bg-light: #D6DFDF; /* Soft slate background */
    --bg-panel: #EBF0F0; /* Seafoam tinted panel */
    --text-main: #2C3E50;
    --text-muted: #5D6D7E;
    --on-primary: #FFFFFF;
    /* Finish Colors */
    --c-sage: #A3E4D7;
    --c-terra: #E07A5F;
    --c-mustard: #F4D03F;
    --c-teal: #1C3B47;
}

.theme-sunflower {
    --primary: #B5832F; /* Warm Ochre/Mustard */
    --secondary: #4A7A7A; /* Soft Teal */
    --bg-light: #F2E8D5; /* Buttermilk background */
    --bg-panel: #FDF8ED; /* Cream panel */
    --text-main: #4A4A4A;
    --text-muted: #7A7A7A;
    --on-primary: #FFFFFF;
    /* Finish Colors */
    --c-sage: #8F9E8B;
    --c-terra: #C67A66;
    --c-mustard: #B5832F;
    --c-teal: #4A7A7A;
}

.theme-berry {
    --primary: #632A3B; /* Deep Berry/Plum */
    --secondary: #E2B75A; /* Warm Gold */
    --bg-light: #EBD6DF; /* Mauve background */
    --bg-panel: #F9EFF2; /* Blush panel */
    --text-main: #3B1F27;
    --text-muted: #855C66;
    --on-primary: #FFFFFF;
    /* Finish Colors */
    --c-sage: #8F9E8B;
    --c-terra: #C67A66;
    --c-mustard: #E2B75A;
    --c-teal: #4A7A7A;
}

.theme-monochrome {
    --primary: #111111;
    --secondary: #D4A373;
    --bg-light: #F0F0F0;
    --bg-panel: #FFFFFF;
    --text-main: #222222;
    --text-muted: #777777;
    --on-primary: #FFFFFF;
    --c-sage: #8F9E8B; --c-terra: #C67A66; --c-mustard: #E2B75A; --c-teal: #4A7A7A;
}

.theme-midnight {
    --primary: #D4AF37; /* Brass */
    --secondary: #F4F6F6; /* White */
    --bg-light: #0B192C; /* Deep Navy */
    --bg-panel: #1A2F4C; /* Navy Panel */
    --text-main: #F4F6F6;
    --text-muted: #A0B2C6;
    --on-primary: #0B192C; /* Navy text on Brass */
    --c-sage: #8F9E8B; --c-terra: #C67A66; --c-mustard: #D4AF37; --c-teal: #4A7A7A;
}

.theme-sage {
    --primary: #5A7163;
    --secondary: #C67A66;
    --bg-light: #F4F1ED;
    --bg-panel: #FCFAF8;
    --text-main: #3E4B43;
    --text-muted: #7A8B81;
    --on-primary: #FFFFFF;
    --c-sage: #5A7163; --c-terra: #C67A66; --c-mustard: #E2B75A; --c-teal: #4A7A7A;
}

.theme-emerald-dark {
    --primary: #D37A53; /* Copper */
    --secondary: #F4F6F6;
    --bg-light: #0F2A21; /* Deep Emerald */
    --bg-panel: #183C30; /* Emerald Panel */
    --text-main: #F4F6F6;
    --text-muted: #9EBEB3;
    --on-primary: #0F2A21; /* Deep Emerald on Copper */
    --c-sage: #8F9E8B; --c-terra: #D37A53; --c-mustard: #E2B75A; --c-teal: #4A7A7A;
}

.theme-plum-dark {
    --primary: #E8A89A; /* Rose Gold */
    --secondary: #F4F6F6;
    --bg-light: #211224; /* Deep Plum */
    --bg-panel: #321D36; /* Plum Panel */
    --text-main: #F4F6F6;
    --text-muted: #C5AABF;
    --on-primary: #211224; /* Deep Plum on Rose Gold */
    --c-sage: #8F9E8B; --c-terra: #C67A66; --c-mustard: #E8A89A; --c-teal: #4A7A7A;
}

.theme-charcoal-dark {
    --primary: #E5A93C; /* Ochre */
    --secondary: #F4F6F6;
    --bg-light: #1A1A1A; /* Charcoal Black */
    --bg-panel: #2B2B2B; /* Dark Grey Panel */
    --text-main: #F4F6F6;
    --text-muted: #A8A8A8;
    --on-primary: #1A1A1A; /* Charcoal on Ochre */
    --c-sage: #8F9E8B; --c-terra: #C67A66; --c-mustard: #E5A93C; --c-teal: #4A7A7A;
}

/* Structural Styles (Playful is default) */
body.style-architectural {
    --radius: 0px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.style-architectural h1, 
body.style-architectural h2, 
body.style-architectural h3, 
body.style-architectural h4 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

body.style-architectural .concept-card, 
body.style-architectural .hero-image, 
body.style-architectural .image-display,
body.style-architectural .contact-card {
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.1);
}

body.style-architectural.theme-midnight .concept-card, 
body.style-architectural.theme-midnight .hero-image, 
body.style-architectural.theme-midnight .image-display,
body.style-architectural.theme-midnight .contact-card {
    border: 1px solid rgba(255,255,255,0.1);
}

/* Theme Switcher Widget */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-panel);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-switcher.collapsed {
    transform: translateX(calc(100% + 20px));
}

body.style-architectural .theme-switcher {
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: none;
    border-radius: 0px;
}

.switcher-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-panel);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    color: var(--text-main);
    z-index: 1001;
    transition: all 0.3s ease;
}

body.style-architectural .switcher-toggle {
    border-radius: 0px;
    box-shadow: none;
}

.switcher-toggle:hover {
    background: var(--primary);
    color: var(--on-primary);
}

.theme-switcher.collapsed .toggle-icon {
    transform: rotate(-180deg);
}

.theme-switcher .switcher-content {
    transition: opacity 0.25s ease;
}

.theme-switcher.collapsed .switcher-content {
    opacity: 0;
    pointer-events: none;
}

.theme-switcher h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.theme-options {
    display: flex;
    gap: 10px;
}

.theme-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.theme-dot:hover {
    transform: scale(1.1);
}

.theme-dot.active {
    border-color: #333;
}

/* Dot Colors */
.dot-forest { background: #2A5A4A; }
.dot-ocean { background: #1C3B47; }
.dot-sunflower { background: #B5832F; }
.dot-berry { background: #632A3B; }
.dot-monochrome { background: #111111; }
.dot-midnight { background: #0B192C; border: 1px solid rgba(255,255,255,0.2); }
.dot-sage { background: #5A7163; }
.dot-emerald-dark { background: #0F2A21; border: 1px solid rgba(255,255,255,0.2); }
.dot-plum-dark { background: #211224; border: 1px solid rgba(255,255,255,0.2); }
.dot-charcoal-dark { background: #1A1A1A; border: 1px solid rgba(255,255,255,0.2); }

.style-options {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.style-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border: 1px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-main);
}

.style-btn.active {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-panel);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: color 0.3s;
}

.logo-svg {
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: rotate(5deg) scale(1.05);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary) !important;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: #1f4236;
    transform: translateY(-2px);
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

/* Concept Cards */
.concept {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.concept-card {
    background: var(--bg-panel);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.2s ease;
}

.concept-card:hover {
    transform: translateY(-5px);
}

.concept-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

/* Storefront Mockup */
.selector-section {
    padding: 5rem 5%;
    background-color: var(--bg-panel);
}

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

.selector-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.selector-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 24px;
}

.image-display {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.image-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    transition: opacity 0.3s ease;
}

.options-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.options-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.option-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(128, 128, 128, 0.3);
    background: transparent;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.option-btn:hover {
    border-color: var(--primary);
}

.option-btn.active {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #333;
}

.color-sage { background-color: var(--c-sage); }
.color-terra { background-color: var(--c-terra); }
.color-mustard { background-color: var(--c-mustard); }
.color-teal { background-color: var(--c-teal); }

.pricing-mockup {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.price-estimate {
    font-size: 1.5rem;
    color: var(--primary);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Materials Section */
.materials-section {
    padding: 6rem 5%;
    background-color: var(--bg-panel);
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.materials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.materials-content {
    flex: 1.2;
}

.materials-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.materials-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    opacity: 0.9;
}

.materials-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.materials-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

body.style-architectural .materials-image img {
    box-shadow: none;
    border: 1px solid var(--text-muted);
}

.materials-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .materials-container {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    .materials-content h2 {
        font-size: 2rem;
    }
}

.gallery-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    background-color: var(--bg-light);
    border: 1px solid rgba(128, 128, 128, 0.2);
    color: var(--text-main);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

body.style-architectural .gallery-tab {
    border-radius: 0px;
}

.gallery-tab:hover {
    background-color: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.gallery-tab.active {
    background-color: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: var(--on-primary);
    text-align: center;
    padding: 5rem 5%;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    background: var(--bg-panel);
    color: var(--text-main);
    padding: 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 250px;
    transition: transform 0.2s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card .icon {
    font-size: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--bg-panel);
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    .hero, .selector-container {
        flex-direction: column;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    nav {
        gap: 0.8rem;
    }
    nav a {
        font-size: 0.9rem;
    }
    nav .btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Global Contact Section */
.contact {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-panel);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 3rem;
}
.contact h2 {
    margin-bottom: 1rem;
}
