/* ==========================================================================
   Qaliona.com — Pet care for dogs and cats
   Design system: warm tones, generous white space, readable typography
   Mobile-first, responsive. WordPress-ready static styles.
   ========================================================================== */

:root {
  /* Warm palette */
  --cream: #fdf8f1;
  --cream-2: #f7eede;
  --paper: #ffffff;
  --ink: #2f2a26;
  --ink-soft: #5d544c;
  --muted: #8a7f74;
  --terracotta: #d9784f;
  --terracotta-dark: #c05f37;
  --gold: #e6a94d;
  --sage: #7c9473;
  --sage-dark: #5f7657;
  --line: #ece2d3;
  --shadow: 0 6px 22px rgba(72, 54, 38, 0.08);
  --shadow-soft: 0 2px 10px rgba(72, 54, 38, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --readw: 720px;
  --font-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--terracotta));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.brand .tld { color: var(--terracotta); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover { background: var(--cream-2); color: var(--ink); text-decoration: none; }
.main-nav a.cta { background: var(--terracotta); color: #fff; }
.main-nav a.cta:hover { background: var(--terracotta-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #2c2722; color: #d9cfc2; margin-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 54px 22px 30px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-footer h4 { font-family: var(--font-head); color: #fff; margin: 0 0 14px; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #d9cfc2; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-brand p { color: #b6aa9b; font-size: 0.95rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #41392f; text-align: center; padding: 18px; font-size: 0.85rem; color: #9b8f80; }
.footer-bottom a { color: #b9ad9e; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--terracotta-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--terracotta-dark); border: 2px solid var(--terracotta); }
.btn-ghost:hover { background: var(--terracotta); color: #fff; }

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(160deg, var(--cream-2), var(--cream) 60%);
  padding: 70px 0 60px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; color: var(--ink); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 26px; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--terracotta-dark); font-weight: 600; font-size: 0.82rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- Section headings ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 10px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.08rem; }

/* ---------- Category pills row ---------- */
.silo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.silo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.silo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.silo-card .ico { font-size: 2rem; }
.silo-card h3 { font-family: var(--font-head); margin: 10px 0 4px; font-size: 1.12rem; color: var(--ink); }
.silo-card span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Article cards grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--cream-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card .tag { font-size: 0.74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--terracotta-dark); }
.post-card h3 { font-family: var(--font-head); font-size: 1.18rem; margin: 0; line-height: 1.25; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--terracotta-dark); text-decoration: none; }
.post-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.post-card .meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Newsletter / CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--sage), var(--sage-dark)); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-band h2 { font-family: var(--font-head); color: #fff; margin: 0 0 10px; }
.cta-band p { color: #eaf1e6; margin: 0 0 22px; }
.cta-band .btn { background: #fff; color: var(--sage-dark); }
.cta-band .btn:hover { background: var(--cream); }

/* ==========================================================================
   Article / single post
   ========================================================================== */
.article-wrap { max-width: var(--readw); margin: 0 auto; padding: 0 22px; }
.breadcrumbs { max-width: var(--readw); margin: 26px auto 0; padding: 0 22px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { margin: 0 7px; }

.article-header { max-width: var(--readw); margin: 14px auto 0; padding: 0 22px; }
.article-header .kicker { color: var(--terracotta-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 0.8rem; }
.article-header h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.13; margin: 10px 0 16px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.92rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.byline .avatar { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold), var(--terracotta)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); }
.byline strong { color: var(--ink); }
.byline .dot { color: var(--line); }

.featured-img { margin: 26px auto 0; max-width: 900px; }
.featured-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.featured-img figcaption, figure figcaption { color: var(--muted); font-size: 0.84rem; text-align: center; margin-top: 8px; }

.article-body { font-size: 1.07rem; }
.article-body h2 { font-family: var(--font-head); font-size: 1.65rem; margin: 2.1em 0 0.5em; line-height: 1.2; }
.article-body h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 1.6em 0 0.4em; color: var(--ink); }
.article-body p { margin: 0 0 1.15em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article-body li { margin: 0.4em 0; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body img { border-radius: var(--radius); box-shadow: var(--shadow-soft); margin: 1.4em auto; }
.article-body figure { margin: 1.6em 0; }

/* Health note callout */
.health-note {
  background: #f3f6f0;
  border: 1px solid #d9e4d2;
  border-left: 5px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 1.8em 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.health-note strong { color: var(--sage-dark); }

/* Key takeaways box (answer box / AEO) */
.takeaways {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 1.8em 0;
}
.takeaways h2 { margin: 0 0 10px; font-size: 1.2rem; }
.takeaways ul { margin: 0; padding-left: 1.2em; }

/* Comparison table */
.table-scroll { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
table.compare th, table.compare td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--sage); color: #fff; font-family: var(--font-body); font-weight: 600; }
table.compare tbody tr:nth-child(even) { background: #fbf6ee; }
table.compare td:first-child { font-weight: 600; color: var(--ink); }

/* Pick badges */
.pick-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; color: #fff; vertical-align: middle; }
.pick-top { background: var(--terracotta); }
.pick-budget { background: var(--sage); }
.pick-premium { background: var(--gold); color: #5b430f; }

/* Affiliate / FTC inline disclosure */
.disclosure-inline { background: #fbf4ea; border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.86rem; color: var(--ink-soft); margin: 1.4em 0; }

/* AdSense placeholder blocks */
.adsense-slot { margin: 2em auto; text-align: center; max-width: 728px; }
.adsense-slot .ad-label { font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.adsense-slot .ad-box { background: #f2ece2; border: 1px dashed #cdbfa9; border-radius: var(--radius-sm); padding: 26px; color: var(--muted); font-size: 0.85rem; }

/* FAQ */
.faq h2 { margin-top: 1.6em; }
.faq h3 { font-size: 1.15rem; margin: 1.4em 0 0.3em; }

/* Author bio (E-E-A-T) */
.author-bio {
  display: flex;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2.4em 0 1em;
  box-shadow: var(--shadow-soft);
}
.author-bio .photo {
  flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--terracotta));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 600;
}
.author-bio h3 { margin: 0 0 2px; font-family: var(--font-head); font-size: 1.2rem; }
.author-bio .role { color: var(--terracotta-dark); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.author-bio p { margin: 0 0 8px; font-size: 0.96rem; color: var(--ink-soft); }
.author-bio .creds { font-size: 0.85rem; color: var(--muted); }

/* Related posts */
.related { margin: 2.4em 0; }
.related h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-soft); }
.related-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--terracotta-dark); }
.related-card h3 { font-family: var(--font-head); font-size: 1.02rem; margin: 6px 0 0; }
.related-card h3 a { color: var(--ink); }

/* ---------- Generic page (about/contact/legal) ---------- */
.page-hero { background: linear-gradient(160deg, var(--cream-2), var(--cream)); padding: 54px 0 40px; text-align: center; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 10px; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 620px; margin: 0 auto; }
.prose { max-width: var(--readw); margin: 40px auto; padding: 0 22px; }
.prose h2 { font-family: var(--font-head); font-size: 1.55rem; margin: 1.8em 0 .5em; }
.prose h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose p, .prose li { color: var(--ink); }
.prose .updated { color: var(--muted); font-size: 0.88rem; }

/* About specifics */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; max-width: var(--maxw); margin: 40px auto; padding: 0 22px; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.cred-list { list-style: none; padding: 0; margin: 18px 0; }
.cred-list li { padding: 8px 0 8px 30px; position: relative; }
.cred-list li::before { content: "🐾"; position: absolute; left: 0; }

/* Contact form */
.contact-form { max-width: var(--readw); margin: 0 auto; padding: 0 22px; }
.contact-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--paper);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; max-width: var(--maxw); margin: 30px auto; padding: 0 22px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-soft); }
.contact-card .ico { font-size: 1.8rem; }

/* ---------- Cookie consent (CMP) ---------- */
#qaliona-cmp {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--paper);
  border-top: 3px solid var(--terracotta);
  box-shadow: 0 -8px 30px rgba(47, 42, 38, 0.16);
  transform: translateY(110%);
  transition: transform .3s ease;
}
#qaliona-cmp.show { transform: translateY(0); }
#qaliona-cmp .cmp-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
#qaliona-cmp .cmp-text { flex: 1 1 420px; }
#qaliona-cmp .cmp-text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
#qaliona-cmp .cmp-text p { margin: 6px 0 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }
#qaliona-cmp .cmp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#qaliona-cmp .cmp-btn {
  border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 600;
  font-size: 0.92rem; padding: 11px 20px; border-radius: 999px;
}
#qaliona-cmp .cmp-accept { background: var(--terracotta); color: #fff; }
#qaliona-cmp .cmp-accept:hover { background: var(--terracotta-dark); }
#qaliona-cmp .cmp-reject { background: var(--cream-2); color: var(--ink); }
#qaliona-cmp .cmp-reject:hover { background: var(--line); }
#qaliona-cmp .cmp-custom { background: transparent; color: var(--ink-soft); text-decoration: underline; padding: 11px 8px; }
#qaliona-cmp .cmp-panel {
  max-width: var(--maxw); margin: 0 auto; padding: 4px 22px 20px;
  border-top: 1px solid var(--line);
}
#qaliona-cmp .cmp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
#qaliona-cmp .cmp-row small { color: var(--muted); }
#qaliona-cmp .cmp-row input { width: 20px; height: 20px; accent-color: var(--terracotta); }
#qaliona-cmp .cmp-panel-actions { padding-top: 14px; }
.cookie-settings-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #b9ad9e; font: inherit; font-size: inherit; text-decoration: underline;
}
.cookie-settings-link:hover { color: var(--gold); }
@media (max-width: 680px) {
  #qaliona-cmp .cmp-inner { padding: 14px; }
  #qaliona-cmp .cmp-actions { width: 100%; }
  #qaliona-cmp .cmp-btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .silo-row { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 14px; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .card-grid, .related-grid { grid-template-columns: 1fr; }
  .silo-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 30px 20px; }
  .author-bio { flex-direction: column; text-align: center; align-items: center; }
}
