/* Theme and reset */
:root {
  --navy: #5a101f;
  --sky: #fcb921;
  --gold: #fcb921;
  --maroon: #7c1725;
  --sand: #f9f5ee;
  --ink: #2f1b1e;
  --card: #fffdf8;
  --shadow-soft: 0 12px 32px rgba(90, 16, 31, 0.14);
  --shadow-hover: 0 18px 40px rgba(90, 16, 31, 0.2);
  --radius: 18px;
  font-family: "Avenir Next", "Montserrat", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--sand);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 20%, rgba(252, 189, 33, 0.16), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(124, 23, 37, 0.18), transparent 36%),
    linear-gradient(180deg, #fffdf8 0%, #f4e8d8 100%);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 1px 0 rgba(90, 16, 31, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(252, 189, 33, 0.22);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(252, 189, 33, 0.35);
  outline: none;
}

.school-site-link {
  padding: 0.75rem 0;
  display: flex;
  justify-content: flex-end;
  font-weight: 700;
  color: var(--navy);
}

.school-site-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  background: rgba(124, 23, 37, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.school-site-link a:hover,
.school-site-link a:focus-visible {
  background: rgba(252, 189, 33, 0.18);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.typeform-embed {
  margin: 0;
  display: grid;
  place-items: center;
}

.typeform-embed [data-tf-live] {
  display: block;
  width: min(100%, 800px);
  min-height: 620px;
}

@media (max-width: 768px) {
  .typeform-embed [data-tf-live] {
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .typeform-embed [data-tf-live] {
    min-height: 460px;
  }
}

.menu-toggle {
  display: none;
  background: linear-gradient(135deg, var(--navy), #3d0c18);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.hero-card {
  background: linear-gradient(135deg, rgba(124, 23, 37, 0.96), rgba(165, 44, 44, 0.92), rgba(252, 189, 33, 0.92));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(252, 189, 33, 0.4);
  height: 100%;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(252, 189, 33, 0.28), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(124, 23, 37, 0.22), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff6e2;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0.65rem 0 0.4rem;
  font-size: clamp(2rem, 3vw + 1rem, 2.9rem);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.05rem;
  max-width: 540px;
  opacity: 0.96;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-zoom {
  font-size: 1.1rem;
  padding: 0.9rem 1.25rem;
  width: auto;
  min-width: 240px;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(252, 189, 33, 0.35);
  margin: 0 auto;
}

.btn-primary {
  background: var(--gold);
  color: #3d0c18;
  box-shadow: 0 12px 24px rgba(252, 189, 33, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.hero-logo {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-hover);
  display: grid;
  place-items: center;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(124, 23, 37, 0.12);
  height: 100%;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.officers-banner,
.calendar-banner,
.meeting-banner {
  background: linear-gradient(135deg, rgba(124, 23, 37, 0.96), rgba(165, 44, 44, 0.9), rgba(252, 189, 33, 0.85));
  color: #fff;
  padding: 1.2rem 0 1.4rem;
  box-shadow: 0 1px 0 rgba(90, 16, 31, 0.1);
}

.officers-banner-content,
.calendar-banner-content,
.meeting-banner-content {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 0.35rem;
}

.officers-banner h1,
.calendar-banner h1,
.meeting-banner h1 {
  margin: 0.2rem 0 0.1rem;
  font-size: clamp(1.9rem, 2vw + 1rem, 2.6rem);
}

.officers-banner p,
.calendar-banner p,
.meeting-banner p {
  margin: 0;
  opacity: 0.92;
}

/* Sections */
section {
  padding: 2.5rem 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--navy);
}

.section-title p {
  margin: 0;
  opacity: 0.82;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.card {
  background: linear-gradient(180deg, rgba(252, 189, 33, 0.06), var(--card));
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(90, 16, 31, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(252, 189, 33, 0.18);
  color: #3d0c18;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Officers */
.officer-card {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.officer-card:focus-visible,
.officer-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  outline: none;
}

.avatar-photo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(90, 16, 31, 0.15);
}

.officer-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.officer-trigger:hover,
.officer-trigger:focus-visible {
  text-decoration: underline;
  outline: none;
}

.officer-meta h3 {
  margin: 0;
  color: var(--navy);
}

.officer-meta p {
  margin: 0.25rem 0 0.6rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: rgba(124, 23, 37, 0.12);
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Calendar */
.calendar-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(90, 16, 31, 0.08);
}

.calendar-embed {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 720px;
}

.calendar-embed iframe {
  border: 0;
  width: 100%;
  height: 820px;
  display: block;
}

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

.calendar-item {
  border: 1px solid rgba(90, 16, 31, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "month meta"
    "day meta"
    "year meta";
  gap: 0.3rem 0.8rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(252, 189, 33, 0.12), rgba(252, 189, 33, 0.04));
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.calendar-item:hover,
.calendar-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.calendar-month {
  grid-area: month;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.calendar-day {
  grid-area: day;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.calendar-year {
  grid-area: year;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.9;
}

.calendar-meta {
  grid-area: meta;
  display: grid;
  gap: 0.15rem;
}

.calendar-meta p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.calendar-placeholder {
  margin-top: 0.9rem;
  padding: 1.4rem;
  border: 2px dashed rgba(90, 16, 31, 0.18);
  border-radius: 14px;
  background: rgba(252, 189, 33, 0.14);
  color: #3d0c18;
  text-align: center;
  font-weight: 700;
}

/* Meeting */
.meeting-card {
  background: linear-gradient(120deg, rgba(124, 23, 37, 0.96), rgba(165, 44, 44, 0.94), rgba(252, 189, 33, 0.9));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 0.65rem;
  box-shadow: var(--shadow-hover);
  max-width: 480px;
  margin: 0 auto;
}

.meeting-card .btn {
  justify-content: center;
}

.tiny {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-btn {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  padding: 0.55rem 0.9rem;
}

.zoom-link-inline {
  color: #fff;
  font-weight: 700;
  word-break: break-all;
}

.share-status {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.95;
}

.contact-section .section-title {
  align-items: center;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(90, 16, 31, 0.08);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 0.6rem;
}

.contact-email {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
}

.form-field input,
.form-field textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(90, 16, 31, 0.16);
  border-radius: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(90, 16, 31, 0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(252, 189, 33, 0.32);
}


/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  color: rgba(47, 27, 29, 0.82);
  font-weight: 600;
}

footer a {
  color: var(--navy);
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(90, 16, 31, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 30;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  width: min(540px, 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(90, 16, 31, 0.12);
  display: grid;
  gap: 0.9rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-title {
  margin: 0;
  color: var(--navy);
}

.modal-close {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 0.6rem;
}

.modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(90, 16, 31, 0.12);
  box-shadow: var(--shadow-soft);
}

/* Responsive navigation */
@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 0.8rem;
    border-radius: 14px;
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 2.8rem;
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-card,
  .hero-photo {
    height: auto;
  }

  .hero-photo img {
    height: auto;
  }

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