:root {
    --vintage-linen: #F8F5EC;
    --faded-denim: #607C96;
    --wheat-beige: #DCC6A5;
    --country-sage: #89977F;
    --walnut-brown: #644B3C;
    --warm-white: #FFFDF8;
    --border-light: #E6DDCF;
    --text-primary: #644B3C;
    --text-secondary: #76655A;
    --font-family-headings: 'Playfair Display', Georgia, serif;
    --font-family-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-base: 0.375rem;
    --radius-card: 0.5rem;
    --radius-pill: 2rem;
    --shadow-subtle: 0 2px 10px rgba(100, 75, 60, 0.06);
    --shadow-hover: 0 6px 18px rgba(100, 75, 60, 0.10);
    --transition-smooth: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--vintage-linen);
    color: var(--text-primary);
    font-family: var(--font-family-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-headings);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: inherit;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

a {
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--faded-denim);
    outline-offset: 2px;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: var(--warm-white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 18px rgba(100, 75, 60, 0.08);
    padding: 1.25rem 1rem;
}

.cookie-consent-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-content {
    flex: 1;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.cookie-consent-link {
    color: var(--faded-denim);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent-link:hover {
    color: var(--walnut-brown);
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-base);
    text-align: center;
}

.cookie-consent-btn-primary {
    background-color: var(--faded-denim);
    color: var(--warm-white);
    border: 1px solid var(--faded-denim);
}

.cookie-consent-btn-primary:hover {
    background-color: #4E667C;
    color: var(--warm-white);
}

.cookie-consent-btn-secondary {
    background-color: transparent;
    color: var(--walnut-brown);
    border: 1px solid var(--walnut-brown);
}

.cookie-consent-btn-secondary:hover {
    background-color: var(--border-light);
}

.cookie-consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 75, 60, 0.45);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-modal-dialog {
    background-color: var(--warm-white);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-hover);
    padding: 1.5rem;
}

.cookie-consent-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-consent-modal-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--walnut-brown);
}

.cookie-consent-modal-close {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
}

.cookie-consent-modal-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.cookie-consent-option {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: var(--vintage-linen);
    border-radius: var(--radius-base);
    border: 1px solid var(--border-light);
}

.cookie-consent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--walnut-brown);
}

.cookie-consent-option-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 1.5rem;
}

.cookie-consent-modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .cookie-consent-container {
        flex-direction: row;
        align-items: center;
    }

    .cookie-consent-actions {
        flex-direction: row;
        width: auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 1.875rem);
    }

    h3 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }

    h4 {
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }

    h5 {
        font-size: 1rem;
    }

    .break-word-mobile,
    a[href^="mailto:"],
    a[href^="tel:"],
    .user-content-url {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.9375rem;
    }
}

/* ===== header_section ===== */
#header {
    overflow: hidden;
    background-color: var(--warm-white);
    border-bottom: 1px solid var(--border-light);
    z-index: 1020;
}

.brand-logo-img {
    max-width: 48px;
    width: 48px;
    height: auto;
    object-fit: contain;
}

.brand-site-title {
    font-family: serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--walnut-brown);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-anchor-link {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    text-decoration: none;
}

.nav-anchor-link:hover,
.nav-anchor-link:focus {
    color: var(--walnut-brown);
    text-decoration: none;
}

.cta-inquire-btn {
    background-color: var(--walnut-brown);
    border-color: var(--walnut-brown);
    color: var(--warm-white);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    letter-spacing: 0.03em;
}

.cta-inquire-btn:hover,
.cta-inquire-btn:focus {
    background-color: var(--country-sage);
    border-color: var(--country-sage);
    color: var(--warm-white);
}

.custom-hamburger {
    background-color: transparent;
}

.hamburger-icon {
    font-size: 2rem;
    color: var(--walnut-brown);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--warm-white);
    z-index: 1050;
    display: none;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    display: flex;
}

.mobile-menu-top {
    border-bottom: 1px solid var(--border-light);
}

.mobile-brand-title {
    font-family: serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--walnut-brown);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.close-icon {
    font-size: 2rem;
    color: var(--walnut-brown);
}

.mobile-nav-link {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--country-sage);
    text-decoration: none;
}

.mobile-cta-btn {
    background-color: var(--walnut-brown);
    border-color: var(--walnut-brown);
    color: var(--warm-white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
}

.mobile-cta-btn:hover,
.mobile-cta-btn:focus {
    background-color: var(--country-sage);
    border-color: var(--country-sage);
    color: var(--warm-white);
}

.mobile-footer-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 767.98px) {
    .brand-site-title {
        font-size: 0.75rem;
        hyphens: auto;
        line-height: 1.2;
    }

    .brand-logo-img {
        max-width: 40px;
        width: 40px;
    }
}

/* ===== hero_section ===== */
.hero-section {
    overflow: hidden;
    background-color: var(--vintage-linen);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.text-walnut {
    color: var(--walnut-brown) !important;
}

.text-secondary-custom {
    color: var(--text-secondary) !important;
    line-height: 1.65;
}

.text-warm {
    color: var(--warm-white) !important;
}

.badge-farmhouse {
    background-color: rgba(220, 198, 165, 0.45);
    border: 1px solid var(--border-light);
}

.badge-farmhouse .badge-text {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--walnut-brown);
}

.hero-title {
    color: var(--walnut-brown);
    line-height: 1.2;
    font-size: 2.75rem;
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.125rem !important;
        line-height: 1.25 !important;
        hyphens: auto;
    }

    .hero-description {
        font-size: 0.875rem;
    }
}

.btn-farmhouse-primary {
    background-color: var(--walnut-brown);
    border: 2px solid var(--walnut-brown);
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-farmhouse-primary:hover {
    background-color: #523b2e;
    border-color: #523b2e;
    color: var(--warm-white) !important;
}

.btn-farmhouse-secondary {
    background-color: transparent;
    border: 2px solid var(--walnut-brown);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-farmhouse-secondary:hover {
    background-color: var(--walnut-brown);
    color: var(--warm-white) !important;
}

.bg-warm {
    background-color: var(--warm-white);
}

.image-frame-border {
    border: 1px solid var(--border-light);
}

.hero-main-img {
    height: 420px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .hero-main-img {
        height: 260px;
    }
}

.floating-craft-tag {
    bottom: 20px;
    left: -10px;
    background-color: var(--warm-white);
    border: 1px solid var(--border-light);
}

.farmhouse-separator-band {
    width: 100%;
    background-color: var(--warm-white);
    background-image: repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(220, 198, 165, 0.25) 12px, rgba(220, 198, 165, 0.25) 24px), repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(220, 198, 165, 0.25) 12px, rgba(220, 198, 165, 0.25) 24px);
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.badge-item {
    background-color: var(--warm-white);
    border: 1px solid var(--border-light);
}

/* ===== catalog_section ===== */
.catalog-section {
    width: 100%;
    word-break: break-word;
    hyphens: auto;
}

.catalog-section .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 8px;
}

.catalog-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(100, 75, 60, 0.08) !important;
}

.catalog-section .js-inquire-btn {
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.catalog-section .js-inquire-btn:hover {
    background-color: var(--country-sage) !important;
    color: var(--warm-white) !important;
}

@media (max-width: 767.98px) {
    .catalog-section h2 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    .catalog-section h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }

    .catalog-section .card-body {
        padding: 1rem !important;
    }
}

/* ===== configurator_section ===== */
#configurator {
    overflow: hidden
}

#configurator .btn-group .btn {
    transition: all .2s ease-in-out;
    font-size: .85rem;
    padding: .375rem .65rem
}

#configurator .js-config-btn.active {
    background-color: var(--walnut-brown) !important;
    color: var(--warm-white) !important;
    border-color: var(--walnut-brown) !important
}

#configurator .js-config-btn:not(.active) {
    background-color: var(--warm-white) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-light) !important
}

#configurator .js-timber-btn {
    transition: all .2s ease
}

#configurator .js-inquire-btn:hover {
    filter: brightness(1.1);
    color: var(--warm-white) !important
}

#configurator .config-item {
    transition: background-color .2s ease
}

@media(max-width:767.98px) {
    #configurator h2 {
        font-size: 1rem !important;
        line-height: 1.2;
        hyphens: auto
    }

    #configurator h3 {
        font-size: .875rem !important;
        line-height: 1.2;
        hyphens: auto
    }

    #configurator .display-5 {
        font-size: 1.125rem !important
    }
}

/* ===== materials_section ===== */
#materials {
    overflow: hidden;
}

#materials .js-material-tab {
    transition: background-color 0.25s ease, color 0.25s ease;
}

#materials .js-material-tab.active {
    background-color: var(--walnut-brown) !important;
    color: var(--warm-white) !important;
}

#materials .js-material-tab:hover:not(.active) {
    background-color: rgba(220, 198, 165, 0.35) !important;
    color: var(--walnut-brown) !important;
}

@media(max-width:767.98px) {
    #materials h2 {
        font-size: 1rem;
        line-height: 1.2;
        hyphens: auto;
    }

    #materials h3 {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    #materials p {
        font-size: 0.9rem;
    }
}

/* ===== fit_finder_section ===== */
#fit-finder {
    background-color: var(--vintage-linen);
    color: var(--text-primary);
    font-family: inherit;
    position: relative;
    width: 100%;
}

#fit-finder h2,
#fit-finder h3,
#fit-finder h4 {
    letter-spacing: -0.01em;
}

#fit-finder .js-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

#fit-finder .js-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 75, 60, 0.08) !important;
}

#fit-finder .floor-plan-viewport svg {
    max-height: 320px;
    transition: all 0.3s ease;
}

#fit-finder input[type=number]::-webkit-inner-spin-button,
#fit-finder input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}

@media (max-width: 767.98px) {
    #fit-finder h1 {
        font-size: 1.125rem !important;
        line-height: 1.25;
        hyphens: auto;
    }

    #fit-finder h2 {
        font-size: 1rem !important;
        line-height: 1.25;
        hyphens: auto;
    }

    #fit-finder h3 {
        font-size: 0.875rem !important;
        line-height: 1.25;
        hyphens: auto;
    }
}

/* ===== inspiration_section ===== */
#inspiration {
    background-color: var(--vintage-linen);
    overflow: hidden;
    hyphens: auto;
}

#inspiration .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#inspiration .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(100, 75, 60, 0.08) !important;
}

#inspiration a.js-catalog-link:hover {
    color: var(--country-sage) !important;
    text-decoration: underline !important;
}

@media (max-width: 767.98px) {
    #inspiration h2 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    #inspiration h3 {
        font-size: 0.875rem !important;
        line-height: 1.25;
    }
}

/* ===== service_care_section ===== */
#service-care {
    background-color: var(--vintage-linen);
    color: var(--text-primary);
    overflow: hidden;
}

#service-care .care-badge {
    color: var(--faded-denim);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
}

#service-care .care-main-title {
    color: var(--walnut-brown);
    font-size: 2.125rem;
    line-height: 1.25;
}

#service-care .care-lead-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

#service-care .care-section-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--faded-denim);
    line-height: 1;
    padding: 0.4rem 0.8rem;
    background-color: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

#service-care .care-section-title {
    color: var(--walnut-brown);
    font-size: 1.35rem;
    line-height: 1.3;
}

#service-care .care-section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

#service-care .care-card {
    background-color: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#service-care .care-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(100, 75, 60, 0.08);
}

#service-care .care-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: var(--vintage-linen);
    color: var(--country-sage);
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-care .care-card-title {
    color: var(--walnut-brown);
    font-size: 1.05rem;
    line-height: 1.35;
}

#service-care .care-card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

#service-care .care-faq-item {
    background-color: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

#service-care .care-faq-btn {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#service-care .care-faq-btn:hover {
    background-color: rgba(220, 198, 165, 0.15);
}

#service-care .care-faq-question {
    color: var(--walnut-brown);
    font-size: 1rem;
    line-height: 1.4;
    padding-right: 1rem;
}

#service-care .care-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--vintage-linen);
    color: var(--faded-denim);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#service-care .care-faq-btn[aria-expanded="true"] .care-faq-icon {
    transform: rotate(180deg);
    background-color: var(--faded-denim);
    color: var(--warm-white);
}

#service-care .care-faq-collapse {
    display: none;
}

#service-care .care-faq-collapse.active {
    display: block;
}

#service-care .care-faq-answer p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    #service-care .care-main-title {
        font-size: 1rem;
        line-height: 1.2;
        hyphens: auto;
    }

    #service-care .care-section-title {
        font-size: 0.875rem;
        line-height: 1.25;
        hyphens: auto;
    }

    #service-care .care-card-title {
        font-size: 0.875rem;
        line-height: 1.25;
        hyphens: auto;
    }

    #service-care .care-faq-question {
        font-size: 0.875rem;
        line-height: 1.25;
        hyphens: auto;
    }

    #service-care .care-lead-text,
    #service-care .care-section-subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    #service-care .care-card-text,
    #service-care .care-faq-answer p {
        font-size: 0.8125rem;
        line-height: 1.45;
    }

    #service-care .care-section-number {
        font-size: 1.25rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===== about_contact_section ===== */
#about-contact {
    overflow: hidden;
}

#about-contact input.form-control:focus,
#about-contact textarea.form-control:focus {
    border-color: var(--faded-denim);
    box-shadow: 0 0 0 0.25rem rgba(96, 124, 150, 0.2);
}

#about-contact .js-submit-btn:hover {
    background-color: #513b2e !important;
    color: #ffffff !important;
}

#about-contact input::placeholder,
#about-contact textarea::placeholder {
    color: #9c8e84;
}

@media (max-width: 767.98px) {
    #about-contact h2 {
        font-size: 1rem !important;
        line-height: 1.25;
        hyphens: auto;
    }

    #about-contact h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
        hyphens: auto;
    }
}

/* ===== footer_section ===== */
#footer {
    overflow: hidden;
    background-color: var(--walnut-brown);
    color: var(--warm-white);
}

#footer .footer-logo {
    max-width: 56px;
    height: auto;
    object-fit: contain;
}

#footer a.footer-nav-link,
#footer a.footer-policy-link {
    color: var(--warm-white);
    transition: color 0.2s ease-in-out;
}

#footer a.footer-nav-link:hover,
#footer a.footer-policy-link:hover {
    color: var(--wheat-beige);
}

#footer a.text-light {
    color: var(--warm-white);
    transition: color 0.2s ease-in-out;
}

#footer a.text-light:hover {
    color: var(--wheat-beige);
}

@media (max-width: 767.98px) {
    #footer h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
        hyphens: auto;
    }

    #footer .footer-logo {
        max-width: 48px;
    }
}