/* ============================================================
   Emme — Entlebucher Mountain Dog
   Golden Meadow Palette
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --orange:  #E2632A;
  --yellow:  #EFCF4A;
  --lime:    #A4C235;
  --olive:   #6B7B1E;
  --amber:   #F5A83D;

  --bg:        #FFFDF7;
  --bg-alt:    #F7F3EA;
  --text:      #3A3A2E;
  --text-light: #6E6E5E;
  --white:     #FFFFFF;

  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  --transition: .25s ease;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--olive); }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--olive);
  line-height: 1.2;
}

/* ---------- Utility ---------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section   { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
  margin-bottom: .3em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin-top: 10px;
}
.section-subtitle {
  font-size: clamp(1rem, .95rem + .35vw, 1.1rem);
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 2.5em;
}

.gallery-intro-subtitle {
  max-width: none;
}

/* ---------- Site Banner (Home) ---------- */
.site-banner {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #2a3a10;
  cursor: pointer;
}
.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.2);
  z-index: 1;
}
.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50px;
  z-index: 2;
}
.banner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 220px;
  height: auto;
  -webkit-filter: drop-shadow(0 4px 20px rgba(0,0,0,.35));
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.35));
}
.banner-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  background: rgba(107,123,30,.85);
  cursor: default;
}
.banner-nav-inner {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  height: 50px;
}
.banner-nav .nav-links { display: flex; gap: 32px; list-style: none; }
.banner-nav .nav-links a {
  color: rgba(255,255,255,.9);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.banner-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--transition);
}
.banner-nav .nav-links a:hover::after,
.banner-nav .nav-links a.active::after { width: 100%; }
.banner-nav .nav-links a:hover { color: var(--amber); }

/* ---------- Small Banner (subpages) ---------- */
.site-banner-sm {
  height: 140px;
}
.site-banner-sm .banner-content {
  bottom: 40px;
}
.site-banner-sm .banner-logo {
  width: 88px;
  height: auto;
}
.site-banner-sm .banner-nav-inner {
  height: 40px;
}
.site-banner-sm .banner-nav .nav-links a {
  font-size: .85rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: .02em;
}
.nav-logo span { color: var(--orange); }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--olive); margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Puppy Announcement Band (home only) ---------- */
.announcement {
  background: var(--amber);
  color: var(--text);
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 18px 0;
}
.announcement-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, .95rem + 1vw, 1.5rem);
  line-height: 1.25;
}
.announcement-sub {
  font-size: .95rem;
  line-height: 1.5;
  margin-top: .15em;
}
.announcement-btn { flex: none; }

@media (max-width: 900px) {
  .announcement-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px 0;
  }
  .announcement-btn { width: 100%; max-width: 320px; min-height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 1.35rem + 3.8vw, 3.6rem);
  margin-bottom: .25em;
}
.hero-text h1 span { color: var(--orange); }
.hero-text .tagline {
  font-size: clamp(1.05rem, .95rem + .65vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 1.5em;
  font-weight: 300;
}
.hero-text .breed-badge {
  display: inline-block;
  background: #dce99a;
  color: #2f3b0f;
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: #b44b1f;
  color: var(--white);
}
.btn-primary:hover { background: var(--olive); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--olive);
  border: 2px solid var(--olive);
}
.btn-outline:hover { background: var(--olive); color: var(--white); }
.btn-primary:active { background: #b5511f; transform: scale(.97); }
.btn-outline:active { transform: scale(.97); }

.hero-images {
  position: relative;
  display: block;
  width: 100%;
}
.hero-images picture {
  display: block;
  width: 100%;
}
.hero-images img {
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-img-main {
  grid-column: 1 / -1;
  height: 360px;
  width: 100%;
  object-fit: cover;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-text p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
}

/* Breed Info Cards */
.breed-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2em;
}
.breed-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
  transition: transform var(--transition);
}
.breed-card:hover { transform: translateY(-4px); }
.breed-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5em;
  color: var(--olive);
}
.breed-card p { font-size: .95rem; color: var(--text-light); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  content-visibility: auto;
  contain-intrinsic-size: 280px 210px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* Featured Photos Grid (Home) */
.featured-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none; border: none;
  color: white; font-size: 2.2rem;
  cursor: pointer;
  opacity: .8;
  transition: opacity var(--transition);
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- Health Page Records ---------- */
.records-group { margin-bottom: 3em; }
.records-group h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 1em;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
}
.records-group h3 .badge {
  font-size: .75rem;
  background: var(--lime);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.records-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.record-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.record-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.record-card-below {
  grid-column: 1;
}
.record-card img {
  width: 100%;
  height: auto;
  display: block;
}
.record-card-info {
  padding: 16px 20px;
}
.record-card-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .25em;
}
.record-card-info .record-date {
  font-size: .85rem;
  color: var(--text-light);
}
.chic-note {
  background: linear-gradient(135deg, var(--olive), #4A5A14);
  color: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-bottom: 3em;
  display: flex;
  gap: 20px;
  align-items: center;
}
.chic-note-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.chic-note h3 {
  color: var(--amber);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  margin-bottom: .3em;
}
.chic-note p { font-size: .95rem; opacity: .9; }

/* ---------- Puppies Page ---------- */
.puppies-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.puppies-intro-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.img-anchor-bottom { object-position: 50% 100%; }
.puppies-intro-text h2 {
  font-size: 2rem;
  margin-bottom: .4em;
}
.puppies-intro-text p {
  font-size: 1.05rem;
  margin-bottom: 1em;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin: 2em 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--amber), var(--lime));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.8em;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 14px; height: 14px;
  background: var(--amber);
  border-radius: 50%;
  border: 3px solid var(--bg);
}
.timeline-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: .2em;
}
.timeline-item p {
  font-size: .95rem;
  color: var(--text-light);
}

/* Breeding / non-breeding license explainer */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2em;
}

.license-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}

.license-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5em;
  color: var(--olive);
}

.license-card p {
  font-size: .95rem;
  color: var(--text-light);
}

.license-card p + p {
  margin-top: .8em;
}

.license-note {
  margin-top: 1.5em;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(164,194,53,.14);
  border: 1px solid rgba(107,123,30,.2);
  color: var(--text);
}

.license-note strong {
  color: var(--olive);
}

/* Litter details (puppies page) */
.litter-details { margin-top: 4.5em; }
.litter-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: 0 0 3.5em;
}
.litter-fact {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--amber);
}
.litter-fact-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: .3em;
}
.litter-fact-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--olive);
}
.litter-fact-note {
  font-size: .88rem;
  color: var(--text-light);
  margin-top: .35em;
}

/* Parent cards (puppies page) */
.parent-role {
  display: inline-block;
  background: var(--olive);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: .8em;
}
.parent-card h3 { margin-bottom: .1em; }
.parent-registered { font-style: italic; }
.parent-facts {
  list-style: none;
  margin: 1em 0;
}
.parent-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: .45em 0;
  border-bottom: 1px solid rgba(107,123,30,.15);
  font-size: .92rem;
}
.parent-facts li span:first-child { color: var(--text-light); }
.parent-facts li span:last-child { color: var(--text); font-weight: 500; text-align: right; }
.parent-card { overflow: hidden; }
.parent-card picture { display: block; }
.parent-photo {
  width: calc(100% + 48px);
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  margin: -24px -24px 20px;
}

/* Parents intro photo and nursery figure (puppies page) */
.parents-intro {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 3fr;
  gap: 40px;
  align-items: center;
}
.parents-intro .section-subtitle {
  max-width: none;
  margin-bottom: 1.2em;
}
.parents-photo,
.litter-figure { margin: 0; }
.parents-photo img,
.litter-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.parents-photo figcaption,
.litter-figure figcaption {
  font-size: .88rem;
  color: var(--text-light);
  margin-top: .7em;
  text-align: center;
}
.litter-figure { max-width: 900px; }
.parents-video {
  max-width: 400px;
  margin: 2.5em auto 0;
}
.parents-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}
.section-title-spaced { margin-top: 1.5em; }

/* Interest Form */
.form-section {
  max-width: 640px;
  margin: 0 auto;
}
.form-section h2 {
  font-size: 2rem;
  margin-bottom: .3em;
}

.puppy-form { margin-top: 2em; }
.form-group {
  margin-bottom: 1.4em;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4em;
  color: var(--olive);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E0DDD4;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(164,194,53,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%236B7B1E'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.form-optional {
  font-weight: 400;
  color: var(--text-light);
}

.form-note {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: .3em;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-success.show { display: block; }
.form-success h3 {
  font-size: 1.8rem;
  color: var(--olive);
  margin-bottom: .3em;
}
.form-success p { color: var(--text-light); font-size: 1.05rem; }
.checkmark {
  display: inline-block;
  width: 64px; height: 64px;
  background: var(--lime);
  border-radius: 50%;
  line-height: 64px;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive);
  color: rgba(255,255,255,.98);
  padding: 48px 0 32px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 2em;
}
.footer-brand .nav-logo { color: var(--white); }
.footer-brand .nav-logo span { color: var(--amber); }
.footer-brand p { margin-top: .5em; max-width: 320px; }
.footer-links h3,
.footer-contact h3 {
  font-family: 'Inter', sans-serif;
  color: #ffe29a;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1em;
}
.footer-links ul { list-style: none; }
.site-footer a { color: #ffebbc; }
.site-footer a:hover { color: #ffffff; }
.footer-links li { margin-bottom: .5em; }
.footer-contact p { margin-bottom: .4em; }
.footer-social {
  list-style: none;
  margin-top: 1.1em;
  display: flex;
  flex-direction: column;
  gap: .55em;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: #ffebbc;
  text-decoration: none;
  font-size: .9rem;
}
.footer-social a:hover { color: #ffffff; }
.footer-social svg { flex-shrink: 0; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.9);
}

p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { width: 92%; }
  .hero-grid,
  .about-grid,
  .puppies-intro { gap: 44px; }
  .banner-nav .nav-links { gap: 24px; }
  .records-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .puppies-intro { grid-template-columns: 1fr; gap: 40px; }

  .hero { min-height: auto; padding: 60px 0; }

  .about-image img { height: 360px; }
  .puppies-intro-img img { height: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .parents-intro { grid-template-columns: 1fr; gap: 24px; }
  .parents-photo { max-width: 480px; margin: 0 auto; }
  .puppies-intro-img .img-anchor-bottom { height: auto; aspect-ratio: 4 / 3; object-position: 50% 90%; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-subtitle { font-size: 1rem; }
  .featured-photos-grid { grid-template-columns: repeat(2, 1fr); }
  .chic-note { padding: 20px 24px; }
}

@media (max-width: 640px) {
  /* Banner responsive */
  .site-banner { height: 260px; overflow: visible; }
  .banner-logo { width: 150px; height: auto; }
  .site-banner-sm { height: 120px; }
  .site-banner-sm .banner-logo { width: 70px; height: auto; }
  .banner-nav-inner { justify-content: flex-end; padding-inline: 12px; position: relative; }
  .banner-nav .nav-links { display: none; }
  .banner-nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(107,123,30,.95);
    padding: 16px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
    gap: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 100;
  }
  .banner-nav .nav-toggle { display: block; }
  .banner-nav .nav-toggle span { background: var(--white); }
  .banner-nav .nav-links a { display: block; padding: 10px 0; min-height: 44px; }

  .hero-images { width: 100%; }
  .hero-img-main { height: 280px; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .section { padding: 50px 0; }
  .about-image img { height: auto; }
  .puppies-intro-img img { height: auto; }
  .puppies-intro-img .img-anchor-bottom { aspect-ratio: auto; }

  .lightbox { padding: 12px; }
  .lightbox-close { top: 8px; right: 12px; }

  .featured-photos-grid { grid-template-columns: 1fr; }
  .records-list { grid-template-columns: 1fr; }
  .chic-note { flex-direction: column; text-align: center; padding: 20px; }
}

@media (max-width: 420px) {
  .container { width: 94%; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
  .btn { min-height: 44px; }
  .lightbox { padding: 8px; }
}

@media (orientation: landscape) and (max-height: 740px) and (max-width: 1024px) {
  .site-banner { height: 200px; }
  .site-banner-sm { height: 96px; }
  .banner-logo { width: 120px; height: auto; }
  .site-banner-sm .banner-logo { width: 58px; height: auto; }
  .banner-nav-inner { height: 42px; }

  .hero { padding: 36px 0; }
  .hero-grid,
  .about-grid,
  .puppies-intro { gap: 28px; }
  .hero-img-main { height: 220px; }
  .hero-text .tagline { margin-bottom: 1em; }

  .section { padding: 40px 0; }

  .lightbox { padding: 8px; }
  .lightbox img { max-height: 76vh; }
}

/* ---------- Accessibility + Performance Enhancements ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle:focus-visible,
.gallery-item:focus-visible,
.record-card:focus-visible,
.lightbox button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.form-status {
  display: none;
  margin-top: .8em;
  padding: .75em 1em;
  border-radius: 10px;
  font-size: .95rem;
}

.form-status.show {
  display: block;
}

.form-status.error {
  background: #fff1ee;
  color: #9f2f18;
  border: 1px solid #f2c1b6;
}

body.nav-open {
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.subtitle-centered {
  margin: 0 auto 2.5em;
}

.subtitle-centered-compact {
  margin: .3em auto 1.5em;
}

.cta-margin-top {
  margin-top: 2em;
}

.narrow-lede {
  max-width: 800px;
  margin-bottom: 1.5em;
  font-size: 1.05rem;
}

.license-note-spaced {
  margin-top: 2em;
}

.form-submit-full {
  width: 100%;
  justify-content: center;
}

.form-note-centered {
  text-align: center;
  margin-top: 1em;
}

.records-group-spaced {
  margin-top: 3em;
}

.resources-blurb {
  margin-bottom: 1.5em;
}

.resources-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.resource-card-link {
  text-decoration: none;
  cursor: pointer;
}

.resource-card-title {
  color: var(--olive);
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

@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;
  }
}
