/* ==========================================================================
   Valley Dog Trainer — stylesheet
   Palette: deep forest green + warm cream + amber. Mobile-first.
   ========================================================================== */

:root {
  --ink:        #16201a;
  --forest:     #1f3a2b;
  --forest-2:   #2c5240;
  --moss:       #3f7355;
  --moss-soft:  #e3ede6;
  --amber:      #a35d12;
  --amber-2:    #925411;   /* pressed/hover — darker, not lighter */
  --amber-light:#d98324;   /* amber for dark backgrounds only */
  --amber-soft: #fbf1e2;
  --cream:      #fffdf8;
  --sand:       #f6f2e9;
  --sand-2:     #ece5d7;
  --body:       #4c554e;
  --muted:      #68716a;
  --line:       #ded7c8;
  --white:      #ffffff;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(22,32,26,.06), 0 2px 8px rgba(22,32,26,.05);
  --shadow-md:  0 4px 12px rgba(22,32,26,.07), 0 12px 32px rgba(22,32,26,.08);
  --shadow-lg:  0 8px 24px rgba(22,32,26,.09), 0 24px 60px rgba(22,32,26,.11);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1140px;
  --gutter: 20px;
  --header-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 68px 0; }
.section--tight { padding: 48px 0; }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: #d9e4dc; }
.section--forest h2, .section--forest h3 { color: var(--white); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--forest-2), var(--moss));
  display: grid; place-items: center;
}
.brand__mark svg { width: 20px; height: 20px; fill: #fff; }
.brand__sub { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: -3px; }

.nav__links { display: none; }
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  display: none; border-top: 1px solid var(--line);
  padding: 12px 0 22px; background: var(--cream);
}
.nav__drawer.is-open { display: block; }
.nav__drawer a:not(.btn) {
  display: block; padding: 12px 4px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand-2);
}
.nav__drawer a:not(.btn):hover,
.nav__drawer a:not(.btn)[aria-current="page"] { color: var(--amber); }
.nav__drawer .btn { margin-top: 16px; border-bottom: 0; }

@media (min-width: 900px) {
  .nav__toggle, .nav__drawer { display: none !important; }
  .nav__links { display: flex; align-items: center; gap: 22px; }
  .nav__links a { white-space: nowrap; }
  /* Slightly tighter than the page buttons so the header fits at 900px. */
  .nav__links .btn { padding: 11px 18px; }
  .nav__links a:not(.btn) { color: var(--body); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .nav__links a:not(.btn):hover { color: var(--amber); }
  .nav__links a:not(.btn)[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .97rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-2); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest-2); }
.btn--ghost:hover { background: var(--moss-soft); color: var(--forest); }
.btn--light { background: var(--white); color: var(--forest); }
.btn--light:hover { background: var(--sand); color: var(--forest); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.03rem; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(63,115,85,.15), transparent 62%),
    linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--body); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hero__cta .btn { flex: 1 1 auto; min-width: 190px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--moss); background: var(--moss-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section--forest .eyebrow { background: rgba(255,255,255,.1); color: #b8d4c3; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 17px; height: 17px; fill: var(--moss); flex-shrink: 0; }

@media (min-width: 900px) {
  .hero { padding: 76px 0 84px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ---------- photo slots (replace with real photography) ---------- */
.photo-slot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(140deg, var(--forest-2) 0%, var(--moss) 55%, #5b9070 100%);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center;
  min-height: 300px; padding: 30px; color: rgba(255,255,255,.9);
}
.photo-slot::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .6; pointer-events: none;
}
.photo-slot__inner { position: relative; z-index: 1; max-width: 260px; }
.photo-slot svg { width: 64px; height: 64px; margin: 0 auto 14px; fill: rgba(255,255,255,.85); }
.photo-slot p { font-size: .87rem; margin: 0; line-height: 1.5; color: rgba(255,255,255,.78); }
.photo-slot strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; margin-bottom: 5px; }
.photo-slot--wide { min-height: 240px; }
.photo-slot--alt { background: linear-gradient(140deg, #6b4a22 0%, var(--amber) 60%, #e0a04a 100%); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- section headings ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4em; }
.card p:last-of-type { margin-bottom: 0; }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
  background: var(--moss-soft); display: grid; place-items: center; flex-shrink: 0;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--forest-2); }
.card__icon--amber { background: var(--amber-soft); }
.card__icon--amber svg { fill: var(--amber); }
.card__link { align-self: flex-start; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "\2192"; transition: transform .18s ease; }
.card:hover .card__link::after { transform: translateX(3px); }
.card--flat { box-shadow: none; background: transparent; border-color: transparent; padding: 0; }
.card--flat:hover { transform: none; box-shadow: none; }

.card--feature { padding: 34px 30px; }
.card--feature ul { list-style: none; padding: 0; margin: 18px 0; }
.card--feature li { position: relative; padding-left: 28px; font-size: .96rem; }
.card--feature li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--moss-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%233f7355' d='M6.4 11.3 3.5 8.4l1.1-1.1 1.8 1.8 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.price-note { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.tag {
  display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--amber); background: var(--amber-soft);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; }
@media (min-width: 800px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; position: relative; padding-top: 56px; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--forest); color: #fff;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.12rem; }
.step p { font-size: .96rem; color: var(--muted); margin-bottom: 0; }
.section--forest .step::before { background: var(--amber); }
.section--forest .step p { color: #b9c9be; }

/* ---------- prose / notes ---------- */
.note {
  border-left: 3px solid var(--amber); background: var(--amber-soft);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

.fact-list { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 780px) { .fact-list { grid-template-columns: repeat(2, 1fr); gap: 26px 40px; } }
.fact h3 { font-size: 1.05rem; margin-bottom: .3em; }
.fact p { font-size: .96rem; margin-bottom: 0; }
.section--forest .fact p { color: #b9c9be; }

/* ---------- areas ---------- */
.area-list {
  display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0;
}
.area-list li {
  background: var(--white); border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 999px; font-size: .9rem; margin: 0; color: var(--body);
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  margin-top: -8px; border-right: 2px solid var(--moss); border-bottom: 2px solid var(--moss);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding-right: 20px; color: var(--body); }
.faq details p:last-child { margin-bottom: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  color: #d9e4dc; padding: 58px 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { max-width: 52ch; margin: 0 auto 26px; color: #b9c9be; }
.cta-band .btn { margin: 0 6px 10px; }

/* ---------- form ---------- */
.form-wrap {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .93rem; color: var(--ink); margin-bottom: 7px; }
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin: -3px 0 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(63,115,85,.16); background: var(--white);
}
.field--required label::after { content: " *"; color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .87rem; color: var(--muted); margin-top: 16px; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--moss-soft); color: var(--forest); border: 1px solid #bcd6c6; }
.form-status--err { background: #fdecec; color: #8c2b2b; border: 1px solid #f2c9c9; }
@media (min-width: 620px) {
  .form-wrap { padding: 38px 36px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}

.contact-grid { display: grid; gap: 34px; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 54px; align-items: start; } }
.contact-detail { margin-bottom: 26px; }
.contact-detail h3 { font-size: 1.02rem; margin-bottom: .25em; }
.contact-detail p { margin-bottom: 0; font-size: .97rem; color: var(--muted); }
.contact-detail a { font-weight: 600; }

/* ---------- page header ---------- */
.page-head {
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line); padding: 46px 0 44px;
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-bottom: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); text-decoration: underline; }

/* ---------- split ---------- */
.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse .split__media { order: 2; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #9aa79e; padding: 52px 0 28px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.site-footer a { color: #c3cec7; text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand__sub { color: #8b978f; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .85rem; color: #7f8c84;
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- fill-in-the-blank markers ----------
   Wrap any copy you still need to write in <span class="todo">…</span>.
   It renders with a loud highlight so it cannot go live unnoticed.
   Delete the class (not the text) once you have written the real thing. */
.todo {
  background: #fff3bf; color: #6b4b00; padding: 1px 6px;
  border-radius: 4px; box-shadow: inset 0 0 0 1px #f0d478; font-weight: 500;
}
.todo::before { content: "✎ "; opacity: .6; }

/* ---------- real photography ---------- */
.hero__photo, .feature__photo {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); object-fit: cover; background: var(--sand-2);
}
.hero__photo { aspect-ratio: 3 / 2; }
/* Feature photos keep their natural shape — no surprise crops through a face.
   Portrait-orientation shots get a ceiling so they do not tower over their column. */
.feature__photo { max-width: 100%; }
.split__media .feature__photo[width="726"],
.split__media .feature__photo[width="900"] { max-width: 420px; }

/* ---------- phone ---------- */
.nav__phone {
  display: none; align-items: center; gap: 7px;
  font-weight: 600; font-size: .95rem; color: var(--forest); text-decoration: none;
  white-space: nowrap;
}
.nav__phone svg { width: 16px; height: 16px; fill: var(--moss); flex-shrink: 0; }
.nav__phone:hover { color: var(--amber); }
.nav__phone:hover svg { fill: var(--amber); }
@media (min-width: 1100px) { .nav__phone { display: inline-flex; } }

.contact-phone {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--forest); text-decoration: none; letter-spacing: -0.01em;
}
.contact-phone:hover { color: var(--amber); }
