/* ==========================================================================
   Innovestra — design tokens and components
   Layered on top of Bootstrap 5. Everything visual is driven by the custom
   properties in :root, so rebranding is a single edit at the top of this file.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
:root {
  /* --- Brand ------------------------------------------------------------ */
  --brand-primary: #0f766e;
  --brand-primary-dark: #115e59;
  --brand-primary-darker: #0c4a45;
  --brand-primary-tint: #f0fdfa;
  --brand-primary-tint-strong: #ccfbf1;

  --brand-accent: #f59e0b;
  --brand-accent-dark: #d97706;
  --brand-accent-tint: #fffbeb;

  /* --- Neutrals --------------------------------------------------------- */
  --ink: #0b1220;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --ink-inverse: #ffffff;

  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-sunken: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --success: #15803d;
  --danger: #b91c1c;

  /* --- Type scale (1.200 minor third, 1rem base) ------------------------ */
  --font-sans: "Space Grotesk", sans-serif;
  --text-xs: 0.79rem;
  --text-sm: 0.889rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.35rem;
  --text-xl: 1.62rem;
  --text-2xl: 1.95rem;
  --text-3xl: 2.34rem;
  --text-4xl: 2.8rem;

  /* --- Spacing rhythm (4px base) ---------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 3.5rem;
  --section-y: clamp(2.5rem, 6vw, 2rem);

  /* --- Radius, shadow, motion ------------------------------------------- */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06),
    0 1px 3px rgba(11, 18, 32, 0.08);
  --shadow: 0 4px 6px -1px rgba(11, 18, 32, 0.07),
    0 10px 20px -6px rgba(11, 18, 32, 0.1);
  --shadow-lg: 0 12px 28px -8px rgba(11, 18, 32, 0.18),
    0 30px 60px -20px rgba(11, 18, 32, 0.16);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 300ms;

  --header-height: 4.5rem;

  /* --- Bootstrap overrides ---------------------------------------------- */
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 15, 118, 110;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--surface);
  --bs-body-font-family: var(--font-sans);
  --bs-border-color: var(--border);
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: var(--brand-primary-dark);
  --bs-focus-ring-color: rgba(15, 118, 110, 0.35);
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
  overflow-x: hidden; /* Add this line */
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--surface);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Add this line */
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, var(--text-4xl));
}
h2 {
  font-size: clamp(1.7rem, 4vw, var(--text-3xl));
}
h3 {
  font-size: var(--text-lg);
}

p {
  color: var(--ink-muted);
}

::selection {
  background: var(--brand-primary-tint-strong);
  color: var(--brand-primary-darker);
}

/* Visible focus everywhere. Never removed, only restyled. */
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link for keyboard users. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 2000;
  padding: var(--space-3) var(--space-5);
  background: var(--brand-primary);
  color: var(--ink-inverse);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--ink-inverse);
}

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background-color: var(--surface-alt);
}

.section-heading {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-heading p {
  font-size: var(--text-md);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
}

.text-muted-ink {
  color: var(--ink-muted) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-border-radius: var(--radius-pill);
  transition: transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn-brand {
  --bs-btn-color: var(--ink-inverse);
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--ink-inverse);
  --bs-btn-hover-bg: var(--brand-primary-dark);
  --bs-btn-hover-border-color: var(--brand-primary-dark);
  --bs-btn-active-bg: var(--brand-primary-darker);
  --bs-btn-active-border-color: var(--brand-primary-darker);
  --bs-btn-active-color: var(--ink-inverse);
  --bs-btn-disabled-bg: var(--brand-primary);
  --bs-btn-disabled-border-color: var(--brand-primary);
  --bs-btn-disabled-color: var(--ink-inverse);
  box-shadow: 0 6px 16px -6px rgba(15, 118, 110, 0.6);
}

.btn-brand:hover:not(:disabled) {
  box-shadow: 0 10px 22px -8px rgba(15, 118, 110, 0.7);
}

.btn-brand-outline {
  --bs-btn-color: var(--brand-primary-dark);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--brand-primary-darker);
  --bs-btn-hover-bg: var(--brand-primary-tint);
  --bs-btn-hover-border-color: var(--brand-primary);
  --bs-btn-active-bg: var(--brand-primary-tint-strong);
  --bs-btn-active-border-color: var(--brand-primary);
  --bs-btn-active-color: var(--brand-primary-darker);
}

/* Amber on a dark band — dark text keeps the contrast ratio well past AA. */
.btn-accent {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--brand-accent);
  --bs-btn-border-color: var(--brand-accent);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--brand-accent-dark);
  --bs-btn-hover-border-color: var(--brand-accent-dark);
  --bs-btn-active-bg: var(--brand-accent-dark);
  --bs-btn-active-border-color: var(--brand-accent-dark);
  --bs-btn-active-color: var(--ink);
  --bs-btn-disabled-bg: var(--brand-accent);
  --bs-btn-disabled-border-color: var(--brand-accent);
  --bs-btn-disabled-color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(245, 158, 11, 0.6);
}

.btn-ghost-light {
  --bs-btn-color: var(--ink-inverse);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.5);
  --bs-btn-hover-color: var(--brand-primary-darker);
  --bs-btn-hover-bg: var(--ink-inverse);
  --bs-btn-hover-border-color: var(--ink-inverse);
  --bs-btn-active-color: var(--brand-primary-darker);
  --bs-btn-active-bg: var(--ink-inverse);
}

/* Spinner shown while a button waits on the network. */
.btn .btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  margin-right: var(--space-2);
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
  vertical-align: -0.15em;
}

.btn.is-loading {
  cursor: progress;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .navbar {
  min-height: var(--header-height);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark:hover {
  color: var(--brand-primary-dark);
}

.brand-mark svg {
  flex: 0 0 auto;
}

.site-nav .nav-link {
  font-weight: 500;
  color: var(--ink-muted);
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: var(--brand-primary-dark);
}

/* Underline marks the section currently in the viewport. */
.site-nav .nav-link.is-active {
  color: var(--brand-primary-dark);
  font-weight: 600;
}

.site-nav .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-accent);
}

.navbar-toggler {
  border-color: var(--border-strong);
  padding: 0.45rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(
    165deg,
    var(--brand-primary-tint) 0%,
    var(--surface) 55%,
    var(--surface) 100%
  );
}

/* Soft brand wash behind the hero, purely decorative. */
.hero::before {
  content: "";
  position: absolute;
  inset-inline-start: -12%;
  top: -45%;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(
    circle,
    rgba(15, 118, 110, 0.14) 0%,
    rgba(15, 118, 110, 0) 62%
  );
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.hero-title .accent {
  color: var(--brand-primary);
}

.hero-lead {
  font-size: var(--text-md);
  color: var(--ink-muted);
  max-width: 34rem;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--ink-subtle);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-trust svg {
  color: var(--brand-primary);
  flex: 0 0 auto;
}

.hero-figure {
  position: relative;

  filter: drop-shadow(0 24px 48px rgba(11, 18, 32, 0.16));
}

.hero-figure img {
  width: 100%;
  height: 600px;
  /* display: block; */
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Feature cards
   ========================================================================== */

.feature-card {
  height: 100%;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-primary-tint-strong);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ==========================================================================
   Package / pricing cards
   ========================================================================== */

.package-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.package-card.is-popular {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow);
}

.package-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--brand-accent);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.package-name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.package-tagline {
  font-size: var(--text-sm);
  color: var(--ink-subtle);
  margin-bottom: var(--space-4);
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.package-price .amount {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.package-price .period {
  font-size: var(--text-sm);
  color: var(--ink-subtle);
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.package-features svg {
  flex: 0 0 auto;
  margin-top: 0.28em;
  color: var(--brand-primary);
}

.package-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-darker) 100%
  );
  color: var(--ink-inverse);
  padding-block: var(--section-y);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -60%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.28) 0%,
    rgba(245, 158, 11, 0) 65%
  );
  pointer-events: none;
}

.cta-band > .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--ink-inverse);
  text-wrap: balance;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-md);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--space-8) var(--space-5);
  font-size: var(--text-sm);
}

.site-footer h4 {
  color: var(--ink-inverse);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.site-footer .brand-mark {
  color: var(--ink-inverse);
}

.site-footer .brand-mark:hover {
  color: var(--brand-accent);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink-inverse);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-xs);
}

.social-links {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  transition: background-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.social-links a:hover {
  background: var(--brand-primary);
  color: var(--ink-inverse);
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink-inverse);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-accent);
  color: var(--ink-inverse);
  box-shadow: none;
}

.form-feedback {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  min-height: 1.2em;
}

.form-feedback.is-success {
  color: #6ee7b7;
}

.form-feedback.is-error {
  color: #fca5a5;
}

/* ==========================================================================
   Floating action buttons
   ========================================================================== */

.fab {
  position: fixed;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--duration) var(--ease),
    opacity var(--duration) var(--ease), visibility var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}

.fab:hover {
  transform: scale(1.06);
}

.fab-whatsapp {
  left: var(--space-5);
  bottom: 3.5rem;
  background: #25d366;
  color: #ffffff;
}

.fab-whatsapp:hover {
  background: #1ebe5a;
  color: #ffffff;
}

.fab-chat {
  right: var(--space-5);
  bottom:  4.25rem;
  background: var(--brand-primary);
  color: var(--ink-inverse);
}

.fab-chat:hover {
  background: var(--brand-primary-dark);
}

.fab-top {
  right: var(--space-5);
  bottom: var(--space-5);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.fab-top:hover {
  background: var(--surface-sunken);
}

/* Hidden until scrolled; visibility keeps it out of the tab order. */
.fab-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
}

.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 575.98px) {
  .fab {
    width: 3.1rem;
    height: 3.1rem;
  }
  .fab-whatsapp,
  .fab-top {
    bottom: var(--space-4);
  }
  .fab-chat {
    bottom: calc(var(--space-4) + 3.75rem);
  }
}

/* ==========================================================================
   Chat widget
   ========================================================================== */

.chat-panel {
  position: fixed;
  right: var(--space-5);
  bottom: calc(var(--space-5) + 8rem);
  z-index: 1045;
  /* Change 100vw to 100% below */
  width: min(23rem, calc(100% - 2rem)); 
  max-height: min(30rem, calc(100vh - 12rem));
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.chat-panel.is-open {
  display: flex;
  animation: chat-in 220ms var(--ease);
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.98);
  }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--brand-primary);
  color: var(--ink-inverse);
}

.chat-header .chat-title {
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.2;
}

.chat-header .chat-status {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
}

.chat-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--ink-inverse);
  border-radius: var(--radius-sm);
  padding: var(--space-1);
  line-height: 0;
  cursor: pointer;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface-alt);
}

.chat-msg {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius-sm);
  color: var(--ink);
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--brand-primary);
  color: var(--ink-inverse);
  border-bottom-right-radius: var(--radius-sm);
}

.chat-msg-error {
  align-self: flex-start;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-typing {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.chat-typing span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ink-subtle);
  animation: typing 1.2s var(--ease) infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.2rem);
  }
}

.chat-form {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-form .form-control {
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
}

.chat-send {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: var(--brand-primary);
  color: var(--ink-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}

.chat-send:hover:not(:disabled) {
  background: var(--brand-primary-dark);
}

.chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-disclaimer {
  padding: 0 var(--space-3) var(--space-3);
  margin: 0;
  font-size: 0.7rem;
  color: var(--ink-subtle);
  background: var(--surface);
  text-align: center;
}

@media (max-width: 575.98px) {
  .chat-panel {
    right: var(--space-3);
    left: var(--space-3);
    width: auto;
    bottom: calc(var(--space-4) + 7.25rem);
  }
}

/* ==========================================================================
   Purchase wizard
   ========================================================================== */

.wizard-modal .modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.wizard-modal .modal-header {
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.wizard-modal .modal-body {
  padding: var(--space-5);
}

.wizard-modal .modal-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
  gap: var(--space-2);
}

.wizard-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  font-size: var(--text-xs);
}

.wizard-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-subtle);
  font-weight: 600;
}

.wizard-steps li::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--ink-subtle);
  font-weight: 700;
}

.wizard-steps li:not(:last-child)::after {
  content: "";
  width: clamp(1rem, 5vw, 2.5rem);
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}

.wizard-steps li.is-active::before {
  background: var(--brand-primary);
  color: var(--ink-inverse);
}

.wizard-steps li.is-active {
  color: var(--brand-primary-dark);
}

.wizard-steps li.is-done::before {
  content: "✓";
  background: var(--brand-primary-tint-strong);
  color: var(--brand-primary-darker);
}

.wizard-step[hidden] {
  display: none;
}

/* Selectable option tiles (package choice, self vs other). */
.option-tile {
  display: block;
  cursor: pointer;
  height: 100%;
}

.option-tile input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-tile .option-body {
  height: 100%;
  padding: var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease),
    background-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.option-tile:hover .option-body {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}

.option-tile input:checked + .option-body {
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* The input is visually hidden, so mirror its focus ring onto the tile. */
.option-tile input:focus-visible + .option-body {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

.option-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.option-title .option-price {
  color: var(--brand-primary-dark);
  white-space: nowrap;
}

.option-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0;
}

.option-pill {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-accent);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.summary-list {
  margin: 0;
  padding: var(--space-4);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
}

.summary-list > div + div {
  border-top: 1px dashed var(--border);
}

.summary-list dt {
  color: var(--ink-subtle);
  font-weight: 500;
  font-size: var(--text-sm);
}

.summary-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.summary-list .summary-total dd {
  font-size: var(--text-md);
  color: var(--brand-primary-dark);
}

.form-label {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.form-control {
  border-radius: var(--radius-sm);
  border-color: var(--border-strong);
  padding: 0.6rem 0.85rem;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-text {
  font-size: var(--text-xs);
  color: var(--ink-subtle);
}

/* ==========================================================================
   Toasts
   ========================================================================== */

.toast-stack {
  position: fixed;
  top: calc(var(--header-height) + var(--space-3));
  right: var(--space-4);
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  /* Change 100vw to 100% below */
  width: min(22rem, calc(100% - 2rem));
  pointer-events: none;
}

.toast-stack .toast {
  pointer-events: auto;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.toast-stack .toast.toast-success {
  border-left-color: var(--success);
}

.toast-stack .toast.toast-error {
  border-left-color: var(--danger);
}

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

@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;
  }
  .btn:hover:not(:disabled),
  .fab:hover,
  .feature-card:hover,
  .package-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .fab,
  .chat-panel,
  .cta-band,
  .toast-stack {
    display: none !important;
  }
}

.hero-figure {
  position: relative;
} 

 .hero-figure .hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
} 

.hero-figure .hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.hero-figure .hero-slide {
  flex: 0 0 100%;
  max-width: 100%;
  position: relative;
}


.hero-figure .till-number {
  display: inline-block;
  position: absolute;
  top: 0.08px;
  right: 10px;
  background: var(--brand-accent-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-figure .hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-figure .hero-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.25);
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-figure .hero-slider-dots button.is-active {
  width: 22px;
  background: var(--accent, #ff6b00);
}

@media (prefers-reduced-motion: reduce) {
  .hero-figure .hero-slider-track {
    transition: none;
  }
}