/*
Theme Name: LovePetLand
Theme URI: https://lovepetland.com/
Author: LovePetLand
Author URI: https://lovepetland.com/
Description: A warm, friendly magazine theme for beginner pet-care guides. Rounded shapes, cream tones and soft greens — made for first-time pet parents.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lovepetland
*/

/* ============ Tokens ============ */
:root {
  --cream: #F7F3EB;
  --cream-soft: #FBF9F4;
  --sage: #CBD8C2;
  --sage-deep: #7D9B76;
  --sage-dark: #5E7D58;
  --navy: #1F2A37;
  --navy-soft: #3D4B5C;
  --coral: #E07A5F;
  --coral-dark: #C96448;
  --white: #FFFFFF;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 55, 0.08);
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  background: var(--cream-soft);
  border-bottom: 1px solid rgba(31, 42, 55, 0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}
.site-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage); display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; flex: none;
}
.site-title { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.site-title a { color: var(--navy); }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--navy); font-weight: 700; font-size: 16.5px; padding: 6px 2px; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--coral); }
.main-nav .current-menu-item a { border-bottom: 3px solid var(--coral); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-link { font-size: 22px; color: var(--navy); }
.btn-subscribe {
  border: 2px solid var(--sage-deep); color: var(--sage-dark);
  border-radius: 999px; padding: 8px 26px; font-weight: 800; font-size: 16px;
  background: transparent; transition: all 0.2s;
}
.btn-subscribe:hover { background: var(--sage-deep); color: #fff; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: var(--sage); opacity: 0.45; z-index: 0;
}
.hero::before { width: 420px; height: 420px; left: -140px; bottom: -160px; }
.hero::after { width: 520px; height: 520px; right: -160px; bottom: -220px; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: 52px; letter-spacing: -1px; margin-bottom: 18px; }
.hero-sub { font-size: 19px; color: var(--navy-soft); max-width: 480px; margin-bottom: 28px; }
.btn-primary {
  display: inline-block; background: var(--coral); color: #fff;
  font-weight: 800; font-size: 18px; padding: 15px 44px; border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(224, 122, 95, 0.35); transition: transform 0.15s, background 0.2s;
}
.btn-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.hero-trust { margin-top: 20px; font-size: 15.5px; color: var(--navy-soft); font-weight: 600; }
.hero-trust .check { color: var(--sage-dark); font-weight: 900; }
.hero-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}

/* ============ Featured guides ============ */
.guides { padding: 56px 0 72px; }
.guides-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.guides-head h2 { font-size: 34px; letter-spacing: -0.5px; margin: 0; }
.guides-link { font-weight: 700; color: var(--navy-soft); white-space: nowrap; }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-card {
  background: var(--cream-soft); border-radius: var(--radius-md);
  padding: 28px 26px 30px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.18s;
}
.guide-card:hover { transform: translateY(-5px); }
.guide-badge {
  display: inline-block; align-self: center;
  background: var(--sage-deep); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 18px;
}
.guide-badge.coral { background: var(--coral); }
.guide-thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.guide-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.guide-card h3 { font-size: 22px; margin-bottom: 10px; }
.guide-card h3 a { color: var(--navy); }
.guide-card h3 a:hover { color: var(--coral); }
.guide-excerpt { color: var(--navy-soft); font-size: 15.5px; flex: 1; }
.guide-meta { margin-top: 16px; font-size: 14.5px; color: var(--navy-soft); font-weight: 600; }

/* ============ CTA band ============ */
.cta-band { padding: 0 0 72px; }
.cta-inner {
  background: var(--sage); border-radius: var(--radius-lg);
  text-align: center; padding: 48px 32px;
}
.cta-inner h2 { font-size: 27px; margin-bottom: 22px; }
.btn-outline {
  display: inline-block; border: 2px solid var(--navy); color: var(--navy);
  border-radius: 999px; padding: 10px 34px; font-weight: 800; font-size: 17px;
  background: transparent; transition: all 0.2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ============ Footer ============ */
.site-footer { background: var(--cream-soft); border-top: 1px solid rgba(31,42,55,0.07); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.footer-note { color: var(--navy-soft); font-size: 14.5px; margin: 0; }

/* ============ Content pages ============ */
.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero h1 { font-size: 42px; letter-spacing: -0.8px; }
.content-area { padding: 32px 0 72px; }
.post-list { display: grid; gap: 28px; }
.post-card {
  background: var(--cream-soft); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow); overflow: hidden;
}
.post-card h2 { font-size: 26px; }
.post-card h2 a { color: var(--navy); }
.post-card h2 a:hover { color: var(--coral); }
.post-meta { color: var(--navy-soft); font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.post-thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 18px; }
.entry-content { max-width: 760px; margin: 0 auto; font-size: 18px; }
.entry-content h2 { font-size: 28px; margin-top: 1.8em; }
.entry-content h3 { font-size: 22px; margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
  border-left: 4px solid var(--coral); margin: 1.5em 0; padding: 0.6em 1.2em;
  background: var(--cream-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-meta { text-align: center; color: var(--navy-soft); font-weight: 600; margin-bottom: 28px; }
.single-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.single-thumb img { width: 100%; max-height: 460px; object-fit: cover; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 38px; }
  .guides-grid { grid-template-columns: 1fr; }
  .guides-head { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid rgba(31, 42, 55, 0.1);
    z-index: 60;
  }
  .main-nav.open ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav.open a { display: block; padding: 13px 0; font-size: 17px; border-bottom: 1px solid rgba(31, 42, 55, 0.08); }
  .main-nav.open .current-menu-item a { border-bottom: 1px solid rgba(31, 42, 55, 0.08); }
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .guides-head h2 { font-size: 27px; }
  .site-title { font-size: 22px; }
  .btn-primary { padding: 13px 34px; font-size: 17px; }
}

/* Eaoae safety-check pill badge (used in articles with eaoae cross-links) */
.eaoae-pill{display:inline-flex;align-items:center;gap:8px;background:#f0fdf4;border:1.5px solid #86efac;color:#166534;font-weight:700;font-size:14px;padding:9px 18px;border-radius:999px;text-decoration:none;transition:background .15s}
.eaoae-pill:hover{background:#dcfce7;text-decoration:none;color:#14532d}
.eaoae-pill-box{margin:22px 0;padding:16px 20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;font-size:14.5px;color:#475569;line-height:1.6}
.eaoae-pill-box .eaoae-pill{margin-top:10px}

/* Magazine inline images: float with text wrapping (William 2026-10-06) */
.lpl-float{border-radius:10px;display:block}
.lpl-float.right{float:right;width:30%;margin:4px 0 12px 18px}
.lpl-float.left{float:left;width:30%;margin:4px 18px 12px 0}
.lpl-float.sm{width:30%}
.lpl-cap{font-size:12.5px;color:#8a7f70;font-style:italic;margin:2px 0 14px}
.lpl-cap.right{text-align:right}
.lpl-clear{clear:both}
@media(max-width:720px){.lpl-float.right,.lpl-float.left{float:none;width:100%;margin:0 0 10px}}

/* Mobile font floor — 2026-11-01 */
@media (max-width: 768px) {
  .guide-badge { font-size: 14px !important; }
  .lpl-cap { font-size: 14px !important; }
  .footer-legal { font-size: 14px !important; }
  .footer-legal a { font-size: 14px !important; }
  .cookie-consent { font-size: 15px !important; }
  .cookie-consent p, .cookie-consent a { font-size: 15px !important; }
  .cookie-consent button { font-size: 14.5px !important; }
}
