/* =========================================================
   WoofWorx Mobile Dog Grooming
   Visual world: "warm paper & pine ink" — a printed field plate.
   Deliberately single-theme (light). The palette IS the identity;
   a naive dark inversion would break the paper/ink character.
   ========================================================= */

:root {
  color-scheme: light;

  /* --- palette --- */
  --paper:      #FBFAF5;  /* crisp warm white ground */
  --paper-2:    #F1EEE4;  /* recessed panel */
  --ink:        #20241E;  /* warm, green-biased near-black */
  --ink-soft:   #4A5245;  /* secondary text */
  --pine:       #2C4235;  /* deep spruce — brand */
  --pine-deep:  #1E2E25;  /* darker pine — footer / contrast */
  --sage:       #8FA088;  /* muted sage — soft accents */
  --sage-tint:  #DDE3D6;  /* pale sage — borders on paper */
  --honey:      #C08A3E;  /* warm ochre — kept for reference */
  --teal:       #35757F;  /* muted turquoise (Alexa's trailer color) — accent marks on paper */
  --teal-light: #93C1C4;  /* soft turquoise — accents on dark grounds (hero, contact) */
  --teal-deep:  #1F5A63;  /* deep turquoise — contact band (Alexa's trailer color) */
  --paper-on-pine: #F3F1E8;

  /* --- type --- */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- scale --- */
  --step-eyebrow: 0.75rem;
  --step-body:    clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead:    clamp(1.4rem, 1.15rem + 1.1vw, 2.1rem);
  --step-h3:      clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  --step-h2:      clamp(2rem, 1.5rem + 2.1vw, 3.1rem);
  --step-hero:    clamp(3.2rem, 1.6rem + 6.6vw, 6.5rem);

  /* --- spacing / layout --- */
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --container: 1180px;
  --measure: 64ch;
  --radius: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* guard against any sub-pixel horizontal overflow */
}

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

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; margin: 0; }

p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 1.1rem;
  /* not flex — so long labels wrap instead of forcing horizontal scroll */
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 0.7rem;
}
.eyebrow--light { color: var(--sage); }
.eyebrow--light::before { background: var(--teal-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--paper); color: var(--pine-deep); }
.btn--primary:hover { background: var(--teal); color: var(--paper); }
.btn--ghost { border-color: rgba(243, 241, 232, 0.6); color: var(--paper-on-pine); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(251, 250, 245, 0.1); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { text-decoration: none; line-height: 1; display: grid; gap: 0.15rem; }
.nav__brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--paper);
  transition: color 0.35s var(--ease);
}
.nav__brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  transition: color 0.35s var(--ease);
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper);
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__links a:not(.nav__cta) { opacity: 0.9; }
.nav__links a:not(.nav__cta):hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav__cta {
  border: 1.5px solid rgba(243, 241, 232, 0.55);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__cta:hover { background: var(--paper); color: var(--pine-deep); border-color: var(--paper); }

/* scrolled state — paper bar */
.nav.is-scrolled {
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--sage-tint);
  box-shadow: 0 6px 24px rgba(32, 36, 30, 0.06);
}
.nav.is-scrolled .nav__brand-mark { color: var(--pine); }
.nav.is-scrolled .nav__brand-sub { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__cta { border-color: var(--pine); color: var(--pine); }
.nav.is-scrolled .nav__cta:hover { background: var(--pine); color: var(--paper); }

@media (max-width: 620px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 5vw, 4rem) 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("images/hero-alexa-dogs.jpg") center 28% / cover no-repeat;
  transform: scale(1.03);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,24,18,0.55) 0%, rgba(20,24,18,0.15) 32%, rgba(20,24,18,0.35) 66%, rgba(20,24,18,0.78) 100%),
    linear-gradient(90deg, rgba(30,46,37,0.5) 0%, rgba(30,46,37,0.05) 60%);
}
.hero__content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-hero);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0.2rem 0 0;
  text-shadow: 0 2px 30px rgba(20, 24, 18, 0.35);
}
.hero__sub {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-weight: 600;
  font-size: clamp(0.7rem, 0.5rem + 0.5vw, 0.95rem);
  color: var(--paper-on-pine);
  margin: 1rem 0 0;
  padding-left: 0.42em;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem);
  color: var(--paper);
  max-width: 30ch;
  margin: 1.8rem 0 0;
  opacity: 0.95;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

.hero__scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(243, 241, 232, 0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--paper);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { opacity: 0; transform: translateY(-3px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
  .hero__media { transform: none; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  background: var(--paper);
  padding: var(--section-y) clamp(1.25rem, 5vw, 4rem);
}
.manifesto__inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.manifesto__lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-lead);
  line-height: 1.4;
  color: var(--ink);
}
.manifesto__lead em {
  font-style: italic;
  color: var(--pine);
}

/* ============================================================
   STORY
   ============================================================ */
.story {
  padding: 0 clamp(1.25rem, 5vw, 4rem) var(--section-y);
}
.story__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story__photos {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}
.story__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -25px rgba(32, 36, 30, 0.5);
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__photo--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.story__photo--wide { aspect-ratio: 3 / 4; }

.story__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.05;
  margin-bottom: 1.3rem;
}
.story__text > p { max-width: var(--measure); margin-bottom: 1.1rem; color: var(--ink-soft); }
.story__text > p:first-of-type { color: var(--ink); }

.creds {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.creds li {
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--sage-tint);
}
.creds li:last-child { border-bottom: 1px solid var(--sage-tint); }
.creds__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step-h3);
  color: var(--pine);
  line-height: 1.2;
}
.creds__body { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

@media (max-width: 800px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__photos { max-width: 460px; }
}

/* ============================================================
   ACTION BREAK
   ============================================================ */
.break {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.break__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("images/dog-action.jpg") center 42% / cover no-repeat;
}
.break__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30,46,37,0.72), rgba(20,24,18,0.55));
}
.break__quote { margin: 0; max-width: 22ch; }
.break__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.9rem);
  line-height: 1.25;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(20, 24, 18, 0.45);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--paper-2);
  padding: var(--section-y) clamp(1.25rem, 5vw, 4rem);
}
.services__head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.services__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.services__intro { color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }

.services__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service {
  background: var(--paper);
  border: 1px solid var(--sage-tint);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(32, 36, 30, 0.45);
  border-color: var(--sage);
}
.service__icon {
  display: inline-flex;
  color: var(--teal);
  margin-bottom: 1.4rem;
}
.service__icon svg { width: 46px; height: 46px; }
.service__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step-h3);
  margin-bottom: 0.7rem;
}
.service__body { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

.services__craft {
  max-width: var(--container);
  margin: 1.25rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.craft__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
}
.craft__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.craft__photo:hover img { transform: scale(1.04); }

@media (max-width: 800px) {
  .services__grid { grid-template-columns: 1fr; max-width: 460px; }
  .services__craft { max-width: 460px; grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--teal-deep);
  color: var(--paper-on-pine);
  padding: var(--section-y) clamp(1.25rem, 5vw, 4rem);
}
.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.contact__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 1rem;
}
.contact__note { color: var(--sage); max-width: 42ch; }
.contact__actions { display: grid; gap: 1rem; }
.contact__card {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(143, 160, 136, 0.4);
  border-radius: var(--radius);
  background: rgba(243, 241, 232, 0.03);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact__card:hover {
  background: rgba(243, 241, 232, 0.09);
  border-color: var(--teal-light);
  transform: translateY(-2px);
}
.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-light);
}
.contact__value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  color: var(--paper);
  word-break: break-word;
}

@media (max-width: 800px) {
  .contact__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper);
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}
.footer__inner { max-width: 40rem; margin: 0 auto; display: grid; justify-items: center; gap: 0.6rem; }
.footer__logo {
  width: clamp(150px, 30vw, 210px);
  height: auto;
  mix-blend-mode: multiply; /* drops the white background onto paper */
}
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--pine);
  margin-top: -0.5rem;
}
.footer__legal {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 0.8rem;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
