/* ════════════════════════════════════════════════════════════
   Adventures of Tertl — Care Guide stylesheet
   Shares the homepage design system (tokens, fonts, nav, footer)
   and adds care-page-specific components.
════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face { font-family: 'DM Serif Display'; src: url('fonts/DMSerifDisplay-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('fonts/DMSerifDisplay-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-VariableFont_wght.ttf') format('truetype'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype'); font-weight: 200 900; font-style: italic; font-display: swap; }

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Helvetica Neue', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: #1A3328;
  color: #FFF8E7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ── */
:root {
  --forest:       #1A3328;
  --forest-mid:   #1F3D30;
  --forest-light: #264A3A;
  --amber:        #D4922A;
  --dandelion:    #F5C542;
  --cream:        #FFF8E7;
  --parchment:    #FBF1D8;
  --muted:        rgba(255,248,231,0.6);
  --text-dark:    #1A3328;
  --shadow-card:  0 4px 20px rgba(26,51,40,0.45);
  --radius-card:  12px;
  --radius-btn:   8px;
}

/* ── Typography helpers ── */
.t-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
}
.t-h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.tagline-italic {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  color: var(--amber);
  font-size: clamp(16px, 2vw, 20px);
}

/* ── Layout helpers ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 88px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 200ms ease-in-out, color 200ms ease-in-out, border-color 200ms ease-in-out, transform 200ms ease-in-out;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--forest); border-color: var(--amber); }
.btn-primary:hover { background: var(--dandelion); border-color: var(--dandelion); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--cream); border-color: rgba(255,248,231,0.45); }
.btn-secondary:hover { border-color: var(--dandelion); color: var(--dandelion); transform: translateY(-1px); }
.btn-sm { font-size: 13px; padding: 9px 20px; }

/* ══════════════════════════════════════════════
   NAV (shared)
══════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,51,40,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,248,231,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 42px; height: 42px; border-radius: 50%; }
.nav-wordmark { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; color: var(--cream); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.02em;
  transition: color 200ms;
  text-decoration: none;
}
.nav-links a:hover { color: var(--dandelion); }
.nav-links a.active { color: var(--dandelion); }

/* ══════════════════════════════════════════════
   CARE HERO / PAGE INTRO
══════════════════════════════════════════════ */
.care-hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,248,231,0.08);
}
.care-hero-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 40%, rgba(38,74,58,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 70% at 95% 90%, rgba(212,146,42,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.care-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 56px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 24px 72px;
}
.care-hero-text { display: flex; flex-direction: column; gap: 18px; }
.care-hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  max-width: 12ch;
}
.care-hero-lede { font-size: 17px; line-height: 1.7; color: rgba(255,248,231,0.82); max-width: 52ch; }
.care-hero-lede a { color: var(--dandelion); border-bottom: 1px solid rgba(245,197,66,0.35); }
.care-hero-lede a:hover { border-color: var(--dandelion); }
.care-hero-true { margin-top: 4px; }
.care-hero-img { display: flex; justify-content: center; }
.care-hero-img img {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 4px solid rgba(212,146,42,0.45);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}

/* ── Sticky in-page jump bar ── */
.care-toc {
  position: sticky;
  top: 71px;
  z-index: 90;
  background: rgba(31,61,48,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,248,231,0.08);
}
.care-toc-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.care-toc-inner::-webkit-scrollbar { display: none; }
.care-toc a {
  flex: none;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 180ms, border-color 180ms;
}
.care-toc a:hover { color: var(--dandelion); border-color: rgba(245,197,66,0.5); }

/* ══════════════════════════════════════════════
   FTC DISCLOSURE
══════════════════════════════════════════════ */
.ftc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--forest-light);
  border: 1px solid rgba(212,146,42,0.3);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ftc-mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  color: var(--amber);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ftc p { font-size: 14px; font-style: italic; line-height: 1.6; color: rgba(255,248,231,0.78); }

/* ══════════════════════════════════════════════
   CARE SECTIONS
══════════════════════════════════════════════ */
.care-section { padding: 70px 0; border-top: 1px solid rgba(255,248,231,0.07); }
.care-section.alt { background: var(--forest-mid); }
.care-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.care-wrap-wide { max-width: 920px; margin: 0 auto; padding: 0 24px; }

.care-sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.care-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  color: var(--amber);
  opacity: 0.85;
}
.care-h2 { color: var(--cream); }

.care-body > p { margin-bottom: 18px; line-height: 1.75; color: rgba(255,248,231,0.88); text-wrap: pretty; }
.care-body > p:last-child { margin-bottom: 0; }
.care-body em { font-style: italic; }
.care-body strong { font-weight: 800; color: var(--cream); }
.care-body a.inline-link { color: var(--dandelion); border-bottom: 1px solid rgba(245,197,66,0.35); }
.care-body a.inline-link:hover { border-color: var(--dandelion); }
.care-body i, .care-body .latin { font-style: italic; }

/* Tertl note — first-person observation pull line */
.tertl-note {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(212,146,42,0.1);
  border: 1px solid rgba(212,146,42,0.25);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--dandelion);
}

/* Subsections (4a, 4b …) */
.care-sub { margin-top: 44px; }
.care-sub:first-of-type { margin-top: 30px; }
.care-sub-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.care-h3 { color: var(--cream); margin-bottom: 16px; }

/* Inline mini-heading inside prose (e.g. Temperature:, UVB:) */
.care-lead { font-weight: 800; color: var(--cream); }

/* Reference line */
.ref-line {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.ref-line .ref-label {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--amber);
  margin-right: 6px;
}
.ref-line a { color: rgba(255,248,231,0.78); border-bottom: 1px solid rgba(245,197,66,0.3); }
.ref-line a:hover { color: var(--dandelion); border-color: var(--dandelion); }
.ref-line .sep { color: rgba(255,248,231,0.3); margin: 0 4px; }

/* Sub-headings for staple / treats / avoid blocks */
.care-block-label {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 21px;
  color: var(--dandelion);
  margin: 28px 0 12px;
}

/* ══════════════════════════════════════════════
   AFFILIATE CARD
══════════════════════════════════════════════ */
.aff-card {
  margin: 26px 0;
  background: var(--cream);
  color: var(--text-dark);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 22px;
}
.aff-card-body { flex: 1; min-width: 0; }
.aff-card-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aff-card-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.aff-card-desc { font-size: 14.5px; line-height: 1.55; color: #3a5a48; }
.aff-card-cta { flex: none; }
.aff-card-tested { display: flex; align-items: center; gap: 18px; }

@media (max-width: 560px) {
  .aff-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .aff-card-cta { width: 100%; }
}

/* ── TERTL-TESTED stamp badge ── */
.tertl-badge {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transform: rotate(-7deg);
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px rgba(212,146,42,0.45);
  position: relative;
}
.tertl-badge .tb-star { color: var(--dandelion); font-size: 9px; line-height: 1; letter-spacing: 0.5px; margin-bottom: 1px; }
.tertl-badge .tb-line1,
.tertl-badge .tb-line2 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--dandelion);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.tertl-badge .tb-sub {
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,248,231,0.55);
  margin-top: 2px;
}
.aff-card-kicker .tested-tag {
  color: var(--forest);
  background: var(--dandelion);
  border-radius: 4px;
  padding: 1px 7px;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════
   FOOD HERO PHOTO
══════════════════════════════════════════════ */
.food-hero {
  margin: 28px 0;
  background: var(--forest-light);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}
.food-hero img {
  margin: 0 auto;
  max-height: 420px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.food-hero figcaption {
  margin-top: 14px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--amber);
}

/* ══════════════════════════════════════════════
   INLINE CARE PHOTOS (real Tertl)
══════════════════════════════════════════════ */
.care-photo { margin: 30px 0; }
.care-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.42);
  border: 1px solid rgba(255,248,231,0.1);
}
.care-photo figcaption {
  margin-top: 11px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--amber);
  text-align: center;
}
/* Narrower frame for portrait / small-native shots so they don't dominate */
.care-photo.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════
   SYMPTOM LIST (Section 6 — medical scanning)
══════════════════════════════════════════════ */
.symptom-list { list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; }
.symptom-list li {
  padding: 16px 18px;
  background: var(--forest-light);
  border-radius: 10px;
  border-left: 3px solid var(--amber);
  line-height: 1.6;
  font-size: 15.5px;
  color: rgba(255,248,231,0.88);
}
.symptom-list li strong { color: var(--dandelion); font-weight: 800; }
.vet-emergency-link {
  margin-top: 20px;
  font-size: 15px;
}
.vet-emergency-link a { color: var(--dandelion); font-weight: 700; border-bottom: 1px solid rgba(245,197,66,0.4); }
.vet-emergency-link a:hover { border-color: var(--dandelion); }

/* ══════════════════════════════════════════════
   COMMUNITY CALLOUT
══════════════════════════════════════════════ */
.community {
  background: var(--forest-light);
  padding: 60px 0;
}
.community-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.community h2 { color: var(--cream); margin: 8px 0 14px; }
.community-intro { color: rgba(255,248,231,0.82); line-height: 1.7; margin-bottom: 26px; max-width: 56ch; }
.community-links { display: flex; flex-direction: column; gap: 12px; }
.community-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--forest);
  border: 1px solid rgba(255,248,231,0.1);
  border-radius: 10px;
  transition: border-color 200ms, transform 200ms;
}
.community-link:hover { border-color: var(--amber); transform: translateY(-1px); }
.community-link .cl-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  color: var(--dandelion);
  flex: none;
}
.community-link .cl-desc { font-size: 14.5px; color: var(--muted); }
.community-link .cl-arrow { margin-left: auto; color: var(--amber); font-weight: 700; }

/* ══════════════════════════════════════════════
   SOURCES ACCORDION
══════════════════════════════════════════════ */
.sources { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.sources details {
  border: 1px solid rgba(255,248,231,0.12);
  border-radius: var(--radius-card);
  background: var(--forest-mid);
  overflow: hidden;
}
.sources summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--cream);
}
.sources summary::-webkit-details-marker { display: none; }
.sources summary .src-toggle { color: var(--amber); font-size: 24px; transition: transform 200ms; line-height: 1; }
.sources details[open] summary .src-toggle { transform: rotate(45deg); }
.sources ul { list-style: none; padding: 0 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.sources li { font-size: 14.5px; line-height: 1.5; }
.sources li a { color: rgba(255,248,231,0.8); border-bottom: 1px solid rgba(245,197,66,0.3); }
.sources li a:hover { color: var(--dandelion); border-color: var(--dandelion); }
.sources li .src-note { color: var(--muted); font-style: italic; }

/* ══════════════════════════════════════════════
   FOOTER (shared)
══════════════════════════════════════════════ */
.footer { background: var(--forest); border-top: 1px solid rgba(255,248,231,0.08); padding: 48px 0 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-logo img { width: 46px; height: 46px; border-radius: 50%; }
.footer-logo-text { font-family: 'DM Serif Display', Georgia, serif; font-size: 18px; color: var(--cream); line-height: 1.2; }
.footer-logo-tag { font-size: 11px; color: var(--muted); font-style: italic; }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; font-weight: 600; color: var(--amber); text-decoration: none; }
.footer-links a:hover { color: var(--dandelion); }
.footer-copy { font-size: 12px; color: var(--muted); line-height: 1.5; }
.footer-qr-wrap { display: flex; gap: 20px; justify-content: flex-end; align-items: flex-start; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-qr img { width: 68px; height: 68px; border-radius: 6px; background: #fff; padding: 3px; }
.footer-qr span { font-size: 11px; color: var(--muted); font-weight: 600; }
.footer-tagline {
  text-align: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  color: var(--amber);
  margin-top: 28px;
  font-size: 15px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .care-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .care-hero-img { order: -1; }
  .care-hero-img img { max-width: 220px; }
  .care-hero-title { max-width: none; }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; justify-items: center; }
  .footer-logo { justify-content: center; }
  .footer-qr-wrap { justify-content: center; }
  .nav-wordmark { font-size: 17px; }
}
@media (max-width: 480px) {
  .section-pad { padding: 60px 0; }
  .care-section { padding: 52px 0; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .care-sec-head { gap: 12px; }
}
