/* ============================================================
   Una's Petshop — design tokens extracted from the logo
   ============================================================ */
:root {
  --sky: #4aa3df;
  --sky-deep: #2b7cb8;
  --sky-soft: #a8d8ef;
  --sky-bg: #eef9ff;
  --yellow: #ffd200;
  --orange: #f7941d;
  --orange-deep: #d97706;
  --green: #9dd8ab;
  --green-deep: #3f9e57;
  --pink: #e5467a;
  --ink: #1a1a1a;
  --ink-soft: #43505c;
  --white: #ffffff;

  --font-display: "Baloo 2", "Trebuchet MS", cursive;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --radius-card: 20px;
  --radius-btn: 999px;
  --shadow-soft: 0 6px 24px rgba(43, 124, 184, 0.12);
  --shadow-lift: 0 12px 32px rgba(43, 124, 184, 0.2);
  --container: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-deep); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.btn-ghost {
  background: var(--white);
  color: var(--sky-deep);
  border-color: var(--sky);
}
.btn-ghost:hover { background: var(--sky-bg); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sky-bg);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 30%; border: 2px solid var(--sky-soft); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.brand-name em { color: var(--orange-deep); font-style: normal; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; }
.site-nav a:hover { color: var(--sky-deep); }
.site-nav .nav-cta {
  background: var(--sky-deep); color: var(--white);
  padding: 0.5rem 1.2rem; border-radius: var(--radius-btn);
}
.site-nav .nav-cta:hover { background: var(--sky); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 210, 0, 0.25), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(157, 216, 171, 0.35), transparent 45%),
    linear-gradient(160deg, var(--sky-bg) 0%, #dbefffbf 60%, #eaf7e6 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center;
  gap: 32px; padding: 72px 20px 110px;
}
.hero-kicker {
  display: inline-block; font-weight: 800; letter-spacing: 0.04em;
  color: var(--orange-deep); text-transform: uppercase; font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.75); border: 1.5px solid var(--yellow);
  padding: 0.35rem 0.9rem; border-radius: var(--radius-btn); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 800; color: var(--ink);
}
.hero .hl {
  color: var(--sky-deep);
  text-shadow: 2px 2px 0 var(--yellow);
}
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-art img {
  width: min(400px, 80vw); height: auto; margin-left: auto;
  filter: drop-shadow(0 14px 28px rgba(43, 124, 184, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; }

/* ============ Trust strip ============ */
.strip { background: var(--white); border-bottom: 3px solid var(--sky-bg); }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 22px 20px; text-align: center;
}
.strip-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--sky-deep); }
.strip-item span { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ Catalog ============ */
.catalog { padding: 72px 0 84px; background: var(--white); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 34px; }
.section-head p { color: var(--ink-soft); }

.catalog-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 30px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 2px solid var(--sky-soft); background: var(--white); color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 800; font-size: 0.92rem;
  padding: 0.45rem 1.1rem; border-radius: var(--radius-btn); cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--sky); color: var(--sky-deep); }
.chip[aria-selected="true"] {
  background: var(--sky-deep); border-color: var(--sky-deep); color: var(--white);
}
.search-wrap { flex: 1; min-width: 220px; max-width: 320px; margin-left: auto; }
.search-wrap input {
  width: 100%; padding: 0.65rem 1.1rem; font: inherit; font-weight: 600;
  border: 2px solid var(--sky-soft); border-radius: var(--radius-btn);
  background: var(--sky-bg); color: var(--ink);
}
.search-wrap input:focus { outline: none; border-color: var(--orange); background: var(--white); }

.pet-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}
.pet-card {
  background: var(--white); border: 2px solid var(--sky-bg);
  border-radius: var(--radius-card); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-soft); text-align: left; padding: 0; font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pet-card:hover, .pet-card:focus-visible {
  transform: translateY(-5px); box-shadow: var(--shadow-lift);
  border-color: var(--yellow); outline: none;
}
.pet-card-img { display: block; aspect-ratio: 1 / 0.85; overflow: hidden; background: var(--sky-bg); }
.pet-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.pet-card:hover .pet-card-img img { transform: scale(1.05); }
.pet-card-body { display: block; padding: 16px 18px 20px; }
.pet-card-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green-deep);
  background: rgba(157, 216, 171, 0.35); padding: 0.15rem 0.6rem; border-radius: var(--radius-btn);
  margin-bottom: 8px;
}
.pet-card h3 { font-size: 1.18rem; font-weight: 700; margin: 0 0 4px; }
.pet-card-species { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 10px; }
.pet-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pet-card h3 { display: block; }
.price-tag { font-family: var(--font-display); font-weight: 700; color: var(--orange-deep); font-size: 0.95rem; }
.inquire-link { font-weight: 800; font-size: 0.9rem; color: var(--sky-deep); text-decoration: none; }
.pet-card:hover .inquire-link { text-decoration: underline; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state p:first-child { font-size: 1.2rem; color: var(--ink); }

/* ============ About ============ */
.about {
  background: linear-gradient(150deg, var(--sky-bg), #f2fbef);
  border-top: 3px solid var(--yellow); border-bottom: 3px solid var(--orange);
  padding: 80px 0;
}
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-art { position: relative; display: flex; justify-content: center; }
.about-art img:first-child { border-radius: 24px; box-shadow: var(--shadow-lift); width: min(280px, 70vw); }
.about-art .offset {
  position: absolute; right: 4%; bottom: -22px; border-radius: 24px;
  box-shadow: var(--shadow-lift); border: 4px solid var(--white); width: min(200px, 45vw);
}
.about-text p { color: var(--ink-soft); font-size: 1.02rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ============ Contact ============ */
.contact { padding: 80px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--white); border: 2px solid var(--sky-bg); border-radius: var(--radius-card);
  padding: 28px 20px; text-align: center; box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.contact-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin: 12px 0 4px; }
.contact-card span:last-child { font-size: 0.86rem; color: var(--ink-soft); }
.cc-icon {
  width: 54px; height: 54px; margin: 0 auto; border-radius: 50%;
  background-size: 26px; background-position: center; background-repeat: no-repeat;
}
.cc-messenger { background-color: var(--sky-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.3 2 1.7 6.2 1.7 11.4c0 2.5 1.1 4.8 2.9 6.4v4.2l4-2.2c1.1.3 2.2.5 3.4.5 5.7 0 10.3-4.2 10.3-9.4S17.7 2 12 2zm1.1 12.6l-2.6-2.8-5 2.8 5.5-5.8 2.6 2.8 4.9-2.8-5.4 5.8z'/%3E%3C/svg%3E"); }
.cc-phone { background-color: var(--green-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E"); }
.cc-facebook { background-color: var(--sky); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M13.5 21v-7h2.4l.4-3h-2.8V9.1c0-.9.4-1.7 1.7-1.7h1.3V4.8c-.6-.1-1.4-.2-2.3-.2-2.4 0-3.9 1.4-3.9 4v2.4H8v3h2.3v7h3.2z'/%3E%3C/svg%3E"); }
.cc-pin { background-color: var(--pink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C7.9 2 4.5 5.3 4.5 9.4c0 5.6 7.5 12.6 7.5 12.6s7.5-7 7.5-12.6C19.5 5.3 16.1 2 12 2zm0 10.2c-1.5 0-2.7-1.2-2.7-2.7s1.2-2.7 2.7-2.7 2.7 1.2 2.7 2.7-1.2 2.7-2.7 2.7z'/%3E%3C/svg%3E"); }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink); color: #cfe3f2; padding: 40px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; text-align: left; }
.footer-logo { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: center 30%; border: 2px solid var(--orange); }
.site-footer p { margin: 0; font-size: 0.92rem; }

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 26, 26, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--white); border-radius: 26px; max-width: 780px; width: 100%;
  max-height: min(88vh, 820px); overflow-y: auto; position: relative;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: pop 0.22s ease;
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  border: 0; background: var(--white); color: var(--ink);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  box-shadow: var(--shadow-soft); line-height: 1;
}
.modal-image { width: 100%; height: 100%; object-fit: cover; background: var(--sky-bg); }
.modal-body { padding: 30px 30px 34px; }
.modal-cat {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green-deep); margin: 0 0 6px;
}
.modal-body h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 2px; }
.modal-breed { color: var(--ink-soft); margin: 0 0 14px; font-weight: 600; }
.modal-attrs { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.modal-attrs li { margin-bottom: 4px; }
.modal-status {
  background: rgba(255, 210, 0, 0.25); border: 1.5px solid var(--yellow);
  border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 0.92rem; margin: 0 0 10px;
}
.modal-note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin: 0 0 18px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-hint { color: var(--green-deep); font-weight: 700; font-size: 0.88rem; margin-top: 10px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 96px; text-align: center; }
  .hero-art { order: -1; }
  .hero-art img { margin: 0 auto; width: min(300px, 68vw); }
  .hero-actions { justify-content: center; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-art { margin-bottom: 10px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .modal-image { max-height: 260px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 3px solid var(--sky-bg);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 20px 18px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .site-nav .nav-cta { text-align: center; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: none; margin-left: 0; }
  .pet-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { text-align: center; justify-content: center; }
}
