/* ============================================
   Pittfield Gundogs — Stylesheet
   Colours & type sourced from the Pittfield Gundogs brand pack
   ============================================ */

:root {
  /* Brand colours */
  --field-green: #2F3A22;
  --field-green-dark: #232B19;
  --saddle-tan: #8B5E34;
  --rust-accent: #C77B3B;
  --rust-accent-dark: #B06A2E;
  --canvas-cream: #F4EEE2;
  --canvas-cream-soft: #EDE4D3;
  --barn-charcoal: #2A2620;
  --barn-charcoal-soft: #38332B;
  --white: #FFFFFF;

  /* Semantic tokens */
  --color-bg: var(--canvas-cream);
  --color-bg-alt: var(--canvas-cream-soft);
  --color-surface: #FFFFFF;
  --color-text: var(--barn-charcoal);
  --color-text-muted: #6B6255;
  --color-text-on-dark: var(--canvas-cream);
  --color-text-on-dark-muted: #C9C2B3;
  --color-border: #E2D8C4;
  --color-border-dark: #443E33;
  --color-accent: var(--rust-accent);
  --color-primary: var(--field-green);

  /* Type */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 24px rgba(42, 38, 32, 0.08);
  --shadow-med: 0 12px 40px rgba(42, 38, 32, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

:focus-visible {
  outline: 3px solid var(--rust-accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

section { position: relative; }

.section-pad {
  padding-block: var(--space-8);
}

@media (max-width: 767px) {
  .section-pad { padding-block: var(--space-7); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-accent);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--rust-accent);
}

h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-style: italic;
  max-width: 20ch;
  margin-bottom: var(--space-3);
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 17px;
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

.section-head {
  margin-bottom: var(--space-6);
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head.center .section-lead { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--field-green);
  color: var(--canvas-cream);
}
.btn-primary:hover { background: var(--field-green-dark); box-shadow: var(--shadow-soft); }

.btn-accent {
  background: var(--rust-accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--rust-accent-dark); box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--field-green);
}
.btn-outline:hover { background: var(--field-green); color: var(--canvas-cream); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(244, 238, 226, 0.5);
  color: var(--canvas-cream);
}
.btn-outline-light:hover { background: rgba(244, 238, 226, 0.12); border-color: var(--canvas-cream); }

.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 238, 226, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-brand img {
  height: 64px;
  width: 64px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.1;
  color: var(--field-green);
  white-space: nowrap;
}

@media (min-width: 400px) {
  .nav-brand-text { font-size: 22px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(11px, 1.2vw, 24px);
  margin-left: clamp(16px, 2.2vw, 44px);
  margin-right: auto;
  padding-right: var(--space-3);
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--rust-accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--rust-accent);
  transition: right var(--dur-med) var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-actions .btn-accent {
  display: none;
}

@media (min-width: 560px) {
  .nav-actions .btn-accent { display: inline-flex; }
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--field-green);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--field-green);
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* The phone number is the first thing to go when space gets tight. */
@media (min-width: 1320px) {
  .nav-phone { display: inline-flex; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 92px;
  right: 0;
  left: 0;
  height: calc(100vh - 92px);
  height: calc(100dvh - 92px);
  background: var(--canvas-cream);
  z-index: 99;
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu > a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  color: var(--field-green);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--field-green) 0%, var(--field-green-dark) 65%, var(--barn-charcoal) 100%);
  color: var(--color-text-on-dark);
  padding-block: var(--space-8) var(--space-9);
  overflow: hidden;
  position: relative;
  /* Tall enough to frame the whole group, but never taller than the screen. */
  min-height: clamp(600px, 96vh, 920px);
  display: flex;
  align-items: center;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Framed to keep the truck in shot while showing the dog lying at the front. */
  object-position: center 66%;
  z-index: 0;
}

/* On very wide screens the visible band narrows, so ease the crop back up
   to stop the truck being reduced to a sliver. */
@media (min-width: 1600px) {
  .hero-bg-image { object-position: center 58%; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(47, 58, 34, 0.82) 0%, rgba(35, 43, 25, 0.82) 65%, rgba(42, 38, 32, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(244,238,226,0.08) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-7);
  align-items: center;
  width: 100%;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border: 1px solid rgba(244, 238, 226, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-4);
}
.hero-badge svg { width: 14px; height: 14px; color: var(--rust-accent); }

.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  font-style: italic;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.hero-lead {
  font-size: 18px;
  color: var(--color-text-on-dark-muted);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  border-top: 1px solid rgba(244, 238, 226, 0.18);
  padding-top: var(--space-4);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
}
.hero-meta-item svg { width: 16px; height: 16px; color: var(--rust-accent); flex-shrink: 0; }

.ph-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--saddle-tan) 0%, var(--rust-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
/* Diagonal texture for empty photo placeholders only — never over a real photo. */
.ph-image:not(:has(> img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 14px);
}
.ph-image-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: var(--space-3);
}
.ph-image-inner svg { width: 34px; height: 34px; opacity: 0.85; }
.ph-image-inner span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }

/* ---------- About / Story ---------- */
.about-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-8);
  }
}

.about-copy p + p { margin-top: var(--space-3); }
.about-copy { color: var(--color-text-muted); font-size: 16px; }

.values-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.value-card svg {
  width: 22px;
  height: 22px;
  color: var(--rust-accent);
  margin-bottom: var(--space-3);
}

.value-card h3 {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---------- About Henry ---------- */
.henry-grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .henry-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-8);
  }
}

.henry-photo .ph-image {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-med);
}

.henry-copy p {
  color: var(--color-text-muted);
  font-size: 16px;
}
.henry-copy p + p { margin-top: var(--space-3); }

.henry-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--field-green);
  border-left: 3px solid var(--rust-accent);
  padding-left: var(--space-4);
  margin: var(--space-5) 0;
}

.henry-byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.henry-byline strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--field-green);
}
.henry-byline span {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Dark band (shared: services / kennels) ---------- */
.band-dark {
  background: var(--barn-charcoal);
  color: var(--color-text-on-dark);
}
.band-dark .section-lead { color: var(--color-text-on-dark-muted); }
.band-dark .eyebrow { color: var(--rust-accent); }
.band-dark h2.section-title { color: var(--white); }

/* ---------- Litters & Stud ---------- */
.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--canvas-cream-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--saddle-tan);
}
.offer-tag.is-open { background: #E5EEDB; color: #4A6338; }
.offer-tag svg { width: 12px; height: 12px; }

.past-litters {
  margin-top: var(--space-8);
}

.past-litters-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--field-green);
  margin-bottom: var(--space-6);
}

.litter-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
}

.litter-track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: litter-scroll 45s linear infinite;
}

.litter-track-wrap:hover .litter-track,
.litter-track-wrap:focus-within .litter-track {
  animation-play-state: paused;
}

@keyframes litter-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .litter-track { animation: none; }
}

.litter-slide {
  flex: 0 0 190px;
  width: 190px;
}

.litter-slide .ph-image {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}

.litter-slide-label {
  margin-top: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--saddle-tan);
  text-align: center;
}

/* ---------- Training ---------- */
.training-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .training-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.checklist { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.checklist-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.checklist-item svg {
  width: 20px; height: 20px; color: var(--rust-accent); flex-shrink: 0; margin-top: 2px;
}
.checklist-item h4 { font-size: 15px; font-weight: 600; font-family: var(--font-body); margin-bottom: 2px; }
.checklist-item p { font-size: 13px; color: var(--color-text-muted); }

/* ---------- Kennels highlights ---------- */
.highlight-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}
@media (min-width: 640px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .highlight-grid { grid-template-columns: repeat(4, 1fr); }
}

.highlight-card {
  background: var(--barn-charcoal-soft);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.highlight-card svg { width: 24px; height: 24px; color: var(--rust-accent); margin-bottom: var(--space-3); }
.highlight-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--white); }
.highlight-card p { font-size: 13.5px; color: var(--color-text-on-dark-muted); }

/* ---------- Meet the Team ---------- */
.team-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.dog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
}
.dog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-med); }

.dog-card .ph-image { aspect-ratio: 1 / 1; border-radius: 0; }

/* ---------- Dog photo carousel (2 photos per dog, swipeable) ---------- */
.dog-photo {
  position: relative;
}

.dog-photo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dog-photo-track::-webkit-scrollbar { display: none; }

.dog-photo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.ph-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dog-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(42, 38, 32, 0.45);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
  z-index: 2;
}
.dog-photo-nav:hover { background: rgba(42, 38, 32, 0.7); }
.dog-photo-nav svg { width: 18px; height: 18px; }
.dog-photo-nav.prev { left: 10px; }
.dog-photo-nav.next { right: 10px; }

.dog-photo-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.dog-photo-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dog-photo-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.dog-photo-dot.is-active::before {
  background: var(--white);
  transform: scale(1.3);
}

.dog-card-body { padding: var(--space-4); }

.dog-card h3 {
  font-size: 24px;
  font-style: italic;
  margin-bottom: 4px;
}

.dog-card-kc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.dog-card-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--saddle-tan);
  margin-bottom: var(--space-2);
}

.dog-card-bio {
  font-size: 13.5px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dog-card-bio svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--rust-accent); }

.dog-card-divider {
  border-top: 1px solid var(--color-border);
  margin: var(--space-3) 0;
}

.dog-card-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--field-green);
  margin-bottom: 6px;
}

.dog-card-bio-text {
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.dog-card-bio-text + .dog-card-bio-text { margin-top: 8px; }

.health-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.health-list {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 5px;
  column-gap: var(--space-3);
  margin: 0;
}
.health-list dt {
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.health-list dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  color: var(--color-text);
}
.health-list dd.is-clear { color: #4A6338; }
.health-list dd.is-carrier { color: var(--saddle-tan); }
.health-list dd.is-affected { color: #B3432B; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-grid .ph-image { border-radius: var(--radius-md); aspect-ratio: 1 / 1; }
.gallery-grid .span-2 { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (min-width: 640px) {
  .gallery-grid .tall { grid-row: span 2; aspect-ratio: 1 / 2.05; }
}

.gallery-footer {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
}

/* ---------- Testimonials ---------- */
.testimonial-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
}

.testimonial-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: testimonial-scroll 40s linear infinite;
}

.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 0 0 320px;
  width: 320px;
}
@media (min-width: 640px) {
  .testimonial-card { flex-basis: 360px; width: 360px; }
}

.testimonial-card svg.quote-icon {
  width: 28px;
  height: 28px;
  color: var(--rust-accent);
  opacity: 0.6;
}

.testimonial-card p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--color-text);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--canvas-cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saddle-tan);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  flex-shrink: 0;
}

.testimonial-author-name { font-size: 14px; font-weight: 600; }
.testimonial-author-meta { font-size: 12.5px; color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

.contact-card {
  background: var(--barn-charcoal-soft);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-fast);
}
.contact-card:is(a):hover {
  transform: translateY(-4px);
  background: var(--field-green-dark);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(199, 123, 59, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card-icon svg { width: 22px; height: 22px; color: var(--rust-accent); }

.contact-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-on-dark-muted);
}

.contact-card strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--white);
}

.contact-card span.sub {
  font-size: 13.5px;
  color: var(--color-text-on-dark-muted);
}

.contact-note {
  margin-top: var(--space-6);
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--field-green);
  color: var(--color-text-on-dark-muted);
  padding-block: var(--space-7) var(--space-5);
}

.footer-top {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(244, 238, 226, 0.15);
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.footer-brand img { height: 44px; width: 44px; object-fit: contain; }
.footer-brand span { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--white); }

.footer-desc { font-size: 14px; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-3);
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { font-size: 14px; }
.footer-col a:hover { color: var(--rust-accent); }

.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 13px;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(244, 238, 226, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--rust-accent); border-color: var(--rust-accent); }

.footer-credit {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244, 238, 226, 0.12);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.footer-credit-studio {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--white);
  transition: color var(--dur-fast);
}
.footer-credit-studio:hover { color: var(--rust-accent); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--field-green);
  color: var(--canvas-cream);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  transition: transform var(--dur-fast);
}
.skip-link:focus { transform: translateY(0); }
