@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --accent: rgb(81, 178, 179);
  --text: rgb(49, 49, 47);
  --bg: #fff;
  --muted: #f4f8f8;
  --line: #e4eaea;
  --shadow: 0 10px 28px rgba(49, 49, 47, 0.08);
  --shadow-soft: 0 6px 18px rgba(49, 49, 47, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 110px;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(1160px, calc(100% - 2.25rem));
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.lead {
  max-width: 760px;
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: box-shadow 220ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.35rem;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
  background: rgba(81, 178, 179, 0.1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.5rem 0.6rem;
}

.section {
  padding: 4.2rem 0;
  border-top: 1px solid rgba(228, 234, 234, 0.7);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.4) 100%),
    url("./assets/images/IMG_1539.JPG") center/cover no-repeat;
}

.hero.section {
  border-top: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  right: -160px;
  top: -140px;
  background: radial-gradient(circle, rgba(81, 178, 179, 0.2) 0%, rgba(81, 178, 179, 0) 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero-copy p {
  max-width: 680px;
}

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

.hero-highlight {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.hero-highlight ul {
  margin: 0;
  padding-left: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.62rem 1rem;
  border-radius: 0.45rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -1.8rem;
  margin-bottom: 0.8rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.service-grid,
.course-grid,
.team-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

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

.service-grid ul {
  margin: 0;
  padding: 1.2rem 1.2rem 1.2rem 2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.service-grid li {
  margin-bottom: 0.35rem;
}

.service-grid li::marker {
  color: var(--accent);
}

.section-alt {
  background: var(--muted);
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.2rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.soft-card {
  border-top: 4px solid var(--accent);
}

.course-note {
  margin: 0;
}

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

.team-group + .team-group {
  margin-top: 1.2rem;
}

.team-group h3 {
  margin-bottom: 0.65rem;
}

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

.team-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.team-card img {
  width: 100%;
  border-radius: 0.6rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.team-card h4 {
  margin: 0 0 0.35rem;
}

.team-card.no-image {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.avatar-fallback {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  background: rgba(81, 178, 179, 0.13);
  margin-bottom: 0.75rem;
}

.team-card p {
  margin-bottom: 0.4rem;
}

.section-note {
  margin-top: 1rem;
}

.reference-list {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.reference-list p:last-child {
  margin-bottom: 0;
}

.reference-list a {
  font-weight: 600;
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(81, 178, 179, 0.08) 0%, rgba(81, 178, 179, 0) 100%),
    #fff;
}

.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.contact-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.hours-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}

.contact-card a {
  font-weight: 600;
}

iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 0.55rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  font-weight: 600;
}

.legal-page {
  background: var(--muted);
}

.legal-page .legal-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.legal-page .legal-header .wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
}

.legal-page .legal-header a {
  text-decoration: none;
  font-weight: 700;
}

.legal-page main {
  padding: 1.8rem 0 2.4rem;
}

.legal-page h1 {
  margin-bottom: 1rem;
}

.legal-frame {
  display: none;
}

.legal-content {
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin-top: 1.2rem;
}

.legal-content h1 {
  margin-top: 0;
}

.legal-content .container {
  width: 100%;
  margin: 0;
}

.legal-content table,
.legal-content iframe {
  max-width: 100%;
}

@media (hover: hover) {
  .card:hover,
  .team-card:hover,
  .stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(49, 49, 47, 0.12);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 10;
    border-top: 1px solid var(--line);
    padding: 0.7rem 0 0.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

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

  .header-inner {
    flex-wrap: wrap;
    padding: 0.45rem 0;
  }

  .hero-layout,
  .stats,
  .service-grid,
  .course-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  section[id] {
    scroll-margin-top: 98px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 65%, rgba(255, 255, 255, 0.9) 100%),
      url("./assets/images/IMG_1539.JPG") center/cover no-repeat;
  }

  .hero::after {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -90px;
  }

  .stats {
    margin-top: 0;
  }

  iframe {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .btn,
  .card,
  .team-card,
  .stat,
  .site-header {
    transition: none !important;
  }
}
