:root {
  --pink: #f48cab;
  --pink-soft: #f7e6eb;
  --green: #7fbf6e;
  --green-deep: #5e9e4a;
  --blue: #2f5daa;
  --ivory: #f4f1ea;
  --white: #ffffff;
  --ink: #29416c;
  --ink-soft: #5a6478;
  --line: rgba(47, 93, 170, 0.14);
  --shadow: 0 22px 60px rgba(47, 93, 170, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  position: relative;
  isolation: isolate;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.38)),
    url("gingham-background.jpg") center top / 760px auto repeat;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100vw - 2rem));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(244, 140, 171, 0.18);
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(47, 93, 170, 0.12);
}

.brand-text,
.footer-brand {
  display: flex;
  flex-direction: column;
}

.brand-script,
.footer-script,
.script-accent {
  font-family: "Allura", cursive;
  color: var(--pink);
}

.brand-script {
  font-size: 2.2rem;
  line-height: 0.8;
}

.brand-block,
.footer-block {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--green-deep);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--pink);
}

.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 2rem 0 auto;
  height: 530px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 0 0 56px 56px;
  z-index: -1;
}

.hero-grid,
.club-grid,
.contact-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
.section-title,
.hero-card h2,
.service-card h3,
.experience-card h3,
.club-panel h3,
.profile-card h3 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.45rem);
  line-height: 0.92;
  color: #244880;
}

.script-accent {
  display: inline-block;
  margin: 0 0.2rem;
  font-size: 0.82em;
  line-height: 0.6;
}

.hero-text,
.hero-support,
.section-copy,
.contact-copy p,
.club-copy p {
  max-width: 62ch;
  color: var(--ink-soft);
}

.hero-text {
  margin: 1.3rem 0 0.9rem;
  font-size: 1.05rem;
}

.hero-support {
  margin: 0 0 1.8rem;
}

.service-area {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 93, 170, 0.16);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), #f06d99);
  box-shadow: 0 18px 36px rgba(244, 140, 171, 0.34);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(47, 93, 170, 0.18);
}

.hero-card,
.service-card,
.experience-card,
.club-panel,
.profile-card,
.contact-form,
.section-shell,
.site-footer {
  border: 1px solid var(--line);
}

.hero-card,
.club-panel,
.profile-card,
.contact-form,
.section-shell {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.hero-card-kicker {
  margin: 0;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 0 0 0.85rem;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--blue);
}

.hero-list,
.club-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-list li + li,
.club-panel li + li {
  margin-top: 0.55rem;
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--green-deep);
  font-weight: 600;
}

section {
  padding: 2.2rem 0;
}

.section-shell {
  border-radius: 36px;
  padding: 2rem;
}

.section-intro {
  margin-bottom: 1.4rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.04;
  color: var(--blue);
}

.card-grid,
.profile-grid,
.experience-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.experience-card,
.profile-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
}

.card-number {
  margin: 0 0 0.55rem;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.service-card h3,
.experience-card h3,
.club-panel h3,
.profile-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.6rem;
  color: var(--ink);
}

.service-card p,
.experience-card p,
.profile-card p {
  margin: 0;
  color: var(--ink-soft);
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.club-grid,
.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  align-items: start;
}

.club-panel {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.about-intro {
  margin-bottom: 1.4rem;
}

.about-intro .section-title,
.about-intro p {
  max-width: none;
}

.about-intro p {
  color: var(--ink-soft);
}

.club-badge {
  width: min(220px, 62%);
  margin: 0 auto 1rem;
}

.events .section-title {
  max-width: 18ch;
}

.contact-copy {
  padding-top: 0.5rem;
}

.social-links {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.social-label {
  margin: 0;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-link {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px solid rgba(47, 93, 170, 0.24);
  transition: color 180ms ease, border-color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--pink);
  border-color: rgba(244, 140, 171, 0.38);
}

.social-widget {
  margin-top: 1.15rem;
  border-radius: 24px;
  overflow: hidden;
}

.contact-form {
  padding: 1.45rem;
  border-radius: var(--radius-lg);
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(47, 93, 170, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

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

.thanks-page {
  min-height: 100vh;
}

.thank-you-wrap {
  max-width: 760px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.thank-you-wrap .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.thank-you-wrap .btn {
  margin-top: 0.4rem;
}

.thank-you-logo {
  width: 128px;
  height: 128px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.site-footer {
  margin: 2.2rem auto 1.2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.85);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.footer-brand {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-script {
  margin: 0;
  font-size: 2rem;
  line-height: 0.85;
}

.footer-block,
.footer-copy p {
  margin: 0;
}

.footer-copy {
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease-out forwards;
}

.reveal-1 { animation-delay: 80ms; }
.reveal-2 { animation-delay: 180ms; }
.reveal-3 { animation-delay: 280ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .club-grid,
  .profile-grid,
  .contact-grid,
  .card-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero::before {
    height: 620px;
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.44)),
      url("gingham-background.jpg") center top / 760px auto repeat;
  }

  .container {
    width: min(100vw - 1.25rem, 1140px);
  }

  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    padding: 0.9rem 0;
  }

  .nav-links {
    gap: 0.75rem 1rem;
  }

  .brand-script {
    font-size: 2rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero::before {
    inset: 1rem 0 auto;
    border-radius: 0 0 38px 38px;
  }

  .section-shell,
  .hero-card,
  .club-panel,
  .profile-card,
  .contact-form,
  .thank-you-wrap {
    padding: 1.2rem;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .section-title {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .footer-copy {
    text-align: left;
  }
}
