/* ── Shared CSS — Tierney Aquatics ── */

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

/* ── Design Tokens ── */
:root {
  --navy:        #1a2e44;
  --aqua:        #2a9d8f;
  --sand:        #f4f1eb;
  --gold:        #e9c46a;
  --white:       #ffffff;
  --text:        #1a2e44;
  --text-muted:  #4a6080;
  --border:      rgba(26,46,68,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--sand);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Utility ── */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: .5rem;
}

/* ── Site Nav ── */
.site-header {
  background: var(--navy);
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.site-header-inner {
  width: min(100%, 1100px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.ta-wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: .01em;
}

/* ── Primary nav ── */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.site-nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.site-nav a.nav-kids {
  color: var(--gold);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1.25rem 1.25rem;
    gap: .2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }

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

  .site-nav a {
    padding: .65rem .75rem;
    font-size: 1rem;
  }
}

/* ── Page hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.25rem 4.5rem;
  border-bottom: 4px solid var(--gold);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}

.hero-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero-tagline {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,.7);
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Interior page hero (smaller) ── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
  border-bottom: 4px solid var(--gold);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: .5rem;
}

.page-hero p {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
}

/* ── Content sections ── */
.content-section {
  background: var(--white);
  padding: 3rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.content-inner {
  max-width: 760px;
  margin-inline: auto;
}

.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.content-section p {
  font-size: 1.0375rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content-section p:last-child { margin-bottom: 0; }

/* ── Coming soon block ── */
.coming-soon {
  background: var(--sand);
  padding: 4rem 1.25rem;
  text-align: center;
  flex: 1;
}

.coming-soon h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}

.coming-soon p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Teaser cards grid ── */
.teasers {
  padding: 3.5rem 1.25rem 4rem;
  background: var(--sand);
}

.teasers-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.teasers-heading h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--navy);
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26,46,68,.07);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.teaser-card:hover,
.teaser-card:focus-visible {
  box-shadow: 0 6px 24px rgba(26,46,68,.14);
  transform: translateY(-3px);
}

.teaser-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  line-height: 1;
}

.teaser-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}

.teaser-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.teaser-card .card-cta {
  display: inline-block;
  margin-top: .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--aqua);
}

.teaser-card-featured {
  border-color: var(--aqua);
  box-shadow: 0 2px 8px rgba(42,157,143,.18);
}

.teaser-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  border-radius: 4px;
  padding: .15em .45em;
  vertical-align: middle;
  margin-left: .4rem;
  position: relative;
  top: -.1em;
}

/* ── Video grid ── */
.videos {
  padding: 3.5rem 1.25rem 4rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.videos-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.videos-heading h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--navy);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

.vid-card {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(26,46,68,.07);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.vid-card:hover,
.vid-card:focus-visible {
  box-shadow: 0 6px 24px rgba(26,46,68,.14);
  transform: translateY(-3px);
}

.vid-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.vid-body {
  padding: .875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.vid-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.vid-cta {
  font-size: .78rem;
  font-weight: 500;
  color: var(--aqua);
  margin-top: auto;
}

.videos-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: .8rem 2.25rem;
  background: var(--aqua);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}

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

/* ── Footer ── */
footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.75rem 1.25rem;
  font-size: .875rem;
}

footer strong {
  color: rgba(255,255,255,.8);
}

.ta-disclaimer {
  margin-top: .6rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .hero { padding: 7rem 2rem 5.5rem; }
  .video-grid { gap: 2rem; }
  .teaser-grid { gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .teaser-grid { grid-template-columns: repeat(5, 1fr); }
}
