/* =============================================================
   Marguerite Jay Physiotherapy — Central Stylesheet
   Modern, mobile-first rebuild (no framework)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --teal:        #008d80;
  --teal-dark:   #00726a;
  --teal-darker: #005a54;
  --teal-light:  #8ad1d0;
  --teal-tint:   #e6f4f2;
  --ink:         #231f20;
  --body:        #4a4a4a;
  --muted:       #6d6e70;
  --line:        #e6e8e8;
  --white:       #ffffff;
  --bg:          #ffffff;
  --bg-alt:      #fafafa;
  --bg-soft:     #f5f7f7;

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Nunito", "Open Sans", system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(35,31,32,.06);
  --shadow-md: 0 10px 30px rgba(35,31,32,.10);
  --shadow-lg: 0 20px 50px rgba(35,31,32,.16);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;       /* compact height (after scrolling) */
  --header-h-top: 108px;  /* larger height at the top of the page */

  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-dark); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

h1, .h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

section { padding-block: clamp(3rem, 8vw, 6rem); }

/* Utility */
.text-center { text-align: center; }
.teal { color: var(--teal); }
.light { color: var(--teal-light); font-weight: 300; }
.eyebrow {
  display: inline-block;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .85rem;
}
.lead { font-size: 1.075rem; color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.9em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 8px 20px -8px rgba(0,141,128,.7);
  text-align: center;
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(0,141,128,.8); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.85); box-shadow: none; }
.btn--ghost:hover { background: #fff; color: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); box-shadow: none; }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--lg { padding: 1em 2.4em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
/* Frosted background lives on a pseudo-element: a backdrop-filter on the header
   itself would make it the containing block for the fixed mobile menu, which then
   widens the page (sideways scroll / white strip on Android). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h-top);
  transition: min-height .3s var(--ease);
}
/* Logo is larger at the top of the page and shrinks once scrolled */
.nav__brand img { height: 70px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .nav { min-height: var(--header-h); }
.site-header.scrolled .nav__brand img { height: 46px; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border-radius: 10px;
}
.nav__toggle span {
  display: block; height: 2.5px; width: 26px; margin-inline: auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__menu > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .95rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--ink); border-radius: 8px;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--teal); }
.nav__link[aria-current="page"] { position: relative; }
.has-sub > .nav__link::after {
  content: ""; width: .5em; height: .5em; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease); margin-left: .15rem;
}
.has-sub.open > .nav__link::after { transform: rotate(-135deg) translateY(-1px); }

/* Submenu */
.submenu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.submenu > ul { overflow: hidden; }
.has-sub.open > .submenu { grid-template-rows: 1fr; }

.nav__cta { margin-left: .4rem; }

/* Desktop nav */
@media (min-width: 992px) {
  .nav__toggle { display: none; }
  .submenu {
    position: absolute; top: calc(100% + 10px); left: 0;
    display: block; grid-template-rows: none;
    min-width: 250px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); padding: .5rem;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .submenu::before {
    content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
  }
  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .submenu > ul { overflow: visible; }
  .submenu a {
    display: block; padding: .55rem .8rem; border-radius: 8px;
    color: var(--body); font-weight: 600; font-size: .92rem;
  }
  .submenu a:hover { background: var(--teal-tint); color: var(--teal-dark); }
  .has-sub > .nav__link::after { transform: rotate(45deg) translateY(-2px) !important; }
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .nav__menu {
    position: fixed; inset: var(--header-h-top) 0 0 auto;
    width: min(360px, 85vw);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem 1.1rem 2rem;
    /* closed: off-screen, no shadow bleeding onto the page, not focusable */
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s, box-shadow .35s, top .3s var(--ease), height .3s var(--ease);
    overflow-y: auto; height: calc(100dvh - var(--header-h-top));
  }
  .site-header.scrolled .nav__menu { top: var(--header-h); height: calc(100dvh - var(--header-h)); }
  .nav__menu.open { transform: translateX(0); visibility: visible; transition-delay: 0s; box-shadow: -20px 0 50px rgba(0,0,0,.15); }
  .nav__menu > li { border-bottom: 1px solid var(--line); }
  .nav__link { padding: .95rem .2rem; font-size: 1.05rem; justify-content: space-between; width: 100%; }
  .has-sub > .nav__link::after { margin-left: auto; }
  .submenu a { display: block; padding: .6rem .2rem .6rem 1rem; color: var(--muted); font-weight: 600; }
  .nav__cta { margin: 1.2rem 0 0; }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: var(--header-h) 0 0 0; background: rgba(35,31,32,.4);
    opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 90;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Photo shows at its natural colour — no tint overlay. The text sits in a
   semi-transparent black box for contrast (see .hero__box). */
.hero__inner {
  min-height: clamp(360px, 56vh, 560px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  color: #fff;
}
.hero__inner .eyebrow { color: var(--teal-light); }
/* All hero headings render white (overrides the default dark heading colour) */
.hero__inner h1, .hero__inner h2, .hero__inner h3, .hero__inner strong { color: #fff; }
/* Hero text card — mostly transparent (20% opacity) so the photo shows through.
   Blur + text-shadow keep the white text readable. Edit the alpha in `background`
   to taste: lower = more photo showing, higher = darker/more solid. */
.hero__box {
  max-width: 640px;
  background: rgba(0, 0, 0, .4);
  border-radius: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.hero__box h1 { margin-bottom: 1rem; }
.hero__box .breadcrumb { margin-top: 0; }
.hero__box > :last-child { margin-bottom: 0; }
.hero__box h1, .hero__box h2, .hero__box p, .hero__box .breadcrumb {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.hero__box p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 1.6rem; }

/* Compact hero for interior pages */
.page-hero .hero__inner { min-height: clamp(240px, 34vw, 380px); }
.page-hero h1 { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; margin-bottom: .9rem; color: rgba(255,255,255,.8); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* =============================================================
   SECTIONS / CONTENT
   ============================================================= */
.section-head { max-width: 760px; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head .icon { width: 74px; height: auto; margin: 0 auto 1.1rem; }
.section-head p { color: var(--muted); }
.blue-text, .subtitle { color: var(--teal); font-weight: 700; font-family: var(--font-head); }

.bg-alt  { background: var(--bg-alt); }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--teal-tint); }

/* Prose (article body) */
.prose { color: var(--body); font-size: 1.03rem; }
.prose h2 { margin: 2.2rem 0 .9rem; }
.prose h3 { margin: 1.8rem 0 .7rem; color: var(--teal-dark); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.75rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--teal-light); box-shadow: 0 0 0 4px var(--teal-tint);
}
.prose strong { color: var(--ink); }

/* =============================================================
   SERVICE CARDS GRID
   ============================================================= */
.cards {
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card__body h3 a { color: var(--ink); }
.card:hover .card__body h3 a { color: var(--teal); }
.card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__link {
  margin-top: 1rem; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
}
.card__link::after { content: "→"; transition: transform .25s var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta-banner {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  background-size: cover; background-position: center;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(0,70,64,.78), rgba(0,50,46,.82));
}
.cta-banner h2 { color: #fff; max-width: 720px; margin: 0 auto 1.6rem; }

/* Feature/two-column (about, service layout) */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* Layout with sidebar (service detail) */
.with-aside { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 992px) { .with-aside { grid-template-columns: minmax(0,1fr) 300px; align-items: start; } }
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px);
}
.aside-card__head { background: var(--teal); color: #fff; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 700; }
.aside-card ul li a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem 1.3rem; color: var(--body); font-weight: 600; font-size: .92rem;
  border-top: 1px solid var(--line);
}
.aside-card ul li a::after { content: "›"; color: var(--teal-light); font-size: 1.2rem; }
.aside-card ul li a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.aside-card ul li a[aria-current="page"] { background: var(--teal-tint); color: var(--teal-dark); border-left: 3px solid var(--teal); }
.aside-cta { padding: 1.3rem; text-align: center; border-top: 1px solid var(--line); }

/* =============================================================
   GALLERY + LIGHTBOX
   ============================================================= */
/* Flex (not grid) so an incomplete last row is centred, e.g. 7 photos or a 2-photo gallery */
.gallery { --cols: 2; --gap: .8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
@media (min-width: 600px) { .gallery { --cols: 3; } }
@media (min-width: 992px) { .gallery { --cols: 6; } }
.gallery a { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  place-items: center; background: rgba(10,20,19,.92); padding: 1.5rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; color: #fff; font-size: 2rem; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.12); transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
@media (max-width: 600px){ .lightbox__nav { display:none; } }

/* =============================================================
   FAQ ACCORDION
   ============================================================= */
.accordion { max-width: 860px; margin-inline: auto; display: grid; gap: .8rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-align: left;
}
.acc-trigger:hover { color: var(--teal); }
.acc-icon { flex: none; width: 26px; height: 26px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.acc-icon::before { width: 14px; height: 2.5px; }
.acc-icon::after { width: 2.5px; height: 14px; transition: transform .3s var(--ease); }
.acc-item.open .acc-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 1.35rem 1.3rem; color: var(--muted); margin: 0; }

/* =============================================================
   CONTACT
   ============================================================= */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px){ .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* Contact page — three columns: details | experience badge | booking */
.contact-3col { display: grid; gap: clamp(2rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 720px) and (max-width: 991.98px){
  .contact-3col { grid-template-columns: 1fr 1fr; }
  .contact-3col > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 992px){ .contact-3col { grid-template-columns: 1.1fr 0.8fr 1.1fr; } }
.badge-col { text-align: center; }
.badge-col img { max-width: 190px; width: 100%; margin: 0 auto .9rem; }

.info-list { display: grid; gap: 1.3rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic {
  flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--teal-tint);
  display: grid; place-items: center;
}
.info-item .ic img { width: 26px; height: 26px; object-fit: contain; }
.info-item h4 { color: var(--teal); margin-bottom: .15rem; }
.info-item p { color: var(--muted); margin: 0; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 4vw, 2.4rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--bg-alt); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px){ .form-row { grid-template-columns: 1fr 1fr; } }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; }
.map-embed iframe { width: 100%; height: 380px; border: 0; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.closed { color: #c0392b; font-weight: 700; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 760px){ .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h4 { color: var(--teal); margin-bottom: 1rem; }
.footer-brand img { height: 52px; margin-bottom: 1rem; }
.f-contact { display: grid; gap: 1rem; }
.f-contact .info-item .ic { width: 46px; height: 46px; }
.f-contact .info-item .ic img { width: 22px; height: 22px; }
.footer-social { margin-top: 1.2rem; display: flex; gap: .6rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.footer-social a:hover { background: var(--teal-dark); transform: translateY(-2px); }
.footer-social img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.footer-bottom { margin-top: clamp(2rem,5vw,3rem); background: var(--teal); color: rgba(255,255,255,.9); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-block: 1.1rem; font-size: .88rem; }
.footer-bottom a { color: #fff; }

/* =============================================================
   MOTION / REVEAL
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* Print / reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
