:root {
    --cinema-black: #151518;
    --graphite-gray: #29292F;
    --cinema-red: #E43B48;
    --electric-amber: #F5B84B;
    --cool-silver: #E8E9EC;
    --soft-white: #F8F7F5;
    --muted-gray: #9BA1A6;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

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

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--cinema-black);
    color: var(--soft-white);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw + 0.25rem, 2rem);
}

h4 {
    font-size: clamp(1.15rem, 1.2vw + 0.2rem, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

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

p:last-child {
    margin-bottom: 0;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
}

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

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

:focus-visible {
    outline: 2px solid var(--cinema-red);
    outline-offset: 2px;
}

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

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

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

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

/* ===== header ===== */
header#header {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

.js-mobile-menu.open {
    display: flex !important;
}

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

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

#hero h1,
#hero h2,
#hero h3 {
    hyphens: auto;
}

/* ===== catalog ===== */
#catalog input::placeholder,
#catalog textarea::placeholder {
    color: #9BA1A6;
}

#catalog select {
    color-scheme: dark;
}

#catalog {
    hyphens: auto;
}

/* ===== room_builder ===== */
#builder input.bg-\[\#151518\]::placeholder {
    color: #9BA1A6;
}

/* ===== room_inspirations ===== */
#inspirations {
    overflow: hidden;
}

#inspirations h2,
#inspirations h3 {
    hyphens: auto;
    line-height: 1.25;
}

/* ===== ergonomics_guide ===== */
#ergonomics {
    overflow: hidden;
    hyphens: auto;
}

/* ===== before_after ===== */
#transformation {
    background-color: #151518;
    color: #F8F7F5;
    overflow: hidden;
}

#transformation .js-view-layer {
    transition: opacity 0.4s ease-in-out;
}

#transformation .js-view-btn {
    outline: none;
}

/* ===== services_faq ===== */
#faq {
    overflow: hidden;
}

#faq h1,
#faq h2,
#faq h3 {
    hyphens: auto;
}

#faq .js-faq-trigger[aria-expanded="true"] .js-faq-icon {
    transform: rotate(180deg);
    background-color: #E43B48;
    color: #F8F7F5;
}

#faq .js-faq-trigger[aria-expanded="true"] {
    color: #F5B84B;
}

/* ===== contact_inquiry ===== */
#contact {
    overflow: hidden;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #9BA1A6;
    opacity: 1;
}

#contact select option {
    background-color: #151518;
    color: #F8F7F5;
}

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

#footer a {
    transition: color .2s ease-in-out;
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}