/* ==========================================================================
   Health Vital Fitness — Main Stylesheet
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --brand: #0e8a86;
  --brand-600: #0b6e6b;
  --brand-700: #085653;
  --brand-900: #06413f;
  --brand-50: #e8f6f5;
  --blue: #1b6ca8;
  --ink: #0d2b34;
  --ink-soft: #22454f;
  --muted: #5d757c;
  --line: #dce9e8;
  --soft: #f2fbfa;
  --soft-2: #f7fbfb;
  --white: #ffffff;
  --coral: #f2762e;
  --shadow-sm: 0 2px 10px rgba(13, 43, 52, .06);
  --shadow: 0 12px 34px rgba(13, 43, 52, .10);
  --shadow-lg: 0 24px 60px rgba(13, 43, 52, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --wrap: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.06rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25rem; }
li { margin-bottom: .5em; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: inherit; font-weight: 650; font-size: .96rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-align: center; transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(14, 138, 134, .28); }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(14, 138, 134, .32); }
.btn-outline { border-color: var(--brand); color: var(--brand-700); background: transparent; }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-700); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #06181d; color: #fff; transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 4. Top bar ---------- */
.topbar {
  background: var(--brand-900); color: rgba(255, 255, 255, .88);
  font-size: .87rem; padding: 9px 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; justify-content: space-between; }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topbar-list li { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar-list svg { flex: none; }

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--blue) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 18px rgba(14, 138, 134, .25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; color: var(--ink); }
.logo-tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: 10px;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Sections & headings ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--soft { background: var(--soft); }
.section--soft-2 { background: var(--soft-2); }
.section--tint { background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%); }
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 4vw, 56px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-head--left .eyebrow { margin-left: 0; }
.eyebrow--light { background: rgba(255, 255, 255, .14); color: #fff; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 7. Grid helpers ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f3fbfa 0%, #eaf4fb 60%, #fdf6f2 100%);
  padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
}
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(14, 138, 134, .16), transparent 65%); border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -220px;
  background: radial-gradient(circle, rgba(27, 108, 168, .14), transparent 65%); border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--brand); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-badges svg { color: var(--brand); flex: none; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-card {
  position: absolute; bottom: -26px; left: -22px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 290px;
}
.hero-card-icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--brand-50);
  color: var(--brand); display: grid; place-items: center;
}
.hero-card b { display: block; color: var(--ink); font-size: .95rem; }
.hero-card span { font-size: .84rem; color: var(--muted); }

/* ---------- 9. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; height: 100%; transition: all .28s var(--ease);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 18px;
}
.icon-badge--blue { background: #e8f1f9; color: var(--blue); }
.icon-badge--coral { background: #fdeee4; color: var(--coral); }
.card-link { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.card-link svg { transition: transform .25s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- 10. Service cards ---------- */
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .3s var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--brand-50); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.07); }
.service-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .95);
  color: var(--brand-700); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.service-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.14rem; margin-bottom: .5em; }
.service-body p { color: var(--muted); font-size: .95rem; }
.service-list { list-style: none; margin: 0 0 18px; padding: 0; }
.service-list li { display: flex; gap: 9px; font-size: .9rem; color: var(--muted); margin-bottom: 7px; }
.service-list svg { flex: none; margin-top: 4px; color: var(--brand); }
.service-body .card-link { margin-top: auto; }

/* ---------- 11. Feature / checklist ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.check-list .tick {
  width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; margin-top: 3px;
}
.check-list b { display: block; color: var(--ink); }
.check-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 12. Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; }
.step-num {
  width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--blue));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(14, 138, 134, .22);
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }

/* ---------- 13. Testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; height: 100%; }
.quote-mark { color: var(--brand); opacity: .28; margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 22px; color: var(--ink-soft); font-size: 1.02rem; font-style: italic; }
.testimonial figcaption { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff; font-weight: 800;
}
.testimonial figcaption b { display: block; color: var(--ink); }
.testimonial figcaption span { font-size: .86rem; color: var(--muted); }

/* ---------- 14. Blog / post cards ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: all .3s var(--ease); }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post-media { aspect-ratio: 16/10; overflow: hidden; background: var(--brand-50); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-body h3 { font-size: 1.14rem; margin-bottom: .5em; }
.post-body h3 a { color: inherit; }
.post-body h3 a:hover { color: var(--brand-700); }
.post-body p { color: var(--muted); font-size: .95rem; }
.post-body .card-link { margin-top: auto; }

.article { max-width: 800px; margin: 0 auto; }
.article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow); }
.article-hero img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article ul li, .article ol li { color: var(--muted); }
.article-lead { font-size: 1.14rem; color: var(--ink-soft); }
.article-box { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; margin: 28px 0; }
.article-box h3, .article-box h4 { margin-top: 0; }
.article-box p:last-child { margin-bottom: 0; }
.article-share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }

/* ---------- 15. CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-600) 55%, var(--blue) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; bottom: -180px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); border-radius: 50%;
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .86); }
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- 16. Newsletter split ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.newsletter-media { position: relative; min-height: 340px; }
.newsletter-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.newsletter-body { padding: clamp(30px, 4vw, 48px); }
.newsletter-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* ---------- 17. Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 650; font-size: .92rem; color: var(--ink); }
.field label .req { color: var(--coral); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--soft-2);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bcd6d4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 138, 134, .12);
}
.field .hint { font-size: .82rem; color: var(--muted); }
.field .error-msg { font-size: .83rem; color: #c0392b; font-weight: 600; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d9534f; background: #fff7f7; }
.field.has-error .error-msg { display: block; }
.field.has-error .hint { display: none; }

.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row input[type="checkbox"] {
  width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer;
}
.check-row label { font-size: .92rem; color: var(--muted); font-weight: 500; cursor: pointer; }
.check-row label a { text-decoration: underline; }

.alert { border-radius: var(--radius-sm); padding: 16px 20px; font-size: .94rem; display: none; align-items: flex-start; gap: 12px; }
.alert.is-visible { display: flex; }
.alert-success { background: #e7f7ee; border: 1px solid #b6e3c8; color: #1c6b41; }
.alert-error { background: #fdeceb; border: 1px solid #f5c2be; color: #a32b23; }
.alert svg { flex: none; margin-top: 3px; }
.alert ul { margin: 6px 0 0; padding-left: 1.1rem; }

/* ---------- 18. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-600) 60%, var(--blue) 100%);
  padding: clamp(48px, 6vw, 84px) 0;
}
.page-hero::after {
  content: ""; position: absolute; right: -100px; top: -140px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); border-radius: 50%;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; max-width: 46em; margin-bottom: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .87rem; margin-bottom: 18px; color: rgba(255, 255, 255, .8); }
.breadcrumb a { color: rgba(255, 255, 255, .88); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { opacity: .6; }

/* ---------- 19. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-item .icon-badge { width: 50px; height: 50px; margin: 0; flex: none; }
.contact-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--muted); font-size: .94rem; }
.contact-item a { font-weight: 650; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; font-size: .94rem; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:first-child { color: var(--ink); font-weight: 650; }
.hours-list span:last-child { color: var(--muted); }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map-box img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.map-overlay {
  position: absolute; left: 20px; bottom: 20px; right: 20px; background: rgba(255, 255, 255, .96);
  border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.map-overlay p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- 20. Legal / prose ---------- */
.legal { max-width: 900px; margin: 0 auto; }
.legal h2 { margin-top: 2.2em; font-size: 1.4rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin-bottom: 1.4em; }
.legal-meta { font-size: .88rem; color: var(--muted); background: var(--soft); border-radius: var(--radius-sm); padding: 16px 20px; }
.toc { background: var(--soft); border-radius: var(--radius); padding: 24px 28px; }
.toc h2 { margin-top: 0; font-size: 1.1rem; }
.toc ol { margin-bottom: 0; }
.toc a { font-weight: 600; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: clamp(48px, 6vw, 78px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer p { font-size: .94rem; }
.footer-about .logo { margin-bottom: 18px; }
.footer-about .logo-name { color: #fff; }
.footer-about .logo-tag { color: #6fd8d3; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255, 255, 255, .72); font-size: .94rem; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .93rem; }
.footer-contact svg { flex: none; margin-top: 4px; color: #6fd8d3; }
.footer-contact a { color: rgba(255, 255, 255, .8); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: .88rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s var(--ease), transform .2s var(--ease);
}
.social-row a:hover { background: var(--brand); transform: translateY(-3px); }

/* ---------- 22. Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 110;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-700); }

/* ---------- 23. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 13px 14px; border-radius: 10px; }
  .nav-link::after { display: none; }
  .nav .btn { margin-top: 10px; }
  .header-actions .btn { display: none; }
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-card { left: 0; bottom: -18px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-media { min-height: 240px; position: relative; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .steps, .form-grid-2, .article-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar-list { justify-content: center; }
  .hero-badges li { font-size: .82rem; }
  .map-overlay { position: static; border-radius: 0; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom ul { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 25. Stylised map (no external map tile dependency) ---------- */
.map-canvas {
  position: relative; display: grid; place-items: center; gap: 10px;
  aspect-ratio: 16/9; min-height: 300px; text-align: center;
  background-color: #eaf4f3;
  background-image:
    linear-gradient(rgba(14, 138, 134, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 138, 134, .10) 1px, transparent 1px),
    linear-gradient(135deg, rgba(27, 108, 168, .07) 0%, rgba(14, 138, 134, .07) 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.map-canvas::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, .55) 47%, rgba(255, 255, 255, .55) 53%, transparent 54%);
}
.map-pin {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--brand);
  box-shadow: 0 12px 26px rgba(14, 138, 134, .38);
  animation: pinPulse 2.6s var(--ease) infinite;
}
.map-label {
  position: relative; font-size: .9rem; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, .9); padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); line-height: 1.45;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 12px 26px rgba(14, 138, 134, .38), 0 0 0 0 rgba(14, 138, 134, .35); }
  70% { box-shadow: 0 12px 26px rgba(14, 138, 134, .38), 0 0 0 18px rgba(14, 138, 134, 0); }
}
