/* STyles */
:root {
    --primary-brown: #A17064;
    --primary-light: #C9A882;
    --primary-dark: #8B6F47;
    --terracotta:rgb(214, 173, 145);
    --terracotta-light: #D89B84;
    --rust: #D4896B;
    --beige: #E8D5C4;
    --beige-light: #F5EBE0;
    --cream: #FAF6F1;
    --warm-gray: #9B8B7E;
    --dark: #4A3F35;
    --shadow: rgba(75, 63, 53, 0.1);
    --padding: 3em;
    --padding-phone: 1.8em;
    --padding-small: 2em;
    --padding-small-phone: 1.5em;
    --margin: 5em;
    --margin-phone: 2.5em;
    --margin-small: 1.8em;
    --margin-small-phone: 1.5em;
}

html {
    scroll-behavior: smooth;
}

html {
    font-size: 18px; /* Basis: 1rem = 16px */
    line-height: 22px;
}

body {
    font-size: 1em; /* 16px */
    line-height: 1.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--cream) 100%);
    color: var(--dark);
    overflow-x: hidden;
    scroll-margin-top: 20px;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6em;
    margin-bottom: 1em;
    color: #331818;
    text-align: center;
}

h1, h2 {
    line-height: 1.3em;
}

h2 {
    font-size: 2.1em;
}
   
h3 {
    font-size: 1.8em;
    line-height: 1.3em;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}


/* Cat Easter Egg */
.cat-trigger {
    width: 40px;
    height: 40px;
    background: var(--beige-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--margin-small);
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.cat-trigger:hover {
    transform: scale(1.1);
}

.cat-trigger svg {
    width: 45px;
    height: 45px;
}

.cat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cat-overlay.active {
    display: flex;
}

.cat-content {
    text-align: center;
    animation: bounceIn 0.5s ease;
    color: #fff;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cat-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 4em;
    color: white;
    margin-bottom: 1rem;
}

.spinning-cat {
    font-size: 150px;
    margin-bottom: 1rem;
    /* animation: spin 2s linear infinite; */
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.close-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-overlay:hover {
    transform: rotate(90deg);
}

  
/* Schedule Section */
.schedule-section {
    margin-bottom: var(--margin);
}

.schedule-card {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--primary-brown) 100%);
    border-radius: 30px;
    padding: var(--padding-small);
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
    color: white;
}

.schedule-icon {
    font-size: 3em;
    margin-bottom: .4em;
}

.schedule-card h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: .25em;
}

.schedule-card p {
    font-size: 1.3rem;
    line-height: 1.5;
}


/* Community Section */
.community-section {
    margin-bottom: var(--margin);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.community-card {
    background: white;
    border-radius: 20px;
    padding: 2.5em;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow);
}

.community-icon {
    font-size: 2.5em;
    margin-bottom: .25em;
}

.community-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.community-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

@media (max-width: 768px) {

    html {
        font-size: 14px; /* Basis: 1rem = 16px */
        line-height: 20px;
    }

    h1 {
        font-size: 1.4em;
    }

    h1, h2 {
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.4em;
    }
    h3 {
        font-size: 1.4em;
        line-height: 1.3;
    }

    .container {
        padding: 2em 1em 0;
    }

    .social-links {
        justify-content: center;
    }
  
    .community-card {
        padding: 1.5em;
    }

    .community-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        padding: 2rem;
    }

    .schedule-card h3 {
        font-size: 1.5em;
    }

    .schedule-section {
        margin-bottom: var(--margin-phone);
    }

    .community-section {
        margin-bottom: var(--margin-phone);
    }
}