/* ========================================
   TrueStyle Wallpaper - Main Stylesheet
   Scandinavian Luxury Craftsmanship Design
   ======================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --color-primary: #223129;
    --color-secondary: #324238;
    --color-light: #F3EFE6;
    --color-text-light: #F8F6F1;
    --color-text-dark: #2C322D;
    --color-accent: #BE9764;
    --color-accent-hover: #A98455;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 20px;
}

.header-top a {
    color: var(--color-text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top a:hover {
    color: var(--color-accent);
}

.header-top svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-light);
}

.logo span {
    color: var(--color-accent);
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 16px;
    display: block;
    transition: var(--transition);
}

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

/* --- Dropdown --- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-primary);
    min-width: 240px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
}

.main-nav > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.main-nav > ul > li:hover .dropdown li {
    opacity: 1;
    transform: translateX(0);
}

.main-nav > ul > li:hover .dropdown li:nth-child(1) { transition-delay: 0.05s; }
.main-nav > ul > li:hover .dropdown li:nth-child(2) { transition-delay: 0.1s; }
.main-nav > ul > li:hover .dropdown li:nth-child(3) { transition-delay: 0.15s; }
.main-nav > ul > li:hover .dropdown li:nth-child(4) { transition-delay: 0.2s; }
.main-nav > ul > li:hover .dropdown li:nth-child(5) { transition-delay: 0.25s; }
.main-nav > ul > li:hover .dropdown li:nth-child(6) { transition-delay: 0.3s; }
.main-nav > ul > li:hover .dropdown li:nth-child(7) { transition-delay: 0.35s; }
.main-nav > ul > li:hover .dropdown li:nth-child(8) { transition-delay: 0.4s; }
.main-nav > ul > li:hover .dropdown li:nth-child(9) { transition-delay: 0.45s; }
.main-nav > ul > li:hover .dropdown li:nth-child(10) { transition-delay: 0.5s; }

.dropdown a {
    color: var(--color-text-light);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.dropdown a:hover {
    color: var(--color-accent);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--color-accent);
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-text-light);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: var(--color-primary);
    z-index: 1050;
    padding: 80px 30px 30px;
    overflow-y: auto;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text-light);
}

.mobile-nav-close:hover svg {
    stroke: var(--color-accent);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.mobile-nav > ul > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav > ul > li > a {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 0;
    display: block;
    text-align: left;
}

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

.mobile-nav .mobile-dropdown-title {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mobile-nav .mobile-dropdown-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-light);
    transition: transform 0.3s ease;
}

.mobile-nav .mobile-dropdown-title.open svg {
    transform: rotate(180deg);
}

.mobile-nav .mobile-sub {
    display: none;
    padding-left: 16px;
}

.mobile-nav .mobile-sub.open {
    display: block;
}

.mobile-nav .mobile-sub li a {
    color: rgba(248,246,241,0.8);
    font-size: 0.9rem;
    padding: 10px 0;
    display: block;
    text-align: left;
}

.mobile-nav .mobile-sub li a:hover {
    color: var(--color-accent);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.mobile-overlay.active {
    display: block;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--color-primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.hero-text h1 {
    color: var(--color-text-light);
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-text p {
    color: rgba(248,246,241,0.85);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 30px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(190,151,100,0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* --- Form Styles --- */
.feedback-form-container {
    width: 100%;
}

.feedback-form-container h3 {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-form .form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(248,246,241,0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.12);
}

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

.contact-form .form-submit {
    margin-top: 16px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(190,151,100,0.3);
}

#form-success {
    text-align: center;
    padding: 20px;
}

#form-success p {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Light form variant (for contact page) --- */
.form-light .feedback-form-container h3 {
    color: var(--color-primary);
}

.form-light .contact-form input,
.form-light .contact-form textarea {
    background: #fff;
    border: 1px solid #ddd;
    color: var(--color-text-dark);
}

.form-light .contact-form input::placeholder,
.form-light .contact-form textarea::placeholder {
    color: #999;
}

.form-light .contact-form input:focus,
.form-light .contact-form textarea:focus {
    border-color: var(--color-accent);
    background: #fff;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-text-light);
}

.section-secondary {
    background: var(--color-secondary);
    color: var(--color-text-light);
}

.section-secondary h2,
.section-secondary h3 {
    color: var(--color-text-light);
}

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

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 24px;
}

.service-card-content h3 a {
    color: var(--color-primary);
}

.service-card-content h3 a:hover {
    color: var(--color-accent);
}

.service-card-content p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Areas Grid --- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.area-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.area-card:hover {
    background: rgba(190,151,100,0.1);
    border-color: var(--color-accent);
}

.area-card a {
    color: var(--color-text-light);
    font-weight: 500;
}

.area-card:hover a {
    color: var(--color-accent);
}

/* --- CTA Section --- */
.cta-block {
    text-align: center;
    padding: 40px;
    background: var(--color-secondary);
    border-radius: var(--radius);
    margin: 40px 0;
}

.cta-block h3 {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.cta-block p {
    color: rgba(248,246,241,0.8);
    margin-bottom: 1.5rem;
}

.cta-inline {
    margin: 30px 0;
    padding: 30px;
    background: var(--color-light);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.cta-inline p {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* --- Map --- */
.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-accent);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(248,246,241,0.7);
    font-size: 0.9rem;
}

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

.footer-col p {
    color: rgba(248,246,241,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(248,246,241,0.5);
    font-size: 0.85rem;
}

/* --- Sticky Quote Button --- */
.sticky-quote-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    padding: 16px 28px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(190,151,100,0.4);
    transition: var(--transition);
}

.sticky-quote-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(190,151,100,0.5);
}

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--color-primary);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 550px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-light);
}

.modal-close:hover svg {
    stroke: var(--color-accent);
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: var(--color-primary);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(248,246,241,0.7);
    font-size: 1.1rem;
}

/* --- Content Sections --- */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    margin-top: 2rem;
}

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

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    list-style: disc;
    color: var(--color-text-dark);
}

.content-section ol li {
    list-style: decimal;
}

/* --- FAQ --- */
.faq-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #555;
    font-size: 0.95rem;
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.two-col img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Neighborhoods Grid --- */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 1rem 0 2rem;
}

.neighborhoods-grid span {
    background: rgba(190,151,100,0.1);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(190,151,100,0.2);
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.85rem;
    color: rgba(248,246,241,0.6);
}

.breadcrumb a {
    color: rgba(248,246,241,0.6);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb span {
    margin: 0 8px;
}

/* --- Contact Info --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-info-card svg {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.contact-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p,
.contact-info-card a {
    color: #555;
    font-size: 0.95rem;
}

.contact-info-card a:hover {
    color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .header-top {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .section {
        padding: 50px 0;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .sticky-quote-btn {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    .sticky-quote-btn:hover {
        transform: translateX(50%) translateY(-3px);
    }

    .mobile-nav {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .modal-content {
        padding: 25px;
    }

    .container {
        padding: 0 15px;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }
