:root {
  --bg: #f4f9fb;
  --white: #ffffff;
  --text: #2d3b45;
  --muted: #566270;
  --primary: #d49a2c;
  --primary-dark: #b07e1e;
  --secondary: #5e8e7f;
  --shadow: 0 15px 35px rgba(24, 30, 43, 0.15);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fefaf0 0%, #eef5f8 100%);
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

.site-header {
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.3)), url('Garden/2022.webp') center/cover no-repeat;
  color: #252525;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.logo {
  border-radius: 50%;
  object-fit: contain;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border: none;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.main-nav a,
.socials a {
  margin-left: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.socials a {
  display: inline-block;
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hero {
  padding: 120px 0 80px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.4);
}

.hero-logo {
  width: clamp(100px, 12vw, 130px);
  height: clamp(100px, 12vw, 130px);
  margin: 0  auto 16px;
  display: block;
  border: none;
  box-shadow: none;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-text h1 span { color: var(--primary); }

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--muted);
}

.hero-buttons .btn {
  margin: 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 40px;
  padding: 0.72rem 1.3rem;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all .2s ease;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-tertiary { background: rgba(255,255,255,0.88); color: var(--text); border-color: rgba(0,0,0,0.08); }

.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary:hover { filter: brightness(0.95); }
.btn-tertiary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.main h2,
.main h3 { margin: 0 0 0.9rem; }

.mission {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
  padding: 80px 2rem 50px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 40px auto;
}
.mission-content {
  flex: 1;
}
.mission h2 {
  font-size: 1.4rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.mission h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #2e3a42;
}
.mission p {
  max-width: 720px;
  margin: 0 auto 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.mission-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.directions {
  margin-bottom: 70px;
  padding: 20px;
  text-align: center;
}
.directions h2 {
  font-size: 2rem;
}
.directions p {
  max-width: 680px;
  margin: 8px auto 24px;
  color: var(--muted);
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card img { width: 100%; height: auto; object-fit: cover; }
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 1rem 0;
  gap: 8px;
}
.card-date {
  font-weight: 600;
  color: var(--primary);
}
.card-location {
  color: var(--muted);
}
.card h4 { margin: 12px 0 8px; }
.card p { margin: 0 1rem 16px; color: var(--muted); flex-grow: 1; }
.card .btn { margin: 0 1rem 12px; }

.site-footer {
  background: linear-gradient(180deg, #232f39 0%, #1a242c 100%);
  color: #d8e2e8;
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.footer-brand h3,
.footer-links h3,
.footer-social h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #fff;
}

.footer-brand p,
.footer-links ul,
.footer-social .social-icons {
  margin: 0;
  color: #c8d6df;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #d8e2e8;
  text-decoration: none;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #f1c232;
}

.footer-social .social-icons {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  text-decoration: none;
  padding: 4px;
}

.footer-social .social-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
  color: #9bb2c0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-brand div,
  .footer-links,
  .footer-social {
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .main-nav { display: flex; flex-wrap: wrap; justify-content: center; }
  .socials { display: none; }

  .mission {
    flex-direction: column;
    text-align: center;
  }

  .mission-content {
    flex: unset;
    text-align: center;
  }

  .mission-image {
    width: 100%;
    max-width: 600px;
  }

  .contact-intro {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}

.contact-page {
  padding: 80px 0;
}

.contact-intro {
  align-items: center;

  margin-bottom: 40px;
}

.contact-intro h1,
.contact-intro p {
  margin: 0;
  text-align: center;
}

.contact-intro > div {
  text-align: center;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 12px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #dcdfe7;
  border-radius: 8px;
  font-family: inherit;
}

.contact-btn {
  width: 100%;
  margin-top: 12px;
  align-self: stretch;
}

/* Dynamic Active Nav Link styling */
.main-nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* --- Dynamic Lists (Events & Workshops) --- */
.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 30, 43, 0.2);
}

.list-item-info h4 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.1rem;
}

.list-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.list-item .badge {
    background: var(--secondary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.list-item .badge:hover {
    filter: brightness(0.9);
}

@media (max-width: 500px) {
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .list-item .badge {
        align-self: flex-start;
    }
}

/* --- FOOTER SOCIAL ICONS --- */
.social-icon { width: 32px; height: 32px; transition: transform 0.2s; }
.social-icon:hover { transform: scale(1.1); }
.social-icons { display: flex; gap: 15px; }

/* --- MOBILE NAVIGATION --- */
.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 15px;
        text-align: center;
    }
    
    /* Toggled via JavaScript */
    .main-nav.open { display: flex; } 
}

/* --- NEW DEPARTMENT LAYOUT (ZIG-ZAG) --- */
.dept-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}
.dept-row.reverse { flex-direction: row-reverse; }

.dept-img {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.dept-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.dept-img:hover img { transform: scale(1.05); }

.dept-text { flex: 1; }
.dept-text h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.dept-text p { font-size: 1.1rem; color: var(--text); margin-bottom: 25px; line-height: 1.8; }

@media (max-width: 768px) {
    .dept-row, .dept-row.reverse { flex-direction: column; text-align: center; gap: 30px; margin-bottom: 60px;}
    .dept-img img { height: 250px; }
}

/* --- MOBILE FOOTER COMPACT FIX --- */
@media (max-width: 768px) {
    /* 1. Reduce overall padding */
    .site-footer {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 25px; /* Tighter spacing between sections */
        text-align: center; /* Centers everything neatly */
    }

    /* 2. Make the logo a bit smaller and centered */
    .footer-brand .logo {
        margin: 0 auto 15px auto;
        max-width: 100px;
    }

    /* 3. Turn the vertical links list into a compact horizontal row */
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }

    /* 4. Center the social icons */
    .footer-social .social-icons {
        justify-content: center;
        margin-top: 5px;
    }

    /* 5. Tighten the copyright bar */
    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
    }
}