:root {
    --primary-background: #FFF8ED;
    --dark-surface: #174D51;
    --main-accent: #FFB58A;
    --cta-button: #E66B43;
    --cta-hover: #CE5630;
    --subtle-mint: #D4E9DF;
    --text-primary: #283332;
    --text-muted: #617371;
    --border-light: rgba(40, 51, 50, 0.12);
    --border-dark: rgba(255, 248, 237, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-background);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

:focus-visible {
    outline: 2px solid var(--cta-button);
    outline-offset: 2px;
}

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

    h2 {
        font-size: clamp(1.4rem, 5vw, 1.85rem);
        line-height: 1.25;
    }

    h3 {
        font-size: clamp(1.2rem, 4vw, 1.45rem);
    }

    h4 {
        font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    }

    h5 {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    a[href^="mailto:"],
    a[href^="tel:"],
    .long-string-break {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* ===== header_section ===== */
html {
    scroll-behavior: smooth;
}

#header {
    overflow: hidden;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
}

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

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== rooms_section ===== */
#rooms {
    background-color: var(--primary-background);
    color: var(--text-primary);
}

#rooms .js-room-filter {
    transition: all 0.25s ease-in-out;
}

#rooms .js-room-filter:active {
    transform: scale(0.98);
}

/* ===== catalog_section ===== */
#catalog {
    overflow: hidden;
}

#catalog .catalog-section {
    width: 100%;
}

#catalog .js-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#catalog .js-product-card:hover {
    transform: translateY(-3px);
}

#catalog .js-toggle-icon.is-open {
    transform: rotate(180deg);
}

/* ===== planner_section ===== */
#planner {
    overflow: hidden;
}

#planner .blueprint-grid {
    background-image: linear-gradient(rgba(255, 248, 237, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 248, 237, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

#planner input::-webkit-outer-spin-button,
#planner input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#planner input[type=number] {
    -moz-appearance: textfield;
}

/* ===== lookbook_section ===== */
#lookbook {
    overflow: hidden;
}

#lookbook * {
    hyphens: auto;
}

html {
    scroll-behavior: smooth;
}

/* ===== comparison_section ===== */
.comparison-section select {
    background-image: none;
}

.comparison-section select:focus {
    border-color: #E66B43;
}

/* ===== services_faq_section ===== */
#shipping-faq .js-faq-item.is-active {
    border-color: rgba(23, 77, 81, 0.4);
    box-shadow: 0 4px 12px rgba(23, 77, 81, 0.06);
}

#shipping-faq .js-faq-toggle {
    cursor: pointer;
    user-select: none;
}

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

#about-contact input::placeholder,
#about-contact textarea::placeholder {
    color: rgba(255, 248, 237, 0.5);
}

/* ===== footer_section ===== */
#footer {
    overflow: hidden;
}

#footer a {
    text-decoration: none;
}