/* ==========================================================================
   Modern House Upgrade - Shared Stylesheet
   ========================================================================== */

:root {
    /* High-End Modern Palette */
    --bg-bone: #F5F5F2;
    --bg-white: #FFFFFF;
    --slate-charcoal: #1E2229;
    --ochre-gold: #D97706;
    --ochre-light: #FEF3C7;
    --border-color: #2D3139;
    --text-main: #2D3139;
    --text-muted: #6B7280;

    --font-head: 'Tenor Sans', sans-serif;
    --font-body: 'Albert Sans', sans-serif;

    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-bone);
    overflow-x: hidden;
    font-size: 1.05rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; color: var(--slate-charcoal); }
.text-ochre { color: var(--ochre-gold) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-bone); }
::-webkit-scrollbar-thumb { background: var(--slate-charcoal); }
::-webkit-scrollbar-thumb:hover { background: var(--ochre-gold); }

/* Premium Buttons */
.btn-gallery {
    background-color: var(--slate-charcoal); color: var(--bg-white);
    border-radius: 0; padding: 16px 36px; font-family: var(--font-head);
    font-size: 0.9rem; letter-spacing: 2px; border: 1px solid var(--slate-charcoal);
    transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none;
}
.btn-gallery:hover { background-color: transparent; color: var(--slate-charcoal); transform: translateY(-2px); }

.btn-gallery-outline {
    background-color: transparent; color: var(--slate-charcoal);
    border-radius: 0; padding: 16px 36px; font-family: var(--font-head);
    font-size: 0.9rem; letter-spacing: 2px; border: 1px solid var(--slate-charcoal);
    transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn-gallery-outline:hover { background-color: var(--slate-charcoal); color: var(--bg-white); }

/* Form Layout Configuration */
.form-label { font-weight: 600; font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 1px; color: var(--slate-charcoal); margin-bottom: 0.5rem; text-transform: uppercase; }
.form-control, .form-select {
    background-color: var(--bg-white); border: 1px solid #D1D5DB;
    border-radius: 0; padding: 16px; color: var(--slate-charcoal); font-weight: 500; transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-white); border-color: var(--ochre-gold); box-shadow: none; outline: none;
}

/* 1. Navbar */
.navbar { padding: 1.5rem 0; transition: var(--transition); background: var(--bg-white); border-bottom: 1px solid rgba(30, 34, 41, 0.08); }
.navbar.scrolled { padding: 1rem 0; background: var(--bg-white); border-bottom: 1px solid rgba(30, 34, 41, 0.08); z-index: 1000; }
.navbar-brand { font-size: 1.8rem; font-family: var(--font-head); font-weight: 600; color: var(--slate-charcoal) !important; letter-spacing: 2px; text-decoration: none; }
.nav-link { color: var(--text-muted) !important; font-weight: 600; font-family: var(--font-head); font-size: 0.85rem; margin: 0 15px; letter-spacing: 1.5px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--slate-charcoal) !important; border-bottom: 1px solid var(--slate-charcoal); }

/* 2. Hero Section */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 80px; position: relative; }
.hero-title { font-size: clamp(2.8rem, 5.5vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; }

.mood-board-box { background: var(--bg-white); padding: 3rem; border: 1px solid rgba(30, 34, 41, 0.08); position: relative; }
.mood-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 2.5rem; }
.mood-square {
    height: 120px; background-color: var(--bg-bone); display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent; transition: var(--transition);
}
.mood-square i { font-size: 1.8rem; color: var(--slate-charcoal); margin-bottom: 8px; }
.mood-square span { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.mood-square:hover, .mood-square.active { background-color: var(--slate-charcoal); border-color: var(--slate-charcoal); }
.mood-square:hover i, .mood-square.active i { color: var(--ochre-gold); }
.mood-square:hover span, .mood-square.active span { color: white; }

.mood-output { background: var(--bg-bone); padding: 1.5rem; border-left: 3px solid var(--ochre-gold); transition: var(--transition); }
.mood-output h5 { font-size: 1.1rem; margin-bottom: 5px; font-weight: 600; }

/* 3. About Us */
.about-section { padding: 120px 0; background: var(--bg-white); border-top: 1px solid rgba(30, 34, 41, 0.08); border-bottom: 1px solid rgba(30, 34, 41, 0.08); }
.partition-grid { display: flex; height: 500px; gap: 20px; margin-top: 3.5rem; }
@media (max-width: 991px) { .partition-grid { flex-direction: column; height: auto; } }

.partition-card {
    flex: 1; background: var(--bg-bone); padding: 3.5rem 2.5rem; display: flex; flex-direction: column;
    justify-content: center; border: 1px solid transparent; transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
    overflow: hidden; position: relative;
}
.partition-card:hover { flex: 2.2; background: var(--bg-white); border-color: rgba(30, 34, 41, 0.15); box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.part-icon { font-size: 2.5rem; color: var(--ochre-gold); margin-bottom: 1.5rem; }
.partition-card h3 { font-size: 1.6rem; margin-bottom: 1rem; white-space: nowrap; }
.partition-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; opacity: 0; transition: opacity 0.3s; }
.partition-card:hover p { opacity: 1; }
@media (max-width: 991px) { .partition-card p { opacity: 1; } .partition-card { flex: none !important; } }

/* 4. Services */
.services-section { padding: 120px 0; }
.catalog-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-top: 3.5rem; }

.catalog-box {
    background: var(--bg-white); border: 1px solid rgba(30, 34, 41, 0.08);
    padding: 3rem 2.5rem; transition: var(--transition); display: flex;
    flex-direction: column; text-decoration: none; color: inherit; position: relative;
}
.catalog-box::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background: rgba(217, 119, 6, 0.02); transition: var(--transition); z-index: 0; }
.catalog-box:hover::after { height: 100%; }
.catalog-box:hover { transform: translateY(-5px); border-color: var(--ochre-gold); box-shadow: 0 15px 35px rgba(0,0,0,0.03); }

.cat-icon-frame { font-size: 2.2rem; color: var(--slate-charcoal); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.catalog-box:hover .cat-icon-frame { color: var(--ochre-gold); }
.catalog-box h4 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; text-transform: none; letter-spacing: 0; position: relative; z-index: 1; }
.catalog-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; position: relative; z-index: 1; }
.cat-action-link { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--slate-charcoal); display: flex; align-items: center; gap: 8px; margin-top: auto; position: relative; z-index: 1; }
.catalog-box:hover .cat-action-link { color: var(--ochre-gold); }

/* 5. Why Choose Us */
.why-section {
    padding: 120px 0;
    background: var(--slate-charcoal);
    color: var(--bg-bone);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.why-section h2 { color: white; }

.standard-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 2.5rem;
    position: relative;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.standard-card:hover {
    background: var(--bg-white);
    color: var(--slate-charcoal);
    border-color: var(--ochre-gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.standard-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: white;
    transition: var(--transition);
}
.standard-card:hover h3 {
    color: var(--slate-charcoal);
}

.card-num-back {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}
.standard-card:hover .card-num-back {
    color: rgba(217, 119, 6, 0.06);
}

.standard-icon {
    font-size: 2.2rem;
    color: var(--ochre-gold);
    margin-bottom: 2rem;
    transition: var(--transition);
    align-self: flex-start;
}
.standard-card:hover .standard-icon {
    transform: scale(1.1);
}

.standard-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    transition: var(--transition);
}
.standard-card:hover p {
    color: var(--slate-charcoal);
    opacity: 0.8;
}

/* 6. FAQ */
.faq-section { padding: 120px 0; background: var(--bg-white); border-bottom: 1px solid rgba(30, 34, 41, 0.08); }
.ledger-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
@media (max-width: 991px) { .ledger-layout { grid-template-columns: 1fr; gap: 40px; } }

.ledger-directory { position: sticky; top: 120px; }
@media (max-width: 991px) { .ledger-directory { position: relative; top: 0; } }

.faq-ledger-accordion .accordion-item { background: transparent; border: none; border-bottom: 1px solid rgba(30, 34, 41, 0.1); border-radius: 0; }
.faq-ledger-accordion .accordion-button { background: transparent; color: var(--slate-charcoal); font-family: var(--font-head); font-size: 1.2rem; padding: 25px 0; box-shadow: none; border: none; }
.faq-ledger-accordion .accordion-button:not(.collapsed) { color: var(--ochre-gold); }
.faq-ledger-accordion .accordion-button::after { filter: grayscale(1); transition: var(--transition); }
.faq-ledger-accordion .accordion-body { padding: 0 0 25px 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* 7. Testimonials */
.testi-section { padding: 120px 0; background: var(--bg-bone); overflow: hidden; }
.gallery-frame-container { max-width: 850px; margin: 3rem auto 0 auto; background: var(--bg-white); border: 1px solid rgba(30, 34, 41, 0.08); padding: 4rem; position: relative; }

.frame-text-area { min-height: 180px; position: relative; margin-bottom: 3rem; }
.frame-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: translateY(15px); transition: var(--transition); pointer-events: none; }
.frame-slide.active { opacity: 1; transform: translateY(0); pointer-events: all; }

.fs-quote { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; color: var(--slate-charcoal); margin-bottom: 1.5rem; }
.fs-meta { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ochre-gold); font-weight: 600; }

.frame-portraits { display: flex; justify-content: center; gap: 20px; border-top: 1px solid rgba(30, 34, 41, 0.08); padding-top: 2.5rem; }
.portrait-node { width: 55px; height: 55px; border-radius: 50%; background: var(--bg-bone); border: 2px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; cursor: pointer; transition: var(--transition); }
.portrait-node:hover, .portrait-node.active { border-color: var(--ochre-gold); transform: scale(1.15); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* 8. Contact Form */
.contact-section { padding: 120px 0; background: var(--bg-white); }
.desk-layout { display: grid; grid-template-columns: 1fr 1.5fr; border: 1px solid rgba(30, 34, 41, 0.1); background: var(--bg-white); box-shadow: var(--shadow-float); }
@media (max-width: 991px) { .desk-layout { grid-template-columns: 1fr; } }

.desk-coordinates { background: var(--bg-bone); padding: 4.5rem 3.5rem; display: flex; flex-direction: column; border-right: 1px solid rgba(30, 34, 41, 0.1); }
@media (max-width: 991px) { .desk-coordinates { border-right: none; border-bottom: 1px solid rgba(30, 34, 41, 0.1); padding: 3.5rem 2.5rem; } }

.coord-block { margin-bottom: 2.5rem; }
.coord-block h6 { font-size: 0.8rem; font-weight: 600; color: var(--ochre-gold); letter-spacing: 2px; margin-bottom: 8px; }
.coord-block p { font-family: var(--font-head); font-size: 1.35rem; margin: 0; color: var(--slate-charcoal); }

.registry-panel { margin-top: auto; padding-top: 2.5rem; border-top: 1px dashed rgba(30, 34, 41, 0.15); }

.desk-form-pane { padding: 4.5rem; }
@media (max-width: 991px) { .desk-form-pane { padding: 3.5rem 2.5rem; } }

/* Footer */
.footer { padding: 5rem 0 3rem; text-align: center; background: var(--slate-charcoal); color: var(--bg-bone); }
.footer-logo { font-family: var(--font-head); font-size: 2.2rem; color: white; letter-spacing: 3px; display: inline-block; text-decoration: none; margin-bottom: 2rem; }
.footer-link { color: var(--text-muted); text-decoration: none; font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 15px; transition: var(--transition); }
.footer-link:hover { color: white; }

.btn-spinner { display: none; width: 1.2rem; height: 1.2rem; margin-right: 0.5rem; }
.loading .btn-spinner { display: inline-block; }
.loading .btn-text { display: none; }

/* Page Hero Banner (sub pages) */
.page-hero { padding: 180px 0 80px; background: var(--bg-white); border-bottom: 1px solid rgba(30, 34, 41, 0.08); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.2rem; }

/* Standalone content container (privacy, terms) */
.legal-content { padding: 80px 0; background: var(--bg-white); }
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; color: var(--slate-charcoal); }
.legal-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }

/* Standalone form page (newsletter / unsubscribe) */
.standalone-form-page { padding: 120px 0; background: var(--bg-bone); min-height: 100vh; }
.form-card { max-width: 640px; margin: 0 auto; background: var(--bg-white); padding: 4rem 3.5rem; border: 1px solid rgba(30, 34, 41, 0.08); box-shadow: var(--shadow-float); }
@media (max-width: 768px) { .form-card { padding: 3rem 2rem; } }
