:root {
    --color-rice-white: #F5F2EA;
    --color-charcoal-ink: #252927;
    --color-moss-olive: #68745A;
    --color-natural-wood: #D7C4A8;
    --color-stone-gray: #B4B1A9;
    --color-deep-brown: #302C27;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--color-rice-white);
    color: var(--color-deep-brown);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
}

h1,
h2 {
    font-family: var(--font-serif);
}

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

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

a {
    color: inherit;
    transition: color 0.25s ease, opacity 0.25s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.25s ease;
}

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

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

:focus-visible {
    outline: 2px solid var(--color-moss-olive);
    outline-offset: 2px;
}

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

    h2 {
        font-size: clamp(1.5rem, 4.2vw, 2rem);
    }

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

    h4,
    h5 {
        font-size: clamp(1rem, 2.8vw, 1.25rem);
    }

    a,
    p,
    span,
    li {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== header_section ===== */
#header {
    position: relative;
}

#mobile-navigation-overlay {
    -webkit-overflow-scrolling: touch;
}

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

#hero a,
#hero button {
    transition: all .2s ease-in-out;
}

/* ===== catalog_showcase ===== */
.catalog-section {
    hyphens: auto;
}

.catalog-section select {
    outline: none;
}

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

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

/* ===== storage_ideas_section ===== */
#storage-ideas {
    overflow: hidden;
}

.storage-ideas-root {
    hyphens: auto;
}

/* ===== storage_comparison_table ===== */
#comparison table th,
#comparison table td {
    vertical-align: middle;
}

#comparison select:focus {
    border-color: #252927;
    outline: none;
}

/* ===== natural_materials_gallery ===== */
#materials {
    width: 100%;
}

.js-material-tab[aria-selected="true"] {
    background-color: #252927 !important;
    color: #F5F2EA !important;
    border-color: #252927 !important;
}

.js-material-tab[aria-selected="false"] {
    background-color: #F5F2EA !important;
    color: #252927 !important;
    border-color: #D7C4A8 !important;
}

.js-material-tab:hover[aria-selected="false"] {
    background-color: #D7C4A8 !important;
    color: #252927 !important;
}

/* ===== space_balance_guides ===== */
#guides {
    hyphens: auto;
}

#guides .js-guide-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

/* ===== delivery_and_faq_section ===== */
#service-faq {
    overflow: hidden;
    hyphens: auto;
}

#service-faq .rotate-180 {
    transform: rotate(180deg);
}

/* ===== inquiry_form_section ===== */
#inquiry-section input::placeholder,
#inquiry-section textarea::placeholder {
    color: #B4B1A9;
    opacity: 0.8;
}

#inquiry-section select option {
    background-color: #252927;
    color: #F5F2EA;
}

/* ===== footer_section ===== */
#footer {
    background-color: var(--color-charcoal-ink);
    color: var(--color-stone-gray);
    hyphens: auto;
}

#footer a {
    color: inherit;
    text-decoration: none;
}

#footer a:hover {
    color: var(--color-rice-white);
}