/* ================================================================
   THERMAL SEARCH CT — SHARED DESIGN SYSTEM
   Mobile-first. Charcoal + deep navy base, restrained thermal-gradient
   accents (purple > red > orange > yellow) used sparingly on hero bars,
   icons, and the sticky call button — never as a full-page background.
   ================================================================ */

:root {
  --charcoal: #1a1d23;
  --navy: #0f1c2e;
  --navy-light: #16283e;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --border: #e1e5ea;
  --text: #1a1d23;
  --text-muted: #5a6472;
  --text-on-dark: #f4f6f8;
  --text-on-dark-muted: #aab4c0;

  --thermal-purple: #6c2bd9;
  --thermal-red: #e0393f;
  --thermal-orange: #f77f28;
  --thermal-yellow: #ffc93c;
  --thermal-gradient: linear-gradient(90deg, var(--thermal-purple), var(--thermal-red), var(--thermal-orange), var(--thermal-yellow));

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(15, 28, 46, 0.08);
  --shadow-md: 0 8px 28px rgba(15, 28, 46, 0.14);

  --focus-ring: 3px solid #ffc93c;
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text); }
.text-muted { color: var(--text-muted); }

a { color: var(--navy); text-decoration underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--thermal-gradient);
  flex-shrink: 0;
}
.nav-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.95rem;
  cursor: pointer;
}
.main-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.main-nav.open { display: block; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.main-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] {
  color: var(--thermal-yellow);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
  }
  .main-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }
  .main-nav a {
    padding: 10px 14px;
    border-bottom: none;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }
  .main-nav a:hover, .main-nav a:focus-visible { background: rgba(255,255,255,0.08); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--thermal-gradient);
}
.hero h1 { color: #fff; }
.hero p.lead {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  text-align: center;
}
.btn-primary {
  background: var(--thermal-gradient);
  color: #1a1200;
}
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(1.08); }
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus-visible { background: transparent; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Sticky mobile call/text bar ---------- */
.sticky-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  background: var(--charcoal);
  border-top: 3px solid transparent;
  border-image: var(--thermal-gradient) 1;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.sticky-call-bar a {
  flex: 1;
  text-decoration: none;
}
@media (min-width: 860px) {
  .sticky-call-bar { display: none; }
}
body { padding-bottom: 76px; }
@media (min-width: 860px) {
  body { padding-bottom: 0; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-thermal-top {
  border-top: 4px solid transparent;
  border-image: var(--thermal-gradient) 1;
}
.card h3 { margin-bottom: 8px; }

/* ---------- Section ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--text-on-dark-muted); }
.section-dark a:not(.btn) { color: var(--thermal-yellow); }

/* ---------- Two-path selector (Home) ---------- */
.path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .path-grid { grid-template-columns: 1fr 1fr; }
}
.path-card {
  border-radius: var(--radius);
  padding: 26px;
  color: #fff;
}
.path-card.path-a { background: linear-gradient(160deg, var(--thermal-purple), var(--thermal-red)); }
.path-card.path-b { background: linear-gradient(160deg, var(--navy), var(--navy-light)); }
.path-card h3 { color: #fff; }
.path-card p { color: rgba(255,255,255,0.88); }

/* ---------- Photo placeholder ---------- */
.photo-placeholder {
  border: 2px dashed #c3cbd4;
  border-radius: var(--radius);
  background: var(--surface-alt);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  gap: 8px;
}
.photo-placeholder .ph-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--thermal-gradient);
  opacity: 0.85;
}
.photo-placeholder strong { color: var(--text); }

/* ---------- Notice / callout boxes ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border-left: 4px solid var(--navy);
  background: var(--surface-alt);
  margin: 18px 0;
}
.notice-important {
  border-left-color: var(--thermal-red);
  background: #fdf1f0;
}
.notice strong { display: block; margin-bottom: 4px; }

/* ---------- Availability banner ---------- */
.availability-banner {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.availability-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--thermal-gradient);
  flex-shrink: 0;
}

/* ---------- Bookings closed banner ---------- */
.bookings-closed-banner {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-field .field-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="time"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-field input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-field label { font-weight: 500; font-size: 0.92rem; }
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 18px;
}
legend { font-weight: 700; padding: 0 6px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 6px; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.success { background: #eafaf0; color: #1c6b3c; border: 1px solid #b8e6c8; }
.form-status.error { background: #fdf1f0; color: #9c2b2b; border: 1px solid #f3c2c0; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--charcoal);
  gap: 12px;
}
.faq-icon { flex-shrink: 0; transition: transform 0.2s; font-weight: 400; color: var(--thermal-orange); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 4px 18px;
  color: var(--text-muted);
}
.faq-answer.open { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--text-on-dark-muted);
  padding: 36px 0 24px;
  font-size: 0.88rem;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--thermal-yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
  color: #7a8695;
}

/* ---------- Lost-pet emergency booking block ---------- */
.urgent-box {
  background: linear-gradient(160deg, #3a0d12, #1a1d23);
  border: 2px solid var(--thermal-red);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0 0;
  color: #fff;
}
.urgent-label {
  display: inline-block;
  background: var(--thermal-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.urgent-box h2, .urgent-box h3 { color: #fff; margin-bottom: 6px; }
.urgent-box p { color: #f1d4d6; margin-bottom: 14px; }
.urgent-box .urgent-fine { font-size: 0.82rem; color: #d9b3b6; margin: 12px 0 0; }
.urgent-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .urgent-actions { flex-direction: row; } }
.btn-urgent {
  background: var(--thermal-red);
  color: #fff;
  font-size: 1.05rem;
  min-height: 54px;
}
.btn-urgent:hover, .btn-urgent:focus-visible { filter: brightness(1.1); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.checklist { padding-left: 0; list-style: none; }
ul.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--thermal-gradient);
}
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li {
  counter-increment: step;
  padding-left: 46px;
  position: relative;
  margin-bottom: 18px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--thermal-gradient);
  color: #1a1200;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
