/* ==========================================================================
   KM Clinic — kmclinic.pt
   Palette & type tokens harvested from the original KM Clinic site (Blocksy/Elementor).
   Fonts: Roboto (body/headings) + Roboto Slab (taglines & pull-quotes).
   ========================================================================== */

:root{
  --navy:        #1B355E;
  --navy-2:      #1E3A5F;
  --blue:        #7baed5;
  --blue-56:     rgba(124,175,214,.56);
  --blue-24:     rgba(124,175,214,.24);
  --blue-12:     rgba(124,175,214,.14);
  --bg:          #f8fafa;
  --tint:        #eaf1f9;
  --surface:     #ffffff;
  --text:        #17233a;
  --muted:       #6b7d93;
  --card-border: #d6e3f0;
  --divider:     #deebe8;

  --radius:      8px;
  --radius-card: 12px;
  --radius-lg:   20px;

  --maxw:        1140px;
  --gutter:      clamp(1.25rem, 4vw, 2rem);
  --section-y:   clamp(3.5rem, 7vw, 6rem);

  --shadow-sm:   0 2px 10px rgba(30,58,95,.06);
  --shadow-md:   0 12px 34px rgba(30,58,95,.10);

  --font-sans:   "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-slab:   "Roboto Slab", Georgia, "Times New Roman", serif;

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

/* ---------- Reset / base ------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.65;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--navy); text-decoration:none; transition:color .2s var(--ease); }
a:hover{ color:var(--blue); }
h1,h2,h3,h4{ color:var(--navy); line-height:1.2; margin:0 0 .6em; font-weight:700; overflow-wrap:break-word; }
p{ margin:0 0 1.1em; }
ul{ margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
:focus-visible{ outline:3px solid var(--blue); outline-offset:2px; border-radius:4px; }
[hidden]{ display:none !important; }

/* ---------- Layout helpers ---------------------------------------------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:var(--section-y); }
.section--tint{ background:var(--tint); }
.section--navy{ background:var(--navy); color:#fff; }
.section--navy h1,.section--navy h2,.section--navy h3{ color:#fff; }
.narrow{ max-width:760px; }
.center{ text-align:center; }
.mx-auto{ margin-inline:auto; }

/* Prevent long words from expanding grid/flex tracks (auto min-width) → no h-scroll */
.hero-grid>*,.split>*,.page-hero-grid>*,.svc-split>*,.contact-grid>*,.header-inner>*{ min-width:0; }
.svc-chip span:first-child,.timeline p,.feature p,.cat-card p{ overflow-wrap:break-word; }

.eyebrow{
  display:inline-block;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
  margin:0 0 .9rem;
}
.section-head{ max-width:680px; margin:0 auto clamp(2rem,4vw,3rem); }
.section-head.center{ text-align:center; }
.section-head h2{ font-size:clamp(1.6rem,3.2vw,2.25rem); }
.lead{ font-size:1.075rem; color:var(--muted); }
.tagline{ font-family:var(--font-slab); font-style:italic; color:var(--navy); }

/* ---------- Buttons ------------------------------------------------------ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.8rem 1.7rem;
  font-size:1rem; font-weight:600; line-height:1.2;
  border:2px solid transparent; border-radius:var(--radius);
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--navy); color:#fff; }
.btn-primary:hover{ background:var(--blue); color:#fff; }
.btn-ghost{ background:var(--blue-56); color:var(--navy); }
.btn-ghost:hover{ background:var(--blue); color:#fff; }
.btn-outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.6); }
.btn-outline:hover{ background:#fff; color:var(--navy); border-color:#fff; }
.btn-lg{ padding:1rem 2.1rem; font-size:1.075rem; }

/* ---------- Header / nav ------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--divider);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:74px; }
.logo{ display:inline-flex; align-items:center; flex:0 0 auto; }
.logo img{ height:32px; width:auto; }

.nav-toggle{
  display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; padding:9px; margin-right:-9px;
  background:none; border:0;
}
.nav-toggle span{ height:2px; width:100%; background:var(--navy); border-radius:2px; transition:transform .25s var(--ease), opacity .2s var(--ease); }
.nav-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2){ opacity:0; }
.nav-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.site-nav{ display:none; }
.site-nav ul{ list-style:none; display:flex; align-items:center; gap:.35rem; }
.site-nav a:not(.btn){
  display:block; padding:.55rem .8rem; border-radius:var(--radius);
  font-weight:600; font-size:.98rem; color:var(--navy);
}
.site-nav a:not(.btn):hover{ background:var(--blue-12); color:var(--navy); }
.site-nav a[aria-current="page"]{ background:var(--blue-24); color:var(--navy); }
.nav-cta{ margin-left:.6rem; }

@media (max-width:899.98px){
  body.nav-open{ overflow:hidden; }
  body.nav-open .site-nav{
    display:block; position:absolute; top:100%; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--divider);
    padding:1rem var(--gutter) 1.6rem; box-shadow:var(--shadow-md);
    max-height:calc(100vh - 74px); overflow-y:auto;
  }
  body.nav-open .site-nav ul{ flex-direction:column; align-items:stretch; gap:.15rem; }
  body.nav-open .site-nav a:not(.btn){ padding:.85rem .8rem; font-size:1.05rem; }
  body.nav-open .nav-cta{ margin:1rem 0 0; width:100%; }
}
@media (min-width:900px){
  .nav-toggle{ display:none; }
  .site-nav{ display:flex; align-items:center; }
}

/* ---------- Hero (home) -------------------------------------------------- */
.hero{ padding-block:clamp(2.5rem,6vw,4.5rem); }
.hero-grid{ display:grid; grid-template-columns:1fr; gap:clamp(2rem,5vw,3.5rem); align-items:center; }
.hero h1{ font-size:clamp(2.1rem,5vw,3.4rem); font-weight:800; line-height:1.12; letter-spacing:-.01em; }
.hero .intro{ font-size:1.1rem; color:var(--muted); max-width:34em; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-top:1.6rem; }
.hero-media{ position:relative; }
.hero-media img{ width:100%; border-radius:var(--radius-lg); box-shadow:var(--shadow-md); object-fit:cover; }
@media (min-width:820px){
  .hero-grid{ grid-template-columns:1.05fr .95fr; }
}

/* tagline band */
.tagline-band{ border-top:1px solid var(--divider); border-bottom:1px solid var(--divider); background:var(--blue-12); }
.tagline-band p{ margin:0; font-family:var(--font-slab); font-style:italic; font-size:clamp(1.15rem,2.4vw,1.6rem); color:var(--navy); text-align:center; }

/* ---------- Split content (image + text) -------------------------------- */
.split{ display:grid; grid-template-columns:1fr; gap:clamp(2rem,5vw,3.5rem); align-items:center; }
@media (min-width:820px){
  .split{ grid-template-columns:1fr 1fr; }
  .split.reverse .split-media{ order:2; }
}
.split-media{ display:grid; gap:1rem; }
.split-media img{ border-radius:var(--radius-card); box-shadow:var(--shadow-sm); width:100%; object-fit:cover; }
.split-media.stack{ grid-template-columns:1fr 1fr; }
.split-media.stack img:first-child{ grid-column:1 / -1; }
.split h2{ font-size:clamp(1.6rem,3.2vw,2.25rem); }

/* ---------- Feature cards ------------------------------------------------ */
.grid-3{ display:grid; gap:1.5rem; grid-template-columns:1fr; }
@media (min-width:600px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (min-width:900px){ .grid-3{ grid-template-columns:repeat(3,1fr); } }

.feature{
  background:var(--surface); border:1px solid var(--card-border); border-radius:var(--radius-card);
  overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.feature img{ width:100%; aspect-ratio:16/11; object-fit:cover; }
.feature-body{ padding:1.4rem 1.5rem 1.6rem; }
.feature h3{ font-size:1.15rem; margin-bottom:.4rem; }
.feature p{ color:var(--muted); margin:0; font-size:.97rem; }

/* ---------- Home services (numbered list + image) ----------------------- */
.svc-list{ list-style:none; display:grid; gap:.4rem; }
.svc-item{ display:grid; grid-template-columns:auto 1fr; gap:1.1rem; padding:1.4rem 0; border-top:1px solid var(--card-border); }
.svc-item:last-child{ border-bottom:1px solid var(--card-border); }
.svc-num{ font-family:var(--font-slab); font-size:1.35rem; font-weight:600; color:var(--blue); line-height:1.3; }
.svc-item h3{ font-size:1.2rem; margin-bottom:.3rem; }
.svc-item p{ color:var(--muted); margin:0; font-size:.97rem; }
.svc-aside img{ border-radius:var(--radius-card); box-shadow:var(--shadow-md); width:100%; height:100%; object-fit:cover; max-height:560px; }
@media (min-width:900px){
  .svc-split{ display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2rem,4vw,3.5rem); align-items:start; }
  .svc-aside{ position:sticky; top:96px; }
}

/* ---------- Stats -------------------------------------------------------- */
.stats{ display:grid; gap:1.5rem; grid-template-columns:1fr; text-align:center; }
@media (min-width:640px){ .stats{ grid-template-columns:repeat(3,1fr); } }
.stat-num{ font-family:var(--font-slab); font-size:clamp(2.4rem,5vw,3.2rem); font-weight:700; color:#fff; line-height:1; }
.section--navy .stat-label{ color:rgba(255,255,255,.8); }
.stat-label{ margin-top:.5rem; font-size:1rem; letter-spacing:.01em; }

/* ---------- Testimonial -------------------------------------------------- */
.testimonial{ max-width:760px; margin-inline:auto; text-align:center; }
.testimonial blockquote{ margin:0; }
.testimonial p{ font-family:var(--font-slab); font-size:clamp(1.2rem,2.6vw,1.6rem); font-style:italic; color:var(--navy); line-height:1.5; }
.testimonial figcaption{ display:flex; align-items:center; justify-content:center; gap:.85rem; margin-top:1.6rem; }
.testimonial img{ width:52px; height:52px; border-radius:50%; object-fit:cover; }
.testimonial .who{ text-align:left; font-weight:700; color:var(--navy); line-height:1.3; }
.testimonial .who span{ display:block; font-weight:400; color:var(--muted); font-size:.9rem; }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band{ text-align:center; }
.cta-band h2{ font-size:clamp(1.7rem,3.6vw,2.4rem); }
.cta-band p{ color:rgba(255,255,255,.82); max-width:44em; margin-inline:auto; }
.cta-mail{ display:inline-block; margin-top:1.2rem; font-family:var(--font-slab); font-size:clamp(1.3rem,3.4vw,2rem); font-weight:600; color:#fff; border-bottom:2px solid var(--blue); padding-bottom:.15rem; }
.cta-mail:hover{ color:var(--blue); }
.cta-actions{ margin-top:1.8rem; display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center; }

/* ---------- Page hero / breadcrumb -------------------------------------- */
.page-hero{ padding-block:clamp(2.2rem,5vw,3.4rem); }
.breadcrumb{ font-size:.85rem; color:var(--muted); margin-bottom:1rem; }
.breadcrumb ol{ list-style:none; display:flex; flex-wrap:wrap; gap:.4rem; }
.breadcrumb li::after{ content:"›"; margin-left:.4rem; color:var(--blue); }
.breadcrumb li:last-child::after{ content:""; }
.breadcrumb a{ color:var(--muted); }
.breadcrumb a:hover{ color:var(--navy); }
.page-hero h1{ font-size:clamp(2rem,4.4vw,2.9rem); font-weight:800; }
.page-hero .lead{ max-width:44em; }
.page-hero-grid{ display:grid; grid-template-columns:1fr; gap:clamp(1.8rem,4vw,3rem); align-items:center; }
.page-hero-grid img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-md); width:100%; object-fit:cover; }
@media (min-width:820px){
  .page-hero-grid{ grid-template-columns:1.1fr .9fr; }
  .page-hero-grid.narrow-media{ grid-template-columns:1.25fr .75fr; }
}

/* ---------- Doctor: stats inline, quote, tags, timeline, checklist ------ */
.mini-stats{ display:grid; gap:1.25rem; grid-template-columns:repeat(3,1fr); margin-top:1.6rem; }
.mini-stats .n{ font-family:var(--font-slab); font-size:clamp(1.8rem,4vw,2.5rem); font-weight:700; color:var(--navy); line-height:1; }
.mini-stats .l{ font-size:.9rem; color:var(--muted); margin-top:.35rem; }

.quote-block{ background:var(--tint); border-left:4px solid var(--blue); border-radius:0 var(--radius-card) var(--radius-card) 0; padding:clamp(1.6rem,4vw,2.4rem); }
.quote-block p{ font-family:var(--font-slab); font-style:italic; font-size:clamp(1.2rem,2.6vw,1.55rem); color:var(--navy); margin:0; }
.quote-block cite{ display:block; margin-top:1rem; font-style:normal; font-weight:600; color:var(--muted); }

.tag-list{ list-style:none; display:flex; flex-wrap:wrap; gap:.7rem; }
.tag-list li{ background:var(--surface); border:1px solid var(--card-border); color:var(--navy); font-weight:500; font-size:.95rem; padding:.55rem 1.1rem; border-radius:999px; box-shadow:var(--shadow-sm); }

.timeline{ list-style:none; position:relative; margin:0; padding-left:1.9rem; }
.timeline::before{ content:""; position:absolute; left:6px; top:.4rem; bottom:.4rem; width:2px; background:var(--card-border); }
.timeline li{ position:relative; padding:0 0 1.9rem; }
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{ content:""; position:absolute; left:-1.9rem; top:.35rem; width:14px; height:14px; border-radius:50%; background:var(--blue); border:3px solid #fff; box-shadow:0 0 0 2px var(--blue); }
.timeline .yr{ font-weight:700; color:var(--navy); font-size:.9rem; letter-spacing:.02em; }
.timeline h3{ font-size:1.1rem; margin:.15rem 0 .25rem; }
.timeline p{ color:var(--muted); margin:0; font-size:.96rem; }

.card-grid{ display:grid; gap:1.25rem; grid-template-columns:1fr; }
@media (min-width:640px){ .card-grid{ grid-template-columns:1fr 1fr; } }
.trainig-card,.info-card{
  background:var(--surface); border:1px solid var(--card-border); border-radius:var(--radius-card);
  padding:1.4rem 1.5rem; box-shadow:var(--shadow-sm);
}
.info-card .meta{ display:flex; flex-wrap:wrap; gap:.5rem 1rem; margin-bottom:.5rem; font-size:.82rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; }
.info-card .meta .yr{ color:var(--blue); }
.info-card .meta .loc{ color:var(--muted); }
.info-card h3{ font-size:1.08rem; margin-bottom:.3rem; }
.info-card p{ color:var(--muted); margin:0; font-size:.95rem; }

.checklist{ list-style:none; display:grid; gap:1rem; }
.checklist li{ position:relative; padding-left:2.4rem; color:var(--text); }
.checklist li::before{
  content:""; position:absolute; left:0; top:2px; width:24px; height:24px; border-radius:50%;
  background:var(--blue-24) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231B355E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Services page: category cards + filter + grid ---------------- */
.cat-card{ background:var(--surface); border:1px solid var(--card-border); border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; }
.cat-card img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.cat-card-body{ padding:1.4rem 1.5rem 1.6rem; }
.cat-card h3{ font-size:1.2rem; margin-bottom:.45rem; }
.cat-card p{ color:var(--muted); margin:0; font-size:.96rem; }

.filter-tabs{ display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; margin-bottom:2.2rem; }
.filter-tab{
  background:var(--surface); border:1px solid var(--card-border); color:var(--navy);
  font-weight:600; font-size:.92rem; padding:.55rem 1.15rem; border-radius:999px;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-tab:hover{ border-color:var(--blue); }
.filter-tab.is-active{ background:var(--navy); color:#fff; border-color:var(--navy); }
.filter-tab .count{ opacity:.6; font-weight:500; }

.svc-grid{ list-style:none; display:grid; gap:.85rem; grid-template-columns:1fr; }
@media (min-width:560px){ .svc-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:960px){ .svc-grid{ grid-template-columns:1fr 1fr 1fr; } }
.svc-chip{
  background:var(--surface); border:1px solid var(--card-border); border-radius:var(--radius); box-shadow:var(--shadow-sm);
  padding:1rem 1.15rem; font-size:.96rem; font-weight:500; color:var(--navy);
  display:flex; align-items:flex-start; gap:.65rem; line-height:1.4;
}
.svc-chip::before{ content:""; flex:0 0 auto; width:8px; height:8px; margin-top:.55rem; border-radius:50%; background:var(--blue); }
.svc-cat-label{ font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; margin-left:auto; align-self:center; }

/* ---------- Clinic: gallery + lightbox + FAQ ---------------------------- */
.gallery{ display:grid; gap:1rem; grid-template-columns:repeat(2,1fr); }
@media (min-width:640px){ .gallery{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:960px){ .gallery{ grid-template-columns:repeat(4,1fr); } }
.gallery-item{ padding:0; border:0; background:none; border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-sm); aspect-ratio:1/1; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .4s var(--ease); }
.gallery-item:hover img{ transform:scale(1.06); }

.lightbox{ position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:clamp(1rem,4vw,3rem); background:rgba(15,26,45,.92); }
body.lb-open{ overflow:hidden; }
.lightbox img{ max-width:100%; max-height:88vh; border-radius:var(--radius-card); box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{ position:absolute; top:1rem; right:1.2rem; width:46px; height:46px; font-size:1.9rem; line-height:1; color:#fff; background:rgba(255,255,255,.12); border:0; border-radius:50%; }
.lightbox-close:hover{ background:rgba(255,255,255,.25); }

.faq{ max-width:820px; margin-inline:auto; }
.faq-item{ border:1px solid var(--card-border); border-radius:var(--radius-card); background:var(--surface); margin-bottom:1rem; overflow:hidden; box-shadow:var(--shadow-sm); }
.faq-q{ width:100%; text-align:left; background:none; border:0; padding:1.15rem 1.4rem; font-size:1.05rem; font-weight:600; color:var(--navy); display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq-q .ic{ flex:0 0 auto; width:22px; height:22px; position:relative; transition:transform .25s var(--ease); }
.faq-q .ic::before,.faq-q .ic::after{ content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--blue); border-radius:2px; }
.faq-q .ic::before{ width:14px; height:2px; }
.faq-q .ic::after{ width:2px; height:14px; transition:transform .25s var(--ease); }
.faq-q[aria-expanded="true"] .ic::after{ transform:translate(-50%,-50%) scaleY(0); }
.faq-a{ padding:0 1.4rem 1.3rem; color:var(--muted); }
.faq-a p{ margin:0; }

/* ---------- Contact ------------------------------------------------------ */
.contact-hero{ text-align:center; }
.contact-mail{ display:inline-block; margin:1rem 0 .3rem; font-family:var(--font-slab); font-weight:600; font-size:clamp(1.6rem,5vw,2.8rem); color:var(--navy); border-bottom:3px solid var(--blue); padding-bottom:.15rem; word-break:break-word; }
.contact-mail:hover{ color:var(--blue); }
.contact-grid{ display:grid; grid-template-columns:1fr; gap:clamp(1.8rem,4vw,3rem); align-items:start; }
@media (min-width:820px){ .contact-grid{ grid-template-columns:1fr 1fr; } }
.contact-info{ display:grid; gap:1.4rem; }
.contact-block h3{ font-size:1rem; text-transform:uppercase; letter-spacing:.06em; color:var(--blue); margin-bottom:.35rem; }
.contact-block a,.contact-block address{ font-style:normal; color:var(--navy); font-size:1.05rem; }
.contact-photo img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-md); width:100%; object-fit:cover; }
.map-embed{ border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid var(--card-border); line-height:0; }
.map-embed iframe{ width:100%; height:320px; border:0; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer{ background:var(--blue-24); margin-top:auto; }
.footer-grid{ display:grid; gap:clamp(2rem,5vw,3rem); padding-block:clamp(2.8rem,5vw,3.5rem); grid-template-columns:1fr; }
@media (min-width:760px){ .footer-grid{ grid-template-columns:1fr 1.5fr 1fr; align-items:start; } }
.footer-h{ font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color:var(--navy); margin-bottom:1rem; }
.footer-hours{ list-style:none; display:grid; gap:.55rem; }
.footer-hours li{ display:flex; justify-content:space-between; gap:1rem; max-width:280px; color:var(--text); font-size:.97rem; border-bottom:1px dashed var(--divider); padding-bottom:.4rem; }
.footer-quote{ text-align:center; }
.footer-quote blockquote{ margin:0; }
.footer-quote p{ font-family:var(--font-slab); font-style:italic; font-size:1.2rem; color:var(--navy); line-height:1.5; margin:0 0 .6rem; }
.footer-quote cite{ font-style:normal; font-weight:600; color:var(--muted); }
.footer-contact address{ font-style:normal; display:grid; gap:.7rem; }
.footer-contact a{ color:var(--navy); font-size:.98rem; }
.footer-contact a:hover{ color:var(--blue); }
.footer-bottom{ border-top:1px solid var(--divider); }
.footer-bottom .container{ padding-block:1.3rem; }
.footer-bottom p{ margin:0; text-align:center; color:var(--muted); font-size:.87rem; }

/* ---------- Page shell (sticky footer) ---------------------------------- */
body{ display:flex; flex-direction:column; min-height:100vh; }
main{ flex:1 0 auto; }

/* ---------- Motion preferences ------------------------------------------ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
