/* ===========================
   FeedYourDog — Custom Styles
   =========================== */

:root {
  --green: #4a7c59;
  --green-light: #e8f0eb;
  --green-dark: #2d5a3d;
  --text: #2c2c2c;
  --text-light: #666;
  --white: #ffffff;
  --border-radius: 10px;
}

/* ---- FONT + BASE ---- */
body, p, a, li, nav {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--text);
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

/* Logo */
.logo, header a.logo, .site-name, header .site-logo {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 400;
  letter-spacing: -0.5px;
}

/* ---- FULL WIDTH FIX ---- */
/* PaperMod wraps homepage in .main with max-width — override for homepage */
body.home .main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Also target the article/content wrapper PaperMod adds */
body.home .main > article,
body.home .main > .post-single {
  max-width: 100% !important;
  padding: 0 !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 64px;
  max-width: 700px;
}

.hero-overlay h1 {
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  border: none;
  font-family: 'Playfair Display', Georgia, serif;
}

.hero-overlay p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 28px;
  line-height: 1.6;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none !important;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white) !important;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,0.8);
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* ---- INTRO SECTION ---- */
.section-intro {
  background: var(--green-light);
  padding: 60px 0;
  text-align: center;
}

.section-intro h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
  font-family: 'Playfair Display', Georgia, serif;
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- CARDS ---- */
.section-cards {
  padding: 70px 0;
  background: var(--white);
  text-align: center;
}

.section-cards h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  font-family: 'Playfair Display', Georgia, serif;
}

.section-sub {
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.card {
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-label {
  background: var(--green);
  color: var(--white);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
}

/* ---- FEATURE ROWS ---- */
.section-feature,
.section-advice {
  padding: 70px 0;
}

.section-feature {
  background: var(--green-light);
}

.section-advice {
  background: var(--white);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.3;
  font-family: 'Playfair Display', Georgia, serif;
}

.feature-text p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-image img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
  height: 340px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ---- TESTIMONIAL ---- */
.section-testimonial {
  background: var(--green);
  padding: 60px 0;
  text-align: center;
}

.section-testimonial blockquote {
  color: var(--white);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  border: none;
  padding: 0;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---- INNER PAGES — full width fix ---- */
body:not(.home) .main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--green-light);
  padding: 70px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
  font-family: 'Playfair Display', Georgia, serif;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- PAGE SECTIONS ---- */
.page-section {
  padding: 70px 0;
  background: var(--white);
}

.page-section.alt-bg {
  background: var(--green-light);
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---- CONTENT BLOCK (text + image side by side) ---- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.3;
  font-family: 'Playfair Display', Georgia, serif;
}

.content-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  font-family: 'Playfair Display', Georgia, serif;
}

.content-text p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-image img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
  height: 360px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: block;
}

/* ---- FEATURE LIST ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-light);
  line-height: 1.6;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* ---- INLINE QUOTE ---- */
.inline-quote {
  border-left: 4px solid var(--green);
  padding: 12px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--green-dark);
  font-size: 1.05rem;
  background: var(--green-light);
  border-radius: 0 6px 6px 0;
}

/* ---- ISSUE BLOCKS (nutritional diets) ---- */
.issue-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.issue-block:last-child {
  margin-bottom: 0;
}

.issue-block.reverse {
  direction: rtl;
}

.issue-block.reverse > * {
  direction: ltr;
}

.issue-image img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
  height: 300px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: block;
}

.issue-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
  font-family: 'Playfair Display', Georgia, serif;
}

.issue-text p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ---- QUOTE ATTR ---- */
.quote-attr {
  color: rgba(255,255,255,0.8);
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ---- FAQ STYLES ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e8e4;
  padding: 28px 0;
}

.faq-item:first-child {
  border-top: 1px solid #e0e8e4;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
  font-family: 'Playfair Display', Georgia, serif;
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ---- BLOG GRID ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-family: 'Source Sans 3', sans-serif;
}

.blog-card-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
  font-family: 'Playfair Display', serif;
}

.blog-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-read-more {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Source Sans 3', sans-serif;
}

/* ---- BLOG SINGLE POST — restore PaperMod margins ---- */
.post-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.post-single .post-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green-dark);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { height: 400px; }
  .hero-overlay { padding: 0 24px; max-width: 100%; }
  .hero-overlay h1 { font-size: 1.7rem; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse { direction: ltr; }
  .content-block, .issue-block { grid-template-columns: 1fr; gap: 30px; }
  .content-block.reverse, .issue-block.reverse { direction: ltr; }
  .content-image img, .issue-image img { height: 240px; }
  .page-hero h1 { font-size: 1.7rem; }
}
