/* Little Pebble Occupational Therapy - static rebuild
   Brand palette + type sampled from the live Avada theme. */

:root {
  --teal: #3bafbf;
  --teal-bright: #00a8bf;
  --teal-deep: #2a8c99;
  --slate: #333c4e;
  --slate-deep: #212934;
  --green: #65bc7b;
  --ink: #2b2b2b;
  --muted: #5f6b72;
  --paper: #ffffff;
  --mist: #f4f8f9;
  --line: #e2e8ea;
  --shadow: 0 10px 30px rgba(33, 41, 52, 0.12);
  --radius: 14px;
  --maxw: 1120px;
  --header-offset: 200px;

  --font-head: "Montserrat", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--mist);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--slate-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

a { color: var(--teal-deep); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header--over-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header--over-hero .wrap {
  padding-top: 25px;
  padding-bottom: 25px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(210px, 38vw);
  height: auto;
  transition: width 0.25s ease;
}

.site-header--over-hero .brand img {
  width: min(480px, 50vw);
}

.brand .brand-fallback {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-deep);
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}

.site-header--over-hero:not(.is-scrolled) .nav a {
  color: #fff;
}

.site-header--over-hero:not(.is-scrolled) .nav a:hover,
.site-header--over-hero:not(.is-scrolled) .nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--teal);
}

.site-header--over-hero:not(.is-scrolled) .nav-toggle span,
.site-header--over-hero:not(.is-scrolled) .nav-toggle span::before,
.site-header--over-hero:not(.is-scrolled) .nav-toggle span::after {
  background: #fff;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--slate-deep);
  border-radius: 3px;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

main > .hero:first-child {
  margin-top: calc(-1 * var(--header-offset));
}

.site-header--over-hero + main > .hero:first-child .wrap {
  padding-top: calc(var(--header-offset) + 48px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/page-background.png") center/cover no-repeat;
  transform: scale(1.06);
  z-index: -2;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(33, 41, 52, 0.86) 0%, rgba(42, 140, 153, 0.62) 55%, rgba(59, 175, 191, 0.28) 100%);
}

.hero .wrap { padding-top: 48px; padding-bottom: 48px; }

.hero__inner {
  max-width: none;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease 0.15s forwards;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero__content {
  max-width: 720px;
  padding-top: 50px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  margin-bottom: 30px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero__accent { color: var(--teal); }

.hero p.lede {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.38;
  max-width: none;
  margin: 0;
  color: #fff;
}

.hero__hours {
  background: rgba(59, 175, 191, 0.45);
  padding: 9% 7%;
  color: #fff;
  text-align: center;
}

.hero__hours-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.hero__hours-rule {
  width: 100%;
  height: 4px;
  background: var(--teal);
  margin: 5px auto 25px;
  border-radius: 2px;
}

.hero__hours-table {
  margin: 0;
}

.hero__hours-table > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
}

.hero__hours-table dt,
.hero__hours-table dd {
  margin: 0;
  font-size: 1rem;
}

.hero__hours-note {
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero__hours-phone {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 175, 191, 0.45);
}
.btn--primary:hover { background: var(--teal-bright); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn--dark { background: var(--slate-deep); color: #fff; }
.btn--dark:hover { background: var(--slate); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.section--paper { background: var(--paper); }

.section__head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__head .kicker {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--teal-deep);
}

.section__head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-top: 10px;
}

.section__head p { color: var(--muted); font-size: 1.08rem; }

.rule {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--teal);
  margin: 16px auto 0;
}

/* Feature pair */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 40px 28px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(33, 41, 52, 0.16);
}

.feature img {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.feature h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--slate-deep);
}

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

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

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

.contact-list li { display: flex; gap: 16px; align-items: flex-start; }

.contact-list .ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 175, 191, 0.12);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.contact-list .k {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

.contact-list .v { font-size: 1.12rem; color: var(--slate-deep); text-decoration: none; }
.contact-list .v:hover { color: var(--teal-deep); }

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-fallback {
  height: 100%;
  min-height: 360px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-deep), var(--slate-deep));
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}

.map-fallback a { color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-deep);
  color: #cdd6dc;
  padding: 48px 0 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .f-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer .f-brand img { height: 48px; filter: brightness(0) invert(1); opacity: 0.92; }

.site-footer .f-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer .f-meta { font-size: 0.9rem; text-align: right; }
.site-footer .f-meta a { color: var(--teal); text-decoration: none; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-offset) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 24px 18px;
    transform: translateY(-120%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.25s ease;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; opacity: 1; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }

  .hero__layout { grid-template-columns: 1fr; }
  .hero__content { padding-top: 0; text-align: center; }
  .hero__hours { padding: 40px 28px; }

  .site-header--over-hero .brand img {
    width: min(300px, 72vw);
  }

  .site-header--over-hero.is-scrolled .brand img {
    width: min(190px, 52vw);
  }

  .features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { justify-content: center; text-align: center; }
  .site-footer .f-meta { text-align: center; }
}

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