/* =============================================================
   Hannah's Dog Walks — site styles
   All sans-serif. Cream paper, sage-green cards, warm ochre accent.
   Mobile-first. Tokens at top.
   ============================================================= */

/* --- Tokens ------------------------------------------------ */
:root {
  --paper:        #efe8d8;
  --paper-soft:   #e7dfca;
  --paper-deep:   #d9cfb4;
  --ink:          #1f1a14;
  --ink-soft:     #4a3f2e;
  --ink-faint:    #7a6c54;

  --moss:         #3a5a3d;
  --moss-deep:    #2c4530;
  --moss-soft:    #6e8a6c;
  --moss-fill:    #dde8d8;
  --moss-fill-warm: #d4e0cc;
  --moss-border:  rgba(58, 90, 61, 0.22);

  --ochre:        #c8893a;
  --ochre-deep:   #9a6526;
  --brick:        #a55a3f;

  --rule:         rgba(31, 26, 20, 0.16);
  --rule-strong:  rgba(31, 26, 20, 0.55);

  --shadow-card:        0 1px 2px rgba(31, 26, 20, 0.06), 0 8px 24px rgba(31, 26, 20, 0.07);
  --shadow-card-hover:  0 1px 2px rgba(31, 26, 20, 0.08), 0 14px 36px rgba(31, 26, 20, 0.10);

  --radius:    18px;
  --radius-sm: 10px;

  --display: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure:   64ch;
  --container: 1180px;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* --- Page atmosphere -------------------------------------- */
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--moss); color: var(--paper); }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }

em, .em-display {
  font-style: italic;
  color: var(--ochre-deep);
  font-weight: inherit;
}

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

.lede,
.hero__lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}

a {
  color: var(--moss-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover, a:focus { color: var(--ochre-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--moss);
  border-radius: 2px;
}

.dropcap > p:first-of-type::first-letter,
.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.6em;
  line-height: 0.9;
  float: left;
  margin: 0.05em 0.14em -0.05em 0;
  color: var(--moss);
}

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}
.asterism {
  border: 0;
  height: auto;
  text-align: center;
  margin: 3rem 0;
  color: var(--moss-soft);
}
.asterism::after {
  content: '⁂';
  font-size: 1.3rem;
  letter-spacing: 0.4em;
}

/* --- Container --------------------------------------------- */
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}
.container--narrow { width: min(720px, 92vw); }
.container--reading { width: min(640px, 92vw); }

/* --- Header / Masthead ------------------------------------ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 4;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0 1.2rem;
  position: relative;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.4rem;
  font-weight: 600;
  white-space: normal;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}
.site-nav a {
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96rem;
  position: relative;
  padding: 0.4rem 0.1rem;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--moss);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--moss-deep); }

.site-nav__lang { margin-left: 0.4rem; }
.site-nav__lang .lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0.32rem 0.7rem;
  border: 1.5px solid var(--moss-border);
  border-radius: 999px;
  color: var(--moss-deep);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.site-nav__lang .lang-switch::after { display: none; }
.site-nav__lang .lang-switch:hover,
.site-nav__lang .lang-switch:focus {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* --- Hero --------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.hero__headline {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.hero__headline .amp {
  color: var(--ochre);
  font-style: italic;
}
.hero__lede { margin-top: 1.4rem; }
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  align-items: center;
}

/* --- Photograph placeholder ------------------------------ */
.photograph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(58, 90, 61, 0.06) 22px 23px),
    var(--moss-fill);
  border: 1px solid var(--moss-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.photograph::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  right: 1rem;
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss-deep);
  font-weight: 600;
}
.photograph--feature { aspect-ratio: 16 / 9; }
.photograph--portrait { aspect-ratio: 4 / 5; }
.photograph--square { aspect-ratio: 1 / 1; }
.photograph--landscape { aspect-ratio: 5 / 4; }

/* --- Section primitive ----------------------------------- */
.section {
  padding: clamp(2rem, 4.5vw, 4rem) 0;
}
.section + .section { border-top: 1px solid var(--rule); }
.section--alt {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section--bare { padding: 0; }
/* When a bare section is sandwiched between two normal sections, the
   divider rules above and below show but there's no padding to push
   content off them — give it a little breathing room so cards /
   images don't butt up against the lines. */
.section + .section--bare { padding-top: clamp(2rem, 4.5vw, 3.5rem); }
.section--bare:has(+ .section) { padding-bottom: clamp(2rem, 4.5vw, 3.5rem); }

.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { margin: 0; max-width: 18ch; }
.section__head .lede { margin-top: 0.8rem; }

/* --- Service cards --------------------------------------- */
.service-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.service {
  display: grid;
  gap: 0.4rem;
  background: var(--moss-fill);
  border: 1px solid var(--moss-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:nth-child(even) { background: var(--moss-fill-warm); }
.service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.service__num { display: none; }
.service__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.018em;
  margin: 0 0 0.4em;
  color: var(--ink);
}
.service__body p {
  max-width: 56ch;
  margin: 0 0 0.6em;
  color: var(--ink-soft);
}
.service__price {
  margin: 0.5rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--moss-deep);
  letter-spacing: 0.01em;
}
.service__cta {
  justify-self: start;
  margin-top: 0.8rem;
}

/* --- Editorial split (about, contact) ------------- */
.split {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.split--reverse { grid-auto-flow: dense; }
.split--reverse .split__art { grid-column: 1; }

/* --- Trust list (definition list, soft card grid) -- */
.trust-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
.trust-list__item {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--moss-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(31, 26, 20, 0.04);
}
.trust-list dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--moss-deep);
  letter-spacing: 0.02em;
}
.trust-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: 50ch;
}

/* --- Pull quote / testimonial ---------------------------- */
.pullquote {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
  background: var(--moss-fill);
  border: 1px solid var(--moss-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 0;
  max-width: 32ch;
  box-shadow: var(--shadow-card);
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-deep);
}

/* --- CTAs ------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cta::after {
  content: '→';
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}
.cta:hover, .cta:focus {
  gap: 0.85rem;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cta:hover::after, .cta:focus::after { transform: translateX(2px); }

.cta--primary {
  background: var(--moss);
  color: var(--paper);
  border-color: var(--moss);
  box-shadow: 0 6px 18px rgba(58, 90, 61, 0.25);
}
.cta--primary:hover, .cta--primary:focus {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: var(--paper);
  box-shadow: 0 8px 22px rgba(58, 90, 61, 0.32);
}
.cta--quiet {
  border-color: var(--moss-border);
  color: var(--moss-deep);
}
.cta--quiet:hover, .cta--quiet:focus {
  background: var(--moss-fill);
  color: var(--moss-deep);
  border-color: var(--moss);
}

/* --- Form ------------------------------------------------- */
form.contact {
  display: grid;
  gap: 1.1rem;
  max-width: 540px;
  background: var(--paper);
  border: 1px solid var(--moss-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}
form.contact label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
form.contact input,
form.contact textarea {
  font: inherit;
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--moss-border);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
form.contact input:focus,
form.contact textarea:focus {
  outline: 0;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(58, 90, 61, 0.18);
}
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact button { justify-self: start; margin-top: 0.4rem; }

/* --- Gallery --------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--moss-fill);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
a.gallery__item:hover,
a.gallery__item:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.9rem 0.7rem;
  font-size: 0.78rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(31, 26, 20, 0.65), rgba(31, 26, 20, 0));
  font-weight: 600;
}

/* --- Booking embed --------------------------------------- */
#booking-embed {
  border: 1px solid var(--moss-border);
  background: var(--moss-fill);
  border-radius: var(--radius);
  min-height: 700px;
  display: grid;
  place-items: center;
  margin-top: 2rem;
  position: relative;
  box-shadow: var(--shadow-card);
}
.booking-fallback {
  text-align: center;
  padding: 3rem 2rem;
  font-family: var(--body);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
}
.booking-fallback a { color: var(--moss-deep); }

/* --- Footer ---------------------------------------------- */
.site-footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  border-top: 4px solid var(--moss);
}
.site-footer .container { display: grid; gap: 2.2rem; }
.site-footer__masthead {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
  color: var(--paper);
}
.site-footer a { color: var(--paper); text-decoration-thickness: 1px; }
.site-footer a:hover { color: var(--ochre); }

.site-footer__cols {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
  font-family: var(--body);
  font-size: 0.95rem;
}
.site-footer__col h3 {
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239, 232, 216, 0.55);
  margin-bottom: 0.85rem;
  letter-spacing: 0.24em;
}
.site-footer__col p { margin: 0 0 0.4rem; max-width: none; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(239, 232, 216, 0.18);
  padding-top: 1.5rem;
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 232, 216, 0.55);
}

/* --- Motion (entrance reveal) ---------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal 0.7s cubic-bezier(.16,.84,.36,1) forwards;
  }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.16s; }
  .reveal-3 { animation-delay: 0.28s; }
  .reveal-4 { animation-delay: 0.42s; }
  .reveal-5 { animation-delay: 0.56s; }
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive ------------------------------------------ */
@media (min-width: 720px) {
  .hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: end;
  }
  .hero > .container { grid-column: 1 / -1; }
  .hero__art-wrap { grid-column: 2; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.3fr 1fr; gap: 3.5rem; }
  .split--wide { grid-template-columns: 1fr 1.3fr; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .site-footer__cols { grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; }
}

@media (min-width: 1000px) {
  .service-list { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

/* Mobile nav */
@media (max-width: 720px) {
  .site-header { position: sticky; top: 0; z-index: 5; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 20px rgba(31, 26, 20, 0.08);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    pointer-events: none;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
  }
  .site-nav ul {
    flex-direction: column;
    padding: 1rem 1.4rem 1.6rem;
    gap: 0.6rem;
  }
  .site-nav a { padding: 0.55rem 0; }
}
