﻿:root {
  --ink-900: #151525;
  --ink-700: #2c2f40;
  --ink-500: #5d6174;
  --paper: #f4f4f6;
  --white: #ffffff;
  --purple-900: #281636;
  --purple-700: #4a2a64;
  --purple-500: #6a4389;
  --gold-500: #f3b83b;
  --gold-600: #d89a1f;
  --line: #d8d8df;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 30px rgba(20, 17, 28, 0.08);
  --shadow-card: 0 12px 24px rgba(26, 20, 36, 0.14);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink-900);
  line-height: 1.5;
  background:
    radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 75px 75px, rgba(0, 0, 0, 0.02) 2px, transparent 2px),
    var(--paper);
  background-size: 100px 100px;
}

body.menu-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--purple-900);
  color: var(--white);
  z-index: 1000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.utility-bar {
  background: linear-gradient(90deg, #13111d 0%, #211430 100%);
  color: #e5e4ed;
  font-size: 0.8rem;
}

.utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
}

.utility-links {
  display: flex;
  gap: 1rem;
  font-weight: 700;
}

.utility-links a:hover,
.utility-links a:focus-visible {
  color: var(--gold-500);
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #ebeaf1;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  flex: 0 0 auto;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.menu-bar {
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 3px;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#main-nav {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transform: translateY(-0.75rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

#main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#main-nav ul {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

#main-nav a {
  display: block;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-700);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  background: #f0edf6;
  color: var(--purple-700);
}

.hero {
  padding: clamp(2rem, 4vw, 3.4rem) 0;
  background: linear-gradient(180deg, #f7f7f9 0%, #eceaf1 100%);
  border-bottom: 1px solid #dedce6;
}

.hero-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--purple-700);
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.07;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.7rem);
  max-width: 16ch;
  text-wrap: balance;
}

.hero-copy p {
  margin-top: 1rem;
  max-width: 58ch;
  color: var(--ink-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.76rem;
  min-height: 42px;
  padding: 0.65rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--purple-700), var(--purple-500));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(74, 42, 100, 0.35);
}

.btn-outline {
  border: 1px solid var(--purple-700);
  color: var(--purple-700);
  background: transparent;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #f4ebff;
}

.btn-warm {
  background: linear-gradient(120deg, var(--gold-500), #ffcf73);
  color: #2f1a00;
  box-shadow: 0 8px 20px rgba(243, 184, 59, 0.32);
}

.btn-mini {
  background: #fff3d5;
  color: #6c4303;
  min-height: 40px;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 1376 / 768;
  border-radius: var(--radius-lg);
  background: #eceaf1;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-header-image {
  width: 100%;
  height: auto;
  display: block;
}

.finder {
  background: linear-gradient(90deg, var(--purple-700), var(--purple-900));
  color: #f6f4ff;
  border-top: 5px solid #3c224f;
  border-bottom: 1px solid #271534;
}

.finder-form {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 0;
  align-items: center;
}

.finder-form h2 {
  font-size: 1.35rem;
}

.finder-form input,
.finder-form select {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink-900);
  font: inherit;
}

.dogs,
.about,
.services,
.breeds,
.why,
.confidence,
.faq {
  padding: clamp(2.2rem, 5.4vw, 4rem) 0;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.9vw, 2.9rem);
  max-width: 20ch;
}

.section-head p {
  color: var(--ink-500);
  max-width: 60ch;
}

.result-count {
  color: var(--purple-700);
  font-weight: 700;
}

.dogs-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  justify-content: center;
}

.dog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e4e2eb;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.dog-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  /* height: 250px; */
  min-height: 250px;
  border-bottom: 0;
  overflow: hidden;
  padding: 0;
}

.dog-image-wrap img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.dog-status {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.is-available {
  background: #ddf8e4;
  color: #13612a;
}

.is-sold {
  background: #f6e3e3;
  color: #7f2020;
}

.dog-body {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  grid-template-rows: auto auto auto 1fr auto;
}

.dog-body h3 {
  font-size: 1.55rem;
}

.dog-breed {
  color: var(--purple-700);
  font-weight: 700;
  font-size: 0.96rem;
}

.dog-meta {
  color: var(--ink-500);
  font-size: 0.8rem;
}

.dog-summary {
  color: var(--ink-700);
  font-size: 0.9rem;
}

.dog-link {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--purple-700);
}

.about-grid,
.breeds-grid,
.confidence-grid {
  display: grid;
  gap: 1.4rem;
}

.about-grid h2,
.breeds-grid h2,
.confidence-grid h2,
.cta h2,
.faq h2 {
  font-size: clamp(1.72rem, 3.7vw, 2.85rem);
}

.about-grid p,
.breeds-grid p,
.confidence-grid p {
  margin-top: 1rem;
  color: var(--ink-700);
}

.breeds {
  background:
    radial-gradient(circle at 85% 18%, rgba(106, 67, 137, 0.12), transparent 35%),
    linear-gradient(180deg, #f7f6fb 0%, #f2f0f7 100%);
  border-top: 1px solid #e5e0ee;
  border-bottom: 1px solid #e5e0ee;
}

.breeds-copy {
  padding: clamp(1.05rem, 2.4vw, 1.6rem);
  border: 1px solid #e3deee;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 252, 0.92));
  box-shadow: 0 14px 34px rgba(38, 29, 57, 0.08);
}

.breeds-copy h2 {
  max-width: 16ch;
  text-wrap: balance;
}

.breeds-copy p {
  max-width: 52ch;
}

.breeds-copy .btn-outline {
  margin-top: 1.15rem;
  border-color: #3f2460;
  color: #3f2460;
  background: #ffffff;
}

.breeds-copy .btn-outline:hover,
.breeds-copy .btn-outline:focus-visible {
  background: #3f2460;
  color: var(--white);
}

.trust-panel {
  background: linear-gradient(140deg, #2f1b41, #4b2f68);
  color: #f3eefc;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.trust-panel h3 {
  font-size: 1.7rem;
}

.trust-panel ul {
  margin: 1rem 0;
  display: grid;
  gap: 0.55rem;
}

.trust-panel li {
  position: relative;
  padding-left: 1.1rem;
}

.trust-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.47rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.services {
  background: #f9f8fb;
}

.service-grid,
.why-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid article,
.why-grid article {
  border: 1px solid #e6e3ee;
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.service-grid h3,
.why-grid h3 {
  font-size: 1.5rem;
}

.service-grid p,
.why-grid p {
  margin-top: 0.6rem;
  color: var(--ink-700);
}

.service-grid a {
  margin-top: auto;
  padding-top: 0.8rem;
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-700);
  font-weight: 800;
}

.featured-grid {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #ddd7e8;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #faf8ff 100%);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(30, 20, 45, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-card:hover,
.featured-card:focus-within {
  transform: translateY(-3px);
  border-color: #cdbfe5;
  box-shadow: 0 16px 28px rgba(30, 20, 45, 0.12);
}

.featured-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #ece8f3 0%, #e6e1f0 100%);
  padding: 0.45rem;
}

.featured-body {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.featured-body h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.05;
}

.featured-body p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
  max-width: 40ch;
}

.featured-body a {
  margin-top: 0.2rem;
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-700);
  font-weight: 800;
}

.why {
  background: linear-gradient(180deg, #f6f4fa 0%, #f2f0f7 100%);
}

.confidence-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e2deeb;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: #f2f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.confidence-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.confidence-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  width: 100%;
}

.confidence-copy .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

.cta {
  background: linear-gradient(120deg, #2f1b41 0%, #4c2f67 80%);
  color: #f5edff;
  padding: clamp(2.2rem, 6vw, 4rem) 0;
}

.cta-inner {
  display: grid;
  gap: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  border: 1px solid #e2deeb;
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

.faq-list p {
  padding: 0 1rem 1rem;
  color: var(--ink-700);
}

.site-footer {
  color: #f7f5ff;
  background:
    linear-gradient(180deg, #3d2352 0%, #2a1838 100%),
    radial-gradient(circle at 90% 20%, rgba(255, 201, 105, 0.17), transparent 40%);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  padding: 2.2rem 0 1.4rem;
}

.footer-grid h3 {
  font-size: 1.5rem;
}

.footer-grid p,
.footer-grid li {
  color: #d8d0e8;
  margin-top: 0.5rem;
}

.footer-grid ul {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.4rem;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #ffd17a;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.95rem 0 1.15rem;
  text-align: center;
  color: #d8d0e8;
  font-size: 0.86rem;
}

@media (min-width: 700px) {
  .finder-form {
    grid-template-columns: 1.25fr 1fr 1fr 0.72fr 0.8fr;
  }

  .finder-form h2 {
    grid-column: 1 / -1;
  }

  .featured-card {
    grid-template-columns: 190px 1fr;
    min-height: 190px;
  }

  .featured-card img {
    height: 100%;
  }

  .about-grid,
  .breeds-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .breeds-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: start;
  }

  .confidence-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2.2rem);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
  }
}

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

  #main-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  #main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
  }

  #main-nav a {
    padding: 0.5rem 0.64rem;
    font-size: 0.73rem;
    letter-spacing: 0.07em;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .finder-form {
    grid-template-columns: max-content 1.1fr 1fr 1fr auto auto;
    align-items: center;
  }

  .finder-form h2 {
    grid-column: auto;
    margin: 0 0.6rem 0 0;
    font-size: 1.15rem;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--container), calc(100% - 1rem));
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .dog-image-wrap {
    height: 210px;
    min-height: 210px;
  }

  .breeds-copy {
    padding: 1rem;
  }

  .featured-card img {
    height: 165px;
  }
}
