:root {
    --primary-dark: #2B1810;
    --dark-chocolate: #3E2723;
    --coffee-brown: #5D4037;
    --terracotta: #B35434;
    --warm-caramel: #C68B59;
    --golden-accent: #D4AF37;
    --soft-olive: #6E7A5A;
    --creamy-beige: #F7F2E9;
    --milk-light: #FAF7F2;
    --pure-warm-white: #FFFCF7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--milk-light);
    color: var(--primary-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

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

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

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

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

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

:focus-visible {
    outline: 2px solid var(--warm-caramel);
    outline-offset: 2px;
}

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

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

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

    h4,
    h5,
    h6 {
        font-size: clamp(1.1rem, 3.5vw, 1.25rem);
        word-break: break-word;
    }

    a[href^="mailto:"],
    a[href^="http"],
    .break-words-mobile {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

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

#hero h1,
#hero p,
#hero span {
    hyphens: auto;
}

/* ===== product_intro ===== */
#about-product {
    overflow: hidden;
}

/* ===== editorial_article ===== */
#journal-article {
    font-family: inherit;
}

#journal-article p {
    hyphens: auto;
}

/* ===== product_specs ===== */
#specifications {
    overflow: hidden;
    hyphens: auto;
}

#specifications * {
    box-sizing: border-box;
}

/* ===== ingredients_grid ===== */
#ingredients {
    hyphens: auto;
}

/* ===== brewing_steps ===== */
#brewing-guide {
    overflow: hidden;
    hyphens: auto;
}

.js-ritual-step {
    will-change: transform, border-color;
}

/* ===== lifestyle_balance ===== */
#lifestyle {
    background-color: var(--primary-dark, #2B1810);
    overflow: hidden;
    hyphens: auto
}

#lifestyle h2,
#lifestyle h3 {
    line-height: 1.2
}

/* ===== myths_facts ===== */
#myths-facts {
    word-break: break-word;
    hyphens: auto;
}

#myths-facts .js-fact-card {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ===== precautions_info ===== */
#precautions {
    overflow: hidden;
}

#precautions .grid>div {
    min-height: 100%;
}

/* ===== faq_section ===== */
#faq {
    hyphens: auto;
}

#faq .js-faq-item.is-open {
    border-color: rgba(179, 84, 52, 0.4);
    box-shadow: 0 4px 14px rgba(43, 24, 16, 0.06);
}

#faq .js-faq-item.is-open .js-faq-icon {
    transform: rotate(180deg);
    color: #B35434;
}

/* ===== cta_banner ===== */
#cta-banner {
    overflow: hidden;
}

#cta-banner .js-cta-link:hover i {
    color: #FFFCF7;
}

/* ===== contact_form ===== */
#contact input::placeholder,
#contact textarea::placeholder {
    color: #C68B59;
    opacity: 0.8;
}

#contact input:focus,
#contact textarea:focus {
    background-color: #FFFCF7;
}

/* ===== disclaimer_notice ===== */
#disclaimer-notice {
    overflow: hidden;
}

#disclaimer-notice p {
    hyphens: auto;
}

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

#footer a {
    text-decoration: none;
}
