/* ==========================================================================
   Trasloca Roma — Design System
   Navy + Cream + Orange. Fraunces (display) + Inter (body/UI).
   Signature motif: route-map (dotted lines connecting district pins).
   ========================================================================== */

:root {
  /* Color */
  --navy-950: #0B1A33;
  --navy-800: #14264A;
  --navy-700: #1B3768;
  --navy-200: #9DB4DC;
  --cream-50: #F7F8FA;
  --white: #FFFFFF;
  --orange-500: #E8702A;
  --orange-600: #D2611F;
  --orange-100: #FCEAE0;
  --slate-600: #4B5768;
  --slate-400: #828DA0;
  --border: #E4E7EC;
  --success-50: #EEF8F0;
  --success-600: #2E8B47;
  --error-50: #FCEEEE;
  --error-600: #C8412E;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 26, 51, 0.06), 0 1px 1px rgba(11, 26, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 26, 51, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 26, 51, 0.16);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-sm: 180ms;
  --dur-md: 320ms;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

/* ---- Base typography ---- */
body {
  font-family: var(--font-body);
  color: var(--slate-600);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { color: var(--slate-600); }
strong { color: var(--navy-950); font-weight: 600; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-sm) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- Layout helpers ---- */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-700)); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--navy-200); }
.section--cream { background: var(--cream-50); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 10px;
}
.section--navy .eyebrow { color: var(--orange-500); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--orange-500); color: var(--white); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy-950); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--cream-50); }
.btn--outline { background: transparent; color: var(--navy-950); border: 1.5px solid var(--navy-950); }
.btn--outline:hover { background: var(--navy-950); color: var(--white); }
.section--navy .btn--outline { color: var(--white); border-color: var(--navy-200); }
.section--navy .btn--outline:hover { background: var(--white); color: var(--navy-950); }
.btn--sm { padding: 9px 16px; font-size: 0.86rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color var(--dur-sm) var(--ease);
  position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy-950); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-950);
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 69px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-md) var(--ease);
  }
  .main-nav.is-open { max-height: 480px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 14px 0; }
  .phone-link span { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .header-cta .btn--sm { padding: 9px 14px; font-size: 0.82rem; }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs { background: var(--cream-50); border-bottom: 1px solid var(--border); }
.breadcrumbs .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--slate-400); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--slate-400); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: var(--slate-600); }
.breadcrumbs a:hover { color: var(--orange-600); }

/* ---- Hero ---- */
.hero { padding: 64px 0 56px; }
.hero .container,
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 18px; }
.hero-lede { font-size: 1.08rem; max-width: 52ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trustbar { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-950); font-weight: 600; }
.hero-stat span { font-size: 0.84rem; color: var(--slate-400); }
.hero-visual { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .hero .container,
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
}

/* ---- Trust strip ---- */
.trust-strip {
  background: var(--cream-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}
.trust-strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 22px 0; width: 100%; }
.trust-strip li,
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-950);
}
.trust-item::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-100);
  background-image: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  -webkit-mask: radial-gradient(circle, transparent 35%, black 36%);
  mask: radial-gradient(circle, transparent 35%, black 36%);
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow var(--dur-md) var(--ease), border-color var(--dur-md) var(--ease), transform var(--dur-md) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-100);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.service-card p { margin-bottom: 16px; font-size: 0.94rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; color: var(--orange-600); }
a.card.service-card { display: block; }
a.card.service-card:hover h3 { color: var(--orange-600); }

/* ---- Zone cards (district grid) ---- */
.zone-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.zone-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,26,51,0) 35%, rgba(11,26,51,0.88) 100%);
  z-index: 1;
  transition: background var(--dur-md) var(--ease);
}
.zone-card:hover::before { background: linear-gradient(180deg, rgba(11,26,51,0.15) 0%, rgba(11,26,51,0.94) 100%); }
.zone-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.zone-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; color: var(--white); }
.zone-card-body h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.zone-card-body p { color: var(--navy-200); font-size: 0.84rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps .card h3 { font-family: var(--font-display); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- Testimonials ---- */
.testimonial { display: flex; flex-direction: column; gap: 12px; }
.testimonial-stars { color: var(--orange-500); font-size: 0.95rem; letter-spacing: 2px; }
.testimonial p { font-size: 0.94rem; }
.testimonial-author { font-size: 0.84rem; font-weight: 600; color: var(--navy-950); margin-top: auto; }
.testimonial-author span { display: block; font-weight: 400; color: var(--slate-400); }

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 24px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-950);
}
.faq-icon { flex-shrink: 0; color: var(--orange-500); transition: transform var(--dur-md) var(--ease); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--dur-md) var(--ease); }
.faq-answer-inner { padding: 0 4px 20px; }
.faq-answer-inner p { font-size: 0.94rem; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  max-width: calc(var(--container-w) - 48px);
  margin-left: auto;
  margin-right: auto;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--navy-200); max-width: 56ch; margin: 0 auto 26px; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--navy-950); }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px var(--orange-100);
}
.form-field--checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-field--checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange-500); }
.form-status { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.93rem; font-weight: 500; line-height: 1.55; display: none; margin-top: 4px; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #f0fdf4; color: #15803d; border: 1.5px solid #86efac; }
.form-status.is-error   { background: #fff1f2; color: #be123c; border: 1.5px solid #fda4af; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: var(--navy-200); padding: 64px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer-brand p { color: var(--navy-200); font-size: 0.88rem; margin: 16px 0 18px; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background var(--dur-sm) var(--ease);
}
.footer-social a:hover { background: var(--orange-500); }
.footer-col h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--navy-200); transition: color var(--dur-sm) var(--ease); }
.footer-col a:hover { color: var(--orange-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--slate-400);
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: var(--orange-500); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Page header (subpage hero band) ---- */
.page-header { background: var(--cream-50); padding: 48px 0 52px; border-bottom: 1px solid var(--border); }
.page-header-lede { font-size: 1.04rem; max-width: 64ch; margin-top: 14px; }

/* ---- Prose ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 8px; }
.prose p { margin-bottom: 16px; font-size: 1rem; }
.prose ul, .prose ol { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ul li, .prose ol li { margin-bottom: 8px; }

/* ---- Info list ---- */
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.info-list strong { display: block; margin-bottom: 4px; }
.info-list p { font-size: 0.92rem; }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ---- Blog card ---- */
.blog-card { display: block; }
.blog-card img { border-radius: var(--radius-sm); margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; }
.blog-card h3 { font-size: 1.05rem; }
.blog-card:hover h3 { color: var(--orange-600); }
.blog-card p { font-size: 0.9rem; }

/* ---- Mobile sticky CTA bar ---- */
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 70px; }
  .mobile-cta-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    box-shadow: 0 -4px 16px rgba(11,26,51,0.08);
  }
  .mobile-cta-bar .btn { flex: 1; }
}

/* ---- Contact badges (Chiama / WhatsApp inline in contatti.html) ---- */
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}
.contact-badge:hover { opacity: 0.85; transform: translateY(-1px); }
.contact-badge--phone {
  background: var(--orange-100);
  color: var(--orange-600);
  border: 1.5px solid var(--orange-500);
}
.contact-badge--wa {
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #25D366;
}

/* ---- Partner badges (collaborazioni.html) ---- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
.partner-badge {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  transition: transform var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease);
}
.partner-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-500);
}
.partner-badge span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--navy-950);
  text-align: center;
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   WhatsApp Floating Button
   Design notes:
   - WhatsApp green (#25D366) is the official brand color, with darker
     #128C7E for depth on hover — kept intentionally separate from the
     site palette to be instantly recognisable as a WhatsApp affordance.
   - z-index 95: above mobile-cta-bar (90) but below sticky header (100).
   - Desktop: bottom-right 32px. Mobile: lifts 80px above mobile-cta-bar.
   - Pulse animation fires once on entry (3 s delay), never loops
     (avoids attention fatigue). Respects prefers-reduced-motion.
   - Tooltip slides in from the right, disappears on touch (pointer: coarse).
   ========================================================================== */

/* ---- WhatsApp button keyframes ---- */
@keyframes wa-enter {
  from { opacity: 0; transform: scale(0.7) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes wa-tooltip-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Wrapper ---- */
.wa-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0;

  /* Hidden until JS reveals it after delay */
  opacity: 0;
  pointer-events: none;
}
.wa-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Tooltip ---- */
.wa-tooltip {
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  margin-right: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition:
    opacity var(--dur-md) var(--ease),
    transform var(--dur-md) var(--ease);

  /* Tooltip right-pointing arrow */
  position: relative;
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-width: 0;
  border-left-color: var(--navy-950);
}

/* ---- Show tooltip on button hover/focus (pointer: fine devices only) ---- */
@media (pointer: fine) {
  .wa-fab:hover .wa-tooltip,
  .wa-btn:focus-visible ~ .wa-tooltip,
  .wa-fab:focus-within .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
    animation: wa-tooltip-in var(--dur-md) var(--ease) both;
  }
}

/* ---- The button itself ---- */
.wa-btn {
  --wa-green: #25D366;
  --wa-green-dark: #128C7E;

  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(37, 211, 102, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.12);
  transition:
    background var(--dur-sm) var(--ease),
    transform var(--dur-sm) var(--ease),
    box-shadow var(--dur-sm) var(--ease);
  cursor: pointer;
  border: none;

  /* Entry animation triggers when .is-visible is added */
  animation: wa-enter 500ms var(--ease) both;
}
.wa-fab.is-visible .wa-btn {
  animation:
    wa-enter 480ms var(--ease) both,
    wa-pulse 900ms var(--ease) 800ms 2; /* 2 pulses then stops */
}

/* ---- Hover / active states ---- */
.wa-btn:hover {
  background: var(--wa-green-dark);
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.42),
    0 4px 8px rgba(0, 0, 0, 0.14);
}
.wa-btn:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: 80ms;
}

/* ---- Focus ring: orange to match site system, not default browser blue ---- */
.wa-btn:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}

/* ---- WhatsApp SVG icon ---- */
.wa-icon {
  width: 30px;
  height: 30px;
  display: block;
  transition: transform var(--dur-sm) var(--ease);
}
.wa-btn:hover .wa-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ---- Notification dot (optional, subtle) ---- */
.wa-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: var(--orange-500);
  border: 2px solid var(--white);
  border-radius: 50%;
}

/* ---- Mobile: lift above mobile-cta-bar ---- */
@media (max-width: 760px) {
  .wa-fab {
    bottom: 86px; /* 70px bar + 16px gap */
    right: 16px;
  }
  .wa-btn {
    width: 52px;
    height: 52px;
  }
  .wa-icon {
    width: 26px;
    height: 26px;
  }
  /* Tooltip hidden on touch devices (no hover intent) */
  .wa-tooltip { display: none; }
}

/* ---- Tablet: slightly tighter margin ---- */
@media (min-width: 761px) and (max-width: 1024px) {
  .wa-fab {
    bottom: 24px;
    right: 24px;
  }
}

/* ---- Reduced motion: no animation, instant appear ---- */
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-btn, .wa-tooltip {
    animation: none !important;
    transition: none !important;
  }
  .wa-fab.is-visible { opacity: 1; }
}
