@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Merienda:wght@300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

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

body {
    font-family: "Lato", sans-serif;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* ====================
   SHARED CONTAINER
==================== */

.container {
    width: 90%;
    max-width: 1230px;
    margin: 0 auto;
}

/* ====================
   HEADER
==================== */

#header {
    padding: 50px 0 40px;
}

.logo {
    display: block;
    width: fit-content;
    margin: 0 auto 32px;
    padding: 12px 26px;
    border: 1px solid #333;
    font-family: "Merienda", cursive;
    font-size: 20px;
}

/* ====================
   NAVIGATION
==================== */

.nav__link--list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav__link a {
    position: relative;
    color: #222;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Fancy animated underline */

.nav__link a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 2px;
    background-color: #d55a6d;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav__link a:hover {
    color: #d55a6d;
}

.nav__link a:hover::after {
    width: 100%;
}


/* ====================
   HERO IMAGE
==================== */

#welcome {
    padding-bottom: 60px;
}

.welcome__img {
    display: block;
    width: 100%;
    height: auto;
}

/* ====================
   ABOUT US
==================== */

#about-us {
    padding-bottom: 80px;
}

.section__title {
    color: #d55a6d;
    letter-spacing: 3px;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about__card {
    background: #faf0f1;
    padding: 50px;
    text-align: center;
}

.about__card--large {
    grid-column: span 2;
}

.about__card h3 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
}

.about__card p {
    line-height: 1.8;
}

.pool-hours {
    margin-top: 24px;
}

/* ====================
   FOOTER
==================== */

footer {
    border-top: 1px solid #eee;
    padding: 30px 0;
}

.footer__row {
    justify-content: center;
    text-align: center;
}

/* ====================
   EVENTS PAGE
==================== */

#events {
    padding: 80px 0;
}

.events__title {
    color: #d55a6d;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
}

.events__title--small {
    margin-top: 80px;
}

.events__intro {
    font-size: 18px;
    color: #555;
    margin-bottom: 48px;
}

.event {
    display: grid;
    grid-template-columns: 250px 1fr 220px;
    gap: 40px;
    align-items: start;
    padding: 20px 0 50px;
}

.event__date {
    color: #d55a6d;
    font-family: "Playfair", serif;
    font-size: 42px;
    line-height: 1.4;
}

.event__details h3 {
    font-size: 28px;
    font-weight: 400;
    margin-top: 12px;
    margin-bottom: 16px;
}

.event__details p {
    color: #666;
    font-size: 18px;
}

.event__time {
    text-align: right;
    margin-top: 12px;
}

.event__time h3 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
}

.event__time p {
    color: #666;
}

.event__divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0 60px;
}

.no-events {
    text-align: center;
    font-size: 42px;
    padding: 60px 0;
}

/* Mobile */

@media (max-width: 768px) {

    .event {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event__time {
        text-align: left;
    }

    .event__date {
        font-size: 32px;
    }

    .event__details h3,
    .event__time h3 {
        font-size: 28px;
    }
}

/* ====================
   SOCIAL MEDIA PAGE
==================== */

#social {
    padding: 80px 0;
}

.page__title {
    color: #d55a6d;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 48px;
}

.social__layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 48px;
    align-items: start;
}

.social__img {
    width: 100%;
    display: block;
}

.social__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.social__item h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
}

.social__item a {
    color: #d55a6d;
    font-size: 18px;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 12px;
}

.social__item a:hover {
    opacity: 0.8;
}

.social__item p {
    color: #555;
    line-height: 1.7;
    font-size: 18px;
}

/* Mobile */

@media (max-width: 768px) {

    .social__layout {
        grid-template-columns: 1fr;
    }

    .social__img {
        max-width: 500px;
        margin: 0 auto;
    }

    .page__title {
        font-size: 22px;
    }

    .social__item h2 {
        font-size: 20px;
    }
}

/* ====================
   FILES PAGE
==================== */

#files {
    padding: 80px 0;
}

.files__section {
    margin-bottom: 80px;
}

.file__list {
    width: 70%;
    margin: 0 auto;
}

.file__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #faf0f1;
    padding: 18px 24px;
    margin-bottom: 4px;
    color: #111;
    font-size: 18px;
}

.file__download {
    color: #d55a6d;
}

.newsletter__card {
    width: 70%;
    margin: 40px auto 0;
    border: 4px solid #faf0f1;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter__card h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter__card p {
    font-size: 24px;
    color: #1f5f46;
    font-weight: 700;
}

.newsletter__button {
    color: #d55a6d;
    font-size: 18px;
}

@media (max-width: 768px) {
    .file__list,
    .newsletter__card {
        width: 100%;
    }

    .file__item,
    .newsletter__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Newsletter */

.newsletter {
    text-align: center;
}

.newsletter h3 {
    margin-bottom: 12px;
}

.newsletter__button {
    display: inline-block;
    margin-bottom: 24px;
    color: #d55a6d;
    font-size: 20px;
}

.newsletter__img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
    border: 4px solid #faf0f1;
}

/* ====================
   POOL RULES PAGE
==================== */
#pool-rules {
    padding: 80px 0;
}

.pool__section {
    margin-bottom: 48px;
}

.pool__card {
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
}

.pool__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.pool__content {
    padding: 40px;
}

.pool__content h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.pool__content p {
    color: #666;
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 900px;
}

.pool__rules-list {
    padding-left: 24px;
    columns: 2;
    column-gap: 48px;
}

.pool__rules-list li {
    list-style-type: disc;
    color: #666;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 14px;
    break-inside: avoid;
}

.pool__notice {
    background: #faf0f1;
    border-left: 4px solid #d55a6d;
    padding: 20px 24px;
    margin-top: 28px;
}

.pool__notice h3 {
    color: #d55a6d;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pool__notice p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pool__img {
        height: auto;
    }

    .pool__content {
        padding: 28px;
    }

    .pool__rules-list {
        columns: 1;
    }
}

/* ====================
   CONTACT PAGE
==================== */

#contact {
    padding: 80px 0 120px;
}

.contact__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact__content h2 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 32px;
}

.contact__content p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact__content a {
    color: #d55a6d;
    text-decoration: underline;
}

.contact__company {
    margin-top: 48px;
}

.contact__company h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.contact__company p {
    margin-bottom: 8px;
}


/* ====================
   MOBILE
==================== */

@media (max-width: 768px) {

    .nav__link--list {
        gap: 20px;
    }

    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__card--large {
        grid-column: span 1;
    }

    .about__card {
        padding: 30px;
    }
}