/* Lucky Dog Rescue at The Ranch — Madera, California
   Palette: Sunlit Central Valley Ranch
   #FAF8F4 sand white | #EFEBE3 warm stone | #2E2016 saddle brown
   #3F5D43 ranch olive | #D49226 wheat gold
*/

:root {
  --bg-sand: #FAF8F4;
  --bg-stone: #EFEBE3;
  --bg-white: #FFFFFF;
  --ink: #2E2016;
  --ink-soft: #5C493B;
  --olive: #3F5D43;
  --olive-dark: #2F4732;
  --olive-tint: #E8EFE9;
  --wheat: #D49226;
  --wheat-dark: #9B6713;
  --line: #DED6C8;
  --line-strong: #C9BFA9;
  --font-display: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1160px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-sand);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-sand);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--olive);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--olive-dark);
}

:focus-visible {
  outline: 3px solid var(--wheat);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg-sand);
  padding: 10px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  line-height: 1.14;
}

h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1.24;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

p {
  margin: 0 0 1rem;
  max-width: 66ch;
}

p:last-child {
  margin-bottom: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
}

.brand-place {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.site-nav a:hover {
  color: var(--olive);
  border-bottom-color: var(--wheat);
}

.site-nav .nav-phone {
  color: var(--olive-dark);
  padding: 7px 14px;
  border: 1px solid var(--olive);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--olive);
}

.site-nav .nav-phone:hover {
  background: var(--olive);
  color: var(--bg-sand);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--olive);
  color: var(--bg-sand);
}

.btn-primary:hover {
  background: var(--olive-dark);
  color: var(--bg-sand);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg-stone);
  color: var(--ink);
}

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

.btn-wheat:hover {
  background: #BF801D;
  color: var(--ink);
}

.btn-light {
  background: var(--bg-sand);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--bg-stone);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  color: var(--bg-sand);
  border-color: rgba(250, 248, 244, 0.55);
}

.btn-outline-light:hover {
  background: rgba(250, 248, 244, 0.14);
  color: var(--bg-sand);
  border-color: var(--bg-sand);
}

/* Hero — Asymmetric Ranch Editorial Split */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg-sand);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: center;
  padding-block: 48px 56px;
}

.hero-location {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--wheat);
}

.hero-copy h1 {
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.68;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.hero-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.hero-media {
  position: relative;
}

.hero-photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-stone);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding-block: 72px;
}

.section-stone {
  background: var(--bg-stone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-olive h2,
.section-olive h3 {
  color: var(--bg-sand);
}

.section-olive p,
.section-olive li {
  color: rgba(250, 248, 244, 0.9);
}

.section-olive a {
  color: #F6CF86;
}

.section-olive a:hover {
  color: #FFFFFF;
}

.section-intro {
  max-width: 68ch;
  margin-bottom: 36px;
}

.section-intro h2 {
  margin-bottom: 14px;
}

.section-intro p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* How We Care — Photo + Real Moments + Ordered Rehabilitation Steps */
.care-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.care-primary-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-sand);
}

.care-primary-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.care-primary-photo figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.real-snapshots {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.real-snapshots-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.snapshot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.snapshot-item {
  margin: 0;
  background: var(--bg-sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 240px;
}

.snapshot-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.snapshot-item figcaption {
  padding: 8px 10px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.steps-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.steps-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line-strong);
  align-items: start;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--bg-sand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.steps-list h3 {
  margin-bottom: 6px;
}

.steps-list p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Adopt & Meet at The Ranch */
.adopt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.adopt-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-block: 26px;
}

.channel-box {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.channel-box h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.channel-box p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.channel-box a {
  font-weight: 600;
}

.visit-guide {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--bg-stone);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.visit-guide h3 {
  margin-bottom: 10px;
}

.visit-guide ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.visit-guide li {
  margin-bottom: 8px;
}

.visit-guide li:last-child {
  margin-bottom: 0;
}

.adopt-portrait {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-white);
}

.adopt-portrait img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.adopt-portrait figcaption {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.adopt-portrait strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 6px;
  color: var(--ink);
}

.adopt-portrait span {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* Support Band (Olive) */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: start;
}

.supplies-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 24px;
}

.supply-group h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.25);
}

.supply-group ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.96rem;
}

.supply-group li {
  margin-bottom: 6px;
}

.giving-panel {
  background: rgba(25, 42, 28, 0.42);
  border: 1px solid rgba(250, 248, 244, 0.24);
  border-top: 3px solid var(--wheat);
  border-radius: var(--radius-md);
  padding: 28px;
}

.giving-panel h3 {
  margin-bottom: 12px;
}

.giving-panel p {
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.tax-note {
  font-size: 0.9rem;
  padding: 12px 14px;
  background: rgba(250, 248, 244, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* Story & Contact + Interactive Inquiry Draft Builder */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 44px;
  align-items: start;
}

.founder-note {
  padding: 22px 24px;
  background: var(--bg-stone);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.founder-note-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.founder-seal {
  width: 64px;
  height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.founder-note p {
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.contact-dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-dl div {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-dl dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.contact-dl dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

/* Inquiry Form Builder */
.inquiry-box {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 28px;
}

.inquiry-box h3 {
  margin-bottom: 6px;
}

.inquiry-subtitle {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.topic-tab {
  background: var(--bg-sand);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topic-tab[aria-pressed="true"] {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--bg-sand);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.draft-preview-wrap {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-stone);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.draft-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.draft-preview {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink);
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-msg {
  font-size: 0.9rem;
  color: var(--olive-dark);
  font-weight: 600;
  min-height: 1.4em;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.86);
  padding-block: 44px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.16);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-sand);
  margin-bottom: 6px;
}

.footer-top p {
  font-size: 0.94rem;
  color: rgba(250, 248, 244, 0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 0.94rem;
}

.footer-links a {
  color: #F4D292;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.footer-legal {
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(250, 248, 244, 0.72);
  max-width: none;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .care-layout,
  .adopt-layout,
  .support-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-grid {
    padding-block: 32px 42px;
  }

  .section {
    padding-block: 52px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-sand);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .adopt-channels,
  .supplies-columns,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
