/* Dr Doglittle — Central Scottish Borders dog walking
   Single stylesheet, no framework. Mobile-first. */

:root {
  color-scheme: light;

  --green-900: #12301c;
  --green-800: #1a4527;
  --green-700: #1e5631;
  --green-600: #2d6b40;
  --green-500: #3e7d4f;
  --moss:      #7a9a6b;

  --cream:  #fdfaf4;
  --sand:   #f4ebdb;
  --sand-2: #ece0c9;
  --wood:   #c09b63;

  --ink:    #1c211d;
  --body:   #3c463d;
  --muted:  #5f6b60;
  --line:   #ded3bf;

  --cta:      #9a4f0f;
  --cta-dark: #7d3f0b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 48, 28, .07), 0 2px 8px rgba(18, 48, 28, .05);
  --shadow-md: 0 4px 14px rgba(18, 48, 28, .09), 0 12px 32px rgba(18, 48, 28, .07);

  --sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
  color: var(--green-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--cta); }

:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 720px; }

section { padding-block: clamp(2.75rem, 7vw, 4.75rem); }

.skip {
  position: absolute; left: -9999px;
  background: var(--green-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--green-900);
}
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .75rem; font: inherit; font-size: .9rem; color: var(--green-900); cursor: pointer;
}
.nav-toggle:hover { background: var(--sand); }

nav ul { list-style: none; margin: 0; padding: 0; }

@media (max-width: 819px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul { padding: .5rem var(--gutter) 1.1rem; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a {
    display: block; padding: .85rem .2rem; text-decoration: none;
    color: var(--green-900); font-weight: 500;
  }
  .site-nav .btn { margin-top: .85rem; text-align: center; }
}

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: .3rem; }
  .site-nav a {
    text-decoration: none; color: var(--body); font-weight: 500;
    padding: .5rem .8rem; border-radius: 9px; display: block; font-size: .97rem;
  }
  .site-nav a:hover { background: var(--sand); color: var(--green-900); }
  .site-nav a[aria-current="page"] { color: var(--green-900); background: var(--sand); }
  .site-nav .btn { margin-left: .5rem; }
  .site-nav .btn:hover { background: var(--cta-dark); color: #fff; }
}

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

.btn {
  display: inline-block; text-align: center;
  background: var(--cta); color: #fff;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--cta);
  transition: background .15s ease, transform .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-ghost {
  background: transparent; color: var(--green-900); border-color: var(--green-700);
}
.btn-ghost:hover { background: var(--green-700); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

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

.hero {
  background:
    radial-gradient(1000px 420px at 88% -12%, rgba(122,154,107,.28), transparent 62%),
    linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.25rem, 6vw, 4.25rem);
}
.hero-grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
}
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-700); background: rgba(122,154,107,.2);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: .45em; }
.lede { font-size: clamp(1.08rem, 2.1vw, 1.22rem); color: var(--body); max-width: 34em; }
.hero-art { justify-self: center; max-width: 420px; width: 100%; }
.hero-art img { border-radius: 50%; box-shadow: var(--shadow-md); }

/* ---------- Trust strip ---------- */

.trust { background: var(--green-900); color: #e9f0e6; padding-block: 1.1rem; }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.6rem;
  font-size: .93rem;
}
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust svg { flex: none; width: 17px; height: 17px; color: var(--moss); }

/* ---------- Cards / grids ---------- */

.section-head { max-width: 640px; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--body); font-size: .99rem; }

.price {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 700;
  color: var(--green-700); line-height: 1; margin: .2rem 0 .1rem;
}
.price span { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--muted); }
.card .meta {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 600;
}
.card ul { margin: .9rem 0 0; padding-left: 1.1rem; font-size: .95rem; color: var(--body); }
.card ul li { margin-bottom: .35rem; }
.card .card-foot { margin-top: auto; padding-top: 1.1rem; }

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.step h3 { margin-bottom: .3em; }

/* ---------- Areas ---------- */

.alt { background: var(--sand); border-block: 1px solid var(--line); }

.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.area-list a {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  padding: .55rem 1.05rem; border-radius: 999px; text-decoration: none;
  color: var(--green-900); font-weight: 500; font-size: .96rem;
}
.area-list a:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.2rem; margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer; padding: 1.05rem 0; font-weight: 600; color: var(--green-900);
  font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--green-500); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 1rem 0 1.2rem; font-size: 1rem; }

/* ---------- Form ---------- */

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--green-900); margin-bottom: .4rem; font-size: .97rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-500); background: #fff;
}
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

fieldset { border: 0; margin: 0 0 1.15rem; padding: 0; }
fieldset legend {
  font-weight: 600; color: var(--green-900); margin-bottom: .5rem; padding: 0; font-size: .97rem;
}
.check-grid { display: grid; gap: .5rem; }
@media (min-width: 620px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex; align-items: flex-start; gap: .6rem;
  background: var(--cream); border: 1px solid var(--line);
  padding: .7rem .85rem; border-radius: 10px; cursor: pointer; font-size: .97rem;
}
.check:hover { border-color: var(--moss); }
.check input { width: auto; margin: .25rem 0 0; flex: none; accent-color: var(--green-700); }

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

.form-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; }
.form-status[data-state="ok"]  { background: #e7f2e7; color: #1c4a24; border: 1px solid #b9dcba; }
.form-status[data-state="err"] { background: #fbeae6; color: #7d2c12; border: 1px solid #f0c3b6; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #f2f7ef; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce8d8; max-width: 44ch; margin-inline: auto; }
.cta-band .btn { background: var(--cream); color: var(--green-900); border-color: var(--cream); }
.cta-band .btn:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.cta-band .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.cta-band .btn-ghost:hover {
  background: rgba(255,255,255,.14); color: #fff; border-color: #fff;
}
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

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

.site-footer {
  background: var(--green-900); color: #c7d4c2;
  padding-block: clamp(2.25rem, 5vw, 3.25rem) 1.75rem; font-size: .95rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: .7rem; font-family: var(--sans); font-weight: 600; }
.site-footer a { color: #e2ece0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer-brand span { font-family: var(--serif); font-size: 1.25rem; color: #fff; font-weight: 700; }
.footer-bottom {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
  font-size: .87rem; color: #a7b8a3;
}

/* ---------- Misc ---------- */

.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

.callout {
  background: var(--sand); border-left: 4px solid var(--green-600);
  padding: 1.1rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6rem 0;
}
.callout p { margin-bottom: 0; }

.breadcrumb { font-size: .88rem; color: var(--muted); padding-top: 1.1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

table.rates { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 1rem; }
table.rates th, table.rates td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
table.rates th { color: var(--green-900); font-weight: 600; }
table.rates td:last-child, table.rates th:last-child { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---- Photo gallery ---- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}
.gallery li { margin: 0; width: calc((100% - .75rem) / 2); }
@media (min-width: 640px) { .gallery li { width: calc((100% - 1.5rem) / 3); } }
@media (min-width: 960px) { .gallery li { width: calc((100% - 3rem) / 5); } }
.gallery img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--sand-2);
}
.gallery-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .95rem; }
