:root {
    --main-background: #FDFCF8;
    --main-text: #2C3E50;
    --secondary-background: #F4F1EA;
    --secondary-text: #5D6D7E;
    --accent-color: #6B8E23;
    --accent-text: #FFFFFF;
    --button-bg: #6B8E23;
    --button-hover: #556B2F;
    --input-border: #D5D8DC;
    --error-color: #C0392B;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

body {
    background-color: var(--main-background);
    color: var(--main-text);
    font-family: 'Source Sans Pro', 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.2;
    margin-bottom: 1rem;
}

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

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

ul,
ol {
    list-style: none;
}

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

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

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

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

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

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

@media (min-width: 769px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

.transition-smooth {
    transition: all 0.3s ease-in-out;
}

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

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

.js-mobile-menu-overlay.is-active {
    transform: translateX(0);
}

.js-mobile-link {
    display: block;
    min-height: 44px;
    line-height: 44px;
}

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

.js-nav-tag {
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.025em;
    border: 1px solid transparent;
}

.js-nav-tag:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== intro_text ===== */
#routes {
    hyphens: auto;
}

.js-share-button {
    cursor: pointer;
    border: none;
    outline: none;
}

.js-share-button:active {
    transform: translateY(1px);
}

/* ===== italy_block ===== */
.hyphens-auto {
    hyphens: auto;
}

#italy i {
    font-size: 1.25rem;
}

@media (max-width: 767px) {
    #italy i {
        font-size: 1rem;
    }
}

/* ===== france_block ===== */
#france {
    background-color: var(--main-background);
    overflow: hidden;
}

#france h2,
#france h3,
#france p {
    hyphens: auto;
}

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

#france img {
    display: block;
    width: 100%;
    transition: transform 0.5s ease;
}

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

/* ===== germany_block ===== */
#germany {
    --accent-color: #6B8E23;
    --main-text: #2C3E50;
    --secondary-text: #5D6D7E;
    --main-background: #FDFCF8;
    --secondary-background: #F4F1EA;
    --input-border: #D5D8DC;
}

.container {
    width: 100%;
}

/* ===== spain_block ===== */
#spain h2,
#spain h3 {
    line-height: 1.2
}

#spain p {
    color: var(--secondary-text)
}

#spain .object-fit-cover {
    object-fit: cover
}

/* ===== netherlands_block ===== */
.netherlands_block {
    hyphens: auto;
    -webkit-hyphens: auto;
}

.netherlands_block img {
    transition: transform 0.5s ease;
}

.netherlands_block img:hover {
    transform: scale(1.02);
}

/* ===== alps_block ===== */
.object-fit-cover {
    object-fit: cover;
}

#alps {
    hyphens: auto;
    -webkit-hyphens: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* ===== east_europe_block ===== */
#east_europe {
    background-color: var(--main-background);
}

#east_europe h2 {
    color: var(--main-text);
    hyphens: auto;
}

#east_europe p {
    color: var(--secondary-text);
    hyphens: auto;
}

#east_europe i {
    color: var(--accent-color);
}

#east_europe .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

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

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

/* ===== planning_guide ===== */
#planning {
    hyphens: auto;
}

#planning .container {
    max-width: 1200px;
}

#planning h2,
#planning h3 {
    color: var(--main-text);
}

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

#planning .rounded-full {
    background-color: var(--accent-color);
    color: var(--accent-text);
}

/* ===== travel_tips ===== */
#tips {
    overflow: hidden;
}

.tips-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tips-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tips-title {
    line-height: 1.2;
    hyphens: auto;
}

/* ===== about_project ===== */
#about {
    overflow: hidden;
}

#about .js-contact-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

#about .js-contact-card:hover {
    border-color: var(--accent-color);
}

#about .js-contact-link {
    transition: color 0.3s ease;
}

#about .js-contact-link:hover {
    color: var(--accent-color);
}

/* ===== faq_section ===== */
.js-faq-header.is-active {
    background-color: var(--main-background);
}

.js-faq-header.is-active .js-faq-icon {
    transform: rotate(45deg);
}

.js-faq-content {
    transition: max-height 0.3s ease-out;
}

/* ===== contact_form ===== */
.js-contact-form input::placeholder,
.js-contact-form textarea::placeholder {
    color: var(--secondary-text);
    opacity: 0.6;
}

.js-contact-form input:focus,
.js-contact-form textarea:focus {
    border-color: var(--accent-color);
}

.js-contact-form button:hover {
    background-color: var(--button-hover) !important;
}

/* ===== footer ===== */
.js-animate-success {
    animation: footerSuccessPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes footerSuccessPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

input::placeholder {
    color: #5D6D7E;
}
