/* ==========================================================================
   Studio143 — Scituate, MA
   Coastal wellness palette: deep ocean teal-navy, seafoam, warm sand, sunset coral
   ========================================================================== */

:root {
  --navy: #123b42;
  --navy-deep: #0b262b;
  --teal: #3f9e8f;
  --teal-light: #7ecab9;
  --coral: #e08a5b;
  --coral-dark: #c96f3f;
  --sand: #faf5ea;
  --sand-alt: #f1e8d5;
  --ink: #1c2b2c;
  --ink-soft: #4a5b5c;

  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }

.section-pad { padding: 5.5rem 0; }
.bg-sand-alt { background: var(--sand-alt); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--coral-dark);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
}

.subsection-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--navy);
}

.section-sub {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.lead-copy {
  font-size: 1.12rem;
  color: var(--ink);
}

/* ---------------- Navbar ---------------- */
#mainNav {
  padding: 1.1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}
#mainNav.scrolled {
  background: rgba(18, 59, 66, 0.96);
  backdrop-filter: blur(6px);
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.navbar-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff !important;
}
.brand-accent { color: var(--teal-light); }
.navbar-nav .nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
}
.navbar-nav .nav-link:hover { color: var(--teal-light); }
.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
  filter: invert(1);
}
.dropdown-menu {
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
  padding: 0.5rem;
}
.dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.dropdown-item:hover { background: var(--sand-alt); color: var(--coral-dark); }

.btn-book {
  background: var(--coral);
  color: #fff !important;
  font-weight: 700;
  border-radius: 30px;
  padding: 0.5rem 1.3rem !important;
  font-size: 0.92rem;
  transition: background 0.2s ease;
}
.btn-book:hover { background: var(--coral-dark); }

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: rgba(18, 59, 66, 0.98);
    margin-top: 1rem;
    border-radius: 16px;
    padding: 1rem 1.2rem;
  }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center 30%/cover no-repeat;
  isolation: isolate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(11,38,43,0.40) 0%, rgba(11,38,43,0.05) 100%),
    linear-gradient(to bottom, rgba(11,38,43,0.35) 0%, rgba(11,38,43,0.12) 45%, rgba(11,38,43,0.5) 100%);
  z-index: 0;
}
.hero-content-wrap { position: relative; z-index: 1; }
.hero-content {
  max-width: 720px;
  background: rgba(11,38,43,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 24px;
  padding: 2.5rem 2rem;
}
.hero-logo {
  width: 210px;
  height: auto;
}
.hero-eyebrow {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}
.hero-title {
  font-family: var(--font-head);
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  margin: 0.4rem 0 1rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}
.hero-tagline {
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

.btn-cta-primary {
  background: var(--coral);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 30px;
  padding: 0.75rem 1.8rem;
  transition: all 0.2s ease;
}
.btn-cta-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }

.btn-cta-secondary {
  background: rgba(255,255,255,0.12);
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  border-radius: 30px;
  padding: 0.7rem 1.8rem;
  transition: all 0.2s ease;
}
.btn-cta-secondary:hover { background: #fff; color: var(--navy); }

/* on light backgrounds, secondary CTA needs dark text version */
section:not(.hero) .btn-cta-secondary {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
section:not(.hero) .btn-cta-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-outline-gift {
  border: 2px solid var(--coral);
  color: var(--coral-dark);
  font-weight: 700;
  border-radius: 30px;
  padding: 0.65rem 1.6rem;
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-gift:hover { background: var(--coral); color: #fff; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.6rem;
  z-index: 1;
  animation: bounce 2s infinite;
  opacity: 0.85;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------------- Stats strip ---------------- */
.stats-strip {
  background: var(--navy);
  padding: 2.6rem 0;
}
.stat-cell {
  padding: 1rem 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.col-6.stat-cell:nth-child(2n) { border-right: none; }
@media (min-width: 768px) {
  .stat-cell:last-child { border-right: none; }
  .col-6.stat-cell:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.12); }
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--teal-light);
}
.stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* ---------------- About ---------------- */
.shell-accent { opacity: 0.8; }

.about-photo-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.about-photo {
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(18,59,66,0.22);
}
.about-badge-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 230px;
}
.about-badge-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.about-badge-card span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy);
  line-height: 1.25;
}

.signature {
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}
.signature-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
}

/* ---------------- Classes ---------------- */
.classes-banner-wrap img { width: 100%; height: auto; }

.class-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  height: 100%;
  box-shadow: 0 6px 20px rgba(18,59,66,0.06);
  border: 1px solid rgba(18,59,66,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(18,59,66,0.12);
}
.class-card h4 {
  font-size: 1.15rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.class-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.class-card-compact { padding: 1.3rem 1.2rem; }

.kids-block { border-top: 1px dashed rgba(18,59,66,0.15); }

/* ---------------- Aerial ---------------- */
.aerial-section {
  background: linear-gradient(180deg, var(--sand) 0%, #eef4f1 100%);
}
.price-pill {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(18,59,66,0.08);
}
.price-pill strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--coral-dark);
}
.price-pill span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.small-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------------- Pricing ---------------- */
.price-card {
  background: #fff;
  border-radius: 22px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  box-shadow: 0 8px 24px rgba(18,59,66,0.07);
}
.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.3rem;
  color: var(--navy);
}
.price-card-featured {
  background: var(--navy);
  color: #fff;
}
.price-card-featured h3 { color: var(--teal-light); }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(18,59,66,0.08);
  font-size: 0.95rem;
}
.price-card-featured .price-list li { border-bottom-color: rgba(255,255,255,0.15); }
.price-list li:last-child { border-bottom: none; }
.price-list li em { font-style: normal; color: var(--ink-soft); font-size: 0.82rem; }
.price-card-featured .price-list li em { color: rgba(255,255,255,0.65); }
.price-list li strong {
  font-family: var(--font-head);
  color: var(--coral-dark);
  white-space: nowrap;
  font-size: 1.05rem;
}
.price-card-featured .price-list li strong { color: var(--teal-light); }
section .price-card-featured .btn-cta-secondary {
  border-color: #fff;
  color: #fff;
}
section .price-card-featured .btn-cta-secondary:hover {
  background: #fff;
  color: var(--navy);
}

/* ---------------- Birthday parties ---------------- */
.party-info-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 6px 20px rgba(18,59,66,0.06);
}
.party-info-card h4 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.party-info-card h4 i { color: var(--coral); margin-right: 0.4rem; }

/* ---------------- Events ---------------- */
.event-card {
  background: #fff;
  border-radius: 22px;
  padding: 2.2rem;
  height: 100%;
  position: relative;
  box-shadow: 0 8px 24px rgba(18,59,66,0.07);
}
.event-card-badge {
  position: absolute;
  top: -14px;
  left: 2rem;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 30px;
}
.event-card h3 { margin-top: 0.6rem; }
.event-dates { color: var(--teal); font-weight: 600; font-size: 0.92rem; }
.event-host { color: var(--ink-soft); font-style: italic; margin-bottom: 1rem; }
.camp-goals { list-style: none; padding: 0; margin: 0 0 1rem; }
.camp-goals li { padding: 0.3rem 0; font-size: 0.92rem; }
.camp-goals li i { color: var(--teal); margin-right: 0.5rem; width: 1.1rem; text-align: center; }
.event-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--coral-dark);
}
.event-card-retreat {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-card-retreat h3 { color: #fff; }
.event-card-retreat p { color: rgba(255,255,255,0.85); }
.event-card-retreat .lead-copy { color: #fff; }
.retreat-icon { font-size: 2.4rem; color: var(--teal-light); margin-bottom: 1rem; }

/* ---------------- Teacher training ---------------- */
.training-section { background: #fff; }
.training-quote {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 4px solid var(--teal);
  padding-left: 1.3rem;
  margin: 1.5rem 0;
  font-size: 1.02rem;
}
.training-logo-card {
  background: var(--sand-alt);
  border-radius: 22px;
  padding: 2.5rem;
  display: inline-block;
}

/* ---------------- Gallery ---------------- */
.gallery-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-img-tall { min-height: 300px; }
@media (min-width: 768px) {
  .gallery-img-tall { height: 100%; }
}

/* ---------------- Contact ---------------- */
.contact-info-card {
  background: #fff;
  border-radius: 22px;
  padding: 2.2rem;
  height: 100%;
  box-shadow: 0 8px 24px rgba(18,59,66,0.07);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(18,59,66,0.08);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list i {
  font-size: 1.3rem;
  color: var(--teal);
  margin-top: 0.2rem;
}
.contact-list strong { display: block; color: var(--navy); font-family: var(--font-head); }
.contact-list span { color: var(--ink-soft); font-size: 0.95rem; }

.map-frame {
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  min-height: 340px;
  box-shadow: 0 8px 24px rgba(18,59,66,0.07);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff !important;
}
.footer-tagline { color: rgba(255,255,255,0.6); margin-top: 0.5rem; font-size: 0.92rem; }
.footer-social a {
  color: #fff;
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); }
.footer-heading {
  font-family: var(--font-head);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.94rem; }
.footer-links a:hover { color: var(--teal-light); }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--teal-light); }
.footer-rule { border-color: rgba(255,255,255,0.15); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.powered-by {
  color: var(--teal-light) !important;
  font-weight: 600;
}
.powered-by strong { color: #fff; }

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 767.98px) {
  .section-pad { padding: 3.5rem 0; }
  .about-badge-card { position: static; margin-top: 1rem; max-width: 100%; }
}
