/* AQUATICA — Swiss Brutalist Minimal */

:root {
  --bg: #FAFAFA;
  --fg: #080808;
  --muted: #6B6B6B;
  --blue: #0057FF;
  --blue-dark: #0040CC;
  --border: #080808;
  --border-soft: #D8D8D8;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 700px; margin-inline: auto; }
.center { text-align: center; }
.accent { color: var(--blue); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ─── Typography ─── */
h1, h2, h3 { font-weight: 900; letter-spacing: -0.04em; line-height: 0.92; margin: 0; }
h1 { font-size: clamp(3.5rem, 9vw, 9rem); }
h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2.big { font-size: clamp(3rem, 7vw, 6.5rem); }
h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.eyebrow {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--blue);
}
.lede { font-size: 1.1rem; line-height: 1.75; color: var(--muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.05em;
  text-transform: uppercase; border: 2px solid var(--fg); cursor: pointer;
  font-family: inherit; transition: background 0.15s var(--ease), color 0.15s var(--ease);
  background: transparent; color: var(--fg); border-radius: 0;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 0.9rem; }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }

/* ─── Nav ─── */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 2px solid var(--fg);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 2rem; max-width: 1200px; margin: 0 auto;
}
.wordmark { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.04em; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--fg);
  padding: 0.35rem 0.6rem; cursor: pointer; font-size: 1rem; color: var(--fg);
}
.nav-links { display: flex; gap: 2.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 0.5rem; }

/* ─── Photo treatments (sharp, no bubbles) ─── */
.bubble { border-radius: 0 !important; overflow: hidden; }
.bubble img { border-radius: 0 !important; object-fit: cover; width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.bubble:hover img { transform: scale(1.04); }
.bubble.ring {
  padding: 0 !important; background: none !important; box-shadow: none !important;
  outline: 3px solid var(--blue); outline-offset: 5px;
}
.b-sm { width: 88px; height: 88px; }
.b-md { width: 120px; height: 140px; }
.b-lg { width: 220px; height: 260px; }
.b-xl { width: 180px; height: 220px; }

/* ─── Hero ─── */
.deco { display: none; }
.hero { border-bottom: 2px solid var(--fg); }
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  max-width: 1200px; margin: 0 auto;
}
.hero-center {
  padding: 5rem 2rem 5rem; border-right: none;
}
.hero-center .eyebrow { display: block; margin-bottom: 2rem; }
.hero-center h1 { margin-bottom: 2.5rem; }
.hero-center .lede { max-width: 40rem; margin-bottom: 3rem; font-size: 1.15rem; }
.hero-side { display: none; }
.hero-mobile { display: none !important; }
.shift-r, .shift-l { margin: 0; }

.search {
  display: flex; align-items: stretch; max-width: 520px;
  border: 2px solid var(--fg); background: var(--bg);
  border-radius: 0; padding: 0; box-shadow: none; flex-wrap: nowrap;
}
.search-icon { display: none; }
.search input {
  flex: 1; border: 0; outline: 0;
  padding: 1rem 1.25rem; font: inherit; font-size: 0.95rem; background: transparent;
  min-width: 0;
}
.search .btn {
  border-radius: 0; border: 0; border-left: 2px solid var(--fg);
  flex-shrink: 0; white-space: nowrap;
}
.search .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.search .btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.search-feedback { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 3fr 1fr 1fr; }
  .hero-center { border-right: 2px solid var(--fg); padding: 6rem 3rem; }
  .hero-side {
    display: flex; flex-direction: column; border-left: 2px solid var(--fg);
    overflow: hidden;
  }
  .hero-side .bubble { flex: 1; width: 100%; height: 50%; }
  .hero-side .bubble + .bubble { border-top: 2px solid var(--fg); }
  .b-xl, .b-md { width: 100%; height: 100%; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* ─── Stats ─── */
.stats { background: var(--blue); border-bottom: 2px solid var(--fg); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid > div {
  padding: 2.5rem 2rem; border-right: 2px solid rgba(255,255,255,0.25);
  text-align: left;
}
.stats-grid > div:last-child { border-right: none; }
.stats-grid > div:nth-child(2) { border-right: 2px solid rgba(255,255,255,0.25); }
@media (max-width: 767px) {
  .stats-grid > div:nth-child(2) { border-right: none; }
  .stats-grid > div:nth-child(even) { border-right: none; }
  .stats-grid > div { border-bottom: 2px solid rgba(255,255,255,0.25); }
  .stats-grid > div:last-child { border-bottom: none; }
}
.stat-n { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900; color: #fff; letter-spacing: -0.04em; line-height: 1; }
.stat-l { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.5rem; }

/* ─── Sections ─── */
.section { padding: 7rem 2rem; }
.section-muted { background: #F0F0F0; border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg); }
.two-col { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

/* about photo */
.about-photo { position: relative; width: 100%; height: 420px; }
.bubble-fill { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.bubble-fill img { border-radius: 0; }
.bubble-overlap {
  position: absolute; right: -8px; bottom: -8px;
  width: 140px; height: 140px; border: 4px solid var(--bg); border-radius: 0;
}

/* programs */
.programs { display: grid; gap: 0; margin-top: 3rem; border: 2px solid var(--fg); }
@media (min-width: 768px) { .programs { grid-template-columns: repeat(3, 1fr); } }
.program {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; padding: 2.5rem; border-bottom: 2px solid var(--fg);
}
@media (min-width: 768px) {
  .program { border-bottom: none; border-right: 2px solid var(--fg); }
  .program:last-child { border-right: none; }
}
.program .bubble { width: 100%; aspect-ratio: 4/3; height: auto; margin-bottom: 2rem; }
.program h3 { margin-top: 0; margin-bottom: 0.75rem; }
.program p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; flex: 1; }
.link { display: inline-block; margin-top: 1.5rem; color: var(--blue); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; }
.link:hover { text-decoration: underline; }

/* why */
.features { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; border: 2px solid var(--fg); }
.features li { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem; border-bottom: 2px solid var(--fg); }
.features li:last-child { border-bottom: none; }
.features strong { display: block; font-weight: 800; }
.features p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.88rem; }
.ficon {
  flex-shrink: 0; width: 42px; height: 42px; background: var(--blue);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; border-radius: 0;
}
.why-photos { position: relative; width: 100%; height: 480px; }
.why-a { position: absolute; right: 0; top: 0; width: 65%; height: 68%; border-radius: 0; }
.why-b { position: absolute; left: 0; bottom: 0; width: 55%; height: 62%; border-radius: 0; outline: 4px solid var(--blue); outline-offset: 5px; }
@media (min-width: 768px) { .why-photos { height: 560px; } .why-a { width: 70%; height: 72%; } }

/* testimonial */
.stars { color: var(--blue); font-size: 1rem; letter-spacing: 0.1em; }
blockquote {
  font-size: clamp(1.4rem, 3vw, 2.25rem); font-weight: 800;
  line-height: 1.25; margin: 2rem 0 0; letter-spacing: -0.03em;
  border-left: 4px solid var(--blue); padding-left: 1.5rem;
}
.quote-by { display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 2rem; font-size: 0.85rem; font-weight: 700; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: 3rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery .bubble { aspect-ratio: 1; width: 100%; height: auto; border-radius: 0; }
.y-down, .y-up { transform: none !important; }

/* CTA */
.cta {
  background: var(--fg); color: #fff;
  padding: 8rem 2rem; border-top: 2px solid var(--fg); position: relative;
}
.cta .deco { display: none; }
.cta h2.big { color: #fff; }
.cta h2.big .accent { color: var(--blue); }
.cta .lede { color: rgba(255,255,255,0.55); margin: 1.5rem auto 2.5rem; max-width: 36rem; }
.cta .btn-primary { background: var(--blue); border-color: var(--blue); }
.cta .btn-primary:hover { background: #fff; color: var(--fg); border-color: #fff; }

/* footer */
.footer { padding: 2rem 2rem; border-top: 2px solid var(--fg); }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer .wordmark { font-size: 1.1rem; font-weight: 900; letter-spacing: -0.03em; }

/* mobile nav */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 2px solid var(--fg);
    flex-direction: column; gap: 0; padding: 1rem 2rem;
  }
  .nav-links[data-visible="true"] { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-actions { flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* animations */
.delay-0 { --d: 0s; } .delay-05 { --d: 0.05s; } .delay-1 { --d: 0.1s; }
.delay-15 { --d: 0.15s; } .delay-2 { --d: 0.2s; } .delay-3 { --d: 0.25s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp 0.55s var(--ease) forwards; animation-delay: var(--d, 0s); }
.gallery .reveal.in { animation-name: fadeUp; }

.hide-sm { display: none; }
.show-sm { display: flex; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
@media (min-width: 768px) { .show-sm { display: none !important; } .hide-md { display: flex !important; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; animation: none !important; transform: none !important; }
  * { transition: none !important; }
}
