/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== VARIABLES ===== */
:root {
  --gold: #F2BF30;
  --gold-light: #FFF5D4;
  --gold-dark: #D4A520;
  --charcoal: #1a1a1a;
  --cream: #FAF8F3;
  --cream-dark: #F0EDE4;
  --green: #3A7D44;
  --green-light: #E8F5E9;
  --green-dark: #2D6235;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --charcoal: #f0f0f0;
  --cream: #1a1a1a;
  --cream-dark: #2a2a2a;
  --text: #e0e0e0;
  --text-light: #a0a0a0;
  --white: #222222;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

[data-theme="dark"] .site-header {
  background: rgba(30, 30, 30, 0.95);
  border-bottom-color: #333;
}

[data-theme="dark"] .site-footer {
  background: #111;
}

[data-theme="dark"] img:not(.paw-step) {
  filter: brightness(0.9);
}

[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .main-nav a.active {
  background: rgba(242, 191, 48, 0.2);
  color: var(--gold);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-link img {
  height: 52px;
  width: auto;
  border-radius: 50%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gold-light);
  color: var(--charcoal);
}

.youtube-link {
  display: flex;
  align-items: center;
  color: var(--text-light);
  transition: color var(--transition);
}

.youtube-link:hover {
  color: #FF0000;
}

.youtube-link svg {
  width: 28px;
  height: 28px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* ===== HERO (Home) ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Caveat', cursive;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold-dark);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-md);
}

/* ===== PAGE HEADER ===== */
.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.page-header h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
}

.content-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* ===== ABOUT PAGE ===== */
.about-card {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text a {
  font-weight: 600;
  color: var(--green);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
}

.about-text a:hover {
  color: var(--green-dark);
}

.about-image {
  flex: 0 0 200px;
}

.about-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--gold-light);
}

/* ===== ARTICLES LIST ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem;
}

.article-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card-body .author {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.article-card-body .preview {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

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

/* ===== FULL ARTICLE ===== */
.article-full {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.article-full .article-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cream-dark);
}

.article-full .article-hero-image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article-full h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.article-full p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-full .important-note {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.article-full .important-note p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text);
}

.article-full .petition-cta {
  text-align: center;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--green-light);
  border-radius: var(--radius-lg);
}

.article-full .petition-cta p {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.article-full .sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
}

.article-full .sources h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.article-full .sources ol {
  padding-left: 1.25rem;
}

.article-full .sources li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.article-full .sources li a {
  word-break: break-all;
}

/* Resources section in article */
.resources-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
}

.resources-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.resources-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 1.25rem 0 0.5rem;
}

.resources-section ul {
  list-style: none;
  padding: 0;
}

.resources-section li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.resources-section li::before {
  content: '🌿';
  position: absolute;
  left: 0;
  top: 0;
}

.resources-section li a {
  word-break: break-all;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail span,
.contact-detail a {
  font-size: 1rem;
  color: var(--text-light);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
}

.contact-form-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--green-dark);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--green-dark);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  .youtube-link svg {
    width: 24px;
    height: 24px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .about-card {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-image {
    flex: none;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .content-card {
    padding: 1.5rem;
  }

  .article-full h2 {
    font-size: 1.8rem;
  }
}

/* ===== PAW TRAIL ANIMATION ===== */
.paw-trail {
  position: relative;
  height: 100px;
  max-width: 800px;
  margin: 2rem auto 0;
  overflow: hidden;
}

.paw-step {
  position: absolute;
  width: 35px;
  height: 35px;
  opacity: 0;
}

.paw-1 { left: 5%; top: 55px; animation: pawStepLeft 0.6s 0.3s ease-out forwards; }
.paw-2 { left: 14%; top: 22px; animation: pawStepRight 0.6s 0.7s ease-out forwards; }
.paw-3 { left: 23%; top: 55px; animation: pawStepLeft 0.6s 1.1s ease-out forwards; }
.paw-4 { left: 33%; top: 22px; animation: pawStepRight 0.6s 1.5s ease-out forwards; }
.paw-5 { left: 43%; top: 55px; animation: pawStepLeft 0.6s 1.9s ease-out forwards; }
.paw-6 { left: 53%; top: 22px; animation: pawStepRight 0.6s 2.3s ease-out forwards; }
.paw-7 { left: 63%; top: 55px; animation: pawStepLeft 0.6s 2.7s ease-out forwards; }
.paw-8 { left: 73%; top: 22px; animation: pawStepRight 0.6s 3.1s ease-out forwards; }
.paw-9 { left: 83%; top: 55px; animation: pawStepLeft 0.6s 3.5s ease-out forwards; }

@keyframes pawStepLeft {
  0% { opacity: 0; transform: rotate(75deg) translateY(-20px) scale(0.8); }
  30% { opacity: 0.45; transform: rotate(75deg) translateY(3px) scale(1.05); }
  50% { opacity: 0.4; transform: rotate(75deg) translateY(-1px) scale(1); }
  100% { opacity: 0.3; transform: rotate(75deg) translateY(0) scale(1); }
}

@keyframes pawStepRight {
  0% { opacity: 0; transform: rotate(105deg) translateY(-20px) scale(0.8); }
  30% { opacity: 0.45; transform: rotate(105deg) translateY(3px) scale(1.05); }
  50% { opacity: 0.4; transform: rotate(105deg) translateY(-1px) scale(1); }
  100% { opacity: 0.3; transform: rotate(105deg) translateY(0) scale(1); }
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text-light);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  color: var(--gold-dark);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ===== SHARE BUTTONS ===== */
.share-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
  text-align: center;
}

.share-section p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.share-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--charcoal);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn.copied {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
}

/* ===== ROTATING QUOTE ===== */
.quote-section {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: quoteFadeIn 1s ease-out 0.5s forwards;
}

.quote-text {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--text-light);
  font-style: normal;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.quote-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-style: normal;
}

@keyframes quoteFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE FADE IN (home only) ===== */
body.page-home {
  animation: pageFadeIn 0.5s ease-out;
}

@keyframes pageFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: scale(1.1);
  background: var(--gold-dark);
}

.scroll-top img {
  width: 24px;
  height: 24px;
}

/* ===== PROTEIN LIST ===== */
.protein-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2.5rem;
}

.protein-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.protein-list li:last-child {
  border-bottom: none;
}

.protein-list li strong {
  color: var(--charcoal);
}
