/* ==========================================================================
   Wagfield Dog Care (demo site) — shared stylesheet

   This is a demo built by Graham Cloud Services, not a real company's site
   — see the persistent .demo-banner in every page. Palette is warm amber/
   gold with a deep espresso-brown, on purpose: research on dog-sitting
   sites (docs/superpowers/specs/2026-07-31-dogsitting-demo-design.md)
   called out warm, playful tones as "trust + comfort" for pet owners, and
   this needed to read as neither lawncare's green/earth nor cleaning's
   navy/sky-blue. Type: self-hosted Fredoka (headings) + Nunito (body/nav) — see fonts/fonts.css.
   ========================================================================== */

@import url("/fonts/fonts.css?v=1");

:root {
  --cream: #fdf6ec;
  --white: #ffffff;
  --ink: #2b1e14;
  --ink-soft: #6b5847;
  --line: #ecdfcd;

  --espresso: #4a2f1c;
  --espresso-2: #34210f;
  --gold: #d9932f;
  --gold-dark: #b8781f;
  --gold-soft: #fbecd3;
  --gold-text: #8f5b10;

  --display: "Fredoka", "Segoe UI", sans-serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --gutter: 1.5rem;
  --radius: 28px;
  --band-y: 5.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--espresso-2);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-text);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* height: auto is load-bearing: every <img> carries width/height attributes
   for CLS prevention, and without this the browser uses them as literal
   pixel heights once max-width shrinks the rendered width, squashing every
   image non-uniformly. (Noted the hard way on lawncare — see that project's
   css/style.css for the same comment.) */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--espresso);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

.band {
  padding: var(--band-y) 0;
}
.band--tight { padding: 3rem 0; }
.band--raised { background: var(--white); }
.band--tint { background: var(--gold-soft); }

.kicker {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--gold-text);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.req {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85em;
}

.band-head { margin-bottom: 3rem; }
.band-head--wide .lede { max-width: 70ch; }

/* ---------------------------------------------------------------------- */
/* Demo banner + header                                                    */
/* ---------------------------------------------------------------------- */

.demo-banner {
  background: var(--espresso-2);
  color: var(--white);
  font-size: 0.85rem;
}
.demo-banner-inner {
  padding: 0.5rem var(--gutter);
  text-align: center;
}
.demo-banner a {
  color: var(--white);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 236, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--espresso-2);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--espresso);
  display: inline-block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--espresso-2);
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 600;
}
.nav-links a.active:not(.btn),
.nav-links a:not(.btn):hover { color: var(--gold-text); }
.nav-cta { margin-left: 0.25rem; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: var(--espresso-2);
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-outline:hover { background: var(--gold-soft); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.7;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-collage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.collage-photo {
  position: absolute;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: 0 16px 34px rgba(74, 47, 28, 0.22);
  object-fit: cover;
}
.collage-photo--1 {
  width: 62%;
  aspect-ratio: 4 / 3;
  left: 0;
  top: 10%;
  transform: rotate(-6deg);
  z-index: 1;
}
.collage-photo--2 {
  width: 46%;
  aspect-ratio: 1 / 1;
  right: 0;
  top: 0;
  transform: rotate(4deg);
  z-index: 2;
}
.collage-photo--3 {
  width: 42%;
  aspect-ratio: 4 / 3;
  left: 38%;
  bottom: 0;
  transform: rotate(3deg);
  z-index: 3;
}
.stats-row > div {
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Stats row                                                                */
/* ---------------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--espresso);
}
.stat-label {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Grids + cards                                                           */
/* ---------------------------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-top: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.service-card:nth-child(even) {
  background: var(--gold-soft);
  border-color: transparent;
}

.service-card svg {
  width: 34px;
  height: 34px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.6;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: 50%;
  padding: 10px;
  box-sizing: content-box;
  box-shadow: 0 6px 16px rgba(74, 47, 28, 0.12);
}
.service-price {
  font-family: var(--display);
  font-weight: 600;
  color: var(--espresso);
  margin-top: 0.75rem;
}

.testimonial-card {
  position: relative;
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  box-shadow: 0 14px 34px rgba(74, 47, 28, 0.1);
  border: none;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 1rem;
}
/* Initials only — deliberately not real photos. A real photo next to a
   fabricated name/quote implies a specific real person said it, which is
   the fake-testimonial-with-stock-photo pattern, not something a "demo
   site" label excuses. Same reasoning as lawncare's identical comment. */
.testimonial-avatar--1 { background: var(--espresso); }
.testimonial-avatar--2 { background: var(--gold-text); }
.testimonial-avatar--3 { background: var(--espresso-2); }
.testimonial-quote {
  font-size: 1.05rem;
  color: var(--ink);
  min-height: 2.6em;
}
.typewriter-cursor {
  display: inline-block;
  color: var(--gold-dark);
  animation: caret-blink 0.85s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor { animation: none; }
}
.testimonial-name {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--espresso-2);
}

/* ---------------------------------------------------------------------- */
/* Gallery                                                                  */
/* ---------------------------------------------------------------------- */

.gallery-item, .carousel-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(74, 47, 28, 0.1);
}
.gallery-item img, .carousel-item img { border-radius: 0; }
.gallery-caption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.gallery-note {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* Gallery carousel                                                         */
/* ---------------------------------------------------------------------- */

.carousel {
  position: relative;
  margin-top: 2rem;
}
.carousel-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding-bottom: 0.5rem;
  /* No JS required for this to work: it's a native scroll container,
     draggable/swipeable and keyboard-scrollable (arrow keys) once
     focused via the tabindex on the track. The prev/next buttons are a
     JS-only enhancement layered on top — see the .js .carousel-btn rule
     below, which reveals them only once main.js's early inline script
     has confirmed JS actually ran. */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--gold-soft);
}
.carousel-item {
  flex: 0 0 auto;
  width: min(420px, 78vw);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(74, 47, 28, 0.14);
}
.carousel-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.carousel-edge {
  /* Fades the track's edge into the page background, hinting there are
     more photos to scroll to without needing explanatory text. Purely
     decorative — aria-hidden, and it never blocks clicks/scroll. */
  position: absolute;
  top: 0;
  bottom: 0.5rem;
  width: 48px;
  pointer-events: none;
  z-index: 1;
}
.carousel-edge--left {
  left: 0;
  background: linear-gradient(to right, var(--cream), rgba(253, 246, 236, 0));
}
.carousel-edge--right {
  right: 0;
  background: linear-gradient(to left, var(--cream), rgba(253, 246, 236, 0));
}
.carousel-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--espresso);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(74, 47, 28, 0.2);
}
.js .carousel-btn { display: flex; }
.carousel-btn:hover { background: var(--gold-soft); }
.carousel-btn:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
.carousel-btn--prev { left: -14px; }
.carousel-btn--next { right: -14px; }
.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--espresso);
  fill: none;
  stroke-width: 2;
}

.carousel-controls {
  /* Hidden until .js confirms script executed — without JS, prev/next/
     play-pause/dots would do nothing, so visitors fall back to native
     swipe/drag/keyboard scroll on the track instead. */
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.js .carousel-controls { display: flex; }
.carousel-play-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(74, 47, 28, 0.16);
}
.carousel-play-toggle:hover { background: var(--gold-soft); }
.carousel-play-toggle:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
.carousel-play-toggle svg { width: 15px; height: 15px; fill: var(--espresso); }
.carousel-play-toggle .icon-play { display: none; }
.carousel-play-toggle.is-paused .icon-play { display: block; }
.carousel-play-toggle.is-paused .icon-pause { display: none; }
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.carousel-dot {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  position: relative;
  font-size: 0;
}
.carousel-dot::before {
  content: "\1F43E";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  opacity: 0.5;
}
.carousel-dot:hover::before,
.carousel-dot.is-active::before {
  opacity: 1;
}
.carousel-dot:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
.carousel-dot.is-active {
  background: var(--gold);
  width: 24px;
  height: 24px;
}

/* ---------------------------------------------------------------------- */
/* FAQ (new in this project — dogsitting's design spec calls for an FAQ    */
/* section that lawncare's spec didn't need; a native <details>/<summary>  */
/* accordion needs no JS and stays keyboard/screen-reader usable for free) */
/* ---------------------------------------------------------------------- */

.faq-list {
  max-width: 760px;
  margin-top: 2rem;
}
.faq-item {
  background: var(--white);
  border: none;
  box-shadow: 0 10px 26px rgba(74, 47, 28, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  color: var(--espresso-2);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 600;
  color: var(--gold-text);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--espresso-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--espresso);
  outline-offset: 1px;
}
.form-field [aria-invalid="true"] {
  border-color: #c0392b;
}
.form-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.side-card {
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.side-card h3 { margin-bottom: 0.75rem; }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
}
.side-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold-text);
  font-weight: 700;
}

.cta-band {
  text-align: center;
  background: var(--espresso);
  color: var(--white);
  border-radius: var(--radius);
  padding: 4rem 2.5rem;
}
.cta-band h2, .cta-band .lede { color: var(--white); }
.cta-band .lede { margin: 0 auto 1.75rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--espresso-2);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-mark { background: var(--gold); }
.footer-brand p { color: rgba(255, 255, 255, 0.7); margin-top: 0.75rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--display);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: var(--white); }
.footer-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------------- */
/* 404                                                                      */
/* ---------------------------------------------------------------------- */

.error-page {
  text-align: center;
  padding: 7rem 0;
}
.error-code {
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 600;
  color: var(--gold-soft);
  -webkit-text-stroke: 2px var(--espresso);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-collage { margin-top: 2rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0 0;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-btn--prev { left: 2px; }
  .carousel-btn--next { right: 2px; }
  .stats-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
}
