/* ================================================= */
/* 1. DESIGN TOKENS */
/* ================================================= */

:root {
  /* core palette */

  --primary: #1f6f5f; /* deep church emerald */
  --secondary: #4aa3ff; /* calm sky blue */
  --accent: #f6b73c; /* saffron gold */
  --floral: #e6638f; /* rose highlight */

  /* spring tones */

  --spring-50: #f3faf7;
  --spring-100: #e8f6f1;

  /* backgrounds */

  --bg: #f4fbf7;
  --surface: #ffffff;

  /* text */

  --text: #1f2937;
  --muted: #6b7280;

  /* gradients */

  --grad-accent: linear-gradient(120deg, var(--accent), var(--floral));
  --grad-soft: linear-gradient(180deg, var(--spring-50), var(--spring-100));
  --grad-section: linear-gradient(180deg, #f4fbf7, #eaf7ff);

  /* ui */

  --radius: 14px;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.15);

  --max-width: 1200px;

  --font-body: "Source Sans 3", sans-serif;
  --font-heading: "Libre Baskerville", serif;

  --transition: 0.25s ease;
}

/* ================================================= */
/* 2. BASE */
/* ================================================= */

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.75rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}
/* ================================================= */
/* ACCESSIBILITY */
/* ================================================= */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* larger tap targets for seniors */

.nav a,
.mobile-nav a,
.btn,
.readmore-btn {
  padding: 0.6rem 0.8rem;
}

/* tooltips readability */

/* [title] {
  cursor: wait;
} */

/* ================================================= */
/* 3. LAYOUT */
/* ================================================= */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section {
  padding: 9rem 0;
}

.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ================================================= */
/* 4. TYPOGRAPHY */
/* ================================================= */

.logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 5rem;
  color: var(--primary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ================================================= */
/* 5. HEADER */
/* ================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.header-inner > h1 {
  font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
}

/* ================================================= */
/* NAV */
/* ================================================= */

.nav {
  display: flex;
  gap: 2.4rem;
}

.nav a {
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 3px;

  background: var(--grad-accent);

  transition: width var(--transition);
}

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

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

.hero {
  position: relative;

  min-height: 70vh;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: white;
}

/* background image layer */

.hero-bg {
  position: absolute;
  inset: 0;

  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* gradient overlay for readability */

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      rgba(15, 60, 52, 0.82),
      rgba(15, 60, 52, 0.55),
      rgba(0, 0, 0, 0.55)
    ),
    radial-gradient(circle at top, rgba(246, 183, 60, 0.18), transparent 70%);

  z-index: 1;
}

/* content container */

.hero-inner {
  position: relative;
  z-index: 2;

  max-width: 720px;

  padding: 3.5rem 3.2rem;

  border-radius: 18px;

  background: rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(10px);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* title */

.hero-title {
  font-family: var(--font-heading);

  font-size: 4.4rem;

  font-weight: 700;

  line-height: 1.25;

  letter-spacing: 0.04em;

  margin-bottom: 1.4rem;

  color: white;

  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

/* HERO DIVIDER */

.hero-divider {
  width: 90px;
  height: 4px;

  margin-bottom: 2rem;

  border-radius: 20px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--floral),
    transparent
  );
}

/* small decorative separator */

.hero-sep {
  color: var(--accent);

  font-size: 2rem;

  margin: 0 0.6rem;

  opacity: 0.9;
}

/* subtitle */

.hero-text {
  font-size: 1.8rem;

  line-height: 1.75;

  margin-bottom: 2.6rem;

  color: rgba(255, 255, 255, 0.95);

  max-width: 520px;
}

/* button */

.hero-btn {
  display: inline-block;

  padding: 1rem 2.6rem;

  font-size: 1.5rem;

  font-weight: 600;

  border-radius: 50px;

  background: linear-gradient(120deg, var(--accent), var(--floral));

  color: white;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* hover */

.hero-btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/* ================================================= */
/* COMPONENTS */
/* ================================================= */

.card {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);

  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--floral);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

/* ================================================= */
/* BUTTON */
/* ================================================= */

.btn {
  display: inline-block;

  padding: 1rem 2.2rem;

  border-radius: 30px;
  background: var(--grad-accent);

  color: #fff;
  font-weight: 600;

  transition: transform var(--transition);

  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
}

.readmore-btn {
  margin-top: 2rem;

  padding: 0.9rem 1.8rem;

  border-radius: 40px;

  background: var(--primary);

  color: white;

  border: none;

  font-size: 1.4rem;

  cursor: pointer;

  transition: 0.3s;
}

.readmore-btn:hover {
  transform: translateY(-2px);

  opacity: 0.9;
}

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

.image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ================================================= */
/* MAP */
/* ================================================= */

.map {
  width: 100%;
  height: 320px;

  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* ================================================= */
/* about SECTION */
/* ================================================= */

/* wrapper */

.history-wrapper {
  position: relative;

  max-height: 240px;

  overflow: hidden;

  transition: max-height 0.5s ease;
}

/* expanded */

.history-wrapper.expanded {
  max-height: 1200px;
}

/* fade gradient */

.fade-overlay {
  position: absolute;

  bottom: 0;

  left: 0;

  width: 100%;

  height: 120px;

  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg));

  pointer-events: none;

  transition: opacity 0.3s ease;
}

/* remove fade when open */

.history-wrapper.expanded .fade-overlay {
  opacity: 0;
}
.history-text {
  font-size: 1.6rem;
  line-height: 1.8;

  text-align: justify;
}

/* ================================================= */
/* SOFT SECTION */
/* ================================================= */

.section-soft {
  background: var(--grad-section);
}

/* ================================================= */
/* YOUTUBE SECTION */
/* ================================================= */
.youtube {
  background: var(--grad-soft);
}

/* subtitle */

.youtube-subtitle {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 4rem;
  font-size: 1.6rem;
  opacity: 0.8;
}

/* grid */

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* video card */

.video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* responsive iframe */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: black;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* title */

.video-title {
  padding: 1.4rem 1.6rem;
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--primary);
}

/* youtube button */

.youtube-button {
  margin-top: 4rem;
  text-align: center;
}
/* ================================================= */
/* LEADERSHIP */
/* ================================================= */

.section-leadership {
  padding-top: 8rem;
}

.leadership-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 3rem;
}

.lead-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--secondary);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    box-shadow var(--transition);

  will-change: transform;
}

.lead-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.lead-card summary {
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  list-style: none;
}

.lead-card summary::-webkit-details-marker {
  display: none;
}

.lead-card p {
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.note {
  text-align: center;
  margin-top: 3rem;
  font-style: italic;
  color: var(--muted);
}

/* ================================================= */
/* CONTACT LOCATION SECTION */
/* ================================================= */

.contact {
  background: linear-gradient(180deg, var(--spring-50), transparent);
}

.contact-subtitle {
  max-width: 650px;
  margin: 0 auto 4rem auto;

  text-align: center;

  font-size: 1.6rem;
  line-height: 1.7;

  opacity: 0.8;
}

/* full width map */

.full-map {
  width: 100%;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.full-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
}
/* ================================================= */
/* FOOTER */
/* ================================================= */

.footer {
  margin-top: 6rem;

  background: #0f172a;

  color: #e5e7eb;

  padding: 4rem 0 2rem;
}

/* grid */

.footer-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 3rem;
}

/* title */

.footer-title {
  font-size: 1.7rem;

  margin-bottom: 1.2rem;

  color: white;
}

/* address */

.footer-address {
  font-size: 1.45rem;

  line-height: 1.7;

  opacity: 0.85;
}

/* contact links */

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;

  color: #e5e7eb;

  font-size: 1.45rem;

  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.75;
}

/* icons */

.footer-link img {
  width: 20px;
  height: 20px;
}

/* bottom */

.footer-bottom {
  grid-column: 1/-1;

  margin-top: 2rem;

  padding-top: 2rem;

  border-top: 1px solid rgba(255, 255, 255, 0.15);

  text-align: center;

  font-size: 1.35rem;

  opacity: 0.7;
}

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

.mobile-nav {
  display: none;

  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background: #fff;

  border-top: 1px solid #e5e7eb;

  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);

  padding: 1rem;

  justify-content: space-around;

  z-index: 100;
}

.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
}

.mobile-nav a.active {
  color: var(--floral);
  font-weight: 600;
}

/* ================================================= */
/* RESPONSIVE */
/* ================================================= */

@media (max-width: 900px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .section {
    padding: 6rem 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 3rem;
  }

  .grid {
    gap: 2rem;
  }

  body {
    padding-bottom: 70px;
  }

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

  .contact-list {
    gap: 1.2rem;
  }

  .contact-item {
    padding: 1.2rem;
  }

  .map {
    height: 260px;
  }
}
