:root {
    --primary-bg: #FDFCF8;
    --secondary-bg: #F4F7F2;
    --accent-color: #556B2F;
    --text-color: #2C3E50;
    --muted-text: #7F8C8D;
    --border-radius: 8px;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: var(--border-radius);
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
}

@media (max-width: 768px) {

    h1,
    h2,
    h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        font-size: 90%;
    }

    .mobile-long-text {
        font-size: 0.85rem;
        word-break: break-all;
    }
}

::selection {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

/* ===== header_main ===== */
#header {
    overflow: visible;
    background-color: var(--primary-bg);
}

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

a,
button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.js-mobile-link {
    line-height: 1.2;
    hyphens: auto;
}

/* ===== hero_section ===== */
#home {
    position: relative;
    background-repeat: no-repeat;
}

.hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
    }
}

/* ===== popularity_block ===== */
.js-popularity-section {
    hyphens: auto;
    word-break: break-word;
}

.js-popularity-section p {
    color: var(--text-color);
}

.js-popularity-section h2 {
    color: var(--text-color);
}

/* ===== france_block ===== */
.section-france {
    width: 100%;
    position: relative;
    color: var(--text-color);
}

.section-france p {
    margin-bottom: 1rem;
}

.section-france .container {
    max-width: 1200px;
}

/* ===== italy_block ===== */
#italy {
    hyphens: auto;
}

#italy .bx {
    color: var(--accent-color);
}

#italy img {
    transition: transform 0.5s ease;
}

#italy img:hover {
    transform: scale(1.02);
}

/* ===== germany_block ===== */
.container {
    width: 100%
}

.bx {
    display: inline-block;
    vertical-align: middle
}

#germany {
    hyphens: auto
}

#germany h2,
#germany h3 {
    color: var(--text-color)
}

#germany p {
    color: var(--text-color)
}

#germany .text-muted-custom {
    color: var(--muted-text)
}

/* ===== spain_block ===== */
.section-spain {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    overflow: hidden;
    hyphens: auto
}

.spain-heading {
    color: var(--text-color);
    margin-bottom: 1.5rem
}

.spain-text {
    color: var(--text-color);
    opacity: 0.9
}

.spain-badge {
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: var(--border-radius)
}

.spain-accent {
    color: var(--accent-color)
}

.spain-shadow {
    box-shadow: var(--shadow-light)
}

.spain-content-wrapper {
    padding-right: 0.5rem
}

@media(min-width:768px) {
    .spain-content-wrapper {
        padding-right: 2rem
    }
}

.image-container img {
    transition: transform 0.5s ease
}

.image-container:hover img {
    transform: scale(1.03)
}

/* ===== netherlands_block ===== */
#netherlands {
    overflow: hidden;
}

#netherlands p {
    hyphens: auto;
    -webkit-hyphens: auto;
}

#netherlands h2 {
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ===== alps_block ===== */
#alps {
    background-color: var(--primary-bg);
}

.js-alps-animate {
    opacity: 1;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.js-alps-animate:not(.js-visible) {
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 767px) {
    #alps h2 {
        line-height: 1.1;
    }

    #alps p {
        line-height: 1.3;
    }
}

/* ===== east_europe_block ===== */
#budget_travel {
    overflow: hidden;
}

#budget_travel h2,
#budget_travel h3,
#budget_travel p {
    color: var(--text-color);
}

#budget_travel .gastrogrit-card {
    transition: transform 0.3s ease;
}

#budget_travel .gastrogrit-card:hover {
    transform: translateY(-5px);
}

/* ===== practical_guide ===== */
.js-guide-item {
    hyphens: auto;
    line-height: 1.3;
}

#guide {
    position: relative;
    z-index: 1;
}

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

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

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

#about .bx {
    color: var(--accent-color);
}

.hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ===== faq_block ===== */
#faq .is-open {
    border-color: var(--accent-color);
}

#faq .is-open .bx-chevron-down {
    transform: rotate(180deg);
}

#faq .is-open .faq-content {
    max-height: 500px;
}

#faq .js-faq-trigger:focus {
    background-color: rgba(85, 107, 47, 0.05);
}

/* ===== feedback_form ===== */
#feedback input::placeholder,
#feedback textarea::placeholder {
    color: #A0AEC0
}

#feedback .js-form input:focus,
#feedback .js-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(85, 107, 47, 0.1)
}

#feedback label {
    hyphens: auto
}

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

#footer a {
    text-decoration-thickness: 1px;
}

.hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}