:root {
    --primary-bg: #F5F1EB;
    --secondary-bg: #EAE4DC;
    --card-bg: #FAF7F2;
    --text-main: #2B2B2B;
    --accent: #C1121F;
    --main-font: 'Montserrat', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --border-radius: 4px;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 3.75rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

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

ul,
ol {
    list-style: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .mobile-text-sm {
        font-size: 0.875rem;
    }

    .break-long-words {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
}

.text-small {
    font-size: 0.875rem;
}

.accent-text {
    color: var(--accent);
}

.bg-secondary {
    background-color: var(--secondary-bg);
}

.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ===== header_section ===== */
header {
    font-family: var(--main-font);
}

.js-mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* ===== hero_section ===== */
#hero {
    width: 100%;
    position: relative;
}

#hero h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== about_project ===== */
#about {
    background-color: var(--secondary-bg);
    overflow: hidden;
}

.js-about-content {
    transition: all 1s ease-out;
}

/* ===== museum_catalog ===== */
#catalog {
    scroll-margin-top: 2rem;
}

.addToCartBtn:active {
    transform: scale(0.95);
}

/* ===== experience_block ===== */
#atmosphere {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#atmosphere h2 {
    color: var(--text-main);
}

#atmosphere p {
    color: var(--text-main);
}

#atmosphere .fa-share-alt,
#atmosphere .fa-vr-cardboard,
#atmosphere .fa-history,
#atmosphere .fa-globe-americas,
#atmosphere .fa-fingerprint {
    color: var(--accent);
}

#js-share-btn {
    border: none;
    cursor: pointer;
    color: #FFFFFF;
}

/* ===== museum_perks ===== */
#benefits {
    width: 100%;
}

/* ===== highlight_museum ===== */
.font-serif {
    font-family: var(--heading-font);
}

.font-sans {
    font-family: var(--main-font);
}

/* ===== booking_perks ===== */
#advantages {
    width: 100%;
    font-family: var(--main-font);
}

#advantages h2 {
    font-family: var(--heading-font);
}

.perk-card {
    transition: transform 0.3s ease-in-out;
}

.perk-card:hover {
    transform: translateY(-8px);
}

/* ===== visitor_feedback ===== */
#reviews {
    width: 100%
}

.js-review-card {
    transition: border-color 0.3s ease
}

/* ===== faq_accordion ===== */
#faq .font-heading {
    font-family: var(--heading-font);
}

#faq .font-main {
    font-family: var(--main-font);
}

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

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

#footer h3 {
    font-family: var(--heading-font);
    color: var(--accent)
}

#footer a {
    transition: color .3s ease
}

#footer i {
    color: var(--accent)
}

/* ===== shopping_cart ===== */
.js-cart-items::-webkit-scrollbar {
    width: 4px;
}

.js-cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.js-cart-items::-webkit-scrollbar-thumb {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
}

.js-cart-items {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-bg) transparent;
}

input::placeholder {
    color: var(--text-main);
    opacity: 0.3;
}