/* ==========================================================================
   De Santi Dental — v1 stylesheet
   Brand palette: royal/azure blue + white. Green lives only in the logo.
   ========================================================================== */

:root {
  /* Brand */
  --brand-blue:        #1226C7;   /* royal blue from logo */
  --brand-blue-dark:   #141A55;   /* deep navy — headings */
  --brand-accent:      #2F6BFF;   /* bright azure accent (replaces green) */
  --brand-accent-bright:#5B8DEF;   /* light azure accent */
  --brand-accent-dark: #1B4FD8;

  /* Neutrals */
  --ink:       #1A2233;
  --muted:     #586074;
  --line:      #E3E8F0;
  --bg:        #FFFFFF;
  --bg-soft:   #F4F7FC;
  --bg-sky:    #EAF1FE;
  --bg-navy:   #101636;

  /* System */
  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 3px rgba(20,26,85,.06), 0 1px 2px rgba(20,26,85,.04);
  --shadow-md:   0 8px 24px rgba(20,26,85,.10);
  --shadow-lg:   0 20px 50px rgba(20,26,85,.16);
  --maxw:        1160px;
  --gutter:      clamp(18px, 4vw, 40px);
  --header-h:    76px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Reset-ish -------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--brand-blue-dark); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

/* Layout helpers --------------------------------------------------------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--mint { background: var(--bg-sky); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-accent); margin-bottom: .6em;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.text-center { text-align: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: #0d1ea6; }
.btn--green { background: var(--brand-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--green:hover { background: var(--brand-accent-dark); }
.btn--ghost { background: #fff; color: var(--brand-blue-dark); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-blue); }
/* WhatsApp keeps its signature green by design */
.btn--whatsapp { background: #25D366; color: #063d1c; }
.btn--whatsapp:hover { background: #1eb658; color: #fff; }
.btn--lg { padding: .95em 1.9em; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ========================================================================
   Header / nav
   ======================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo img { height: 42px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  position: relative; display: block; padding: .5em .85em; border-radius: 8px;
  color: var(--brand-blue-dark); font-weight: 600; font-size: .95rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .3em; height: 2px;
  background: var(--brand-accent); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; transition: transform .2s ease;
}
.nav__links a:hover { text-decoration: none; color: var(--brand-blue); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: .75rem; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--brand-blue-dark);
  position: relative; transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ========================================================================
   Home / hero
   ======================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(47,107,255,.12), transparent 55%),
    linear-gradient(180deg, #F4F7FC 0%, #FFFFFF 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 56px);
  align-items: center; padding: clamp(40px, 7vw, 84px) 0;
}
.hero__eyebrow { color: var(--brand-accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-top: .25em; }
.hero h1 span { color: var(--brand-accent); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__trust { display: flex; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-size: 1.5rem; color: var(--brand-blue-dark); }
.hero__trust small { color: var(--muted); }
.hero__art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

/* Media frame / placeholder note reused across the site */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-sky); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  background: rgba(16,22,54,.72); color: #fff; padding: .3em .6em; border-radius: 6px;
}

/* ========================================================================
   About
   ======================================================================== */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about__art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.mission { border-left: 4px solid var(--brand-accent); padding-left: 1.1rem; color: var(--ink); font-size: 1.08rem; }
.badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.badge {
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: .9rem; color: var(--brand-blue-dark);
}
.badge svg { width: 26px; height: 26px; flex: none; }

/* ========================================================================
   Team
   ======================================================================== */
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 4vw, 34px); max-width: 820px; margin-inline: auto; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member__photo { aspect-ratio: 4/3; }
.member__body { padding: 1.2rem 1.3rem 1.4rem; }
.member__body h3 { margin-bottom: .1em; font-size: 1.2rem; }
.member__role { color: var(--brand-accent); font-weight: 700; font-size: .9rem; margin-bottom: .6em; }
.member__body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ========================================================================
   Services
   ======================================================================== */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 3vw, 28px); }
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-sky); color: var(--brand-accent); margin-bottom: 1rem;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.service-card__link { font-weight: 700; color: var(--brand-blue); display: inline-flex; align-items: center; gap: .4em; margin-top: .6rem; }
.service-card__link:hover { text-decoration: none; gap: .7em; }
.service-card--emergency { background: linear-gradient(160deg, #FFF4F4, #fff); border-color: #F6D6D6; }
.service-card--emergency .service-card__icon { background: #FDE7E7; color: #D63333; }

/* ========================================================================
   Gallery
   ======================================================================== */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 3vw, 26px); }
.ba { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--line); }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba__pair figure { margin: 0; position: relative; }
.ba__pair img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ba__pair figcaption {
  position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; background: rgba(16,22,54,.7); color: #fff; padding: .25em .55em; border-radius: 5px;
}
.ba__pair figcaption.after { background: var(--brand-accent); }
.ba__label { padding: .8rem 1rem; font-weight: 600; color: var(--brand-blue-dark); font-size: .92rem; }

/* ========================================================================
   FAQ
   ======================================================================== */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.05rem 1.2rem; font-size: 1.02rem; font-weight: 600; color: var(--brand-blue-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit;
}
.faq__q .icon { flex: none; width: 22px; height: 22px; position: relative; transition: transform .2s; }
.faq__q .icon::before, .faq__q .icon::after { content: ""; position: absolute; background: var(--brand-accent); border-radius: 2px; }
.faq__q .icon::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq__q .icon::after  { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform .2s; }
.faq__item.is-open .faq__q .icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 1.2rem 1.15rem; margin: 0; color: var(--muted); }

/* ========================================================================
   Contact + booking
   ======================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.branches { display: grid; gap: 1.2rem; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.branch h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin-bottom: .8rem; }
.branch h3 svg { width: 22px; height: 22px; color: var(--brand-accent); }
.branch__row { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .95rem; margin-bottom: .55rem; }
.branch__row svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand-blue); }
.branch__row a { color: var(--ink); font-weight: 600; }
.branch .btn--whatsapp { margin-top: .8rem; }

.booking { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-md); }
.booking h3 { font-size: 1.35rem; }
.booking > p { color: var(--muted); margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--brand-blue-dark); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75em .9em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(18,38,199,.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .error-msg { color: #D63333; font-size: .8rem; margin-top: .3rem; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D63333; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.form-success {
  display: none; background: var(--bg-sky); border: 1px solid #C3D4F7; color: var(--brand-accent-dark);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-weight: 600;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: #FDECEC; border: 1px solid #F3C0C0; color: #B02A2A;
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-weight: 600; margin-bottom: 1rem;
}
.form-error.show { display: block; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer { background: var(--bg-navy); color: #C7CEE6; padding: clamp(48px, 7vw, 72px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); }
.footer__brand img { height: 40px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer__brand p { margin-top: 1rem; font-size: .92rem; color: #97A0C4; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__links a { color: #C7CEE6; font-size: .95rem; }
.footer__links a:hover { color: #fff; }
.socials { display: flex; gap: .7rem; margin-top: 1.1rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--brand-accent); }
.socials svg { width: 20px; height: 20px; }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input { flex: 1; padding: .7em .9em; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.newsletter input::placeholder { color: #8891B6; }
.newsletter input:focus { outline: none; border-color: var(--brand-accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: clamp(36px, 5vw, 56px); padding: 1.4rem 0; text-align: center; font-size: .85rem; color: #8891B6; }

/* ========================================================================
   Service detail pages
   ======================================================================== */
.page-hero { background: linear-gradient(180deg, var(--bg-sky), #fff); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--brand-blue); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.detail { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 820px; }
.detail h2 { font-size: 1.4rem; margin-top: .5rem; }
.detail ul { display: grid; gap: .5rem; padding-left: 0; list-style: none; }
.detail ul li { padding-left: 1.8rem; position: relative; color: var(--ink); }
.detail ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--brand-accent); border-bottom: 2px solid var(--brand-accent); transform: rotate(-45deg); }
.callout { background: var(--bg-sky); border-radius: var(--radius); padding: 1.4rem 1.6rem; border: 1px solid #CFE0FB; }
.callout h3 { color: var(--brand-accent-dark); }
.cta-band { background: var(--brand-blue-dark); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-top: 1rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7CEE6; max-width: 48ch; margin-inline: auto; }
.cta-band .btn { margin-top: .6rem; }

/* ========================================================================
   Services landing page + image banners
   ======================================================================== */
.svc-banner { position: relative; min-height: clamp(260px, 34vw, 380px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.svc-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(18,38,199,.86), rgba(20,26,85,.72)); }
.svc-banner .container { position: relative; z-index: 1; padding-block: 2rem; }
.svc-banner h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.svc-banner p { color: #DDE4FF; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; margin-inline: auto; }
.svc-banner .breadcrumb { color: #C3CCF0; margin-bottom: .8rem; }
.svc-banner .breadcrumb a { color: #fff; }

/* Services landing — image tiles with bottom captions (text lives on detail pages) */
.svc-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 22px); }
.svc-tile { position: relative; display: block; grid-column: span 2; aspect-ratio: 4 / 3.4; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.svc-tile:nth-child(1), .svc-tile:nth-child(2) { grid-column: span 3; aspect-ratio: 16 / 9; }
.svc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.svc-tile:hover img { transform: scale(1.06); }
.svc-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(16,22,54,.85)); }
.svc-tile__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff; padding: 1.3rem 1.5rem; }
.svc-tile__cap .eyebrow { color: #fff; opacity: .82; display: block; margin-bottom: .3em; }
.svc-tile__cap h3 { color: #fff; margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); display: flex; align-items: center; gap: .45em; }
.svc-tile__cap .arrow { transition: transform .2s ease; }
.svc-tile:hover { text-decoration: none; }
.svc-tile:hover .svc-tile__cap .arrow { transform: translateX(6px); }
@media (max-width: 820px) {
  .svc-tiles { grid-template-columns: 1fr; }
  .svc-tile, .svc-tile:nth-child(1), .svc-tile:nth-child(2) { grid-column: auto; aspect-ratio: 16 / 10; }
}

.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-bottom: clamp(44px, 7vw, 84px); }
.svc-row:last-child { margin-bottom: 0; }
.svc-row--reverse .svc-media { order: 2; }
.svc-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-media:hover img { transform: scale(1.04); }
.svc-copy .eyebrow { display: flex; align-items: center; gap: .5rem; }
.svc-copy .svc-num { color: var(--brand-accent); font-weight: 800; }
.svc-row h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.svc-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.svc-list li { position: relative; padding-left: 1.8rem; color: var(--ink); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--brand-accent); border-bottom: 2px solid var(--brand-accent); transform: rotate(-45deg); }
.svc-list li b { color: var(--brand-blue-dark); }

.svc-note { color: var(--muted); font-size: .96rem; margin-top: .2rem; }

/* Numbered "what to expect" steps */
.steps { list-style: none; counter-reset: step; padding: 0; max-width: 820px; margin: 0 auto; display: grid; gap: .9rem; }
.steps li { counter-increment: step; position: relative; padding: 1.05rem 1.3rem 1.05rem 3.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 2.1rem; height: 2.1rem; background: var(--brand-accent); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.steps li b { color: var(--brand-blue-dark); display: block; margin-bottom: .1rem; }

@media (max-width: 820px) {
  .svc-row, .svc-row--reverse { grid-template-columns: 1fr; }
  .svc-row--reverse .svc-media { order: 0; }
  .svc-media { aspect-ratio: 16 / 10; }
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 900px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: .5rem var(--gutter) 1rem; display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: .85em .4em; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta .btn { display: none; }
  .nav.is-open .nav__cta .btn { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .ba__pair { grid-template-columns: 1fr 1fr; }
}

/* ========================================================================
   Motion & animation layer (v2)
   ======================================================================== */

/* Scroll-reveal — elements start hidden, JS adds .is-visible when in view.
   The .js-anim flag is set on <html> by main.js so content stays visible
   if JS is disabled or motion is reduced. */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* Header lifts a shadow once the page scrolls */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,26,85,.09); }

/* Hero entrance + gentle float */
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.js-anim .hero__copy > * { animation: heroIn .7s ease backwards; }
.js-anim .hero__copy > *:nth-child(1) { animation-delay: .05s; }
.js-anim .hero__copy > *:nth-child(2) { animation-delay: .14s; }
.js-anim .hero__copy > *:nth-child(3) { animation-delay: .23s; }
.js-anim .hero__copy > *:nth-child(4) { animation-delay: .32s; }
.js-anim .hero__copy > *:nth-child(5) { animation-delay: .41s; }
.js-anim .hero__art { animation: fadeIn .9s ease .1s backwards, floaty 6s ease-in-out 1s infinite; }

/* Service icons react on hover */
.service-card__icon { transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s ease; }
.service-card:hover .service-card__icon { transform: scale(1.1) rotate(-4deg); }

/* Gallery cards lift and the "after" image gently zooms */
.ba { transition: transform .2s ease, box-shadow .2s ease; }
.ba:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ba__pair img { transition: transform .45s ease; }
.ba:hover .ba__pair figure:last-child img { transform: scale(1.06); }

/* Team + badge micro-interactions */
.badge { transition: transform .2s ease, box-shadow .2s ease; }
.badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Animated count-up numbers keep their space reserved */
.hero__trust b { display: inline-block; }

/* Floating WhatsApp action button */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .2s ease; animation: fadeIn .5s ease .8s backwards;
}
.fab:hover { transform: scale(1.08); text-decoration: none; }
.fab svg { width: 30px; height: 30px; }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.fab__label {
  position: absolute; right: 70px; white-space: nowrap; background: #101636; color: #fff;
  font-size: .82rem; font-weight: 600; padding: .45em .8em; border-radius: 8px;
  opacity: 0; transform: translateX(8px); transition: .2s; pointer-events: none;
}
.fab:hover .fab__label { opacity: 1; transform: none; }

/* Reduced motion — disable all of the above, keep content fully visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
}

/* ========================================================================
   MODERN HOMEPAGE REDESIGN (v3)
   ======================================================================== */

/* --- Hero --- */
.xhero { position: relative; overflow: hidden; background: linear-gradient(180deg, #EEF3FE 0%, #FFFFFF 72%); padding: clamp(28px, 4vw, 56px) 0 clamp(70px, 8vw, 110px); }
.xhero__blob1 { position: absolute; width: 560px; height: 560px; right: -140px; top: -160px; background: radial-gradient(circle at 30% 30%, rgba(47,107,255,.20), transparent 68%); border-radius: 50%; z-index: 0; }
.xhero__blob2 { position: absolute; width: 460px; height: 460px; left: -160px; bottom: -180px; background: radial-gradient(circle at 50% 50%, rgba(18,38,199,.12), transparent 70%); border-radius: 50%; z-index: 0; }
.xhero .container { position: relative; z-index: 1; }
.xhero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .5em; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: .5em .95em; font-size: .8rem; font-weight: 700; color: var(--brand-blue-dark); text-transform: none; letter-spacing: .02em; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); }
.xhero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.04; margin: .55em 0 .35em; letter-spacing: -.02em; }
.xhero h1 .grad { background: linear-gradient(90deg, var(--brand-accent), var(--brand-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xhero__sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 46ch; }
.xhero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0; }
.xhero__trust { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; margin-left: -14px; box-shadow: var(--shadow-sm); }
.avatars img:first-child { margin-left: 0; }
.xhero__trust small { color: var(--muted); font-size: .9rem; line-height: 1.3; }
.xhero__trust b { color: var(--brand-blue-dark); }

.xhero__visual { position: relative; }
.xhero__photo { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.5; background: #fff; }
.xhero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 72%; }
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; z-index: 2; }
.float-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-sky); color: var(--brand-accent); flex: none; }
.float-card__icon svg { width: 22px; height: 22px; }
.float-card small { display: block; color: var(--muted); font-size: .72rem; }
.float-card b { color: var(--brand-blue-dark); font-size: .96rem; }
.float-card--tl { top: 26px; left: -28px; }
.float-card--br { bottom: 30px; right: -26px; }
.js-anim .float-card--tl { animation: fadeIn .6s ease .5s backwards, floaty 6s ease-in-out 1s infinite; }
.js-anim .float-card--br { animation: fadeIn .6s ease .7s backwards, floaty 7s ease-in-out 1.4s infinite; }
.js-anim .xhero__copy > * { animation: heroIn .7s ease backwards; }
.js-anim .xhero__copy > *:nth-child(1) { animation-delay: .05s; }
.js-anim .xhero__copy > *:nth-child(2) { animation-delay: .13s; }
.js-anim .xhero__copy > *:nth-child(3) { animation-delay: .21s; }
.js-anim .xhero__copy > *:nth-child(4) { animation-delay: .29s; }
.js-anim .xhero__copy > *:nth-child(5) { animation-delay: .37s; }
.js-anim .xhero__visual { animation: fadeIn .9s ease .15s backwards; }

/* --- Stats band --- */
.xstats { position: relative; z-index: 4; margin-top: clamp(-64px, -6vw, -44px); }
.xstats__inner { background: linear-gradient(120deg, var(--brand-blue), #0c1a9e); border-radius: 22px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(1.4rem, 3vw, 2.2rem); color: #fff; }
.xstat { text-align: center; padding: .4rem 1rem; border-right: 1px solid rgba(255,255,255,.16); }
.xstat:last-child { border-right: 0; }
.xstat b { display: block; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1; }
.xstat span { color: #C3CCF5; font-size: .9rem; }

/* --- Section head, left variant --- */
.section-head--left { text-align: left; margin-left: 0; }

/* --- About collage --- */
.xabout__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.xabout__media { position: relative; padding-bottom: 8%; }
.xabout__media .img1 { width: 84%; border-radius: 22px; box-shadow: var(--shadow-md); display: block; }
.xabout__media .img2 { position: absolute; width: 46%; right: 0; bottom: 0; border-radius: 18px; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.xabout__badge { position: absolute; left: -18px; top: 40px; background: linear-gradient(135deg, var(--brand-accent), var(--brand-blue)); color: #fff; border-radius: 18px; padding: .9rem 1.1rem; box-shadow: var(--shadow-lg); text-align: center; z-index: 3; }
.xabout__badge b { font-size: 1.7rem; display: block; line-height: 1; }
.xabout__badge small { font-size: .72rem; opacity: .9; }
.checklist { list-style: none; padding: 0; margin: 1.3rem 0 1.7rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink); font-weight: 500; font-size: .96rem; }
.checklist svg { width: 22px; height: 22px; color: var(--brand-accent); flex: none; }

/* --- Features / why choose --- */
.xfeatures__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(16px, 2.5vw, 24px); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-accent), var(--brand-blue)); color: #fff; margin-bottom: 1.1rem; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* --- Process --- */
.xprocess__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 30px); }
.pstep { position: relative; text-align: center; }
.pstep__num { width: 76px; height: 76px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--bg-sky); color: var(--brand-blue); display: grid; place-items: center; position: relative; }
.pstep__num svg { width: 32px; height: 32px; }
.pstep__badge { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-accent); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; }
.pstep h3 { font-size: 1.08rem; margin-bottom: .3em; }
.pstep p { color: var(--muted); font-size: .92rem; }
.pstep:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: 62%; right: -38%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-accent) 0 6px, transparent 6px 12px); opacity: .5; }

/* Feature photo under the process section */
.process-photo { margin: clamp(38px, 5vw, 60px) auto 0; max-width: 920px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.process-photo img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }

/* Slideshow ("Life at De Santi") */
.slideshow { position: relative; max-width: 900px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #0b1020; }
.slideshow__track { position: relative; aspect-ratio: 3 / 2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--brand-blue-dark); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 3; transition: background .15s ease; }
.slide-nav:hover { background: #fff; }
.slide-prev { left: 14px; } .slide-next { right: 14px; }
.slide-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .2s ease, background .2s ease; }
.slide-dots button.is-active { background: #fff; width: 26px; border-radius: 6px; }
@media (max-width: 560px) { .slide-nav { width: 38px; height: 38px; font-size: 1.3rem; } }

/* --- Smile gallery --- */
.xgallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.gitem { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gitem img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .5s ease; }

/* Masonry gallery — shows every photo in full (no face cropping) */
.masonry { column-count: 3; column-gap: 16px; }
.masonry .m-item { break-inside: avoid; margin-bottom: 16px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.masonry .m-item img { width: 100%; display: block; transition: transform .5s ease; }
.masonry .m-item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }
.gitem:hover img { transform: scale(1.08); }
.gitem--tall { grid-row: span 2; }
.gitem--wide { grid-column: span 2; }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,22,54,.4)); opacity: 0; transition: opacity .3s ease; }
.gitem:hover::after { opacity: 1; }

/* --- Testimonials --- */
.xtestimonials { background: var(--bg-sky); }
.xtestimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2.5vw, 24px); }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.tcard__stars { color: #FFB020; margin-bottom: .7rem; letter-spacing: 2px; font-size: 1rem; }
.tcard p { color: var(--ink); font-style: italic; margin: 0; }
.tcard__who { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.tcard__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tcard__who b { color: var(--brand-blue-dark); display: block; font-size: .98rem; }
.tcard__who small { color: var(--muted); font-size: .85rem; }
.tcard__quote { position: absolute; top: .6rem; right: 1.3rem; font-size: 4rem; color: var(--bg-sky); font-family: Georgia, serif; line-height: 1; }

@media (max-width: 900px) {
  .xhero__grid, .xabout__grid { grid-template-columns: 1fr; }
  .xhero__visual { order: -1; max-width: 420px; margin-inline: auto; }
  .xstats__inner { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
  .xstat:nth-child(2) { border-right: 0; }
  .xstat:nth-child(1), .xstat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 1.1rem; }
  .xprocess__grid { grid-template-columns: repeat(2, 1fr); }
  .pstep::after { display: none; }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .xgallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gitem--wide { grid-column: span 2; }
  .float-card--tl { left: 4px; top: 12px; } .float-card--br { right: 4px; bottom: 12px; }
  .xabout__badge { left: 0; }
}
@media (max-width: 430px) {
  .xstats__inner { grid-template-columns: 1fr 1fr; }
}
