/* Down Boy Down K9 — shared stylesheet
   Brand: charcoal #21252B · ink #16191D · orange #E4572E · cream #F7F3EA · sand #CBBE9E
   Fonts: Oswald 600 (display) · DM Sans (body) · DM Mono (labels) */

:root {
  --charcoal: #21252B;
  --ink: #16191D;
  --orange: #E4572E;
  --cream: #F7F3EA;
  --sand: #CBBE9E;
  --sand-dark: #8a7c5c;
  --line: rgba(203, 190, 158, 0.35);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 1.05rem;
}

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

a { color: var(--orange); }

.wrap {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

h1, h2, h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.lede { font-size: 1.15rem; max-width: 46rem; }

.rule {
  width: 64px;
  height: 4px;
  background: var(--orange);
  border: 0;
  margin: 0 0 1.2rem;
}

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

.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--orange);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
}

.brand img {
  height: 54px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

.site-nav a {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--sand); border-bottom-color: var(--orange); }

.site-nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }

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

.btn {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  background: var(--orange);
  color: var(--cream);
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: 2px solid var(--orange);
  border-radius: 2px;
  cursor: pointer;
}

.btn:hover, .btn:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline:hover, .btn-outline:focus-visible { background: var(--orange); border-color: var(--orange); }

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--ink);
  color: var(--cream);
  position: relative;
}

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  height: min(76vh, 620px);
  object-fit: cover;
  /* Verified treatment: keep the dog's head/face (right side) in frame on desktop */
  object-position: 72% 38%;
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 0 2.6rem;
  background: linear-gradient(to top, rgba(22, 25, 29, 0.92) 30%, rgba(22, 25, 29, 0));
}

.hero-text .subline {
  max-width: 38rem;
  font-size: 1.12rem;
  margin: 0.9rem 0 1.5rem;
  color: var(--cream);
}

/* Mobile hero: show the FULL photo uncropped — its dark background
   blends into the ink hero band, headline block sits below it. */
@media (max-width: 600px) {
  .hero-media img {
    height: auto;
    object-fit: contain;
    object-position: center;
    background: var(--ink);
  }
  .hero-text {
    position: static;
    background: var(--ink);
    padding: 1.6rem 0 2.2rem;
  }
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3.4rem 0 3rem;
  border-bottom: 3px solid var(--orange);
}

.page-hero .lede { color: var(--sand); }

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }

.section-dark {
  background: var(--charcoal);
  color: var(--cream);
}

.section-dark .lede, .section-dark p { color: var(--cream); }

.section-sand { background: var(--sand); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col .badge-img {
  width: min(340px, 80%);
  margin: 0 auto;
  border-radius: 4px;
}

.photo-frame {
  border: 3px solid var(--charcoal);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-dark .photo-frame { border-color: var(--sand); }

/* ---------- Service cards (home) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.card {
  background: var(--cream);
  border-top: 4px solid var(--orange);
  padding: 1.5rem 1.3rem 1.7rem;
  box-shadow: 0 1px 4px rgba(22, 25, 29, 0.12);
}

.card h3 { margin-bottom: 0.55rem; }

.card p { font-size: 0.98rem; margin-bottom: 1rem; }

.card a {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.card a:hover, .card a:focus-visible { text-decoration: underline; }

/* ---------- Philosophy band ---------- */

.philosophy p {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.65;
  max-width: 56rem;
}

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

.cta-band {
  background: var(--orange);
  color: var(--cream);
  padding: 3.2rem 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 1.4rem; }

.cta-band .btn {
  background: var(--ink);
  border-color: var(--ink);
}

.cta-band .btn:hover, .cta-band .btn:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

/* ---------- Services page ---------- */

.service-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-child { border-bottom: 0; }

.service-num {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 2rem;
  color: var(--orange);
}

.service-block h2 { margin-bottom: 0.6rem; }

.service-block p { max-width: 46rem; margin-bottom: 1rem; }

.service-block .details-link {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.service-block .details-link:hover,
.service-block .details-link:focus-visible { text-decoration: underline; }

/* ---------- About ---------- */

.strip {
  margin-top: 2.6rem;
  background: var(--ink);
  color: var(--cream);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1.1rem 1rem;
  border-radius: 2px;
}

.about-badge {
  width: min(260px, 70%);
  margin: 2.6rem auto 0;
  border-radius: 4px;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gallery-grid figure {
  background: var(--charcoal);
  padding: 0.8rem 0.8rem 1.1rem;
  border-radius: 4px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2px;
}

.gallery-grid figcaption {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  padding-top: 0.85rem;
  text-align: center;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 640px;
  margin-top: 2rem;
  background: var(--cream);
  border-top: 4px solid var(--orange);
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(22, 25, 29, 0.12);
}

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--charcoal);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--sand-dark);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.form-note { font-size: 0.92rem; color: var(--charcoal); margin-top: 1rem; }

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 2.2rem;
  text-align: center;
}

.site-footer .footer-badge {
  width: 104px;
  margin: 0 auto 1.1rem;
  border-radius: 4px;
}

.site-footer .biz-line {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}

.site-footer .footer-tag {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin: 0.6rem 0 1.4rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-bottom: 1.6rem;
}

.footer-nav a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--cream); text-decoration: underline; }

.site-footer .credit {
  font-size: 0.85rem;
  color: var(--sand);
  border-top: 1px solid rgba(203, 190, 158, 0.25);
  padding-top: 1.3rem;
}

.site-footer .credit a { color: var(--sand); }

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

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 0.4rem; padding: 2rem 0; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  .brand img { height: 44px; }
  .section { padding: 3rem 0; }
  .contact-form { padding: 1.4rem; }
}
