/* ==========================================================================
   Fetchy's — SW London Dogs
   Ported from the signed-off "Fetchys Site.dc.html" design prototype.
   Defaults baked in: Forest & Amber · Rounded & Friendly · Split-with-photo.
   ========================================================================== */

:root {
  /* Brand palette (Forest & Amber) */
  --brand: #3a5a40;
  --brand-deep: #2b4430;
  --accent: #cf9233;
  --accent-deep: #9a6614;
  --cream: #f6f1e7;
  --ink: #26261f;
  --muted: #6f6f63;
  --line: #e8e1d2;

  /* Type (Rounded & Friendly) */
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-brand: 'Pacifico', cursive;
  --head-weight: 700;

  /* Script-accent highlight (scriptAccent = true) */
  --hl-font: var(--font-brand);
  --hl-color: var(--accent);
  --hl-size: 1.1em;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
}

img { max-width: 100%; }

input, select, textarea, button { font-family: inherit; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Highlighted script word, e.g. "happy" in the hero headline */
.hl {
  font-family: var(--hl-font);
  color: var(--hl-color);
  font-size: var(--hl-size);
  font-weight: 700;
}

/* The "Fetchy's" wordmark — always Pacifico regardless of context */
.wordmark { font-family: var(--font-brand); font-weight: 700; letter-spacing: normal; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px clamp(18px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: #3a5a40;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.25;
  color: var(--brand-deep);
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 700;
}

.header-right { display: flex; align-items: center; gap: 12px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.6vw, 20px);
  align-items: center;
}
.nav-link {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  padding: 6px 1px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: none;
  border: 1.5px solid var(--line);
  cursor: pointer;
  flex: none;
}
.burger span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-deep);
  box-shadow: 0 6px 0 var(--brand-deep), 0 -6px 0 var(--brand-deep);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  flex: none;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(43, 68, 48, 0.7);
}
.header-cta:hover { background: var(--brand-deep); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 6px clamp(18px, 5vw, 40px) 14px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 2px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

/* Desktop <-> mobile switch (replaces the prototype's JS isMobile logic) */
@media (max-width: 759px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-cta { display: none; }
}

/* ==========================================================================
   Buttons — pill CTAs. Colour + hover live in the class so :hover reliably
   overrides; only per-instance sizing (padding/font-size/shadow) stays inline.
   These are the design's style-hover="" states made real.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  font-weight: 800;
}

.btn[disabled] { opacity: 0.65; cursor: default; }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }

.btn-outline { background: #fff; color: var(--brand-deep); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); }

.btn-ghost-light { background: rgba(255, 255, 255, 0.16); color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.28); }

/* Plain text link styled as an inline action ("Learn more →") */
.text-link { background: none; border: none; cursor: pointer; text-decoration: none; padding: 0; }

/* ==========================================================================
   Form fields — focus state ported from style-focus=""
   ========================================================================== */

.field {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.field:focus { border-color: var(--brand); outline: none; }
textarea.field { resize: vertical; }
select.field { font-weight: 500; }

/* Honeypot — invisible to humans, catches bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, 0.86); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(18px, 5vw, 40px) 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.footer-brand-row { grid-column: 1 / -1; }
.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #3a5a40;
}
.footer-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.footer-heading {
  display: block;
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; }
.footer-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  cursor: pointer;
  font-size: 14.5px;
  padding: 0;
  font-weight: 600;
  text-decoration: none;
}
.footer-link:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer-contact a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 12px; }
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(18px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Leaflet map
   ========================================================================== */

#lucy-map, #lucy-map-areas { width: 100%; height: 100%; background: #e9ece4; }
.leaflet-control-attribution { font-size: 10px; }
.lucy-area-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #2b4430 !important;
  font-weight: 800;
  font-size: 12.5px;
  padding: 0 !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}
.lucy-area-label::before { display: none !important; }
