/* =========================================================
   Beauté MKR — styles.css
   Institut de beauté · Kim Robitaille
   ========================================================= */

:root {
  --primary: #c73374;
  --primary-rgb: 199, 51, 116;
  --primary-ink: #111827;
  --primary-ink-rgb: 17, 24, 39;
  --primary-dark: #a52c62;
  --primary-dark-rgb: 165, 44, 98;
  --primary-light: #f2b3ce;
  --primary-light-rgb: 242, 179, 206;
  --secondary: #3a2a30;
  --secondary-rgb: 58, 42, 48;
  --secondary-ink: #ffffff;
  --secondary-ink-rgb: 255, 255, 255;
  --accent: #be7d90;
  --accent-rgb: 190, 125, 144;
  --accent-ink: #111827;
  --accent-ink-rgb: 17, 24, 39;
  --accent-on-light: #be7d90;
  --accent-on-light-rgb: 190, 125, 144;
  --text: #2b1e25;
  --text-rgb: 43, 30, 37;
  --text-light: #e3d0d8;
  --text-light-rgb: 227, 208, 216;
  --text-muted: #e5d3dd;
  --text-muted-rgb: 229, 211, 221;
  --background: #fdf6f8;
  --background-rgb: 253, 246, 248;
  --bg-alt: #f7e6ec;
  --bg-alt-rgb: 247, 230, 236;
  --bg-alt-ink: #111827;
  --bg-alt-ink-rgb: 17, 24, 39;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --border: #a68590;
  --border-rgb: 166, 133, 144;
  --accent-dark: #883f56;
  --accent-dark-rgb: 136, 63, 86;

  --font-body: Arial, Helvetica, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(var(--secondary-rgb), 0.06);
  --shadow-md: 0 8px 24px rgba(var(--secondary-rgb), 0.08);
  --shadow-lg: 0 24px 60px rgba(var(--secondary-rgb), 0.12);
  --shadow-inset: inset 0 -1px 0 rgba(var(--border-rgb), 0.35);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --transition: 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
  --transition-slow: 420ms cubic-bezier(0.2, 0.6, 0.2, 1);

  --container: 1220px;
  --gutter: clamp(1rem, 3vw, 2rem);

  --header-h: 120px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.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;
}
.hide-mobile { display: none; }
@media (min-width: 680px) { .hide-mobile { display: inline; } }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 1000;
  background: var(--secondary); color: var(--secondary-ink);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--secondary-ink); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(var(--background-rgb), 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.28);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(var(--secondary-rgb), 0.08);
}

/* Top bar */
.topbar {
  background: var(--secondary);
  color: var(--secondary-ink);
  font-size: 12.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 8px 0;
  min-height: 36px;
  white-space: nowrap;
}
.topbar__tagline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(var(--secondary-ink-rgb), 0.86);
}
.topbar__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}
.topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.topbar__link {
  color: rgba(var(--secondary-ink-rgb), 0.86);
  font-size: 12.5px;
}
.topbar__link:hover { color: var(--secondary-ink); }
.topbar__sep { color: rgba(var(--secondary-ink-rgb), 0.4); }
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary-ink);
  font-weight: 700;
  white-space: nowrap;
}
.topbar__phone:hover { color: var(--primary-light); }
.topbar__phone-icon { color: var(--primary-light); }
.topbar__phone-number { white-space: nowrap; }

@media (max-width: 780px) {
  .topbar__tagline { display: none; }
  .topbar__inner { justify-content: flex-end; }
}

/* Navigation row */
.nav-wrap {
  padding-block: 14px;
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--secondary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
}
.brand__initials { font-size: 15px; }
.brand__initials-accent { color: var(--primary-light); font-weight: 700; }
.brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand__name em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}
.brand__tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-top: 2px;
}

/* Primary nav */
.primary-nav {
  justify-self: center;
}
.nav-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--primary-dark); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary-dark); }

.nav-cta {
  justify-self: end;
}

/* Nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0;
  gap: 5px;
  flex-direction: column;
  background: transparent;
  color: var(--text);
}
.nav-toggle__bar {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(var(--border-rgb), 0.28);
  margin-top: 14px;
}
.mobile-nav__link {
  display: block;
  padding: 14px 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(var(--border-rgb), 0.2);
}
.mobile-nav__cta {
  display: block;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--primary);
  color: var(--secondary-ink);
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.mobile-nav__cta:hover { background: var(--primary-dark); color: var(--secondary-ink); }
.mobile-nav__phone {
  display: block;
  margin-top: 8px;
  padding: 10px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .nav-inner { grid-template-columns: 1fr auto auto; }
  .primary-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav[data-open="true"] { display: block; }
}

@media (max-width: 480px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 20px; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  line-height: 1;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--primary);
  color: var(--secondary-ink);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.28);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--secondary-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.38);
}
.btn--secondary {
  background: var(--secondary);
  color: var(--secondary-ink);
}
.btn--secondary:hover {
  background: #241a1e;
  color: var(--secondary-ink);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(var(--border-rgb), 0.55);
}
.btn--ghost:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.btn--on-dark {
  background: var(--primary);
  color: var(--secondary-ink);
}
.btn--on-dark:hover {
  background: var(--primary-light);
  color: var(--secondary);
}
.btn--large { padding: 16px 28px; font-size: 14px; }
.btn--compact { padding: 10px 18px; font-size: 12px; }
.btn--full { width: 100%; }

/* Link arrow (used inside cards and section heads) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(var(--primary-dark-rgb), 0.35);
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}
.link-arrow svg { transition: transform var(--transition); }
.link-arrow:hover {
  color: var(--primary);
  border-color: var(--primary);
  gap: 12px;
}
.link-arrow--large { font-size: 14px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(var(--primary-light-rgb), 0.5), transparent 60%),
    radial-gradient(600px 400px at -10% 30%, rgba(var(--bg-alt-rgb), 0.9), transparent 65%),
    var(--background);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.hero__eyebrow-line {
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--accent-dark);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
}
.hero__title em {
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 500;
}
.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  max-width: 34ch;
  color: rgba(var(--text-rgb), 0.85);
  margin-bottom: 32px;
}
.hero__lede strong { color: var(--text); font-weight: 700; }

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(var(--border-rgb), 0.35);
}
.hero__trust-item dt {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__trust-item dt span {
  font-size: 12px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-left: 4px;
  font-weight: 700;
}
.hero__trust-item dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(var(--text-rgb), 0.75);
}

/* Hero media collage */
.hero__media {
  position: relative;
  min-height: 460px;
  display: block;
}
.hero__figure {
  position: absolute;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.hero__figure img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.hero__figure--lead {
  top: 0; right: 4%;
  width: 58%; aspect-ratio: 4 / 5;
  z-index: 3;
  border-radius: 200px 200px 12px 12px;
}
.hero__figure--secondary {
  bottom: 8%; left: 0;
  width: 44%; aspect-ratio: 4 / 5;
  z-index: 2;
  border-radius: 12px 12px 200px 200px;
}
.hero__figure--tertiary {
  bottom: 0; right: 0;
  width: 34%; aspect-ratio: 1 / 1;
  z-index: 2;
  border-radius: 12px;
}
.hero__caption {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(var(--surface-rgb), 0.92);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__badge {
  position: absolute;
  top: 12%; left: 6%;
  z-index: 4;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.4);
  transform: rotate(-6deg);
}
.hero__badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--secondary-ink-rgb), 0.5);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
}
.hero__badge-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-top: 4px;
}
.hero__ornament {
  position: absolute;
  right: -60px; top: 40%;
  width: 200px; height: 200px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero__ornament::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--primary-rgb), 0.4);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 380px; margin-top: 20px; }
}
@media (max-width: 520px) {
  .hero__media { min-height: 320px; }
  .hero__figure--lead { width: 62%; }
  .hero__badge { width: 96px; height: 96px; }
  .hero__badge-num { font-size: 32px; }
  .hero__trust { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero__trust-item dt { font-size: 22px; }
}

/* =========================================================
   RIBBON
   ========================================================= */
.ribbon {
  background: var(--secondary);
  color: var(--secondary-ink);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(var(--primary-rgb), 0.3);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.3);
}
.ribbon__track {
  display: flex;
  gap: 40px;
  animation: ribbon-marquee 40s linear infinite;
  width: max-content;
}
.ribbon__group {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500;
  color: var(--secondary-ink);
  white-space: nowrap;
}
.ribbon__group span[aria-hidden="true"] { color: var(--primary-light); }
@keyframes ribbon-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; }
}

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.section-head--split {
  max-width: none;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
  position: relative;
  padding: 0 24px;
}
.section-head__eyebrow::before,
.section-head__eyebrow::after {
  content: "";
  position: absolute; top: 50%;
  width: 16px; height: 1px;
  background: var(--accent-dark);
}
.section-head__eyebrow::before { left: 0; }
.section-head__eyebrow::after { right: 0; }
.section-head--split .section-head__eyebrow { padding: 0; }
.section-head--split .section-head__eyebrow::before,
.section-head--split .section-head__eyebrow::after { display: none; }

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 16px;
}
.section-head__title em {
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 500;
}
.section-head__lede {
  font-size: 1rem;
  color: rgba(var(--text-rgb), 0.75);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 56ch;
}
.section-head__lede a { color: var(--primary-dark); border-bottom: 1px dotted; }
.section-head__lede a:hover { color: var(--primary); }

.section-head--dark .section-head__eyebrow {
  color: var(--primary-light);
}
.section-head--dark .section-head__eyebrow::before,
.section-head--dark .section-head__eyebrow::after {
  background: var(--primary-light);
}
.section-head--dark .section-head__title { color: var(--secondary-ink); }
.section-head--dark .section-head__title em { color: var(--primary-light); }
.section-head--dark .section-head__lede { color: rgba(var(--secondary-ink-rgb), 0.82); }
.section-head--dark .section-head__lede a { color: var(--primary-light); }
.section-head--dark .section-head__lede a:hover { color: var(--secondary-ink); }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: var(--background);
  position: relative;
}
.service-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
.service-grid.service-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 940px) {
  .service-grid.service-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .service-grid.service-grid--three { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(var(--border-rgb), 0.22);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.35);
}
.service-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(var(--secondary-rgb), 0.35) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover .service-card__media::after { opacity: 1; }
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }

.service-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
}
.service-card__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--primary-dark);
  letter-spacing: 0.1em;
  font-weight: 700;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.service-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.78);
  margin: 4px 0 8px;
}
.service-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  color: var(--accent-dark);
  padding-top: 10px;
  border-top: 1px dashed rgba(var(--border-rgb), 0.4);
  margin-bottom: 12px;
}
.service-card__meta li { padding-left: 14px; position: relative; }
.service-card__meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 1px;
  background: var(--accent-dark);
}
.service-card__body .link-arrow { align-self: flex-start; margin-top: auto; }

.services__foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 26px 32px;
  background: var(--bg-alt);
  color: var(--bg-alt-ink);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.services__foot p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: var(--bg-alt-ink);
}
.services__foot strong {
  font-style: normal;
  color: var(--primary-dark);
  font-weight: 700;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background: var(--bg-alt);
  color: var(--bg-alt-ink);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "Qui suis-je ?";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(6rem, 15vw, 14rem);
  color: rgba(var(--primary-rgb), 0.06);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about__media {
  position: relative;
  min-height: 480px;
}
.about__figure {
  position: absolute;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.about__figure--main {
  top: 0; left: 0;
  width: 74%; aspect-ratio: 4 / 5;
  border-radius: 240px 240px 12px 12px;
  z-index: 2;
}
.about__figure--overlap {
  bottom: 0; right: 0;
  width: 52%; aspect-ratio: 4 / 5;
  z-index: 3;
  border: 6px solid var(--bg-alt);
}
.about__signature {
  position: absolute;
  bottom: 12px; left: 4%;
  z-index: 4;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
.about__signature-line {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1;
}
.about__signature-sub {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-top: 2px;
}

.about__copy .section-head__eyebrow { padding: 0; text-align: left; }
.about__copy .section-head__eyebrow::before,
.about__copy .section-head__eyebrow::after { display: none; }
.about__copy .section-head__title { text-align: left; margin-bottom: 20px; color: var(--bg-alt-ink); }
.about__copy .section-head__title em { color: var(--primary-dark); }

.about__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--primary-dark);
  padding-left: 20px;
  border-left: 2px solid var(--primary);
  margin: 0 0 24px;
}
.about__body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(var(--bg-alt-ink-rgb), 0.82);
  margin-bottom: 16px;
}
.about__body strong {
  color: var(--bg-alt-ink);
  font-weight: 700;
}

.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 32px;
  padding: 22px 0;
  border-top: 1px solid rgba(var(--border-rgb), 0.4);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.4);
}
.about__pillars li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about__pillars strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: -0.005em;
}
.about__pillars span {
  font-size: 12.5px;
  color: rgba(var(--bg-alt-ink-rgb), 0.75);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 400px; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .about__media { min-height: 340px; }
  .about__pillars { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   FORMATIONS
   ========================================================= */
.formations {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background:
    radial-gradient(600px 400px at 15% 15%, rgba(var(--primary-rgb), 0.14), transparent 60%),
    radial-gradient(600px 400px at 85% 85%, rgba(var(--primary-rgb), 0.12), transparent 60%),
    var(--secondary);
  color: var(--secondary-ink);
  position: relative;
  overflow: hidden;
}

.formation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 900px) {
  .formation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .formation-grid { grid-template-columns: 1fr; }
}

.formation-card {
  background: rgba(var(--secondary-ink-rgb), 0.06);
  border: 1px solid rgba(var(--secondary-ink-rgb), 0.16);
  color: var(--secondary-ink);
  border-radius: var(--radius-md);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}
.formation-card:hover {
  transform: translateY(-3px);
  background: rgba(var(--secondary-ink-rgb), 0.09);
  border-color: rgba(var(--primary-light-rgb), 0.5);
}
.formation-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--primary-light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.formation-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--secondary-ink);
  line-height: 1.2;
  margin: 0;
}
.formation-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: rgba(var(--secondary-ink-rgb), 0.82);
  padding-top: 12px;
  border-top: 1px solid rgba(var(--secondary-ink-rgb), 0.14);
  margin-top: 4px;
}
.formation-card__list li {
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.formation-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--primary-light);
}
.formation-card--cta {
  background: var(--primary);
  color: var(--secondary-ink);
  border-color: transparent;
}
.formation-card--cta:hover {
  background: var(--primary-dark);
  border-color: transparent;
  transform: translateY(-3px);
}
.formation-card--cta .formation-card__title {
  color: var(--secondary-ink);
}
.formation-card--cta p {
  color: var(--secondary-ink);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 8px;
}

/* =========================================================
   GALLERY / FILMSTRIP
   ========================================================= */
.gallery {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  background: var(--background);
}
.film-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .film-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .film-strip { grid-template-columns: 1fr; }
}
.film-strip__item {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  position: relative;
}
@media (max-width: 480px) {
  .film-strip__item {
    aspect-ratio: 4 / 3;
  }
}
.film-strip__item img {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}
.film-strip__item:hover img { transform: scale(1.08); filter: saturate(1.1); }
.film-strip__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(var(--secondary-rgb), 0.5) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.film-strip__item:hover::after { opacity: 1; }

/* =========================================================
   BOUTIQUE TEASER
   ========================================================= */
.boutique-teaser {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--bg-alt);
  color: var(--bg-alt-ink);
  position: relative;
  overflow: hidden;
}
.boutique-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.boutique-teaser__copy .section-head__eyebrow { padding: 0; }
.boutique-teaser__copy .section-head__eyebrow::before,
.boutique-teaser__copy .section-head__eyebrow::after { display: none; }
.boutique-teaser__copy .section-head__title {
  text-align: left;
  margin: 0 0 16px;
  color: var(--bg-alt-ink);
}
.boutique-teaser__copy p {
  color: rgba(var(--bg-alt-ink-rgb), 0.78);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 46ch;
}
.boutique-teaser__figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg);
}
.boutique-teaser__figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.boutique-teaser__tags {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.boutique-teaser__tags span {
  padding: 6px 12px;
  background: rgba(var(--surface-rgb), 0.92);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 780px) {
  .boutique-teaser__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background: var(--background);
  position: relative;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__copy .section-head__eyebrow { padding: 0; }
.contact__copy .section-head__eyebrow::before,
.contact__copy .section-head__eyebrow::after { display: none; }
.contact__copy .section-head__title { text-align: left; margin-bottom: 18px; }
.contact__lede {
  color: rgba(var(--text-rgb), 0.75);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 44ch;
}
.contact__list {
  display: grid;
  gap: 16px;
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px dashed rgba(var(--border-rgb), 0.4);
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact__item-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 2px;
}
.contact__value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
a.contact__value:hover { color: var(--primary-dark); }

.contact__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--secondary);
  color: var(--secondary-ink);
  border-radius: var(--radius-md);
  transition: transform var(--transition), background var(--transition);
}
.contact__cta:hover {
  background: var(--primary-dark);
  color: var(--secondary-ink);
  transform: translateY(-2px);
}
.contact__cta-lead {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
  margin-bottom: 3px;
}
.contact__cta:hover .contact__cta-lead { color: rgba(var(--secondary-ink-rgb), 0.8); }
.contact__cta-num {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--secondary-ink);
  white-space: nowrap;
}

/* Form */
.contact__form {
  background: var(--surface);
  border: 1px solid rgba(var(--border-rgb), 0.24);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.contact__form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 6px;
}
.contact__form-sub {
  font-size: 13.5px;
  color: rgba(var(--text-rgb), 0.7);
  margin: 0 0 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-dark);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--border-rgb), 0.5);
  background: var(--background);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(var(--text-rgb), 0.4); }
.contact__form .btn { margin-top: 8px; }
.contact__form-note {
  font-size: 12px;
  color: rgba(var(--text-rgb), 0.78);
  margin: 12px 0 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--secondary);
  color: var(--secondary-ink);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.site-footer__brand .brand__mark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}
.site-footer__brand .brand__name { color: var(--secondary-ink); font-size: 26px; }
.site-footer__brand .brand__name em { color: var(--primary-light); }
.site-footer__brand .brand__tag { color: var(--primary-light); }
.brand--footer { margin-bottom: 16px; }

.site-footer__blurb {
  color: rgba(var(--secondary-ink-rgb), 0.78);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 44ch;
}
.site-footer__col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-light);
  margin: 0 0 18px;
}
.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col a {
  color: rgba(var(--secondary-ink-rgb), 0.85);
  font-size: 14.5px;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.site-footer__col a:hover {
  color: var(--secondary-ink);
  padding-left: 4px;
}
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer__contact h3 { margin-bottom: 8px; }
.site-footer__phone {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--secondary-ink) !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0 !important;
}
.site-footer__phone:hover { color: var(--primary-light) !important; padding: 0 !important; }
.site-footer__email {
  color: var(--secondary-ink) !important;
  font-size: 14px;
  padding: 0 !important;
  word-break: break-word;
}
.site-footer__note {
  color: rgba(var(--secondary-ink-rgb), 0.78);
  font-size: 13px;
  margin: 8px 0 12px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(var(--secondary-ink-rgb), 0.12);
  padding: 20px 0;
}
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(var(--secondary-ink-rgb), 0.7);
}
.site-footer__bottom-inner p { margin: 0; }
.site-footer__thanks {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary-light);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FLOATING CALL
   ========================================================= */
.floating-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--primary);
  color: var(--secondary-ink);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}
.floating-call:hover { background: var(--primary-dark); color: var(--secondary-ink); }
@media (max-width: 720px) {
  .floating-call { display: inline-flex; }
}

/* =========================================================
   A11Y CONTRAST OVERRIDES
   ========================================================= */
/* Footer brand text must render on the dark footer surface */
.site-footer .brand--footer,
.site-footer .brand--footer .brand__text,
.site-footer .brand--footer .brand__name {
  color: var(--secondary-ink);
}
.site-footer__brand .brand__tag { color: var(--primary-light); }

/* Ensure buttons keep full-strength ink even when nested inside footer link rules */
.site-footer .btn,
.site-footer .btn.btn--primary,
.site-footer .btn.btn--on-dark {
  color: var(--secondary-ink);
}
.site-footer .btn:hover { color: var(--secondary-ink); }

/* Service-card media re-enabled: assets are real service photography.
   Constrain the media height so smaller source images don't get overstretched. */
.service-card__media {
  aspect-ratio: auto;
  height: clamp(180px, 22vw, 260px);
  background: var(--bg-alt);
}
.service-card__media img {
  object-position: center;
}

/* Slightly deeper focus color for hero eyebrow line to match darker accent */
.hero__eyebrow-line { background: var(--accent-dark); }

/* =========================================================
   VIDEO CONTAINER (utility)
   ========================================================= */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* betterly-css-safety-net:start */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img, .hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-header {
  width: 100%;
  max-width: 100%;
}

.primary-nav {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.5rem, 1.5vw, 1rem);
  align-items: center;
  justify-content: flex-end;
}

.nav-list {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.45rem, 1.25vw, .9rem);
  align-items: center;
  justify-content: flex-end;
}

.nav-cta {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 900px) {
  .primary-nav, .main-nav, .nav-list {
    justify-content: flex-start;
  }
  body:has(.nav-toggle) .primary-nav:not(.is-open),
  body:has(.nav-toggle) .main-nav:not(.is-open) {
    display: none;
  }
  body:has(.nav-toggle) .primary-nav.is-open,
  body:has(.nav-toggle) .main-nav.is-open {
    display: flex;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  align-items: stretch;
}

.service-card {
  background: var(--surface, #fff);
  border: 1px solid rgba(var(--border-rgb), 0.28);
  border-radius: var(--radius-md, 12px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  overflow: hidden;
}

@media (max-width: 760px) {
  .intro-grid,
  .founder-grid,
  .visit-grid,
  .feature-grid,
  .trust-grid,
  .value-grid,
  .value__grid,
  .program-grid,
  .pillar-grid,
  .link-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .value__list,
  .values-list,
  .trust-list,
  .checklist,
  .bullets {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    display: grid;
  }
  .cta-banner-inner {
    display: grid;
  }
}
/* betterly-css-safety-net:end */

/* =========================================================
   SERVICE CARD — iconographic head (replaces stretched photos)
   ========================================================= */
.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(var(--bg-alt-rgb), 0.55) 100%);
  border-bottom: 1px solid rgba(var(--border-rgb), 0.22);
  position: relative;
}
.service-card__head::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--primary-dark-rgb), 0.4), rgba(var(--primary-dark-rgb), 0));
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid rgba(var(--primary-dark-rgb), 0.18);
  box-shadow: 0 4px 14px rgba(var(--secondary-rgb), 0.06);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition), border-color var(--transition);
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.service-card:hover .service-card__icon {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: scale(1.04);
}
.service-card__head .service-card__index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 0;
}
.service-card__body {
  padding: 22px 26px 26px;
}
