/* ============================================================
   PawPost — design tokens
   Warm, local, neighbourly. Inspired by leather leads, brown
   paper packaging, and golden-hour park walks.
   ============================================================ */
:root {
  --cream:      #FBF1E4;   /* page background */
  --paper:      #FFFCF6;   /* card background */
  --espresso:   #3B2415;   /* primary text / dark brown */
  --bark:       #6E4429;   /* mid brown — headings, nav */
  --terracotta: #C1652F;   /* warm accent */
  --gold:       #E2A23B;   /* secondary accent */
  --sage:       #7C8B5D;   /* small green accent for "available" notes */
  --line:       #E7D9C4;   /* hairline / border */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(59, 36, 21, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------- */
/* Top bar                                                      */
/* ---------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 241, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bark);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .pawmark {
  width: 28px;
  height: 28px;
  fill: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a { text-decoration: none; color: var(--bark); }
.nav-links a:hover { color: var(--terracotta); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: 0 6px 18px -6px rgba(193, 101, 47, 0.6);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(193, 101, 47, 0.65); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--bark);
  color: var(--bark);
}

.btn-ghost:hover { background: var(--bark); color: var(--paper); }

/* ---------------------------------------------------------- */
/* Hero                                                         */
/* ---------------------------------------------------------- */
.hero {
  padding: 64px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--espresso);
  font-weight: 600;
}

h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--bark);
  max-width: 480px;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--bark);
  font-weight: 600;
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--bark);
  opacity: 0.75;
}

.hero-art {
  position: relative;
}

.hero-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}

.hero-badge .pawmark { width: 30px; height: 30px; fill: var(--terracotta); flex-shrink: 0; }

.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero-badge span { font-size: 0.8rem; color: var(--bark); }

/* ---------------------------------------------------------- */
/* Walk-route signature — a winding dashed trail with paw      */
/* prints that threads through the page sections.              */
/* ---------------------------------------------------------- */
.walk-route {
  position: relative;
  padding: 10px 0 0;
}

.walk-route svg {
  display: block;
  width: 100%;
  height: auto;
}

.route-label {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bark);
  opacity: 0.8;
}

/* ---------------------------------------------------------- */
/* Story section                                                */
/* ---------------------------------------------------------- */
.section { padding: 76px 0; }

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head .eyebrow { margin-bottom: 12px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 14px;
  font-weight: 600;
}

.section-head p { color: var(--bark); font-size: 1.05rem; margin: 0; }

.story {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.story-grid img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius) 0 0 var(--radius);
}

.story-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.story-copy h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
}

.story-copy p { margin: 0; color: var(--bark); }

.story-copy .pet-name {
  color: var(--terracotta);
  font-weight: 700;
}

/* ---------------------------------------------------------- */
/* Services                                                     */
/* ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #F6E6D2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg { width: 24px; height: 24px; stroke: var(--terracotta); fill: none; stroke-width: 1.8; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.service-price {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-size: 1.3rem;
  font-weight: 600;
}

.service-price span {
  font-size: 0.8rem;
  color: var(--bark);
  font-family: var(--font-body);
  font-weight: 500;
}

.service-card p.blurb {
  font-size: 0.92rem;
  color: var(--bark);
  margin: 10px 0 0;
}

/* ---------------------------------------------------------- */
/* Areas                                                        */
/* ---------------------------------------------------------- */
.areas-wrap {
  background: var(--bark);
  border-radius: var(--radius);
  padding: 56px;
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.areas-wrap .section-head h2,
.areas-wrap .section-head p { color: var(--cream); }

.areas-wrap .eyebrow { color: var(--gold); }
.areas-wrap .eyebrow::before { background: var(--gold); }

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.area-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(251, 241, 228, 0.15);
}

.area-list svg { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; }

.area-note {
  margin-top: 22px;
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 380px;
}

/* ---------------------------------------------------------- */
/* Sitters                                                      */
/* ---------------------------------------------------------- */
.sitters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.sitter-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.sitter-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--terracotta));
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}

.sitter-card h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.sitter-card .city {
  font-size: 0.85rem;
  color: var(--bark);
  margin-bottom: 8px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--terracotta);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.sitter-card .services-tag {
  font-size: 0.78rem;
  color: var(--bark);
  opacity: 0.85;
}

/* ---------------------------------------------------------- */
/* FAQ                                                          */
/* ---------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.faq-item:hover { border-color: var(--terracotta); }

.faq-item svg { width: 18px; height: 18px; stroke: var(--terracotta); flex-shrink: 0; }

/* ---------------------------------------------------------- */
/* Footer                                                       */
/* ---------------------------------------------------------- */
footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner .logo { color: var(--cream); }
.footer-inner .logo .pawmark { fill: var(--gold); }

.footer-note {
  font-size: 0.85rem;
  opacity: 0.65;
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
}

.footer-links a { text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--gold); }

.copyright {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 241, 228, 0.12);
  font-size: 0.8rem;
  opacity: 0.55;
}

/* ---------------------------------------------------------- */
/* Chat widget                                                  */
/* ---------------------------------------------------------- */
#chat-launcher {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 100;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--terracotta);
  border: none;
  box-shadow: 0 12px 28px -8px rgba(193, 101, 47, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#chat-launcher:hover { transform: scale(1.06); }
#chat-launcher svg { width: 28px; height: 28px; fill: var(--paper); }

#chat-panel {
  position: fixed;
  bottom: 102px;
  right: 26px;
  z-index: 100;
  width: min(360px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 160px));
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: var(--bark);
  color: var(--cream);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header .pawmark { width: 24px; height: 24px; fill: var(--gold); }

.chat-header strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.chat-header span { font-size: 0.78rem; opacity: 0.8; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.msg {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  line-height: 1.4;
}

.msg.bot {
  background: #F6E6D2;
  color: var(--espresso);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.user {
  background: var(--terracotta);
  color: var(--paper);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }

.chat-input {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 10px;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.chat-input input:focus { border-color: var(--terracotta); }

.chat-input button {
  border: none;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-input button svg { width: 18px; height: 18px; fill: var(--paper); }

/* ---------------------------------------------------------- */
/* Responsive                                                   */
/* ---------------------------------------------------------- */
@media (max-width: 880px) {
  .hero-inner, .story-grid, .areas-wrap { grid-template-columns: 1fr; }
  .story-grid img { border-radius: var(--radius) var(--radius) 0 0; min-height: 240px; }
  .hero-art img { height: 320px; }
  .hero-badge { left: 12px; bottom: -18px; }
  .nav-links { display: none; }
  .area-list { grid-template-columns: 1fr; }
}
