:root {
  --ivory: #faf7f4;
  --navy: #192e3b;
  --terracotta: #c98b73;
  --beige: #e8d7c8;
  --muted: #535e65;
  --border: #ded7d0;
  --accent-text: #89503b;
  --container: 1160px;
  --radius: 16px;
  --section-space: clamp(72px, 8vw, 112px);
}

/* Shared foundations */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { overflow-wrap: anywhere; margin: 0; background: var(--ivory); color: var(--navy); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, section[tabindex]:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 5px; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
h1 { margin-bottom: 26px; font-size: clamp(2.8rem, 5.8vw, 4.85rem); font-weight: 750; }
h2 { margin-bottom: 24px; font-size: clamp(2rem, 3.5vw, 2.85rem); font-weight: 650; }
h3 { font-size: 1.35rem; font-weight: 650; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { margin-bottom: 22px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 12px 20px; border-radius: 5px; background: var(--navy); color: white; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* Header: controls stay in the first mobile row, navigation occupies the next. */
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding-block: 22px; border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; font-size: 1rem; letter-spacing: -.03em; line-height: 1.4; }
.brand-mark { color: var(--accent-text); margin-right: 5px; font-size: 1.5rem; vertical-align: middle; }
.header-controls { display: contents; }
.site-header nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; width: 100%; gap: 6px 22px; padding-top: 10px; font-size: .8125rem; }
nav a { padding-block: 10px; text-underline-offset: 6px; transition: color .2s; }
nav a:hover { color: var(--accent-text); text-decoration: underline; }
.language-control { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 1px; font-size: .75rem; }
.language-control button { min-width: 30px; min-height: 44px; padding-inline: 4px; border: 0; background: transparent; color: var(--navy); font-weight: 700; }
.language-control button { cursor: pointer; }
.language-control button[aria-pressed="true"] { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.language-control button:disabled { color: var(--muted); cursor: not-allowed; }
.menu-toggle { grid-column: 2; grid-row: 1; min-height: 44px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--navy); font-size: .8125rem; cursor: pointer; }
.menu-toggle[aria-expanded="true"] { background: var(--beige); border-color: var(--beige); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 64px; align-items: center; }
.hero-copy { min-width: 0; max-width: 560px; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--terracotta); }
.intro { max-width: 410px; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 14px 22px; border: 1px solid transparent; border-radius: 7px; font-size: .8125rem; font-weight: 650; transition: background-color .2s, border-color .2s, transform .2s; }
.button-primary { background: var(--terracotta); color: var(--navy); }
.button-secondary { border-color: #c8bcb1; }
.hero-note { margin: 28px 0 0; color: var(--muted); font-size: .75rem; }
.placeholder-text { border-bottom: 1px dashed #aaa099; }

/* Photo containers reserve space before images load. */
.photo-placeholder { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 28px; overflow: hidden; text-align: center; background: var(--beige); color: #5e534b; border: 1px solid #d6c3b2; border-radius: var(--radius); }
.photo-placeholder::before { content: ""; position: absolute; inset: 12px; border: 1px solid #ffffff70; border-radius: calc(var(--radius) - 7px); pointer-events: none; }
.photo-placeholder span { font-size: .95rem; font-weight: 600; }
.photo-placeholder small { margin-top: 8px; font-size: .75rem; }
.photo-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site-photo { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--beige); }
.site-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { aspect-ratio: 1.08; width: 100%; background: linear-gradient(145deg, #eee3d9, var(--beige)); border-radius: 18px 18px 64px 18px; box-shadow: 0 18px 40px -28px #192e3b40; }
.photo-symbol { width: 62px; height: 62px; margin-bottom: 22px; stroke: #89715d; stroke-width: 1.3; }

/* Benefits */
.benefits { background: var(--navy); color: var(--ivory); padding-block: 38px 44px; }
.benefits .eyebrow { color: #dfb4a2; margin-bottom: 28px; }
.benefits-grid { display: grid; gap: 26px; }
.benefits article { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 17px; align-content: start; }
.benefits svg { grid-row: 1 / 3; width: 28px; height: 28px; fill: none; stroke: #dfaa93; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.benefits h3 { margin-bottom: 9px; font-size: 1rem; line-height: 1.4; letter-spacing: -.015em; }
.benefits article p { max-width: 300px; margin-bottom: 0; color: #d2d9dc; font-size: .8125rem; line-height: 1.75; }

/* About */
.about-grid { display: grid; gap: 38px; }
.about-photo { aspect-ratio: 1.15; background: #ebe5dd; }
.about-photo img { object-position: 50% 25%; }
.about-copy { color: var(--muted); }
.about-copy h2 { color: var(--navy); }
.about-copy > p:not(.eyebrow) { max-width: 490px; }
.editorial-placeholder { margin: 26px 0 0; padding: 14px 0 14px 20px; border-left: 2px solid var(--terracotta); font-size: .8125rem; }

/* Services: six grid columns allow the five cards to balance as three plus two. */
.services-section { border-block: 1px solid var(--border); background: #f2ece6; }
.section-heading { display: grid; gap: 8px; margin-bottom: 34px; }
.section-heading > p { max-width: 290px; color: var(--muted); font-size: .875rem; }
.services-grid { display: grid; gap: 18px; }
.service-card { min-width: 0; padding: 30px; background: var(--ivory); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 30px; border: 1px solid #ddc4b4; border-radius: 50%; color: var(--accent-text); font-size: .7rem; font-variant-numeric: tabular-nums; }
.service-card h3 { margin-bottom: 15px; }
.service-card p { max-width: 37ch; margin-bottom: 0; color: var(--muted); font-size: .875rem; }

/* Gallery */
.gallery-grid { display: grid; gap: 18px; }
.gallery-photo { aspect-ratio: 1.2; }
.gallery-photo-dogs-together img { object-position: 50% 55%; }
.gallery-photo-dog-playing img { object-position: 50% 68%; }

/* Standard contact links keep the existing card layout and keyboard focus ring. */
.contact-section { padding-block: var(--section-space); background: var(--beige); }
.contact-grid { display: grid; gap: 32px; }
.contact-grid h2 { font-size: clamp(2.25rem, 4vw, 3.2rem); }
.contact-grid p:last-child { color: var(--muted); font-size: .875rem; }
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 12px; }
.contact-methods > .contact-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 20px; background: #faf7f480; border: 1px solid #cbb6a6; border-radius: 10px; }
.contact-card:hover { border-color: var(--accent-text); }
.contact-card:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.contact-icon { grid-row: 1 / 3; width: 28px; height: 28px; fill: none; stroke: var(--accent-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-methods span { font-size: 1rem; font-weight: 650; }
.contact-methods small { color: #5b5753; font-size: .75rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { display: grid; gap: 24px; padding-block: 40px; }
.site-footer p { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .8125rem; }
.site-footer .footer-note { margin: 0; padding-top: 20px; border-top: 1px solid var(--border); }

@media (min-width: 600px) {
  .container { width: min(var(--container), calc(100% - 64px)); }
  .header-inner { gap: 18px; }
  .benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .benefits article { display: block; }
  .benefits svg { margin-bottom: 16px; }
  .benefits article + article { border-left: 1px solid #ffffff26; padding-left: 24px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:last-child { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: 1.15fr 1fr; }
  .gallery-photo:first-child { grid-row: span 2; aspect-ratio: auto; }
  .gallery-photo:not(:first-child) { aspect-ratio: 1.65; }
  .site-footer { grid-template-columns: 1fr 1fr; align-items: center; }
  .site-footer nav { justify-content: end; }
  .site-footer .footer-note { grid-column: 1 / -1; }
}

/* Keep this breakpoint identical to the matchMedia query in script.js. */
@media (min-width: 900px) {
  .header-inner { display: flex; flex-wrap: nowrap; gap: 32px; padding-block: 26px; }
  .site-header nav { width: auto; margin-left: auto; padding-top: 0; gap: 25px; }
  .menu-toggle { display: none; }
  .hero { grid-template-columns: 1.07fr 1fr; gap: 48px; padding-block: 68px 86px; }
  .hero-photo { aspect-ratio: 1; }
  .benefits { padding-block: 40px 46px; }
  .benefits-grid { gap: 38px; }
  .benefits article + article { padding-left: 38px; }
  .about-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
  .about-photo { aspect-ratio: 1; }
  .section-heading { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 60px; margin-bottom: 42px; }
  .section-heading h2 { margin-bottom: 0; }
  .section-heading > p { justify-self: end; margin-bottom: 5px; }
  .services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-card { grid-column: span 2; padding: 32px; }
  .service-card:nth-child(4), .service-card:last-child { grid-column: span 3; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .contact-methods > .contact-card { padding: 22px 26px; }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .button-primary:hover { background: #d49e88; }
  .button-secondary:hover { background: var(--beige); border-color: #bba897; }
  .service-card:hover { border-color: #c3a18b; box-shadow: 0 12px 30px -24px #192e3b66; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover, .service-card:hover { transform: none; }
}
