:root {
    --primary-background: #FDF5E6;
    --secondary-background: #3E2723;
    --accent-color: #D4AF37;
    --text-main: #1A1A1A;
    --text-on-dark: #F9FAFB;
    --text-muted: #6B7280;
    --text-muted-dark: #D1D5DB;
    --border-color: #D7CCC8;
    --font-headings: "Montserrat", sans-serif;
    --font-body: "Inter", sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

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

input,
textarea,
select {
    font-family: var(--font-body);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

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

/* ===== header_section ===== */
#header {
    background-color: var(--primary-background);
}

.js-mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

/* ===== hero_section ===== */
.hero-section-width {
    width: 100%
}

.js-parallax {
    transition: transform 0.1s ease-out
}

/* ===== about_eovi ===== */
#about {
    width: 100%;
    background-color: var(--primary-background);
}

/* ===== featured_article ===== */
#big-article {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

#big-article .prose p {
    margin-bottom: 1.5rem;
}

#big-article .prose h2 {
    color: var(--secondary-background);
}

#big-article img {
    transition: transform 0.5s ease;
}

#big-article img:hover {
    transform: scale(1.02);
}

/* ===== category_grid ===== */
.category-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color) !important;
}

.category-card i {
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.1);
}

/* ===== blog_posts ===== */
.js-content-body h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.js-content-body p {
    margin-bottom: 1rem;
}

.js-content-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.js-content-body li {
    margin-bottom: 0.5rem;
}

/* ===== faq_accordion ===== */
.js-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:last-child {
    border-bottom: none;
}

/* ===== feedback_form ===== */
#contact {
    width: 100%;
}

.js-feedback-form input::placeholder,
.js-feedback-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== footer_section ===== */
#footer {
    background-color: var(--secondary-background);
}

.js-footer-link {
    position: relative;
    width: fit-content;
}