@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond/CormorantGaramond-VariableFont_wght.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond/CormorantGaramond-Italic-VariableFont_wght.ttf') format('woff2');
  font-weight: normal;
  font-style: italic;
}

:root {
  /* --primary-color: #982025; */
  --primary-color: #222222;
  --secondary-color: #b38a50;
  --background-color: #fdfdfd;
  --background-secondary-color: #ffffff;
  --background-footer-color: #f4f4f4;
  --background-nav-color: rgba(255, 255, 255, 0.9);
  /* --text-hero-color: #ffffff; */
  --text-hero-color: #222222;
  /* --text-color: #982025; */
  --text-color: #222222;
  --text-hover-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', sans-serif;
    font-style: italic;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background-nav-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 1rem;
}

nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-hover-color);
}

/* Hamburger menu styles */
.menu-icon {
    display: none; /* Hidden by default */
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    color: var(--text-color);
}

#menu-toggle {
    display: none; /* Hide the checkbox */
}

/* Responsive navigation */
@media (max-width: 768px) {
    nav {
        display: flex;
        align-items: center;
        padding: 0 1rem;
    }

    .menu-icon {
        margin-left: auto;
    }

    nav .nav-links {
        /* Hide navigation links by default on small screens */
        /* display: none; */
        flex-direction: column;
        width: 100%;
        background-color: var(--background-nav-color);
        position: absolute;
        top: 100%;
        left: 0;
        padding-bottom: 1rem;
    }

    nav .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav .nav-links a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }

    nav .nav-links li:last-child a {
        border-bottom: none;
    }

    .menu-icon {
        display: block; /* Show hamburger icon on small screens */
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex; /* Show navigation links when checkbox is checked */
    }
}


h1, h2, h3 {
    /* font-style: normal; */
    font-weight: 400;
}

.hero {
    background-image: url('assets/img/sala-weselna.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-hero-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 5rem;
    margin: 0;
}

.hero-text p {
    font-size: 1.5rem;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    border-bottom: 1px solid #eee;
    box-sizing: border-box; /* Important for 100vh calculation */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

#our-story p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.location-link {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.location-link a {
    font-weight: normal !important;
}
.location-link a:hover {
    color: black !important;
    font-weight: bold !important;
    cursor: pointer;
}

.event-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* margin-bottom: 1.5rem; */
    margin-bottom: 4.5rem;
}

.event-details p {
    margin: 0;
    font-size: 1.1rem;
}

#ceremony a, #reception a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

.calendar-button {
    background-color: var(--primary-color);
    color: var(--background-secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.calendar-button:hover {
    background-color: var(--secondary-color);
}

.map-container {
    margin: 1.5rem auto;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden; /* To keep the border-radius on the iframe */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.location-image {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.location-image:hover {
    transform: scale(1.03);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1000px; /* Ograniczenie maksymalnej szerokości galerii */
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* Zapewnia kwadratowy kształt */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

footer {
    padding: 2rem;
    background-color: var(--background-footer-color);
}

/* Animation on scroll */
section.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-style: normal;
    background-color: var(--primary-color);
    color: var(--background-secondary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
