/* =========================================================
   Royal Taxi Pejë — styles
   ========================================================= */

:root {
  /* brand */
  --lime: #A2CC36;          /* main brand green — fills & buttons */
  --lime-logo: #8DBA24;     /* logo wordmark */
  --green-text: #3F6B0C;    /* green that is readable on white */
  --green-script: #4F8410;
  --mint-soft: #F1F7EC;

  /* neutrals */
  --ink: #1C211D;
  --ink-on-lime: #16200A;
  --muted: #5B645D;
  --muted-2: #6B746D;
  --line: #E2E8E3;
  --line-soft: #E7ECE8;
  --bg: #ffffff;
  --bg-soft: #F7F9F6;

  /* dark surfaces */
  --dark-muted: #B7C0B8;
  --dark-line: #343B35;

  /* type */
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Montserrat", "Open Sans", system-ui, sans-serif;
  --font-logo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;

  --radius: 14px;
  --radius-lg: 32px;
  --container: 1200px;
  --section-y: clamp(72px, 9vw, 104px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); }
a:hover { color: #2C4D07; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.8px;
}
.section-title-sm { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.5px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 440px; }
.script { font-family: var(--font-script); font-size: 26px; line-height: 1.3; color: var(--green-script); }
.script-light { color: #B5DB55; font-size: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lime); color: var(--ink-on-lime); font-weight: 800; }
.btn-primary:hover { color: var(--ink-on-lime); background: #ABD444; box-shadow: 0 10px 24px rgba(110, 160, 20, .25); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2A312B; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #C9D3CA; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { color: #fff; background: var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 18px 30px; font-size: 18px; }
.btn-block { width: 100%; }

.btn-round {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s ease, transform .15s ease;
}
.btn-round .icon { width: 24px; height: 24px; }
.btn-round:hover { transform: translateY(-1px); border-color: #C9D3CA; }
.btn-round.whatsapp { color: #1F8A47; }
.btn-round.viber { color: #5B48D9; }

/* ---------- logo ---------- */
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 54px; transition: transform .2s ease; }
.brand:hover img { transform: scale(1.04); }
.logo { display: inline-flex; align-items: baseline; gap: 8px; line-height: 1; text-decoration: none; white-space: nowrap; flex: none; }
.logo-name, .logo-number { font-family: var(--font-logo); font-style: italic; font-weight: 800; font-size: 26px; }
.logo-name { color: var(--lime-logo); }
.logo-number { color: var(--muted); }
.logo-light .logo-name { color: var(--lime); font-size: 30px; }
.logo-light .logo-number { color: var(--dark-muted); font-size: 30px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 16px 40px; }

.main-nav { flex: 1; display: flex; justify-content: center; gap: 36px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; }
.main-nav a:hover { color: var(--green-text); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch { display: flex; gap: 14px; }
.lang-switch button {
  border: 0; padding: 6px 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted-2);
  border-bottom: 2px solid transparent;
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--lime); }
.lang-switch button:hover { color: var(--ink); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #F3F6F2; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px;
  padding-block: 56px 96px;
}
.hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -1.5px;
}
.hero .lead { font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.hero-free { font-size: 14px; color: var(--muted-2); }
.hero-free a { color: var(--ink); font-weight: 600; text-decoration: none; }

.hero-visual {
  flex: 1 1 480px; min-width: 0; position: relative;
  display: flex; align-items: center; justify-content: center; padding-block: 20px;
}
.hero-circle {
  position: absolute; width: 82%; max-width: 520px; aspect-ratio: 1;
  border-radius: 50%; background: var(--mint-soft);
}
.car { position: relative; width: 100%; }
.car img { position: relative; z-index: 1; width: 100%; }
.car-shadow {
  position: absolute; left: 6%; right: 6%; bottom: -14px; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 30, 22, .28), rgba(20, 30, 22, 0) 70%);
}

/* gentle entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .7s ease both; }
  .hero-text > *:nth-child(2) { animation-delay: .06s; }
  .hero-text > *:nth-child(3) { animation-delay: .12s; }
  .hero-text > *:nth-child(4) { animation-delay: .18s; }
  .hero-text > *:nth-child(5) { animation-delay: .24s; }
  .car { animation: drive-in 1s cubic-bezier(.2, .8, .2, 1) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes drive-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: var(--section-y); }
.section-soft { background: var(--bg-soft); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split-top { align-items: flex-start; }
.split-head { display: flex; flex-direction: column; gap: 12px; flex: 1 1 320px; }
.split > div > .section-title,
.split > div > .lead,
.split > div > .tags { margin-top: 16px; }
.split > div > .section-title + .lead { margin-top: 20px; }

/* steps */
.section-soft .section-title.center { margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.steps strong { font-size: 18px; }
.steps span:last-child { color: var(--muted); }
.step-icon {
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px;
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 1.5px solid #DCE6DD; color: var(--green-text);
}
.step-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }

/* safety features */
.features { flex: 2 1 520px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--lime); }
.feature strong { font-size: 18px; }
.feature span { color: var(--muted); line-height: 1.55; }

/* app */
.app-section { padding-bottom: 0; overflow: hidden; }
.app-inner { align-items: flex-end; }
.app-text { padding-bottom: var(--section-y); align-self: center; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none;
  transition: background-color .2s ease;
}
.store-btn:hover { color: #fff; background: #2A312B; }
.store-btn .icon { width: 22px; height: 22px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; opacity: .85; }
.store-btn strong { font-size: 16px; }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; height: 540px; padding: 12px 12px 0;
  border-radius: 48px 48px 0 0; background: var(--ink);
  box-shadow: 0 30px 70px rgba(20, 30, 22, .18);
}
.phone-screen { position: relative; height: 100%; border-radius: 38px 38px 0 0; overflow: hidden; background: #EDF1EB; }
.phone-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-card {
  position: absolute; left: 12px; right: 12px; bottom: 16px;
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(20, 30, 22, .14);
}
.phone-card-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.phone-card-top span { font-size: 14px; font-weight: 700; color: var(--green-text); }
.phone-card-driver { display: flex; align-items: center; gap: 12px; }
.phone-card-driver > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.car-name { font-size: 14px; font-weight: 600; }
.phone-card-driver small { font-size: 13px; color: var(--muted); }
.avatar {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--mint-soft); color: var(--green-text);
}
@media (prefers-reduced-motion: no-preference) {
  .route { stroke-dasharray: 8 9; animation: dash 1.4s linear infinite; }
  .car-dot { animation: pulse 2s ease-in-out infinite; transform-origin: 131px 236px; }
  @keyframes dash { to { stroke-dashoffset: -34; } }
  @keyframes pulse { 50% { transform: scale(1.15); } }
}

/* partners marquee */
.partners { padding-top: 88px; }
.marquee {
  overflow: hidden; padding-top: 32px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; }
.marquee-track li { flex: none; width: 300px; height: 110px; display: flex; align-items: center; justify-content: center; }
.marquee-track img {
  width: auto; height: auto;
  filter: grayscale(1); opacity: .6; transition: filter .3s ease, opacity .3s ease;
}
.marquee-track img:hover { filter: none; opacity: 1; }
.logo-raiffeisen { max-width: 200px; max-height: 54px; }
.logo-procredit { max-width: 200px; max-height: 76px; }
.logo-osce { max-width: 250px; max-height: 40px; }
.logo-afk { max-width: 220px; max-height: 70px; }
.marquee.is-running .marquee-track { animation: marquee var(--marquee-duration, 32s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee.is-running .marquee-track { animation: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* airport */
.airport-panel {
  display: flex; flex-wrap: wrap; gap: 48px 72px;
  padding: clamp(32px, 5vw, 64px); border-radius: 36px;
  background: var(--ink); color: #fff;
}
.airport-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.airport-text p { color: var(--dark-muted); font-size: 17px; line-height: 1.6; max-width: 340px; }
.airport-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 16px; }
.link-light { color: #fff; font-weight: 600; font-size: 15px; }
.link-light:hover { color: var(--lime); }

.routes { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; }
.routes li { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--dark-line); }
.routes li:last-child { border-bottom: 0; }
.routes .code { flex: none; width: 52px; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 1px; color: var(--dark-muted); }
.routes .city { flex: 1; min-width: 0; font-size: 19px; font-weight: 600; }
.routes .price { font-family: var(--font-head); font-weight: 700; font-size: 26px; }

/* contact */
.contact-info { flex: 1 1 320px; }
.contact-list { margin: 32px 0 0; }
.contact-list div { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; }
.contact-list a { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--green-text); }

/* forms */
.card-form {
  flex: 1.4 1 460px; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: #fff; box-shadow: 0 20px 50px rgba(20, 30, 22, .06);
}
.card-form-outline { box-shadow: none; border: 1.5px solid var(--line); flex: 1 1 400px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235B645D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input::placeholder { color: #8A938B; }
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); background: #fff; }
.field input.invalid { border-color: #C2410C; background: #FFF7F3; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #5F8F14; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 200px; min-height: 56px; }
.form-msg { min-height: 0; font-size: 14px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.error { color: #B4380B; }
.form-msg.ok { color: var(--green-text); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }

/* jobs */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }
.tags li { padding: 10px 16px; border-radius: 999px; background: var(--mint-soft); font-size: 15px; font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #fff; padding-block: 72px 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.footer-nav, .footer-contact, .footer-stores { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-nav a, .footer-contact a { color: #fff; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); }
.store-btn-sm { padding: 10px 16px; border-radius: 12px; border: 1px solid #3A423B; background: transparent; font-size: 14px; font-weight: 600; }
.store-btn-sm .icon { width: 18px; height: 18px; }
.store-btn-sm:hover { background: #2A312B; }
.footer-bottom {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;   /* "Powered by" on its own line under the copyright */
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 14px; color: #A9B3AA;
}
.footer-credit { letter-spacing: .3px; }
.footer-credit strong { font-weight: 700; color: #fff; }

/* =========================================================
   MOBILE CONTACT BAR
   ========================================================= */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); border-top: 1px solid #EEF2EE;
  box-shadow: 0 -8px 24px rgba(20, 30, 22, .06);
}
.mobile-bar .btn { flex: 1; min-height: 56px; padding-inline: 16px; font-size: 16px; white-space: nowrap; }
.mobile-bar .btn-round { width: 56px; height: 56px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: #fff; border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 16px 30px rgba(20, 30, 22, .06);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .main-nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-flex; }
  .header-call { display: none; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar { display: flex; }
  .hero-actions, .hero-free { display: none; }
  .hero-inner { padding-block: 24px 64px; gap: 24px; }
  .hero-visual { padding-block: 16px 20px; }
  .hero-circle { width: auto; height: 100%; }
  .brand img { height: 46px; }
  .lang-switch { gap: 10px; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .routes .city { font-size: 17px; }
  .routes .price { font-size: 22px; }
  .marquee-track li { width: 220px; height: 90px; }
  .phone { width: 270px; height: 480px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .brand img { height: 42px; }
  .lang-switch { gap: 8px; }
  .lang-switch button { font-size: 13px; }
  .menu-toggle { width: 40px; height: 40px; }
}

/* =========================================================
   CHAT ASSISTANT (js/chat.js)
   ========================================================= */
.chat { --chat-bottom: 24px; }
.chat-launcher {
  position: fixed; right: 24px; bottom: var(--chat-bottom); z-index: 55;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 22px 12px 18px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(20, 30, 22, .22);
  transition: transform .15s ease, background-color .2s ease;
}
.chat-launcher:hover { transform: translateY(-1px); background: #2A312B; }
.chat-launcher .icon { color: var(--lime); }
.chat.is-open .chat-launcher { display: none; }

.chat-panel {
  position: fixed; right: 24px; bottom: var(--chat-bottom); z-index: 70;
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 48px));
  border-radius: 24px; background: #fff; overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 30, 22, .22);
}
.chat-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .chat-panel { animation: chat-in .22s ease both; }
  @keyframes chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; background: var(--ink); color: #fff; }
.chat-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink-on-lime);
  font-family: var(--font-logo); font-style: italic; font-weight: 800; font-size: 17px;
}
.chat-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chat-head-text strong { font-size: 15px; }
.chat-head-text small { font-size: 13px; color: var(--dark-muted); }
.chat-close {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.chat-close:hover { background: #2A312B; }

.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: var(--bg-soft); overscroll-behavior: contain; }
.chat-msg { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.chat-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line-soft); border-bottom-left-radius: 6px; }
.chat-user { align-self: flex-end; background: var(--lime); color: var(--ink-on-lime); border-bottom-right-radius: 6px; }
.chat-msg a { color: var(--green-text); font-weight: 700; }
.chat-typing { color: var(--muted-2); font-style: italic; }
.chat-error { border-color: #F3D2C3; background: #FFF7F3; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--bg-soft); }
.chat-chips[hidden] { display: none; }
.chat-chip {
  padding: 8px 13px; border: 1.5px solid #DCE6DD; border-radius: 999px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer;
}
.chat-chip:hover { border-color: var(--lime); }

.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }
.chat-form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-soft);
  font: inherit; font-size: 16px; color: var(--ink);
}
.chat-form input:focus { outline: none; border-color: var(--lime); background: #fff; }
.chat-send {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink-on-lime); cursor: pointer;
}
.chat-form.is-busy .chat-send { opacity: .6; cursor: progress; }

.chat-contact { display: flex; gap: 8px; padding: 0 12px; }
.chat-contact a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.chat-contact a:hover { border-color: #C9D3CA; color: var(--ink); }
.chat-contact .icon { width: 17px; height: 17px; }
.chat-call .icon { color: var(--green-text); }
.chat-wa .icon { color: #1F8A47; }
.chat-note { padding: 10px 16px 14px; font-size: 11.5px; line-height: 1.45; color: var(--muted-2); text-align: center; }

/* phones: the launcher sits above the contact bar, the chat opens full screen */
@media (max-width: 760px) {
  .chat { --chat-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .chat-launcher { right: 16px; width: 52px; padding: 0; justify-content: center; }
  .chat-launcher-text { display: none; }
  .chat-launcher .icon { width: 24px; height: 24px; }
  .chat-panel {
    inset: 0; width: auto; height: auto; border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .chat-head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
}
