/* Swimming School – Aquatic theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Playfair+Display:wght@600&display=swap');

:root {
  --deep: #0c3d5e;
  --ocean: #1d6a9e;
  --accent: #0ea5e9;
  --foam: #bae6fd;
  --shallow: #7dd3fc;
  --water: #e0f2fe;
  --water-light: #f0f9ff;
  --surface: #f8fcff;
  --white: #fafcfe;
  --text: #1e3a5f;
  --text-soft: #475569;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --shadow-soft: 0 4px 20px rgba(14, 165, 233, 0.1);
  --shadow-card: 0 8px 32px rgba(12, 61, 94, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='15' cy='20' r='2' fill='%230ea5e9' opacity='0.08'/%3E%3Ccircle cx='45' cy='35' r='1.5' fill='%231d6a9e' opacity='0.06'/%3E%3Ccircle cx='25' cy='48' r='1' fill='%230c3d5e' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 140% 90% at 50% -10%, rgba(14, 165, 233, 0.18), transparent 50%),
    radial-gradient(ellipse 100% 60% at 100% 20%, rgba(29, 106, 158, 0.12), transparent 45%),
    radial-gradient(ellipse 100% 60% at 0% 70%, rgba(12, 61, 94, 0.1), transparent 45%),
    linear-gradient(180deg, var(--water-light) 0%, var(--surface) 30%, var(--surface) 100%);
  min-height: 100vh;
}

/* Header – water surface bar */
.site-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, var(--water) 100%);
  color: var(--deep);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(14, 165, 233, 0.1);
  border-bottom: 2px solid rgba(14, 165, 233, 0.25);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo a {
  color: var(--deep);
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color 0.2s;
}

.logo a:hover {
  color: var(--ocean);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  display: inline-block;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--deep);
  background: rgba(14, 165, 233, 0.12);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--deep);
  font-weight: 600;
}

/* Layout */
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding: 2rem 0 4rem;
  min-height: 55vh;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--deep);
  margin-top: 0;
  font-weight: 600;
}

h1 { font-size: 2.25rem; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin: 0 0 1rem;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--ocean);
  text-decoration: underline;
}

/* Hero – underwater light with waves */
.hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, var(--foam) 0%, var(--shallow) 25%, var(--water) 55%, var(--water-light) 85%, var(--surface) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,120 600,0 900,60 C1050,90 1125,75 1200,60 L1200,120 L0,120 Z' fill='%231d6a9e'/%3E%3Cpath d='M0,80 C250,40 550,100 900,80 C1050,70 1125,85 1200,80 L1200,120 L0,120 Z' fill='%230ea5e9'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 80px;
  bottom: -1px;
  left: 0;
  right: 0;
  pointer-events: none;
}

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

.hero h1 {
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-soft);
  font-weight: 500;
}

.hero-home {
  padding: 3.25rem 0 3.75rem;
  background: linear-gradient(180deg, var(--shallow) 0%, var(--foam) 15%, var(--water) 45%, var(--water-light) 75%, var(--surface) 100%);
  box-shadow: inset 0 -20px 40px -20px rgba(14, 165, 233, 0.15);
}

/* Cards – water surface tile */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, var(--water) 100%);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(14, 165, 233, 0.2);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--shallow), var(--accent), var(--ocean));
  border-radius: var(--radius) var(--radius) 0 0;
}

.card h2 {
  margin-top: 0;
  padding-top: 0.25rem;
}

/* Buttons – water drop style */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--ocean) 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45);
  filter: brightness(1.08);
  text-decoration: none;
}

/* Article list */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  padding: 1.125rem 0;
  transition: background 0.2s;
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list li:hover {
  background: rgba(186, 230, 253, 0.4);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius-sm);
}

.article-list a {
  font-weight: 600;
  color: var(--deep);
}

.article-list a:hover {
  color: var(--accent);
}

.article-meta {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
}

/* Single article */
.article-body {
  max-width: 700px;
}

.article-body .lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

/* Contact blocks */
.contact-block {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-block {
    grid-template-columns: 1fr 1fr;
  }
}

.address,
.hours {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--water) 0%, var(--shallow) 50%, var(--foam) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.address p,
.hours p {
  margin: 0;
}

/* Footer – deep ocean with wave */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--ocean) 0%, var(--deep) 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,0 600,120 900,60 C1050,30 1125,90 1200,60 L1200,0 L0,0 Z' fill='%231d6a9e'/%3E%3Cpath d='M0,90 C250,50 550,110 900,90 C1050,80 1125,95 1200,90 L1200,0 L0,0 Z' fill='%230c3d5e' opacity='0.95'/%3E%3C/svg%3E") no-repeat top center;
  background-size: 100% 64px;
  pointer-events: none;
}

.site-footer .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.site-footer a {
  color: var(--shallow);
}

.site-footer a:hover {
  color: white;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
