/* =========================================================
   CODIE — Dog Training, Boarding & Photography
   Design system: Rugged elegance. Military olive, charcoal,
   bone, with a strong editorial sensibility.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Core palette - constant across themes */
  --olive:       #4a5240;
  --olive-deep:  #353a2d;
  --olive-dark:  #20231a;
  --rust:        #a64b2a;
  --rust-soft:   #c46640;
  --moss:        #6b7355;
  --sand:        #c9b896;

  /* Theme tokens - LIGHT (default) */
  --bone:        #f3efe6;
  --paper:       #ebe5d6;
  --cream:       #e2dac4;
  --charcoal:    #1a1a17;
  --ink:         #0d0d0b;

  --bg:          #f3efe6;
  --bg-alt:      #ebe5d6;
  --bg-elev:     #ffffff;
  --bg-deep:     #1a1a17;          /* "dark band" backgrounds — always dark */
  --fg:          #0d0d0b;
  --fg-soft:     #3a3a35;
  --fg-muted:    #6b6b62;
  --fg-on-deep:  #f3efe6;          /* text on always-dark surfaces */
  --accent:      var(--rust);
  --line:        #1a1a17;
  --line-soft:   rgba(26,26,23,0.14);
  --border:      rgba(26,26,23,0.18);
  --border-soft: rgba(26,26,23,0.10);

  --nav-bg:      rgba(243, 239, 230, 0.85);
  --nav-bg-scroll: rgba(243, 239, 230, 0.95);
  --grain-opacity: 0.35;
  --grain-blend:   multiply;

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Inter Tight', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing scale */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 8rem);

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* DARK theme — applies when system prefers dark OR data-theme="dark" on html
   Toggle button can set/remove data-theme="dark" or data-theme="light" */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bone:        #1c1d18;
    --paper:       #232520;
    --cream:       #2b2d27;
    --ink:         #f1ede2;
    --charcoal:    #0d0d0b;

    --bg:          #16170f;
    --bg-alt:      #1f211a;
    --bg-elev:     #232520;
    --bg-deep:     #0a0a07;
    --fg:          #ece8da;
    --fg-soft:     #c8c4b6;
    --fg-muted:    #9a988b;
    --fg-on-deep:  #f3efe6;
    --line:        #f1ede2;
    --line-soft:   rgba(241,237,226,0.16);
    --border:      rgba(241,237,226,0.22);
    --border-soft: rgba(241,237,226,0.12);

    --nav-bg:      rgba(22, 23, 15, 0.85);
    --nav-bg-scroll: rgba(22, 23, 15, 0.95);
    --grain-opacity: 0.18;
    --grain-blend:   screen;
  }
}

/* Manual override: data-theme="dark" forces dark regardless of system */
:root[data-theme="dark"] {
  --bone:        #1c1d18;
  --paper:       #232520;
  --cream:       #2b2d27;
  --ink:         #f1ede2;
  --charcoal:    #0d0d0b;

  --bg:          #16170f;
  --bg-alt:      #1f211a;
  --bg-elev:     #232520;
  --bg-deep:     #0a0a07;
  --fg:          #ece8da;
  --fg-soft:     #c8c4b6;
  --fg-muted:    #9a988b;
  --fg-on-deep:  #f3efe6;
  --line:        #f1ede2;
  --line-soft:   rgba(241,237,226,0.16);
  --border:      rgba(241,237,226,0.22);
  --border-soft: rgba(241,237,226,0.12);

  --nav-bg:      rgba(22, 23, 15, 0.85);
  --nav-bg-scroll: rgba(22, 23, 15, 0.95);
  --grain-opacity: 0.18;
  --grain-blend:   screen;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 5%, rgba(74,82,64,0.06), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(166,75,42,0.04), transparent 40%);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle paper grain — softens in dark mode */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; height: auto; display: block; }

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

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 9.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--olive);
}

.eyebrow.centered::before { display: none; }
.eyebrow.centered { gap: 0; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--fg-soft);
  font-weight: 400;
  max-width: 60ch;
}

p { max-width: 65ch; }

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-wide {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section-y); }

.section-tight { padding-block: clamp(2.5rem, 6vw, 5rem); }

.hr {
  height: 1px;
  background: var(--line);
  opacity: 0.18;
  margin-block: 3rem;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease, padding 0.4s var(--ease-out), border-color 0.3s ease;
}

.nav.scrolled {
  padding-block: 0.85rem;
  background: var(--nav-bg-scroll);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
}

.nav-brand-mark {
  width: 36px;
  height: 36px;
  background: var(--olive);
  color: #f3efe6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  padding: 0.4rem 0;
  color: var(--fg);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--fg);
  transition: width 0.35s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--fg); }

.nav-cta {
  background: var(--rust);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 2px 8px rgba(166,75,42,0.25), inset 0 0 0 1px rgba(255,255,255,0.08);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #8d3e22;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(166,75,42,0.4), inset 0 0 0 1px rgba(255,255,255,0.12);
  color: #fff;
}

.nav-cta::after { display: none !important; }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  margin-left: 0.25rem;
}
.theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--fg);
  transform: rotate(15deg);
}
.theme-toggle::after { display: none !important; }
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg);
  transition: all 0.3s var(--ease-out);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    padding: 4rem 2rem;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-display); font-weight: 500; }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bone);
}

.btn-primary:hover {
  background: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}

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

.btn-outline:hover {
  background: var(--ink);
  color: var(--bone);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.btn-ghost:hover { gap: 1rem; color: var(--rust); border-color: var(--rust); }

/* Buttons that always sit on dark sections — keep constant colors */
.bg-deep .btn-primary,
.bg-olive .btn-primary,
.btn-on-dark {
  background: #f3efe6;
  color: #1a1a17;
  border-color: #f3efe6;
}
.bg-deep .btn-primary:hover,
.bg-olive .btn-primary:hover,
.btn-on-dark:hover {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}
.bg-deep .btn-outline,
.bg-olive .btn-outline,
.btn-outline-on-dark {
  color: #f3efe6;
  border-color: #f3efe6;
  background: transparent;
}
.bg-deep .btn-outline:hover,
.bg-olive .btn-outline:hover,
.btn-outline-on-dark:hover {
  background: #f3efe6;
  color: #1a1a17;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 100vh;
  padding-top: clamp(7rem, 12vh, 9rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  flex: 1;
  padding-block: 2rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  color: var(--fg);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line > span {
  display: inline-block;
  animation: rise 1.2s var(--ease-out) backwards;
}

.hero-title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes rise {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 4px;
  animation: fadeIn 1.2s var(--ease-out) 0.4s backwards;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
}

.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3));
}

.hero-image-caption {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  animation: fadeIn 1.2s var(--ease-out) 0.6s backwards;
}

@media (max-width: 720px) {
  .hero-foot { grid-template-columns: 1fr; gap: 1.25rem; }
}

.hero-foot-item .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-foot-item .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: end;
}

@media (max-width: 800px) {
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; }
}

.section-header .eyebrow { align-self: start; }

/* =========================================================
   SERVICES GRID
   ========================================================= */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

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

.service-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.service-card:hover {
  background: #1a1a17;
  color: #f3efe6;
}

.service-card:hover .service-num,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-link { color: #f3efe6; }

.service-card:hover .service-link { gap: 1rem; }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: auto;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 3rem 0 1rem;
  transition: color 0.4s var(--ease-out);
}

.service-card p {
  color: var(--fg-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: color 0.4s var(--ease-out);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  margin-top: auto;
}

/* =========================================================
   FEATURE BLOCK
   ========================================================= */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse { direction: ltr; }
}

.feature-image {
  aspect-ratio: 5/6;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.feature-image img { width: 100%; height: 100%; object-fit: cover; }

.feature-content h2 {
  margin-bottom: 1.5rem;
}

.feature-content .lead { margin-bottom: 1.5rem; }

.feature-content p { margin-bottom: 1rem; color: var(--fg-soft); }

/* =========================================================
   QUOTE / PULL
   ========================================================= */

.pull-quote {
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 20rem;
  line-height: 1;
  color: var(--olive);
  opacity: 0.25;
  font-style: italic;
  pointer-events: none;
}

.pull-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 20ch;
  margin: 0 auto;
  position: relative;
  font-style: italic;
}

.pull-quote-attr {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  position: relative;
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item { overflow: hidden; border-radius: 4px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }

.g-tall  { grid-column: span 4; aspect-ratio: 4/5; }
.g-wide  { grid-column: span 8; aspect-ratio: 16/10; }
.g-sq    { grid-column: span 4; aspect-ratio: 1; }
.g-md    { grid-column: span 6; aspect-ratio: 4/3; }
.g-tall2 { grid-column: span 4; aspect-ratio: 3/4; }

@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .g-tall, .g-wide, .g-sq, .g-md, .g-tall2 { grid-column: span 1; aspect-ratio: 4/5; }
}

/* =========================================================
   FORMS
   ========================================================= */

.form-shell {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.one { grid-template-columns: 1fr; }

@media (max-width: 700px) {
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  border-radius: 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.3s, color 0.3s;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px var(--border-soft);
}

.field textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }

.field.error input,
.field.error select,
.field.error textarea { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(166,75,42,0.12); }

.field-error {
  font-size: 0.8rem;
  color: var(--rust);
  margin-top: 0.25rem;
  display: none;
}

.field.error .field-error { display: block; }

.field-hint { font-size: 0.8rem; color: var(--fg-muted); margin-top: 0.1rem; }

/* Radio / checkbox cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

.choice-body {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--fg);
  transition: all 0.2s var(--ease-out);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.choice-body small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

.choice input:checked + .choice-body {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.choice input:checked + .choice-body small { color: var(--sand); }

.choice:hover .choice-body { border-color: var(--ink); }

/* Stepper for multi-step form */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  height: 1px;
  background: var(--line-soft);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}

.step.active .step-num { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.step.done .step-num { background: var(--olive); color: #f3efe6; border-color: var(--olive); }

.step-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.step.active .step-lbl, .step.done .step-lbl { color: var(--ink); }

@media (max-width: 600px) {
  .step-lbl { display: none; }
}

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s var(--ease-out); }

/* Step intro - unified header above each form step */
.step-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.step-intro .step-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}
.step-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.step-intro p {
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  max-width: 60ch;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success.show { display: block; animation: fadeIn 0.5s var(--ease-out); }

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--olive);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bone);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #1a1a17;
  color: #f3efe6;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  max-width: 1400px;
  margin-inline: auto;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--sand);
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  color: #f3efe6;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--rust-soft); }

.footer-bottom {
  border-top: 1px solid rgba(243,239,230,0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   UTILITIES
   ========================================================= */

.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.bg-deep { background: #1a1a17; color: #f3efe6; }
.bg-deep .eyebrow { color: var(--sand); }
.bg-deep .eyebrow::before { background: var(--sand); }
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: #f3efe6; }
.bg-deep p, .bg-deep .lead { color: #e2dac4; }

.bg-olive { background: var(--olive-deep); color: #f3efe6; }
.bg-olive h1, .bg-olive h2, .bg-olive h3 { color: #f3efe6; }
.bg-olive p, .bg-olive .lead { color: #e2dac4; }
.bg-olive .eyebrow { color: var(--sand); }
.bg-olive .eyebrow::before { background: var(--sand); }

.bg-paper { background: var(--paper); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: rgba(255,255,255,0.4);
}

.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--olive);
}

/* =========================================================
   SPECIALTIES (training)
   ========================================================= */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .spec-grid { grid-template-columns: 1fr; }
}

.spec-card {
  padding: 2rem 1.75rem;
  background: var(--bone);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
}

.spec-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -15px rgba(0,0,0,0.25);
}

.spec-icon {
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}

.spec-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.spec-card p {
  color: var(--fg-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* =========================================================
   PRICING
   ========================================================= */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.price-card {
  padding: 2.5rem 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.price-card.featured {
  background: #1a1a17;
  color: #f3efe6;
  border-color: #1a1a17;
}

.price-card.featured h3 { color: #f3efe6; }
.price-card.featured .price-amount { color: #f3efe6; }
.price-card.featured ul li { color: #e2dac4; }
.price-card.featured .btn-outline { color: #f3efe6; border-color: #f3efe6; }
.price-card.featured .btn-outline:hover { background: #f3efe6; color: #1a1a17; }

.price-card .tag {
  position: absolute;
  top: -10px; right: 1.5rem;
  background: var(--rust);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.price-card h3 { font-family: var(--font-display); font-size: 1.75rem; }

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-amount .per {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fg-muted);
  display: block;
  margin-top: 0.25rem;
}

.price-card.featured .price-amount .per { color: var(--sand); }

.price-card ul { list-style: none; flex: 1; }
.price-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.price-card ul li::before {
  content: '→';
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--olive);
  flex-shrink: 0;
}

.price-card.featured ul li { border-color: rgba(243,239,230,0.12); }
.price-card.featured ul li::before { color: var(--sand); }

/* Marquee */
.marquee {
  background: #1a1a17;
  color: #f3efe6;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: scrollMarquee 30s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}

.marquee-track span::after {
  content: '✦';
  color: var(--rust);
}

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

/* Page header (non-home pages) */
.page-header {
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-soft);
}

.page-header-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.page-header-grid > div:first-child .eyebrow {
  margin-bottom: 1rem;
}

.page-header-grid > div:last-child {
  padding-bottom: 0.5rem;
}

.page-header-grid .lead {
  margin-top: 0;
}

@media (max-width: 800px) {
  .page-header-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }
  .page-header-grid > div:last-child {
    padding-bottom: 0;
  }
}

.crumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.crumb a { color: var(--fg-muted); }
.crumb a:hover { color: var(--fg); }

/* Property page video-ish hero */
.land-hero {
  height: 70vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.land-hero img {
  width: 100%; height: 100%; object-fit: cover;
}

.land-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  display: flex; align-items: flex-end;
  padding: var(--gutter);
}

.land-hero-overlay h2 {
  color: var(--bone);
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 18ch;
}

/* Photographer split */
.photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

@media (max-width: 900px) { .photo-split { grid-template-columns: 1fr; } }

.photo-split-img { background-size: cover; background-position: center; min-height: 400px; }

.photo-split-text {
  padding: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Admin */
.admin-shell { padding-top: 2rem; padding-bottom: 5rem; }

.admin-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}

.admin-tab {
  padding: 0.9rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--fg-muted);
  background: transparent;
  transition: color 0.2s, border-color 0.2s;
}

.admin-tab:hover { color: var(--fg); }
.admin-tab.active {
  border-color: var(--rust);
  color: var(--fg);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

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

.stat-card {
  padding: 1.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.3s;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--fg);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.65rem;
  font-weight: 600;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.admin-table th, .admin-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
  color: var(--fg);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--fg-soft);
  font-weight: 600;
}

.admin-table tr:hover td { background: var(--bg-alt); }

.admin-table code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  background: var(--bg-alt);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--olive);
  color: #f3efe6;
}
.pill.new { background: var(--rust); color: #fff; }
.pill.pending { background: var(--sand); color: #1a1a17; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: #1a1a17;
  color: #f3efe6;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  z-index: 1000;
  font-size: 0.9rem;
  max-width: 350px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
