/* Travo — public site.
   Warm, editorial, unhurried. The visual job is to look like a company that has been
   running tours for twenty years, because that is the single hardest thing to convey
   to someone in Manchester who has never heard of us. */

:root {
  --ink:      #23201c;
  --ink-soft: #56504a;
  --paper:    #faf7f2;
  --paper-2:  #f2ece3;
  --line:     #e2d9cc;
  --clay:     #a8502f;   /* Uzbek brick / terracotta */
  --clay-dk:  #8a4026;
  --lapis:    #1f4e6b;   /* Samarkand tile blue */
  --shadow:   0 1px 2px rgba(35,32,28,.06), 0 8px 24px rgba(35,32,28,.08);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

/* ── nav ── */
.nav {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 32px; border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .16em;
  color: var(--ink); text-decoration: none;
}
.nav-note { font-size: 13px; color: var(--ink-soft); }

/* ── hero ── */
.hero { padding: 84px 32px 68px; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 780px; margin: 0 auto; }
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay); font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); margin-bottom: .4em; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 64ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.cta-note { font-size: 14px; color: var(--ink-soft); }

.btn-primary {
  font: inherit; font-weight: 600; font-size: 16px;
  background: var(--clay); color: #fff; border: 0; border-radius: 3px;
  padding: 15px 28px; cursor: pointer; box-shadow: var(--shadow);
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--clay-dk); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 3px solid var(--lapis); outline-offset: 3px; }

/* ── trust ── */
.trust { background: var(--paper-2); padding: 40px 32px; border-bottom: 1px solid var(--line); }
.trust-grid {
  max-width: 1040px; margin: 0 auto; display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.trust-grid strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 3px; }
.trust-grid span { font-size: 14.5px; color: var(--ink-soft); }

/* ── cities ── */
.cities { max-width: 1040px; margin: 0 auto; padding: 72px 32px; }
.cities h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 20ch; margin-bottom: 40px; }
.city-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.city h3 { font-size: 22px; margin-bottom: .3em; }
.city p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }
/* Placeholder until the guides send photographs. Deliberately a flat tile rather than
   a stock image: an obviously-styled block reads as "photo coming", a generic stock
   shot reads as "this company has never been there". */
.city-img {
  aspect-ratio: 4 / 3; border-radius: 3px; margin-bottom: 16px; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--paper-2), #e6dccc);
  background-size: cover; background-position: center;
}
.city-img[style*="url"] { border-color: transparent; }

/* ── close ── */
.close {
  max-width: 640px; margin: 0 auto; padding: 8px 32px 88px; text-align: center;
}
.close h2 { font-size: clamp(26px, 3.4vw, 34px); }
.close p { color: var(--ink-soft); margin-bottom: 28px; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); padding: 32px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.foot p { margin: 0 0 6px; }
.foot-small { font-size: 12.5px; max-width: 62ch; margin: 0 auto; opacity: .85; }

/* ── chat ── */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 15px; font-weight: 600;
  background: var(--lapis); color: #fff; border: 0; border-radius: 40px;
  padding: 13px 22px; cursor: pointer; box-shadow: var(--shadow);
}
.chat-fab:hover { filter: brightness(1.08); }
.chat-fab:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.fab-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee0a5; box-shadow: 0 0 0 3px rgba(126,224,165,.25); }

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: min(410px, calc(100vw - 32px)); height: min(620px, calc(100vh - 44px));
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 48px rgba(35,32,28,.22); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--lapis); color: #fff;
}
.chat-head strong { display: block; font-family: var(--serif); font-size: 17px; }
.chat-head span { font-size: 12.5px; opacity: .85; }
.chat-close { background: 0; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-close:focus-visible { outline: 2px solid #fff; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.msg-bot { background: var(--paper-2); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg-me { background: var(--lapis); color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }
.msg-err { background: #fdf0ec; color: var(--clay-dk); align-self: flex-start; font-size: 14px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9ada0; animation: bob 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes bob { 0%,60%,100% { opacity:.35; transform: translateY(0); } 30% { opacity:1; transform: translateY(-3px); } }

.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
}
.chat-form input:focus { outline: 2px solid var(--lapis); outline-offset: -1px; }
.chat-form button {
  font: inherit; font-weight: 600; background: var(--clay); color: #fff;
  border: 0; border-radius: 4px; padding: 0 18px; cursor: pointer;
}
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-legal { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--ink-soft); text-align: center; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 640px) {
  .hero { padding: 56px 22px 48px; }
  .cities { padding: 52px 22px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
}
