@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@400;600;700;800&display=swap');

:root {
  --bg: #f6f3ef;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --text: #141414;
  --muted: #66646b;
  --line: #e6e0d8;
  --dark: #131318;
  --dark-2: #1b1b21;
  --accent: #ffffff;
  --shadow: 0 24px 60px rgba(20, 20, 20, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 42px 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 239, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
}

.paw-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: white;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 20px;
  padding: 14px 24px;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

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

.btn-dark {
  background: var(--dark);
  color: white;
  box-shadow: 0 16px 30px rgba(19, 19, 24, 0.18);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: var(--line);
}

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

.btn.large {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn.full {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(246, 243, 239, 0),
      rgba(246, 243, 239, 0.45) 60%,
      rgba(246, 243, 239, 1)
    ),
    url("https://images.unsplash.com/photo-1450778869180-41d0601e046e?auto=format&fit=crop&q=80&w=1800")
      center/cover no-repeat;
  filter: grayscale(1);
  opacity: 0.2;
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding: 90px 0 40px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  background: var(--dark);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 26px;
}

.hero h1,
.section-head h2,
.cta-panel h2,
.modal-card h3,
.page-hero h1,
.contact-panel h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  margin-bottom: 26px;
}

.hero h1 span {
  font-style: italic;
  color: #777681;
  font-weight: 400;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.7;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 68px 0 20px;
}

.page-hero .hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  margin-bottom: 18px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 760px;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 18px 8px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: #efe9e1;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  line-height: 1.1;
}

.feature-card p,
.section-head p,
.form-note,
.site-footer p,
.modal-card p,
.modal-card small,
.contact-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-panel {
  position: relative;
  background: linear-gradient(145deg, var(--dark), #09090d);
  border-radius: 48px;
  color: white;
  text-align: center;
  padding: 78px 24px;
  overflow: hidden;
}

.cta-panel h2 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 720px;
  margin: 0 auto 20px;
}

.cta-panel p {
  max-width: 700px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.18rem;
}

.paw {
  position: absolute;
  font-size: 7rem;
  opacity: 0.08;
}

.paw-left {
  left: 28px;
  top: 28px;
}

.paw-right {
  right: 28px;
  bottom: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head.left {
  align-items: start;
}

.section-head h2 {
  font-size: clamp(2.5rem, 7vw, 4.4rem);
}

.section-head p {
  margin: 10px 0 0;
  font-size: 1.1rem;
}

.pets-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-wrap {
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 14px 16px;
}

.search-wrap input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}

.filter-group {
  display: inline-flex;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.filter-btn {
  padding: 12px 18px;
  border: 0;
  background: transparent;
  border-radius: 16px;
  font-weight: 800;
  color: var(--muted);
}

.filter-btn.active {
  background: var(--dark);
  color: white;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pet-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pet-thumb {
  aspect-ratio: 1 / 0.82;
  background: #ece6de center/cover no-repeat;
}

.pet-body {
  padding: 22px;
}

.pet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.pet-name {
  margin: 0;
  font-size: 1.5rem;
}

.pet-badge {
  background: #f1ece6;
  color: #4d4b53;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: capitalize;
}

.pet-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.pet-desc {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.pet-card .btn {
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  border-radius: 32px;
  border: 2px dashed var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

.form-wrap {
  display: flex;
  justify-content: center;
}

.form-card {
  width: min(780px, 100%);
  background: var(--card-solid);
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 36px;
}

.pet-form {
  display: grid;
  gap: 18px;
}

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

.pet-form label {
  display: grid;
  gap: 10px;
}

.pet-form label span {
  font-size: 0.85rem;
  font-weight: 800;
  color: #55525b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pet-form input,
.pet-form select,
.pet-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pet-form input:focus,
.pet-form select:focus,
.pet-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a09aa2;
  box-shadow: 0 0 0 4px rgba(160, 154, 162, 0.12);
}

.pet-form textarea,
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.contact-panel,
.contact-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: 32px;
}

.contact-panel h2 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: 16px;
}

.contact-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .btn {
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  margin-top: 30px;
}

.footer-wrap {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 1.9rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 16, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  background: #fff;
  border-radius: 32px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(10, 10, 16, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  font-size: 1.6rem;
}

.modal-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--dark);
  color: white;
  font-size: 2rem;
}

.modal-card h3 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(19, 19, 24, 0.2);
  z-index: 500;
}

@media (max-width: 980px) {
  .feature-grid,
  .pet-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-head,
  .pets-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 84px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    flex-direction: column;
    align-items: start;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

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

  .feature-grid,
  .pet-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    min-width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 70px 0 26px;
  }

  .form-card,
  .contact-panel,
  .contact-card,
  .page-hero .hero-panel {
    padding: 24px;
  }

  .footer-wrap {
    justify-content: center;
    text-align: center;
  }
}
