/*
Theme Name: Animals World
Theme URI: https://animalsworld.com
Author: Animals World
Description: A warm, pet care blog theme for dog and cat owners.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: animalsworld
*/

/* =============================================
   Animals World — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --primary:       #C8602A;
  --primary-light: #E8884A;
  --primary-dark:  #9E4A1F;
  --accent:        #F5A06A;
  --bg:            #FFF8F2;
  --bg-section:    #FFF0E6;
  --bg-card:       #FFFFFF;
  --text:          #3A2E2A;
  --text-muted:    #7A6A62;
  --border:        #EAD8CC;
  --white:         #FFFFFF;
  --shadow:        0 2px 12px rgba(100,60,30,0.10);
  --shadow-hover:  0 6px 24px rgba(100,60,30,0.16);
  --radius:        12px;
  --radius-sm:     8px;
  --max-width:     1140px;
  --font-body:     'Open Sans', sans-serif;
  --font-heading:  'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
p { margin-bottom: 1.1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }
.section-alt { background-color: var(--bg-section); }

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background-color: var(--primary); color: var(--white); }

/* HEADER */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(100,60,30,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo span { color: var(--text); }
.site-logo:hover { color: var(--primary-dark); }

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 2rem;
  margin: 0;
}
.nav-menu li { margin: 0; }
.nav-menu a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  background: linear-gradient(135deg, #FFF0E0 0%, #FFE4CC 50%, #FFDABB 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8602A' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; max-width: 740px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; color: var(--text); margin-bottom: 1rem; line-height: 1.2; }
.hero-sub { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; font-weight: 400; }
.hero-emoji { font-size: 3rem; display: block; margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* CARDS */
.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.card:hover .card-image { filter: brightness(0.92); }
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 10px;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--primary); }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #888;
  margin-top: auto;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-category, .card-excerpt, .card .btn { display: none; }
.card > a:first-child { display: block; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }

/* SECTION HEADINGS */
.section-header { text-align: center; margin-bottom: 2.8rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }
.section-divider {
  width: 50px; height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

/* TRUST BAND */
.trust-band {
  background-color: var(--primary);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}
.trust-band h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 0.6rem; }
.trust-band p { color: rgba(255,255,255,0.88); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.trust-items { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2rem; }
.trust-item { text-align: center; }
.trust-item .icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.trust-item strong { display: block; font-size: 1rem; color: var(--white); }
.trust-item span { font-size: 0.85rem; color: rgba(255,255,255,0.78); }

/* PAGE HERO (Blog, About, Contact, Legal) */
.page-hero {
  background: linear-gradient(135deg, #FFF0E0, #FFE0C8);
  padding: 3.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* BLOG FILTER */
.blog-filter {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: #FFF0E6;
}

/* ARTICLE PAGE */
.article-hero {
  background: linear-gradient(135deg, #FFF0E0, #FFDFC8);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.article-hero .article-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.article-hero h1 {
  font-size: 2.3rem;
  max-width: 780px;
  margin: 0 auto 1rem;
  line-height: 1.25;
}
.article-hero .article-meta { font-size: 0.88rem; color: var(--text-muted); }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.article-body h2 {
  font-size: 1.55rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
  color: var(--primary-dark);
}
.article-body h3 { font-size: 1.2rem; margin-top: 1.5rem; color: var(--text); }
.article-body p { font-size: 1rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.article-body li { margin-bottom: 0.5rem; }

.article-image-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #FFE8D0, #FFD4B0);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--primary);
}
.article-image-placeholder span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-family: var(--font-body);
}

.article-conclusion {
  background: var(--bg-section);
  border-left: 4px solid var(--primary);
  padding: 1.4rem 1.6rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.article-conclusion p { margin: 0; font-size: 1rem; }

.disclaimer-box {
  background-color: #FFF8E8;
  border: 1px solid #EEDAD0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
}
.disclaimer-box strong { color: var(--text); }

.related-articles { background-color: var(--bg-section); padding: 3rem 0; }
.related-articles h2 { text-align: center; margin-bottom: 2rem; }

/* ABOUT PAGE */
.about-content { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem; }
.about-content h2 {
  color: var(--primary-dark);
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.about-highlight {
  background: var(--bg-section);
  border-left: 4px solid var(--primary);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

/* CONTACT PAGE */
.contact-wrapper { max-width: 680px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
}
.contact-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; }
.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}
.contact-email:hover { color: var(--primary-dark); }

/* LEGAL PAGES */
.legal-content { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
  color: var(--primary-dark);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.legal-content p, .legal-content li { font-size: 0.95rem; line-height: 1.8; }
.legal-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }

/* 404 PAGE */
.not-found-page {
  text-align: center;
  padding: 6rem 1.5rem;
}
.not-found-page h1 { font-size: 6rem; color: var(--primary); margin-bottom: 0; }
.not-found-page h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.not-found-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* FOOTER */
.site-footer {
  background-color: #2E201A;
  color: rgba(255,255,255,0.80);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .site-logo { color: #F5A06A; margin-bottom: 0.8rem; display: inline-flex; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 1.2rem; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.50); }
.footer-bottom-links a:hover { color: var(--accent); }

/* UTILITIES */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 3.5rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .trust-items { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-hero h1 { font-size: 1.8rem; }
  .article-image-placeholder { height: 220px; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 2.5rem 0; }
}

/* ── Pagination ── */
.pagination {
  margin: 3rem 0 1rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 6px;
  border: 1.5px solid #EAD8CC;
  background: #fff;
  color: #3A2E2A;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination a.page-numbers:hover {
  background: #C8602A;
  color: #fff;
  border-color: #C8602A;
}
.pagination span.current {
  background: #C8602A;
  color: #fff;
  border-color: #C8602A;
}
