/* KittySpout Coupon — shared stylesheet */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-light: #f0fdfa;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --radius: 12px;
  --maxw: 860px;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.site-logo .paw { font-size: 1.25rem; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--brand); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  margin: 0;
  border-radius: 8px;
  line-height: 0;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-dark);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 0.4rem 0 0.8rem;
    border-top: 1px solid var(--line);
    margin-top: 0.55rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    display: block;
    padding: 0.75rem 0.4rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--bg-soft);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
  }
}

/* ---------- Layout ---------- */
.page-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0.25rem 0 1rem;
}
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Article typography ---------- */
article h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.9rem;
  font-weight: 800;
}
article h2 {
  font-size: 1.42rem;
  margin: 2.2rem 0 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
article h3 {
  font-size: 1.12rem;
  margin: 1.6rem 0 0.5rem;
  font-weight: 700;
}
article p { margin: 0.8rem 0; }
article a { color: var(--brand); }
article a:hover { color: var(--brand-dark); }
article ul, article ol { padding-left: 1.4rem; margin: 0.8rem 0; }
article li { margin: 0.35rem 0; }
article code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand-dark);
}
article strong { font-weight: 700; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}
.article-meta .badge {
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-weight: 600;
}

/* ---------- Article hero image ---------- */
.article-hero {
  margin: 0.2rem 0 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(15, 118, 110, 0.10);
}
.article-hero img {
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 380px);
  object-fit: cover;
}
.article-hero figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
}

/* Inline content image */
.content-img {
  margin: 1.4rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.content-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.content-img figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
}

/* ---------- Disclosure box ---------- */
.disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  color: #78350f;
}
.disclosure a { color: #92400e; font-weight: 600; }

/* ---------- CTA ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--brand-light), #ecfeff);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0;
  text-align: center;
}
.cta-box p {
  margin: 0 0 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
  transition: background 0.15s, transform 0.15s;
}
.cta-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.cta-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.6rem !important;
  font-weight: 400 !important;
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 1rem 0; }
article table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  min-width: 480px;
}
article th, article td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
article th {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}
article tbody tr:nth-child(even) { background: var(--bg-soft); }
td.num, th.num { text-align: right; }

/* ---------- FAQ ---------- */
.faq-section h3 {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  padding: 0.7rem 1rem;
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
}
.faq-section h3 + p {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 0.7rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Related articles ---------- */
.related {
  margin-top: 2.5rem;
  border-top: 2px solid var(--line);
  padding-top: 1.5rem;
}
.related h2 { margin-top: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.related-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-size: 0.92rem;
}
.related-card:hover {
  border-color: var(--brand);
  box-shadow: 0 3px 12px rgba(15, 118, 110, 0.1);
}
.related-card .rc-tag {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.related-card .rc-title { font-weight: 600; line-height: 1.4; }

/* ---------- Homepage hero ---------- */
.hero {
  background: linear-gradient(150deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
  color: #fff;
  padding: 3rem 1.25rem 3.4rem;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 380px;
  object-fit: cover;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-copy { text-align: center; }
  .hero-badges { justify-content: center; }
  .hero-image img { max-height: 280px; }
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.08rem;
  color: #ccfbf1;
  margin: 0 auto 1.6rem;
  max-width: 640px;
}
.hero .cta-button { font-size: 1.05rem; padding: 0.9rem 2rem; }
.hero .cta-note { color: #99f6e4; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
  font-size: 0.83rem;
}
.hero-badges span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

/* ---------- Homepage sections ---------- */
.home-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.6rem 1.25rem 0.5rem;
}
.home-section > h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.home-section > p.section-sub {
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  max-width: 700px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.article-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12);
  transform: translateY(-2px);
}
.article-card .card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.article-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 700;
}
.article-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.article-card .card-more {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}
.pillar-card {
  border: 2px solid var(--brand);
  background: var(--brand-light);
}

/* Quick facts strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}
.fact-tile {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-align: center;
}
.fact-tile .fact-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.fact-tile .fact-label {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3.5rem;
  background: #134e4a;
  color: #99f6e4;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1.6rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { color: #99f6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  color: #5eead4;
  line-height: 1.6;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
  :root { font-size: 16px; }

  .page-wrap { padding: 1rem 1rem 2.5rem; }

  article h1 { font-size: 1.55rem; }
  article h2 { font-size: 1.25rem; margin-top: 1.8rem; }
  article h3 { font-size: 1.05rem; }

  .article-hero img { height: 200px; }
  .content-img img { max-height: 260px; }

  .hero { padding: 2.2rem 1rem 2.6rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p.lead { font-size: 0.98rem; }
  .hero .cta-button { font-size: 0.95rem; padding: 0.8rem 1.4rem; width: 100%; max-width: 380px; }
  .hero-badges { gap: 0.5rem; font-size: 0.78rem; }
  .hero-image img { min-height: 200px; max-height: 240px; }

  .home-section { padding: 1.8rem 1rem 0.4rem; }
  .home-section > h2 { font-size: 1.3rem; }
  .card-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .article-card { padding: 1rem 1.1rem; }
  .facts-strip { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .fact-tile { padding: 0.7rem 0.6rem; }
  .fact-tile .fact-value { font-size: 1.1rem; }

  .cta-box { padding: 1.1rem 1rem; }
  .cta-box .cta-button { display: block; width: 100%; }
  .cta-button { font-size: 0.95rem; padding: 0.75rem 1.2rem; }

  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 1.8rem 1rem 1.3rem; }
  .footer-cols { gap: 1.2rem; }

  article table { font-size: 0.85rem; min-width: 430px; }
  article th, article td { padding: 0.45rem 0.6rem; }
}
