:root {
  --ink: #102a3a;
  --muted: #587185;
  --deep: #075b74;
  --teal: #0789a3;
  --aqua: #dff8fb;
  --foam: #f7fcfb;
  --coral: #ff7d6b;
  --sun: #ffd36e;
  --line: #d7eaee;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(9, 67, 86, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--foam);
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 125, 107, 0.62);
  outline-offset: 3px;
}

.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: 10;
  background: rgba(247, 252, 251, 0.92);
  border-bottom: 1px solid rgba(215, 234, 238, 0.85);
  backdrop-filter: blur(16px);
}

.top-contact {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--deep);
  font-size: 0.92rem;
  font-weight: 800;
}

.top-contact a {
  color: var(--white);
  text-decoration: none;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  box-shadow: 0 10px 22px rgba(7, 91, 116, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #26495c;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white);
  background: var(--deep);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - 108px);
  max-height: 860px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    url("assets/images/swim-with-ezra-water-background.png") center / cover no-repeat,
    linear-gradient(135deg, #dff8fb 0%, #77d7e5 48%, #075b74 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@supports (background-image: url("assets/images/swim-with-ezra-water-background.webp")) {
  .hero {
    background:
      url("assets/images/swim-with-ezra-water-background.webp") center / cover no-repeat,
      linear-gradient(135deg, #dff8fb 0%, #77d7e5 48%, #075b74 100%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 44, 60, 0.86) 0%, rgba(7, 91, 116, 0.66) 46%, rgba(7, 91, 116, 0.36) 100%),
    linear-gradient(0deg, rgba(5, 44, 60, 0.26), rgba(255, 255, 255, 0.03));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 100px;
}

.hero .eyebrow,
.hero h1,
.hero .hero-copy {
  color: var(--white);
}

.hero .eyebrow {
  text-shadow: 0 2px 12px rgba(5, 44, 60, 0.32);
}

.hero h1,
.hero .hero-copy {
  text-shadow: 0 3px 18px rgba(5, 44, 60, 0.38);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: #36596b;
  font-size: 1.18rem;
}

.hero-copy.small {
  margin-top: 12px;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--deep);
  box-shadow: 0 14px 30px rgba(7, 91, 116, 0.24);
}

.button.secondary {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(7, 91, 116, 0.16);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  padding: 9px 13px;
  border: 1px solid rgba(7, 91, 116, 0.12);
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.pale {
  width: 100%;
  background: linear-gradient(180deg, #edfafa 0%, #f8fdfc 100%);
}

.pale > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.intro-grid,
.content-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lesson-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: rgba(255, 125, 107, 0.5);
}

.price-card strong {
  display: block;
  margin: 14px 0 16px;
  color: var(--deep);
  font-size: 2.4rem;
  line-height: 1;
}

.price-card strong span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.price-card p,
.pricing-note {
  color: var(--muted);
}

.pricing-note {
  max-width: 820px;
  margin-top: 22px;
  font-weight: 700;
}

.availability-card {
  max-width: 880px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(7, 91, 116, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(9, 67, 86, 0.08);
}

.availability-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
}

.availability-card p {
  color: var(--muted);
}

.availability-card p:last-child {
  margin-bottom: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.why-grid div {
  position: relative;
  padding: 20px 20px 20px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(9, 67, 86, 0.08);
  color: #26495c;
  font-weight: 800;
}

.why-grid div::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.steps-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(9, 67, 86, 0.08);
}

.steps-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--deep);
  font-weight: 800;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-card,
.policy-grid article,
.contact-card,
.interest-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-card,
.policy-grid article {
  padding: 24px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--deep);
  background: var(--aqua);
  font-weight: 800;
}

.feature-card p,
.policy-grid p,
.price-row p,
.instructor p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}

.split > div:first-child p:last-child {
  margin-top: 18px;
  color: var(--muted);
}

.pricing-list {
  display: grid;
  gap: 14px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.price-row.featured {
  border-color: rgba(255, 125, 107, 0.5);
  box-shadow: var(--shadow);
}

.price-row strong {
  flex: 0 0 auto;
  color: var(--deep);
  font-size: 1.7rem;
}

.instructor-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, #075b74 0%, #0789a3 74%);
  box-shadow: var(--shadow);
}

.instructor-panel p + p {
  margin-top: 14px;
}

.instructor-panel .eyebrow,
.instructor-panel p {
  color: #dff8fb;
}

.instructor-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(8, 51, 68, 0.24);
}

.instructor-photo,
.image-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.image-placeholder {
  min-height: 260px;
  color: var(--deep);
  background:
    linear-gradient(135deg, rgba(223, 248, 251, 0.95), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(45deg, rgba(7, 91, 116, 0.1) 0 10px, transparent 10px 20px);
}

.image-placeholder span {
  max-width: 180px;
  text-align: center;
  font-weight: 800;
}

.instructor-photo span {
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  color: var(--deep);
  background: var(--white);
  font-size: 2.4rem;
  font-weight: 800;
}

.featured-layout {
  display: block;
}

.article-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--aqua);
}

.article-icon span {
  position: relative;
  width: 24px;
  height: 28px;
  border: 2px solid var(--deep);
  border-radius: 3px;
  background:
    linear-gradient(var(--deep), var(--deep)) 5px 8px / 14px 2px no-repeat,
    linear-gradient(var(--deep), var(--deep)) 5px 14px / 14px 2px no-repeat,
    linear-gradient(var(--deep), var(--deep)) 5px 20px / 9px 2px no-repeat;
}

.article-icon span::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--coral);
  border-right: 2px solid var(--coral);
}

.article-card p {
  color: var(--muted);
}

.article-card .button {
  margin-top: 12px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun);
}

.policy-button {
  margin-top: 24px;
}

.policy-note {
  max-width: 860px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(7, 91, 116, 0.16);
  border-radius: 8px;
  color: var(--deep);
  background: var(--aqua);
  font-weight: 800;
}

.facility-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.facility-panel p {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(9, 67, 86, 0.08);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

details ul {
  margin: 10px 0 0;
  color: var(--muted);
}

.faq-note {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(7, 91, 116, 0.16);
  border-radius: 8px;
  color: var(--deep);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(9, 67, 86, 0.08);
}

.faq-note h3 {
  margin-bottom: 6px;
}

.faq-note p {
  margin: 0;
  color: var(--muted);
}

.faq-note a {
  color: var(--deep);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding: 22px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-card a {
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
}

.interest-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.demo-label {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 125, 107, 0.45);
  border-radius: 8px;
  color: #7a382f;
  background: #fff4f1;
}

.demo-label strong {
  color: #642b24;
}

.demo-label span {
  color: #7a544e;
  font-size: 0.92rem;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

label {
  display: grid;
  gap: 8px;
  color: #26495c;
  font-size: 0.93rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c7dde3;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfefe;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--deep);
  font-weight: 700;
}

.availability-form-note {
  padding: 14px 16px;
  border: 1px solid rgba(7, 91, 116, 0.16);
  border-radius: 8px;
  background: var(--aqua);
}

.privacy-short {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-short a,
.page-card a,
.footer a {
  font-weight: 800;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.success {
  color: #075b45;
}

.form-status.error {
  color: #8a2f25;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.page-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.page-hero {
  margin-bottom: 28px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.page-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-card h2 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.page-card h2:first-child {
  margin-top: 0;
}

.page-card p,
.page-card li {
  color: var(--muted);
}

.policy-page-list .policy-note {
  max-width: none;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px max(16px, calc((100% - 1180px) / 2));
  color: #dff8fb;
  background: #083344;
}

.footer p {
  max-width: 460px;
  margin: 14px 0 0;
}

.footer .brand small {
  color: #b9e7ed;
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
}

.footer-links a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(247, 252, 251, 0.96) 0%, rgba(247, 252, 251, 0.84) 44%, rgba(247, 252, 251, 0.18) 100%);
  }

  .intro-grid,
  .content-columns,
  .feature-grid,
  .policy-grid,
  .facility-panel,
  .lesson-pricing,
  .why-grid,
  .steps-grid,
  .split,
  .instructor-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .instructor-panel {
    padding: 24px;
  }

  .instructor-photo,
  .instructor-image {
    max-width: 260px;
  }
}

@media (max-width: 620px) {
  .top-contact {
    flex-direction: column;
    gap: 2px;
    text-align: center;
    font-size: 0.84rem;
  }

  .nav {
    width: min(100% - 24px, 1180px);
  }

  .brand small {
    max-width: 180px;
  }

  .hero {
    min-height: 790px;
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    padding-top: 46px;
  }

  .section,
  .pale > *,
  .page-main {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 62px 0;
  }

  .hero-actions,
  .button,
  .contact-actions {
    width: 100%;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }

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

}
