/* Wagwell Boarding (PetBoardBox template) — design system.
   Warm chestnut-brown + terracotta on cream, with a muted trust-teal used
   sparingly for safety/trust notices — warm and homey (in-home boarding)
   while still reading as careful/safety-forward. Deliberately distinct from
   the navy/amber PetCareBox palette, the forest-green LawnCareBox palette,
   and the blue-gray SeniorConciergeBox palette sitting next to it in the
   same account. */

:root {
  --wb-chestnut: #4a3226;
  --wb-chestnut-2: #63432f;
  --wb-ink: #2b241e;
  --wb-slate: #5c5248;
  --wb-steel: #8c8177;
  --wb-steel-light: #d9cfc2;
  --wb-cream: #faf5ec;
  --wb-cream-2: #f1e3cd;
  --wb-white: #ffffff;
  --wb-terracotta: #c1652f;
  --wb-terracotta-dark: #a2521f;
  --wb-teal: #3f7d78;
  --wb-teal-dark: #2f625e;
  --wb-line: rgba(255, 255, 255, 0.14);
  --wb-line-dark: rgba(43, 36, 30, 0.12);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 20px rgba(43, 36, 30, 0.12);
  --shadow-lg: 0 14px 36px rgba(43, 36, 30, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--wb-ink);
  background: var(--wb-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--wb-terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--wb-chestnut);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wb-terracotta-dark);
  margin-bottom: 10px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--wb-slate); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-dark { background: var(--wb-chestnut); color: var(--wb-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--wb-white); }
.section-dark p { color: var(--wb-steel-light); }

/* ── Paw-stripe divider ────────────────────────────────────────────────── */
.paw-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg, var(--wb-terracotta), var(--wb-terracotta) 16px, var(--wb-teal) 16px, var(--wb-teal) 32px
  );
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--wb-terracotta); color: var(--wb-white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--wb-terracotta-dark); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--wb-white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark { background: transparent; border-color: var(--wb-chestnut); color: var(--wb-chestnut); }
.btn-outline-dark:hover { background: rgba(74, 50, 38, 0.06); }

.btn-block { width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wb-chestnut);
  border-bottom: 3px solid var(--wb-terracotta);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wb-white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--wb-terracotta);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--wb-chestnut);
  font-weight: 900;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--wb-steel-light);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--wb-white); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 2px solid var(--wb-line);
  border-radius: var(--radius);
  color: var(--wb-white);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--wb-chestnut-2);
  border-top: 1px solid var(--wb-line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 20px;
  color: var(--wb-white);
  font-weight: 700;
  border-bottom: 1px solid var(--wb-line);
  font-size: 0.95rem;
}
.mobile-menu a:hover { text-decoration: none; background: rgba(255,255,255,0.04); }
.mobile-menu .btn { margin: 16px 20px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── Sticky mobile booking bar ───────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--wb-chestnut);
  border-top: 3px solid var(--wb-terracotta);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(74,50,38,0.90), rgba(74,50,38,0.95)),
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.05) 0, transparent 50%),
    var(--wb-chestnut);
  color: var(--wb-white);
  padding: 56px 0 64px;
}
.hero h1 { color: var(--wb-white); }
.hero p { max-width: 560px; color: var(--wb-steel-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Cards / grids ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--wb-white);
  border: 1px solid var(--wb-line-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--wb-chestnut);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--wb-terracotta);
  margin-bottom: 16px;
}
.card .price-range {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--wb-terracotta-dark);
  font-size: 0.92rem;
}

/* .card always has a white background, even when nested inside .section-dark
   (e.g. the home/about "safety" cards) — override the dark-section text
   colors so card headings/body text stay legible instead of white-on-white. */
.section-dark .card h3 { color: var(--wb-chestnut); }
.section-dark .card p { color: var(--wb-slate); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wb-teal);
  color: var(--wb-white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Rates table ───────────────────────────────────────────────────────── */
.rates-table { width: 100%; border-collapse: collapse; background: var(--wb-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.rates-table th, .rates-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--wb-line-dark); }
.rates-table th { background: var(--wb-cream-2); color: var(--wb-chestnut); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rates-table tr:last-child td { border-bottom: none; }
.rates-table td.price { font-weight: 800; color: var(--wb-terracotta-dark); white-space: nowrap; }

/* ── Gallery placeholder tiles ────────────────────────────────────────────── */
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--wb-white);
  border: 1px solid var(--wb-line-dark);
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(45deg, var(--wb-cream-2), var(--wb-cream-2) 14px, var(--wb-cream) 14px, var(--wb-cream) 28px);
}
.gallery-tile.placeholder .ribbon {
  position: absolute; top: 14px; right: -34px;
  background: var(--wb-terracotta); color: var(--wb-white);
  font-weight: 800; font-size: 0.68rem; letter-spacing: 0.05em;
  padding: 4px 40px; transform: rotate(40deg);
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.gallery-tile.placeholder .ph-icon {
  width: 44px; height: 44px; color: var(--wb-steel); margin-bottom: 10px;
}
.gallery-tile.placeholder strong {
  color: var(--wb-chestnut); font-size: 0.95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.gallery-tile.placeholder span { color: var(--wb-steel); font-size: 0.82rem; margin-top: 4px; }

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.category-tabs button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--wb-line-dark);
  background: var(--wb-white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--wb-slate);
}
.category-tabs button.active {
  background: var(--wb-chestnut);
  border-color: var(--wb-chestnut);
  color: var(--wb-white);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--wb-chestnut);
}
.field .hint { font-size: 0.78rem; color: var(--wb-steel); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--wb-line-dark);
  font-size: 16px;
  font-family: var(--font-base);
  background: var(--wb-white);
  color: var(--wb-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--wb-terracotta);
}
.field textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.form-card {
  background: var(--wb-white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}
.form-msg { padding: 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 700; display: none; }
.form-msg.success { background: #e2f0ee; color: var(--wb-teal-dark); display: block; }
.form-msg.error { background: #fbe6e0; color: #a5321a; display: block; }
.form-msg.info { background: var(--wb-cream-2); color: var(--wb-chestnut); display: block; }

.file-drop {
  border: 2px dashed var(--wb-line-dark);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--wb-steel);
  font-size: 0.88rem;
  cursor: pointer;
}
.file-drop input { display: none; }
.file-drop.has-file { border-color: var(--wb-terracotta); color: var(--wb-ink); }

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--wb-line-dark);
  padding: 18px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  gap: 12px;
}
.faq-q .plus { flex-shrink: 0; font-size: 1.3rem; color: var(--wb-terracotta-dark); transition: transform 0.15s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; margin-top: 10px; color: var(--wb-slate); }
.faq-item.open .faq-a { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--wb-chestnut);
  color: var(--wb-steel-light);
  padding: 48px 0 28px;
}
.site-footer h4 { color: var(--wb-white); font-size: 1rem; letter-spacing: 0.02em; }
.site-footer p { color: var(--wb-steel-light); }
.site-footer .notice { color: var(--wb-slate); }
.site-footer a { color: var(--wb-steel-light); }
.site-footer a:hover { color: var(--wb-white); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid var(--wb-line);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { margin-right: 14px; }

/* ── Trust notice ─────────────────────────────────────────────────────── */
.notice {
  background: var(--wb-cream-2);
  border-left: 4px solid var(--wb-teal);
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--wb-slate);
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w-prose { max-width: 680px; }
.center { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--wb-terracotta); color: white; padding: 12px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }
