
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f5ff;
  --surface-warm: #fff7ee;
  --text: #10183f;
  --text-soft: #5f6683;
  --line: #e8e9f3;
  --purple: #5a36d6;
  --purple-dark: #4225ba;
  --purple-soft: #eee9ff;
  --orange: #ff9d18;
  --orange-soft: #fff1dc;
  --navy: #111a44;
  --navy-2: #182250;
  --success: #26b887;
  --danger: #cf3456;
  --shadow-sm: 0 8px 24px rgba(25, 30, 70, 0.08);
  --shadow-md: 0 18px 50px rgba(25, 30, 70, 0.12);
  --shadow-lg: 0 28px 80px rgba(25, 30, 70, 0.16);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --content: 1380px;
}

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

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-200%);
  transition: 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(232, 233, 243, 0.95);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: var(--content);
  min-height: 94px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-logo-image {
  width: 210px;
  height: auto;
}

.brand-mark {
  position: relative;
  width: 66px;
  height: 58px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
}

.brand-heart {
  position: absolute;
  inset: -8px 0 0 -4px;
  color: var(--navy);
  font-size: 64px;
  line-height: 1;
  transform: rotate(-6deg);
}

.brand-pets {
  position: relative;
  z-index: 2;
  font-size: 30px;
  letter-spacing: -7px;
  transform: translate(0, 4px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.6px;
}

.brand-copy small {
  margin-top: 7px;
  color: #8d91a6;
  font-size: 13px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}

.main-nav > a,
.nav-dropdown-toggle {
  position: relative;
  border: 0;
  background: transparent;
  padding: 35px 2px 31px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown-toggle:hover,
.main-nav > a.active,
.nav-dropdown-toggle.active {
  color: var(--purple);
}

.main-nav > a.active::after,
.nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 3px;
  border-radius: 999px;
  background: var(--purple);
}

.main-nav > a span {
  margin-right: 4px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  min-width: 190px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: 0.18s ease;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

.nav-dropdown-menu a:hover {
  background: var(--purple-soft);
  color: var(--purple);
}

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

.header-search-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy);
  font-size: 31px;
  font-weight: 500;
}

.header-search-button {
  padding: 11px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(90, 54, 214, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(90, 54, 214, 0.3);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
}

/* =========================================================
   Main / shared
   ========================================================= */

.site-main {
  min-height: 70vh;
  background: #fff;
}

.eyebrow,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--purple-soft);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #6338df, #4a2cc2);
  box-shadow: 0 12px 28px rgba(90, 54, 214, 0.23);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(90, 54, 214, 0.3);
}

.secondary-button {
  border: 1px solid #7c66df;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.78);
}

.secondary-button:hover {
  background: var(--purple-soft);
}

.section-heading {
  max-width: var(--content);
  margin: 0 auto 22px;
  padding: 0 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 4px 0 4px;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.section-link {
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
}

.section-link span {
  margin-left: 6px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-icon {
  color: var(--purple);
  font-size: 23px;
}

/* =========================================================
   Home Hero
   ========================================================= */

.home-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 470px;
  padding: 34px max(28px, calc((100vw - var(--content)) / 2 + 28px));
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.72fr;
  align-items: center;
  gap: 10px;
  background:
    radial-gradient(circle at 8% 38%, rgba(103, 72, 218, 0.10), transparent 19%),
    radial-gradient(circle at 73% 18%, rgba(103, 72, 218, 0.10), transparent 22%),
    radial-gradient(circle at 90% 60%, rgba(255, 160, 41, 0.14), transparent 28%),
    linear-gradient(90deg, #f4f0ff 0%, #faf8ff 50%, #fff6ea 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: -65px;
  bottom: -105px;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: rgba(100, 68, 218, 0.08);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-copy h1 {
  margin: 12px 0 15px;
  max-width: 540px;
  color: var(--navy);
  font-size: clamp(42px, 4.3vw, 67px);
  line-height: 1.03;
  letter-spacing: -2.4px;
  font-weight: 900;
}

.hero-cat-word {
  color: #8c61db;
}

.hero-dog-word {
  color: var(--orange);
}

.hero-copy p {
  max-width: 520px;
  margin: 0 0 22px;
  color: #2f3558;
  font-size: 17px;
  line-height: 1.55;
}

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

.hero-pets {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero-pets::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  left: 50%;
  top: 47%;
  border-radius: 45% 55% 55% 45%;
  background: rgba(120, 88, 220, 0.08);
  transform: translate(-50%, -50%) rotate(12deg);
}

.hero-pets img {
  position: relative;
  z-index: 2;
  width: min(100%, 690px);
  max-height: 430px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 28px rgba(45, 39, 82, 0.15));
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
}

.hero-stat-card {
  min-height: 116px;
  padding: 22px;
  border: 1px solid rgba(225, 224, 234, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-stat-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 23px;
  font-weight: 900;
}

.hero-stat-card:nth-child(2) .hero-stat-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.hero-stat-card div {
  display: flex;
  flex-direction: column;
}

.hero-stat-card strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.hero-stat-card span:not(.hero-stat-icon) {
  margin-top: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.hero-stat-card small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.hero-decor {
  position: absolute;
  z-index: 1;
  opacity: 0.09;
  font-size: 42px;
  user-select: none;
}

.hero-decor-left {
  left: 4%;
  top: 30%;
}

.hero-decor-right {
  right: 3%;
  top: 14%;
}

/* =========================================================
   Dog / Cat panels
   ========================================================= */

.care-switchboard {
  max-width: var(--content);
  margin: 28px auto 18px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.care-panel {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid #ececf5;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(28, 34, 72, 0.06);
  display: grid;
  align-items: stretch;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.care-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dog-care-panel {
  grid-template-columns: 42% 58%;
  background: linear-gradient(90deg, #faf8ff 0%, #efebff 100%);
}

.cat-care-panel {
  grid-template-columns: 58% 42%;
  background: linear-gradient(90deg, #fffaf3 0%, #fff0df 100%);
}

.care-panel > img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.care-panel-content {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 26px;
}

.care-panel-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 21px;
}

.cat-care-panel .care-panel-icon {
  background: var(--orange);
}

.care-panel h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.1;
}

.care-panel p {
  max-width: 250px;
  margin: 0 0 12px;
  color: #3f4666;
  font-size: 14px;
  line-height: 1.55;
}

.care-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(90, 54, 214, 0.45);
  border-radius: 10px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.58);
}

.cat-care-panel .care-panel-link {
  border-color: rgba(255, 157, 24, 0.55);
  color: #c66c00;
}

/* =========================================================
   Article sections and cards
   ========================================================= */

.articles-section {
  padding: 28px 0 36px;
}

.featured-section {
  padding-top: 10px;
}

.articles-grid {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-featured-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(28, 34, 72, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #dcd7f3;
  box-shadow: var(--shadow-md);
}

.card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f1f6;
}

.article-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card-image {
  transform: scale(1.035);
}

.article-card-body {
  padding: 16px;
}

.article-card-compact .article-card-body {
  padding: 12px 14px 14px;
}

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

.category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-cats {
  color: #a65b00;
  background: #fff0c9;
}

.category-dogs {
  color: var(--purple);
  background: var(--purple-soft);
}

.reading-time {
  color: #83889e;
  font-size: 12px;
  white-space: nowrap;
}

.article-card h2,
.article-card h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.article-card h2 {
  font-size: 20px;
}

.article-card h3 {
  font-size: 17px;
}

.home-featured-grid .article-card h3 {
  min-height: 46px;
  font-size: 16px;
  line-height: 1.35;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--purple);
}

.article-card p {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.article-card-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eff0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-featured-grid .article-card-actions {
  margin-top: 10px;
  padding-top: 8px;
}

.read-more {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.read-more span {
  margin-left: 3px;
}

.pinterest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 9px;
  background: #c8233c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.shuffle-button {
  border: 1px solid var(--purple);
  border-radius: 11px;
  padding: 10px 14px;
  background: #fff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.shuffle-button:hover {
  background: var(--purple-soft);
}

.discovery-section {
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
}

/* =========================================================
   Editorial band
   ========================================================= */

.home-editorial-band {
  max-width: var(--content);
  margin: 10px auto 30px;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, #171f4d, #111839);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  align-items: center;
  gap: 30px;
}

.home-editorial-band h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.home-editorial-band p {
  margin: 0;
  color: #d8dbee;
  font-size: 14px;
}

.home-editorial-band a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  max-width: var(--content);
  margin: 0 auto 22px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #17204c, #11183b);
  box-shadow: 0 16px 36px rgba(17, 24, 59, 0.16);
}

.footer-top {
  padding: 24px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-trust-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid #9d7cff;
  border-radius: 15px;
  color: #a78dff;
  font-size: 28px;
}

.footer-trust-item:nth-child(2) .footer-trust-icon {
  border-color: #e979aa;
  color: #f487b6;
}

.footer-trust-item:nth-child(3) .footer-trust-icon {
  border-color: #68e5bc;
  color: #68e5bc;
}

.footer-trust-item strong,
.footer-trust-item span:not(.footer-trust-icon) {
  display: block;
}

.footer-trust-item strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.footer-trust-item span:not(.footer-trust-icon) {
  color: #d7daea;
  font-size: 12px;
}

.footer-bottom {
  padding: 20px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-size: 20px;
}

.footer-brand span {
  color: #c4c8dd;
  font-size: 11px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: #edf0ff;
  font-size: 12px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 340px;
  margin: 0;
  color: #b9bed4;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: right;
}

/* =========================================================
   Breadcrumbs / article pages
   ========================================================= */

.breadcrumbs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #737a95;
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--purple);
}

.page-breadcrumbs {
  max-width: var(--content);
  padding-left: 28px;
  padding-right: 28px;
}

.single-article {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.article-header {
  text-align: left;
}

.article-meta {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: #747a94;
  font-size: 12px;
}

.single-article h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.6px;
}

.article-summary {
  max-width: 820px;
  margin: 0 0 26px;
  color: #515873;
  font-size: 18px;
  line-height: 1.7;
}

.article-hero {
  width: 100%;
  margin: 18px 0 14px;
  border-radius: 20px;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.article-share {
  margin: 0 0 24px;
  display: flex;
  justify-content: flex-end;
}

.article-content {
  color: #2c3355;
  font-size: 17px;
  line-height: 1.85;
}

.article-content h2 {
  margin: 38px 0 14px;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.article-content h3 {
  margin: 28px 0 10px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.3;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: var(--purple-soft);
}

.article-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: var(--navy);
  background: #f7f6fc;
}

.editorial-box {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid #e6e4f2;
  border-radius: 16px;
  background: #faf9ff;
}

.editorial-box strong {
  color: var(--navy);
}

.editorial-box p {
  margin: 6px 0 0;
  color: #656b86;
  font-size: 14px;
}

.related-section {
  background: #fbfaff;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   Category pages
   ========================================================= */

.category-header {
  max-width: var(--content);
  margin: 20px auto 8px;
  padding: 34px 36px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #f3efff, #fbf9ff);
}

.category-cats-header {
  background: linear-gradient(135deg, #fff7eb, #fffdf9);
}

.category-header h1 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -1px;
}

.category-header p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
}

.category-count-card {
  min-width: 170px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.category-count-card strong {
  display: block;
  color: var(--purple);
  font-size: 38px;
  line-height: 1;
}

.category-count-card span {
  margin-top: 6px;
  display: block;
  color: #737a95;
  font-size: 12px;
}

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

.article-filter label {
  color: #747a92;
  font-size: 11px;
  font-weight: 700;
}

.article-filter-input {
  width: 270px;
  height: 43px;
  padding: 0 14px;
  border: 1px solid #dfe1eb;
  border-radius: 11px;
  outline: none;
  color: var(--navy);
  background: #fff;
}

.article-filter-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(90, 54, 214, 0.10);
}

.no-results-message {
  max-width: var(--content);
  margin: 20px auto;
  padding: 0 28px;
  color: #727992;
}

.category-editorial-note {
  max-width: var(--content);
  margin: 0 auto 30px;
  padding: 26px 30px;
  border-radius: 18px;
  background: #faf9ff;
}

.category-editorial-note h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.category-editorial-note p {
  margin: 0;
  color: var(--text-soft);
}

.category-overview-grid {
  max-width: var(--content);
  margin: 24px auto 18px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-overview-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

.category-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dogs-overview-card {
  background: linear-gradient(135deg, #f1edff, #fff);
}

.cats-overview-card {
  background: linear-gradient(135deg, #fff3e4, #fff);
}

.category-overview-icon {
  font-size: 48px;
}

.category-overview-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
}

.category-overview-card p {
  margin: 4px 0 8px;
  color: var(--text-soft);
}

.category-overview-card span:last-child {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
}

/* =========================================================
   Search page
   ========================================================= */

.search-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 70px;
}

.search-page-header {
  text-align: center;
}

.search-page-header h1 {
  margin: 12px auto 10px;
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.search-page-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-soft);
}

.site-search-form {
  max-width: 760px;
  margin: 28px auto 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 8px;
}

.site-search-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  outline: none;
  color: var(--navy);
}

.site-search-form button {
  min-width: 110px;
  border: 0;
  border-radius: 11px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search-status {
  margin: 14px 0 22px;
  color: #7b8198;
  font-size: 13px;
  text-align: center;
}

.search-results-grid {
  display: grid;
  gap: 16px;
}

.search-result-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: #fff;
}

.search-result-image {
  overflow: hidden;
  border-radius: 12px;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
}

.search-result-card h2 {
  margin: 8px 0 6px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.search-result-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
}

/* =========================================================
   Simple pages
   ========================================================= */

.simple-page {
  min-height: 48vh;
}

.simple-page p {
  color: var(--text-soft);
  font-size: 17px;
}

/* =========================================================
   Desktop adjustments
   ========================================================= */

@media (max-width: 1240px) {
  .site-header-inner {
    gap: 20px;
  }

  .main-nav {
    gap: 20px;
  }

  .site-brand {
    min-width: 190px;
  }

  .brand-copy strong {
    font-size: 25px;
  }

  .home-hero {
    grid-template-columns: 1fr 1.05fr 0.65fr;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .home-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {
  .site-header-inner {
    min-height: 78px;
    grid-template-columns: 1fr auto auto;
    padding: 0 18px;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  .header-actions {
    order: 3;
  }

  .site-brand {
    min-width: 0;
  }

  .brand-mark {
    width: 54px;
    height: 50px;
    flex-basis: 54px;
  }

  .brand-heart {
    font-size: 53px;
  }

  .brand-pets {
    font-size: 25px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 14px 18px 24px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgba(17, 24, 59, 0.10);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .main-nav > a,
  .nav-dropdown-toggle {
    width: 100%;
    padding: 14px 6px;
    text-align: left;
  }

  .main-nav > a.active::after,
  .nav-dropdown-toggle.active::after {
    left: 6px;
    right: auto;
    bottom: 6px;
    width: 38px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px 0 4px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
    transform: none;
  }

  .home-hero {
    min-height: auto;
    padding: 40px 24px 0;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy copy"
      "pets stats";
    gap: 20px;
  }

  .hero-copy {
    grid-area: copy;
    max-width: 760px;
  }

  .hero-copy h1 {
    max-width: 760px;
    font-size: 52px;
  }

  .hero-pets {
    grid-area: pets;
  }

  .hero-stats {
    grid-area: stats;
    align-self: center;
  }

  .care-switchboard,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .home-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-editorial-band {
    margin-left: 24px;
    margin-right: 24px;
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-disclaimer {
    max-width: none;
    text-align: center;
  }

  .site-footer {
    margin-left: 24px;
    margin-right: 24px;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 680px) {
  .site-header-inner {
    min-height: 70px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 0 14px;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    order: initial;
    width: 42px;
    height: 42px;
  }

  .main-nav {
    top: 70px;
    max-height: calc(100vh - 70px);
  }

  .site-brand {
    gap: 8px;
  }

  .brand-mark {
    width: 46px;
    height: 44px;
    flex-basis: 46px;
  }

  .brand-heart {
    font-size: 47px;
  }

  .brand-pets {
    font-size: 21px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .brand-copy small {
    margin-top: 4px;
    font-size: 10px;
  }

  .home-hero {
    padding: 28px 18px 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "pets"
      "stats";
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(39px, 11vw, 51px);
    letter-spacing: -1.6px;
  }

  .hero-copy p {
    font-size: 15px;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-pets img {
    width: min(100%, 500px);
    max-height: 330px;
  }

  .hero-stats {
    width: 100%;
    padding: 0 0 24px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-stat-card {
    min-height: 104px;
    padding: 15px;
    gap: 10px;
  }

  .hero-stat-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .hero-stat-card strong {
    font-size: 25px;
  }

  .hero-stat-card span:not(.hero-stat-icon) {
    font-size: 11px;
  }

  .hero-stat-card small {
    display: none;
  }

  .care-switchboard {
    margin-top: 20px;
    padding: 0 16px;
    gap: 16px;
  }

  .care-panel,
  .dog-care-panel,
  .cat-care-panel {
    grid-template-columns: 1fr;
  }

  .cat-care-panel .care-panel-content {
    order: 2;
  }

  .care-panel > img {
    min-height: 175px;
    max-height: 220px;
  }

  .care-panel-content {
    padding: 18px;
  }

  .care-panel h2 {
    font-size: 24px;
  }

  .section-heading {
    padding: 0 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .articles-grid,
  .home-featured-grid,
  .related-grid {
    padding: 0 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-featured-grid .article-card h3 {
    min-height: 0;
  }

  .home-editorial-band {
    margin: 4px 16px 22px;
    padding: 22px;
  }

  .site-footer {
    margin: 0 16px 16px;
  }

  .footer-top {
    padding: 22px;
  }

  .footer-bottom {
    padding: 18px 22px;
  }

  .category-header {
    margin: 14px 16px 8px;
    padding: 24px 20px;
    grid-template-columns: 1fr;
  }

  .category-count-card {
    min-width: 0;
    width: 100%;
  }

  .category-overview-grid {
    padding: 0 16px;
  }

  .article-filter {
    width: 100%;
  }

  .article-filter-input {
    width: 100%;
  }

  .breadcrumbs,
  .page-breadcrumbs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-article {
    padding: 24px 16px 44px;
  }

  .single-article h1 {
    font-size: 38px;
  }

  .article-summary {
    font-size: 16px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 27px;
  }

  .article-content h3 {
    font-size: 21px;
  }

  .search-page {
    padding: 38px 16px 48px;
  }

  .site-search-form {
    flex-direction: column;
  }

  .site-search-form button {
    min-height: 46px;
  }

  .search-result-card {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Very small screens
   ========================================================= */

@media (max-width: 420px) {
  .brand-copy small {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat-card {
    min-height: 86px;
  }

  .footer-nav {
    gap: 12px;
  }
}

/* =========================================================
   Accessibility / motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 3px solid rgba(90, 54, 214, 0.35);
  outline-offset: 3px;
}

/* =========================================================
   Virixoo reference-match refinements
   ========================================================= */

.site-main {
  overflow: hidden;
}

.home-hero {
  min-height: 535px;
  padding-top: 48px;
  padding-bottom: 14px;
  grid-template-columns: 1.03fr 1.32fr 0.68fr;
  background:
    radial-gradient(circle at 73% 24%, rgba(98, 65, 218, 0.11), transparent 22%),
    radial-gradient(circle at 91% 54%, rgba(255, 157, 24, 0.15), transparent 30%),
    linear-gradient(90deg, #f5f2ff 0%, #fbfaff 52%, #fff6ea 100%);
}

.hero-copy {
  padding-bottom: 30px;
}

.hero-copy h1 {
  max-width: 600px;
  font-size: clamp(48px, 4.7vw, 72px);
  letter-spacing: -2.8px;
}

.hero-copy p {
  max-width: 560px;
  font-size: 17px;
}

.hero-pets-pair {
  position: relative;
  min-height: 430px;
  overflow: visible;
  align-self: end;
}

.hero-pets-pair::before {
  width: 78%;
  background: rgba(118, 87, 224, 0.09);
}

.hero-pet {
  position: absolute;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.88);
  background: #f1eff9;
  box-shadow: 0 28px 55px rgba(41, 34, 82, 0.18);
}

.hero-pet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dog-photo {
  z-index: 2;
  width: min(64%, 405px);
  aspect-ratio: 0.94;
  left: 8%;
  bottom: -18px;
  border-radius: 46% 46% 18% 18% / 40% 40% 16% 16%;
  transform: rotate(-1deg);
}

.hero-cat-photo {
  z-index: 3;
  width: min(45%, 285px);
  aspect-ratio: 0.95;
  right: 2%;
  bottom: -16px;
  border-radius: 48% 48% 18% 18% / 44% 44% 16% 16%;
  transform: rotate(1.5deg);
}

.hero-heart-mark,
.hero-paw-mark {
  position: absolute;
  z-index: 4;
  user-select: none;
}

.hero-heart-mark {
  left: 1%;
  top: 18%;
  color: #673ae2;
  font-size: 70px;
  line-height: 1;
  transform: rotate(-9deg);
}

.hero-paw-mark {
  right: 8%;
  top: 8%;
  font-size: 46px;
  opacity: 0.66;
}

.hero-stats {
  transform: translateY(-6px);
}

.hero-stat-card {
  border-radius: 22px;
  min-height: 126px;
  background: rgba(255,255,255,.93);
}

.care-switchboard {
  margin-top: 24px;
  gap: 22px;
}

.care-panel {
  min-height: 190px;
  border-radius: 22px;
}

.dog-care-panel {
  grid-template-columns: 43% 57%;
}

.cat-care-panel {
  grid-template-columns: 57% 43%;
}

.care-panel > img {
  min-height: 190px;
  filter: saturate(1.04) contrast(1.02);
}

.care-panel-content {
  padding: 27px 28px;
}

.featured-section {
  padding-top: 16px;
}

.home-featured-grid .article-card {
  border-radius: 14px;
}

.home-featured-grid .card-image-link {
  aspect-ratio: 1.42;
}

.home-featured-grid .article-card-body {
  padding: 12px 14px 13px;
}

.site-footer {
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy copy"
      "pets stats";
    min-height: auto;
  }

  .hero-pets-pair {
    min-height: 390px;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding-top: 26px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 54px);
    letter-spacing: -1.8px;
  }

  .hero-pets-pair {
    min-height: 330px;
    width: 100%;
  }

  .hero-dog-photo {
    width: 62%;
    left: 3%;
    bottom: 0;
  }

  .hero-cat-photo {
    width: 43%;
    right: 0;
    bottom: 0;
  }

  .hero-heart-mark {
    font-size: 48px;
  }

  .hero-paw-mark {
    font-size: 32px;
  }

  .care-panel,
  .dog-care-panel,
  .cat-care-panel {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Virixoo Hero â€” Dedicated Dog + Cat Image
   ========================================================= */

.hero-pets-feature {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.hero-pets-feature::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 88%;
  height: 88%;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%) rotate(4deg);
  border-radius: 44% 56% 47% 53% / 46% 42% 58% 54%;
  background:
    radial-gradient(circle at 35% 35%, rgba(127, 92, 231, 0.14), transparent 45%),
    rgba(125, 92, 226, 0.06);
}

.hero-pets-feature-image {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  height: 430px;
  object-fit: cover;
  object-position: 55% 52%;
  border-radius: 42px 42px 26px 26px;
  box-shadow: 0 24px 50px rgba(39, 31, 78, 0.16);
}

@media (min-width: 981px) {
  .home-hero.hero-reference-layout {
    min-height: 500px;
    grid-template-columns: 1.05fr 1.3fr 0.68fr;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-pets-feature {
    min-height: 444px;
  }

  .hero-pets-feature-image {
    height: 444px;
  }
}

@media (max-width: 980px) {
  .hero-pets-feature {
    grid-area: pets;
    min-height: 340px;
    align-self: end;
  }

  .hero-pets-feature-image {
    width: min(100%, 640px);
    height: 340px;
    border-radius: 28px;
  }
}

@media (max-width: 680px) {
  .hero-pets-feature {
    min-height: 280px;
    margin-top: 8px;
  }

  .hero-pets-feature-image {
    width: 100%;
    height: 280px;
    object-position: 55% 50%;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .hero-pets-feature {
    min-height: 240px;
  }

  .hero-pets-feature-image {
    height: 240px;
  }
}

/* =========================================================
   Virixoo Final Unified Brand Logo
   ========================================================= */

.site-brand {
  min-width: 250px;
  max-width: 310px;
  display: flex;
  align-items: center;
}

.brand-logo-final {
  display: block;
  width: 100%;
  max-width: 290px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.brand-copy-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy-fallback strong {
  color: var(--navy);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.6px;
}

.brand-copy-fallback small {
  margin-top: 6px;
  color: #8d91a6;
  font-size: 12px;
}

/* Hide the old emoji-based brand pieces if older markup is ever cached */
.site-brand .brand-mark,
.site-brand .brand-heart,
.site-brand .brand-pets {
  display: none !important;
}

@media (max-width: 1240px) {
  .site-brand {
    min-width: 220px;
    max-width: 260px;
  }

  .brand-logo-final {
    max-width: 250px;
    height: 62px;
  }
}

@media (max-width: 980px) {
  .site-brand {
    min-width: 190px;
    max-width: 230px;
  }

  .brand-logo-final {
    max-width: 225px;
    height: 56px;
  }
}

@media (max-width: 680px) {
  .site-brand {
    min-width: 0;
    max-width: 205px;
  }

  .brand-logo-final {
    max-width: 200px;
    height: 50px;
  }
}

@media (max-width: 420px) {
  .site-brand {
    max-width: 180px;
  }

  .brand-logo-final {
    max-width: 178px;
    height: 46px;
  }
}

/* Virixoo: mobile article hero image fix */
@media (max-width: 680px) {
  .article-hero {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }
}
