/* ============================================================
   Tech Media Service — design tokens
   ============================================================ */
:root {
  /* Palette matched to techmediaservice.com (Ewebot / Elementor theme) */
  --color-ink: #3b3663;          /* deep indigo — headings & primary text */
  --color-paper: #ffffff;        /* page background */
  --color-paper-tint: #eef0f9;   /* light lavender-grey section band */
  --color-ember: #6254e7;        /* primary brand / CTA — indigo-violet */
  --color-ember-dark: #4b3ecf;   /* hover / active */
  --color-accent: #ff7426;       /* secondary accent — orange */
  --color-gold: #f0ac0e;         /* tertiary accent — gold */
  --color-slate: #696687;        /* muted body text */
  --color-whatsapp: #107a3f;
  --color-whatsapp-dark: #0b5c30;
  --color-border: #e5e3f2;       /* light violet-grey */
  --color-white: #ffffff;

  --font-heading: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-panel: 0 12px 32px rgba(59, 54, 99, 0.18);
  --max-width: 1180px;
  --sticky-bar-height: 64px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.55;
  padding-bottom: 0;
}
@media (max-width: 767px) {
  body.has-sticky-bar { padding-bottom: calc(var(--sticky-bar-height) + env(safe-area-inset-bottom)); }
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 var(--space-2); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-ember-dark); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

:focus-visible {
  outline: 3px solid var(--color-ember);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-2); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-chat {
  background: var(--color-ember);
  color: var(--color-white);
}
.btn-chat:hover { background: var(--color-ember-dark); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn-ember { background: var(--color-ember); color: var(--color-white); }
.btn-ember:hover { background: var(--color-ember-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-emergency {
  background: var(--color-white);
  color: var(--color-ember-dark);
}

.btn-status {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

/* ============================================================
   Chat buttons partial
   ============================================================ */
.chat-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.chat-buttons .btn { flex: 1 1 200px; }
.chat-buttons--sm { margin: 0; gap: 0.6rem; }
.chat-buttons--sm .btn { flex: 0 0 auto; }
.chat-buttons--sm .btn { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.chat-buttons--sm .btn span:not(.btn-icon) { display: none; }
.chat-buttons--sm .btn-icon { margin: 0; }
.chat-buttons--md .btn { min-height: 48px; }
.chat-buttons--lg { margin: var(--space-3) 0; }
.chat-buttons--lg .btn { min-height: 56px; padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ============================================================
   Utility bar + header
   ============================================================ */
.utility-bar {
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 0.82rem;
}

/* Scrolling marquee — content comes from MarqueeItem rows (admin-editable) */
.marquee {
  overflow: hidden;
  padding: 0.42rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation-name: marquee-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 30s; /* overridden inline from marquee_duration */
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.marquee-item {
  white-space: nowrap;
  font-weight: 600;
}
.marquee-item::after {
  content: "•";
  margin: 0 1.6rem;
  opacity: 0.4;
  font-weight: 400;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  /* no auto-scroll: show the first copy, let the user swipe to read the rest */
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.75rem var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img { height: 50px; width: auto; display: block; }
.main-nav ul { display: flex; gap: var(--space-3); }
.main-nav a { color: var(--color-ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--color-ember); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--color-ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-drawer {
  border-top: 1px solid var(--color-border);
  background: var(--color-paper);
}
.mobile-drawer ul { display: flex; flex-direction: column; }
.mobile-drawer a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 899px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .chat-buttons { display: none; }
}
@media (max-width: 560px) {
  /* keep the header Call button, but drop to just "Call" so it fits */
  .header-call span { display: none; }
  .header-call { padding-left: 0.8rem; padding-right: 0.8rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(160deg, #eef2fb 0%, #e9f1f8 55%, #ffffff 100%);
  color: var(--color-ink);
  padding: var(--space-6) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { color: var(--color-ink); }
.hero-sub { color: var(--color-slate); font-size: 1.1rem; max-width: 46ch; }
.hero-trust { color: var(--color-slate); font-size: 0.9rem; }

/* Hero call-to-action: outlined "Call" button beside the solid consultation button */
.hero-cta {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
/* Outlined call button — used in the hero and (smaller) in the header */
.btn-call {
  background: transparent;
  border: 2px solid var(--color-ink);
  color: var(--color-ink);
  border-radius: 0;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  white-space: nowrap;
}
.btn-call span { color: var(--color-accent); }
.btn-call:hover { background: var(--color-ink); color: var(--color-white); }
.btn-call:hover span { color: var(--color-white); }
.btn-call--sm { min-height: 40px; padding: 0.4rem 0.95rem; font-size: 0.85rem; }

.btn-consult {
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.95rem 1.9rem;
}
.btn-consult:hover { background: #2c2850; }

/* Hero chat card — interactive mini chat window, shown at every breakpoint */
.hero-chat-card {
  min-width: 0;
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.hero-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.hero-chat-avatar {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-ink);
}
.hero-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-chat-id { display: flex; flex-direction: column; line-height: 1.3; }
.hero-chat-id strong { font-family: var(--font-heading); font-size: 0.98rem; }
.hero-chat-status { font-size: 0.82rem; color: var(--color-slate); }
.status-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  box-shadow: 0 0 0 2px var(--color-white);
}
.hero-chat-body { display: flex; flex-direction: column; gap: 0.5rem; }
.hero-chat-bubble {
  margin: 0;
  align-self: flex-start;
  max-width: 92%;
  padding: 0.6rem 0.85rem;
  border-radius: 4px 14px 14px 14px;
  background: var(--color-paper-tint);
  color: var(--color-ink);
  font-size: 0.92rem;
  line-height: 1.5;
}
.hero-chat-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hero-chat-reply {
  flex: 1 1 auto;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hero-chat-reply:hover,
.hero-chat-reply:focus-visible {
  background: var(--color-ember);
  border-color: var(--color-ember);
  color: var(--color-white);
}
.hero-chat-cta { width: 100%; }

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-chat-card { max-width: 420px; }
}
@media (max-width: 767px) {
  .hero-chat-card { max-width: none; }
}

/* ============================================================
   Emergency strip
   ============================================================ */
.emergency-strip {
  background: var(--color-ember);
  color: var(--color-white);
}
.emergency-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 1.05rem;
}
.emergency-inner p { margin: 0; }

/* ============================================================
   Services
   ============================================================ */
.service-band { padding: var(--space-5) 0; }
.service-band--a { background: var(--color-paper); }
.service-band--b { background: var(--color-paper-tint); }
.service-band-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4);
}
.service-group-intro p { color: var(--color-slate); }
.service-list { display: grid; gap: var(--space-2); }
.service-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.service-check { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-ember); margin-top: 2px; }
.service-title { font-weight: 600; margin: 0; }
.service-blurb { color: var(--color-slate); margin: 0.2rem 0 0; font-size: 0.92rem; }

@media (max-width: 1023px) {
  .service-band-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Process
   ============================================================ */
.process { padding: var(--space-6) 0; }
.process-steps { display: grid; gap: var(--space-3); counter-reset: step; margin-top: var(--space-3); }
.process-steps li { display: flex; gap: var(--space-2); align-items: flex-start; }
.process-step-number {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}
.process-step-title { font-weight: 600; margin: 0; }
.process-step-desc { color: var(--color-slate); margin: 0.2rem 0 0; }

@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Plans
   ============================================================ */
.plans { padding: var(--space-6) 0; background: var(--color-paper-tint); }
.plans-grid { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.plan-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plan-card--featured { border-color: var(--color-ember); box-shadow: var(--shadow-panel); }
.plan-badge {
  align-self: flex-start;
  background: var(--color-ember);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.plan-price { font-family: var(--font-heading); font-size: 1.6rem; margin: 0; }
.plan-note { color: var(--color-slate); font-size: 0.85rem; margin: 0; }
.plan-features { display: grid; gap: 0.4rem; margin: var(--space-2) 0; }
.plan-features li { padding-left: 1.2rem; position: relative; }
.plan-features li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px;
  background: var(--color-ember);
  border-radius: 50%;
}
.plan-card .btn { margin-top: auto; }

@media (min-width: 768px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Why us
   ============================================================ */
.why { padding: var(--space-6) 0; }
.why-grid { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.why-item { border-top: 3px solid var(--color-ember); padding-top: var(--space-2); }
.why-item p { color: var(--color-slate); }

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials { padding: var(--space-6) 0; background: var(--color-ink); color: var(--color-paper); }
.testimonials h2 { color: var(--color-white); }
.testimonials-grid { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.testimonial {
  margin: 0;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}
.testimonial p { font-size: 1.05rem; }
.testimonial footer { color: #b7bdd4; font-size: 0.85rem; }
.testimonial-placeholder-tag { opacity: 0.7; font-style: italic; }

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--space-6) 0; }
.faq-list { margin-top: var(--space-3); border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-2) 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-ink);
}
.faq-caret { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.15s ease; }
.faq-question[aria-expanded="true"] .faq-caret { transform: rotate(180deg); }
.faq-answer { padding: 0 0 var(--space-2); color: var(--color-slate); }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: var(--space-6) 0; background: var(--color-paper-tint); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-4);
  align-items: start;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  background: var(--color-white);
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.form-row { display: flex; flex-direction: column; gap: 0.3rem; }
.form-row--full { grid-column: 1 / -1; }
.form-row label { font-size: 0.85rem; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-white);
  color: var(--color-ink);
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
[data-form-status]:not(:empty), [data-prechat-status]:not(:empty) {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--color-paper-tint);
  font-size: 0.9rem;
}

.contact-details {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
}
.contact-phone { display: flex; gap: 0.5rem; padding: 0.3rem 0; }
.contact-phone dt { font-weight: 600; width: 80px; }
.contact-phone dd { margin: 0; }
.contact-other address { font-style: normal; color: var(--color-slate); }

@media (min-width: 768px) {
  .contact-details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--color-ink); color: #c9c6e2; padding: var(--space-5) 0 var(--space-3); }
.footer-grid { display: grid; gap: var(--space-3); }
.footer-brand { font-family: var(--font-heading); font-weight: 700; color: var(--color-white); font-size: 1.1rem; }
.site-footer h3 { color: var(--color-white); font-size: 0.95rem; }
.site-footer a { color: #c9c6e2; }
.site-footer ul { display: grid; gap: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  font-size: 0.8rem;
  color: #9aa1ba;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
}

/* ============================================================
   Chat launcher + tray (desktop floating)
   ============================================================ */
.chat-launcher {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}
.chat-launcher-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--color-ember);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-panel);
  cursor: pointer;
}
.chat-launcher-toggle svg { width: 28px; height: 28px; }
.chat-launcher-tray {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: var(--space-2);
}
.chat-launcher-tray .chat-buttons { flex-direction: column; margin: 0; }

/* Proactive chat nudge — card with agent image, message in the footer */
.chat-nudge {
  position: relative;
  width: min(320px, calc(100vw - 2rem));
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  animation: chat-nudge-in 0.28s ease-out;
}
.chat-nudge::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
}
.chat-nudge-media {
  position: relative;
  line-height: 0;
  background: var(--color-ink);
}
.chat-nudge-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.chat-nudge-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.chat-nudge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-whatsapp);
}
.chat-nudge-footer { padding: var(--space-2); }
.chat-nudge-text {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-ink);
}
.chat-nudge-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-2);
}
.chat-nudge-option {
  flex: 1 1 auto;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chat-nudge-option:hover,
.chat-nudge-option:focus-visible {
  background: var(--color-ember);
  border-color: var(--color-ember);
  color: var(--color-white);
}
.chat-nudge-cta { width: 100%; min-height: 42px; }
.chat-nudge-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 0.3rem;
  display: flex;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  box-shadow: 0 2px 8px rgba(59, 54, 99, 0.25);
  cursor: pointer;
}
.chat-nudge-close svg { width: 16px; height: 16px; }
@keyframes chat-nudge-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .chat-launcher { display: none; }
}

/* ============================================================
   Mobile sticky action bar
   ============================================================ */
.sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: env(safe-area-inset-bottom) 0 0;
}
.sticky-bar-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 56px;
  border: none;
  background: none;
  color: var(--color-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.sticky-bar-action svg { width: 22px; height: 22px; }
.sticky-bar-action--whatsapp { color: var(--color-whatsapp-dark); }

@media (max-width: 767px) {
  .sticky-bar { display: flex; }
}

/* ============================================================
   Pre-chat panel (modal)
   ============================================================ */
.prechat-overlay {
  position: fixed; inset: 0;
  background: rgba(59, 54, 99, 0.55);
  z-index: 300;
}
.prechat-panel {
  position: fixed;
  z-index: 301;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-panel);
}
.prechat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.prechat-panel-header h2 { margin: 0; font-size: 1.2rem; }
.prechat-close {
  background: none; border: none; cursor: pointer;
  color: var(--color-ink);
  padding: 0.3rem;
}
.prechat-close svg { width: 22px; height: 22px; }
#prechat-form { display: grid; gap: var(--space-2); }
.prechat-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.prechat-skip {
  background: none; border: none;
  color: var(--color-slate);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem;
}

/* ============================================================
   Error pages
   ============================================================ */
.error-page { padding: var(--space-6) 0; text-align: center; }
