
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* General Styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #253344;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    color: #183153;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: #1767a8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Accessibility */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background-color: white;
    padding: 10px;
    z-index: 10;
}

.skip-link:focus {
    left: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #e3a132;
    outline-offset: 3px;
}

/* Header and Navigation */

.site-header {
    background-color: #183153;
    padding: 20px 0;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: #ffd17c;
    text-decoration: underline;
}

/* Page Heading */

.page-intro {
    background-color: #e5edf6;
    padding: 50px 0;
    text-align: center;
}

.page-intro h1 {
    margin-top: 0;
}

.page-intro p {
    max-width: 700px;
    margin: 0 auto;
}

/* Home Page */

.hero {
    min-height: 400px;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../images/moscow.webp");
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    color: white;
    font-size: 2.3rem;
}

.hero p {
    color: white;
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    background-color: #1767a8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

.button:hover {
    background-color: #124e80;
}

/* Food Cards */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.card h3 {
    margin-top: 15px;
}

/* Destination Cards */

.destination-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.destination-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.destination-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
}

/* Images */

figure {
    margin: 20px 0;
}

figure img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

figcaption {
    margin-top: 10px;
    color: #555;
    font-size: 0.9rem;
}

/* Table */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-top: 20px;
}

caption {
    padding: 10px;
    font-weight: 600;
}

th, td {
    border: 1px solid #d2dce6;
    padding: 12px;
    text-align: left;
}

thead {
    background-color: #183153;
    color: white;
}

tbody tr:nth-child(even) {
    background-color: #edf3f9;
}

/* Traditions */

blockquote {
    margin: 25px 0;
    padding: 20px;
    background-color: #e5edf6;
    border-left: 5px solid #1767a8;
}

blockquote p {
    margin-top: 0;
}

blockquote footer {
    font-size: 0.9rem;
}

/* Video */

video {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    background-color: #000;
}

/* Contact Form */

.contact-form {
    max-width: 650px;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font: inherit;
}

.contact-form button {
    background-color: #1767a8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font: inherit;
}

/* Footer */

.site-footer {
    background-color: #183153;
    color: white;
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer a {
    color: white;
}

/* Tablet */

@media (min-width: 700px) {

    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }

}

/* Desktop */

@media (min-width: 1100px) {

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .destination-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

}

/* Final Website Improvements */

html {
    scroll-behavior: smooth;
}

body {
    overflow-wrap: break-word;
}

.container,
.header-container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Images */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.card,
.destination-card {
    min-width: 0;
}

/* Video */

video {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
}

/* Keyboard Accessibility */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #e3a132;
    outline-offset: 3px;
}

/* Credits */

.credits-list {
    padding-left: 25px;
}

.credits-list li {
    margin-bottom: 15px;
}

/* Mobile Improvements */

@media (max-width: 699px) {

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card-grid,
    .destination-grid {
        grid-template-columns: 1fr;
    }

    .page-intro {
        padding: 35px 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}
