/* ==========================================================================
   Dr. Mohamad Khalaily — Esthetic & Implant Dentistry
   Design tokens derived from the MK logo. RTL-first, logical properties only.
   ========================================================================== */

/* ---- Fonts (self-hosted, no CDN) ---- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/PlexLatin-400.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/PlexArabic-300.woff2") format("woff2");
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/PlexArabic-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/PlexArabic-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/PlexArabic-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../assets/fonts/PlexHebrew-300.woff2") format("woff2");
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../assets/fonts/PlexHebrew-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../assets/fonts/PlexHebrew-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../assets/fonts/PlexHebrew-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --primary:      #3C4A54;
  --primary-dark: #2E3A42;
  --accent:       #C6A579;
  --accent-dark:  #A9834F; /* AA-safe on white for small text */
  --bg:           #FFFFFF;
  --surface:      #F7F5F2;
  --text-heading: #3C4A54;
  --text-body:    #5A666F;
  --border:       #E5E1DA;
  --whatsapp:     #128C51;

  /* Latin first: it has no Hebrew/Arabic glyphs, so each script falls
     through to its own Plex file automatically. */
  --font: "IBM Plex Sans", "IBM Plex Sans Hebrew", "IBM Plex Sans Arabic",
          "Segoe UI", system-ui, sans-serif;

  --h1: clamp(2.1rem, 5vw, 3.6rem);
  --h2: clamp(1.55rem, 3.2vw, 2.25rem);
  --body-size: 1.0625rem;

  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --shadow: 0 2px 8px rgb(60 74 84 / 0.07);
  --shadow-lift: 0 8px 8px -4px rgb(60 74 84 / 0.08), 0 1px 4px rgb(60 74 84 / 0.06);
  --container: 1200px;
  --header-h: 4.75rem;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: 1.75;
  color: var(--text-body);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--text-heading); line-height: 1.3; margin-block: 0 0.5em; }
h1, h2 { font-weight: 300; letter-spacing: 0; }
h1 strong, h2 strong { font-weight: 600; }
/* small gold eyebrow label above section titles */
.eyebrow {
  display: block; color: var(--accent-dark); font-weight: 600;
  font-size: 0.9rem; margin-block-end: 0.6rem;
}
p { margin-block: 0 1em; }
a { color: var(--accent-dark); }
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; inset-block-start: -100%; inset-inline-start: 1rem;
  background: var(--primary); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 200;
}
.skip-link:focus { inset-block-start: 0; }

/* Latin-style tracked headings only when the page is in English;
   Arabic & Hebrew scripts must never be letter-spaced. */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] .btn,
html[lang="en"] .nav a {
  letter-spacing: 0.06em;
}
html[lang="en"] h1, html[lang="en"] h2 { text-transform: uppercase; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-whatsapp:hover { background: #0c6b3d; }
.btn svg { flex: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-weight: 700; color: var(--primary); font-size: 1rem; line-height: 1.2; }
.brand-sub { display: block; font-weight: 400; font-size: 0.72rem; color: var(--text-body); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding-block: 0.4rem; border-block-end: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { border-block-end-color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.header-phone {
  color: var(--primary); text-decoration: none; font-weight: 600;
  direction: ltr; unicode-bidi: isolate; white-space: nowrap;
}
.header-phone:hover { color: var(--accent-dark); }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 0.35rem 0.7rem;
  font: 600 0.85rem var(--font); color: var(--text-body); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none; border: 0; background: none; cursor: pointer;
  padding: 0.5rem; margin-inline-start: auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--primary); position: relative; content: "";
  transition: transform 0.2s;
}
.nav-toggle span::before { position: absolute; inset-block-start: -7px; }
.nav-toggle span::after { position: absolute; inset-block-start: 7px; }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    background: var(--bg); border-block-end: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem; display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0.2rem; }
  .nav a { display: block; padding: 0.7rem 0.2rem; font-size: 1.05rem; }
  .header-phone { display: none; }
  .brand-name .brand-sub { display: none; }
}
@media (max-width: 639px) {
  .header-cta .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { display: none; } /* logo only — the full name is 1cm away in the hero */
}

/* ---- Sections ---- */
.section { padding-block: var(--section-pad); }
.section-surface { background: var(--surface); }
.section-head { text-align: center; max-width: 46rem; margin-inline: auto; margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.section-title { font-size: var(--h2); font-weight: 700; margin-block-end: 0.9rem; }
/* the smile-curve underline */
.section-title::after {
  content: ""; display: block; width: 96px; height: 18px;
  margin: 0.55rem auto 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 18"><path d="M6 4 Q48 22 90 4" fill="none" stroke="%23C6A579" stroke-width="5" stroke-linecap="round"/></svg>') center / contain no-repeat;
}
.section-lede { margin-inline: auto; }

/* full-width smile divider between sections */
.smile-divider { display: block; width: 100%; height: clamp(34px, 6vw, 70px); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(1100px 480px at 85% -10%, rgb(198 165 121 / 0.10), transparent 65%),
    var(--bg);
}
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr; text-align: center;
}
.hero-eyebrow {
  color: var(--accent-dark); font-weight: 600; font-size: 1rem;
  margin-block-end: 1rem;
}
.hero h1 { font-size: var(--h1); line-height: 1.18; max-width: 18ch; margin-inline: auto; }
.hero-sub { max-width: 40rem; margin-inline: auto; font-size: 1.16rem; margin-block-start: 1.1rem; }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-block-start: 2rem; }
/* Doctor cutout standing in front of a slate arch; his head rises above it */
.hero-photo { position: relative; max-width: 360px; margin-inline: auto; }
.hero-photo::before {
  /* the arch — starts below the head so the portrait rises out of it */
  content: ""; position: absolute; inset-inline: 0; inset-block: 24% 0;
  background: linear-gradient(165deg, #56676F 0%, var(--primary) 55%, var(--primary-dark) 100%);
  border-radius: 300px 300px var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
}
.hero-photo::after {
  /* gold arc echoing the logo's smile, tucked behind the arch */
  content: ""; position: absolute; inset-inline-start: -9%; inset-block-end: -5%;
  width: 60%; height: 24%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 70"><path d="M12 12 Q100 82 188 12" fill="none" stroke="%23C6A579" stroke-width="9" stroke-linecap="round"/></svg>') center / contain no-repeat;
  z-index: -1; opacity: 0.9;
}
.hero-photo img {
  position: relative; z-index: 1;
  width: 86%; display: block; margin-inline: auto;
  filter: drop-shadow(0 12px 18px rgb(46 58 66 / 0.28));
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 6fr 5fr; text-align: start; }
  .hero h1, .hero-sub { margin-inline: 0; }
  .hero-ctas { justify-content: flex-start; }
  .hero-photo { max-width: 430px; }
}

/* ---- Affiliations strip (TAU / Clalit) ---- */
.affiliations {
  border-block: 1px solid var(--border);
  background: var(--bg);
  padding-block: 1.4rem;
}
.aff-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.2rem clamp(2rem, 6vw, 5rem);
}
.aff-item { display: flex; align-items: center; gap: 0.9rem; }
.aff-item img {
  height: 46px; width: auto; flex: none;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.25s;
}
.aff-item:hover img { filter: none; }
.aff-item span { font-size: 0.95rem; color: var(--text-body); max-width: 24ch; line-height: 1.45; }

/* ---- Services ---- */
.cards-grid {
  display: grid; gap: 1.3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--bg); border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 1.13rem; font-weight: 600; margin-block: 1.1rem 0.45rem; }
.card p { margin: 0; font-size: 0.96rem; }
.card .icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); color: var(--accent-dark);
  border: 1px solid var(--border);
}

/* ---- Why us ---- */
.why-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { text-align: center; padding: 1rem; }
.why-item .icon {
  width: 64px; height: 64px; margin-inline: auto; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); color: var(--primary);
  box-shadow: var(--shadow);
}
.why-item h3 { font-size: 1.1rem; margin-block: 0.9rem 0.3rem; }
.why-item p { font-size: 0.95rem; margin: 0; }

/* ---- Before / after ---- */
.cases-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
.case { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case h3 { font-size: 1.02rem; margin: 0; padding: 0.9rem 1.2rem 0.2rem; }
.case p { font-size: 0.9rem; padding: 0 1.2rem 1rem; margin: 0; }
.ba-slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; touch-action: pan-y; }
.ba-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
/* the AFTER image sits on top and gets clipped from one side */
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute; inset-block: 0; width: 3px; background: #fff;
  inset-inline-start: 50%; transform: translateX(-50%);
  box-shadow: 0 0 6px rgb(0 0 0 / 0.35); pointer-events: none;
}
.ba-handle::after {
  content: "⇄"; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary);
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-tag {
  position: absolute; inset-block-start: 0.7rem; padding: 0.15rem 0.7rem;
  background: rgb(60 74 84 / 0.82); color: #fff; font-size: 0.8rem; border-radius: 999px;
  pointer-events: none;
}
.ba-tag-before { inset-inline-start: 0.7rem; }
.ba-tag-after { inset-inline-end: 0.7rem; }

/* ---- About ---- */
.about-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 2fr 3fr; } }
.about-photo {
  position: relative;
  max-inline-size: 400px; margin-inline: auto;
  padding-block-start: 2rem;
}
.about-photo::before {
  /* warm surface block the cutout stands in front of */
  content: ""; position: absolute; inset-inline: 0; inset-block: 14% 0;
  background: linear-gradient(170deg, #EFEAE2, var(--surface) 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-photo::after {
  /* offset gold frame behind the block */
  content: ""; position: absolute; inset-inline: 0; inset-block: 14% 0;
  transform: translate(var(--frame-x, -14px), 14px);
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  z-index: -1;
}
html[dir="ltr"] .about-photo::after { --frame-x: 14px; }
.about-photo img {
  position: relative; z-index: 1;
  width: 86%; display: block; margin-inline: auto;
  filter: drop-shadow(0 10px 14px rgb(46 58 66 / 0.22));
}
@media (min-width: 1024px) { .about-photo { max-inline-size: 440px; } }
.about h2 { font-size: var(--h2); }
.about h2::after {
  content: ""; display: block; width: 96px; height: 18px; margin-block-start: 0.55rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 18"><path d="M6 4 Q48 22 90 4" fill="none" stroke="%23C6A579" stroke-width="5" stroke-linecap="round"/></svg>') center / contain no-repeat;
}
.creds { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.55rem; }
.creds li { display: flex; gap: 0.6rem; align-items: baseline; }
.creds li::before { content: "✓"; color: var(--accent-dark); font-weight: 700; flex: none; }

/* ---- Clinic gallery ---- */
.clinic-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
.clinic-photo {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.clinic-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.clinic-photo:hover img { transform: scale(1.04); }
@media (min-width: 640px) {
  .clinic-grid { grid-template-columns: 1fr 1fr; }
  .clinic-photo-tall { grid-row: span 2; }
}
@media (min-width: 1024px) {
  .clinic-grid { grid-template-columns: 1fr 0.9fr 1fr; align-items: stretch; }
  .clinic-photo-tall { grid-row: auto; }
  .clinic-photo { max-height: 460px; }
}

/* ---- Rating badge (MedReviews) ---- */
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-block-start: 0.4rem; padding: 0.45rem 1.1rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--text-heading); font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow);
}
.rating-badge .stars { color: var(--accent-dark); letter-spacing: 2px; }
.rating-badge:hover { border-color: var(--accent-dark); }

/* ---- Testimonials ---- */
.carousel { position: relative; max-width: 46rem; margin-inline: auto; }
.carousel-track { overflow: hidden; }
.testimonial {
  display: none; text-align: center; padding: 1rem 1.5rem;
}
.testimonial.active { display: block; }
.testimonial blockquote {
  margin: 0; font-size: 1.32rem; color: var(--text-heading); font-weight: 300; line-height: 1.65;
}
.testimonial blockquote::before { content: "”"; display: block; font-size: 3rem; line-height: 0.5; color: var(--accent); margin-block-end: 0.8rem; }
.testimonial cite { display: block; margin-block-start: 1rem; font-style: normal; font-weight: 600; color: var(--accent-dark); font-size: 0.95rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.55rem; margin-block-start: 1.4rem; }
.carousel-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0;
  background: var(--border); cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: var(--accent-dark); }

/* ---- FAQ ---- */
.faq-list { max-width: 46rem; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; color: var(--text-heading);
  padding: 1.05rem 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent-dark); font-size: 1.4rem; line-height: 1; flex: none; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 1.3rem 1.1rem; margin: 0; }

/* ---- Contact / booking ---- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.booking-form {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow);
  display: grid; gap: 1rem;
}
.booking-form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .booking-form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--text-heading); font-size: 0.95rem; }
.field input, .field select {
  font: 1rem var(--font); color: var(--text-heading);
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg);
  width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--accent-dark); outline: none; }
.field input[type="tel"] { direction: ltr; text-align: start; }
.form-note { font-size: 0.85rem; margin: 0; }
.contact-info h3 { font-size: 1.05rem; margin-block: 1.4rem 0.4rem; }
.contact-info h3:first-child { margin-block-start: 0; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 24rem; }
.hours-table td { padding: 0.35rem 0; border-block-end: 1px dashed var(--border); font-size: 0.97rem; }
.hours-table td:last-child { text-align: end; direction: ltr; unicode-bidi: isolate; }
.map-wrap { margin-block-start: 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---- Team ---- */
.team-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  max-width: 850px; margin-inline: auto;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.team-card { text-align: center; }
.team-photo { position: relative; max-width: 280px; margin-inline: auto; }
.team-photo::before {
  /* arch behind the cutout, echoing the hero */
  content: ""; position: absolute; inset-inline: 5%; inset-block: 24% 0;
  background: linear-gradient(165deg, #56676F 0%, var(--primary) 55%, var(--primary-dark) 100%);
  border-radius: 300px 300px var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
}
.team-card-alt .team-photo::before {
  background: linear-gradient(165deg, #DCCBAC 0%, var(--accent) 55%, var(--accent-dark) 100%);
}
.team-photo img {
  position: relative; z-index: 1;
  width: 84%; display: block; margin-inline: auto;
  filter: drop-shadow(0 10px 14px rgb(46 58 66 / 0.26));
}
.team-card h3 { font-size: 1.25rem; font-weight: 600; margin-block: 1.3rem 0.15rem; }
.team-role { color: var(--accent-dark); font-weight: 600; font-size: 0.95rem; margin-block-end: 0.35rem; }
.team-desc { font-size: 0.95rem; max-width: 30ch; margin-inline: auto; }

/* ---- Footer ---- */
.site-footer { background: var(--primary-dark); color: #cfd6db; padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-block-end: 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: #cfd6db; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { width: 64px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand p { font-size: 0.92rem; margin-block-start: 0.8rem; }
.social-links { display: flex; gap: 0.8rem; }
.social-links a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / 0.25); border-radius: 50%;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
/* same icon row, but on the light contact panel */
.social-links-contact a { border-color: var(--border); color: var(--primary); }
.social-links-contact a:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.footer-credit {
  margin-block-start: 2.5rem; padding-block-start: 1.2rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem; text-align: center;
}

/* ==========================================================================
   Motion
   ========================================================================== */

/* --- Scroll-reveal: elements start hidden, .in fades them up.
       --d is a per-item stagger delay set from JS. --- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* --- Hero entrance (page load) --- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-eyebrow { animation: rise-in 0.7s 0.05s ease both; }
.hero h1      { animation: rise-in 0.7s 0.15s ease both; }
.hero-sub     { animation: rise-in 0.7s 0.30s ease both; }
.hero-ctas    { animation: rise-in 0.7s 0.45s ease both; }
.hero-photo   { animation: rise-in 0.9s 0.25s ease both; }

/* gentle idle float on the portrait */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero-photo img { animation: floaty 7s 1.6s ease-in-out infinite; }

/* --- Smile dividers draw themselves when scrolled into view --- */
.smile-divider path {
  stroke-dasharray: 100 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s ease 0.1s;
}
.smile-divider.in path { stroke-dashoffset: 0; }

/* --- Header gains depth once the page scrolls --- */
.site-header { transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 4px 8px rgb(60 74 84 / 0.09); }

/* --- Micro-interactions --- */
.card .icon { transition: transform 0.3s ease, background 0.3s; }
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: var(--bg); }
.why-item .icon { transition: transform 0.3s ease; }
.why-item:hover .icon { transform: translateY(-4px); }
.nav a { transition: border-color 0.25s, color 0.25s; }
.social-links a { transition: border-color 0.25s, color 0.25s, transform 0.25s; }
.social-links a:hover { transform: translateY(-3px); }

/* testimonial slides fade in when switched */
@keyframes fade-quote {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.testimonial.active { animation: fade-quote 0.55s ease both; }

/* FAQ answers ease in on open */
.faq-list details[open] p { animation: fade-quote 0.4s ease both; }
.faq-list summary::after { transition: transform 0.3s ease; }
.faq-list details[open] summary::after { transform: rotate(180deg); }

/* --- Reduced motion: everything appears instantly --- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow, .hero h1, .hero-sub, .hero-ctas, .hero-photo,
  .hero-photo img, .testimonial.active, .faq-list details[open] p { animation: none; }
  .smile-divider path { stroke-dashoffset: 0; transition: none; }
}
