/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #2d6a4f;
  --accent: #52b788;
  --bg: #faf8f5;
  --bg-sec: #f0ebe3;
  --text: #1b1b1b;
  --radius: 8px;
  --shadow: 4px 4px 0 #2d6a4f;
  --shadow-sm: 2px 2px 0 #2d6a4f;
  --shadow-accent: 4px 4px 0 #52b788;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
a { display: inline-block; text-align: center; }

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .85rem;
  padding-bottom: .85rem;
  max-width: 1100px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo:hover { color: var(--accent); }

.nav-desktop { display: flex; gap: 1.5rem; }

.nav-desktop a, .nav-mobile a {
  text-decoration: none;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  padding: .25rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a:hover { color: var(--primary); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  gap: .75rem;
  background: var(--bg-sec);
  border-top: 1px solid rgba(45,106,79,.15);
}

.nav-mobile a { text-align: left; }

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

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .85rem;
  color: #777;
  margin-bottom: 1.25rem;
  padding-top: 2rem;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--accent); margin: 0 .15rem; }

/* ===== ARTICLE ===== */
.article-page { padding-bottom: 2rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.read-time {
  font-size: .85rem;
  color: #666;
  font-weight: 500;
}

.article-author-date {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .9rem;
  color: #555;
  margin: 1rem 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(45,106,79,.12);
}

.article-author-date span { font-weight: 600; color: var(--primary); }
.article-author-date time::before { content: '·'; margin-right: .5rem; }

.article-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 2rem;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.article-hero {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-page section { margin-bottom: 2rem; }
.article-page section p { margin-bottom: 1rem; }

.pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: var(--bg-sec);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: -.15rem; left: .75rem;
  line-height: 1;
  opacity: .5;
}

.pull-quote p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--primary);
  padding-left: .5rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0 1.5rem;
}

.article-tags span {
  display: inline-block;
  background: var(--bg-sec);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(45,106,79,.15);
  transition: var(--transition);
}

.article-tags span:hover {
  background: var(--primary);
  color: #fff;
}

.disclaimer {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(82,183,136,.08);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  font-size: .88rem;
  color: #555;
  line-height: 1.7;
}

/* ===== HEALTH RECIPE BLOCK ===== */
.health-recipe {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

.health-recipe::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border: 3px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.health-recipe::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  background: rgba(82,183,136,.25);
  border-radius: 50%;
}

.health-recipe h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.health-recipe .recipe-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.health-recipe .recipe-tip {
  background: rgba(255,255,255,.1);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  font-size: .95rem;
  line-height: 1.7;
}

/* ===== READ ALSO ===== */
.read-also {
  padding: 3rem 0;
  background: var(--bg-sec);
}

.read-also h2 { margin-bottom: 1.5rem; }

.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.read-also-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
}

.read-also-card:hover {
  box-shadow: var(--shadow);
  transform: translate(-2px, -2px);
}

.read-also-card h3 { font-size: 1rem; color: var(--primary); }
.read-also-card .card-time { font-size: .82rem; color: #888; }

/* ===== SUBSCRIBE ===== */
.subscribe-section {
  padding: 3rem 0;
}

.subscribe-section h2 { margin-bottom: .5rem; }
.subscribe-section > .container > p { color: #666; margin-bottom: 1.25rem; }

.subscribe-form {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  max-width: 500px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.subscribe-form button {
  padding: .75rem 1.75rem;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.subscribe-form button:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translate(-2px, -2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: #ccc;
  padding: 2.5rem 0 2rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.site-footer .copyright { font-size: .85rem; color: #999; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent); }

.footer-disclaimer {
  max-width: 600px;
  font-size: .78rem;
  color: #888;
  line-height: 1.6;
  margin-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
}

/* ===== COOKIE BANNER (CSS only) ===== */
.cookie-toggle { display: none; }
.cookie-toggle:checked ~ .cookie-banner { display: none; }

.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 360px;
  background: var(--text);
  color: #ddd;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 999;
  font-size: .88rem;
  line-height: 1.6;
  animation: cookieSlide .4s ease-out;
}

@keyframes cookieSlide {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner a { color: var(--accent); }

.cookie-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.cookie-accept-btn, .cookie-decline-btn {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.cookie-accept-btn {
  background: var(--accent);
  color: #fff;
}

.cookie-accept-btn:hover { background: var(--primary); }

.cookie-decline-btn {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
}

.cookie-decline-btn:hover { border-color: #aaa; color: #fff; }

@media (max-width: 480px) {
  .cookie-banner {
    right: .75rem;
    left: .75rem;
    max-width: none;
    bottom: .75rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-page h1 { animation: fadeInUp .5s ease-out; }
.article-lead { animation: fadeInUp .5s ease-out .1s both; }
.article-hero { animation: fadeInUp .5s ease-out .2s both; }

/* ===== UTILITY ===== */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .pull-quote { padding: 1.25rem; }
  .health-recipe { padding: 2rem 0; }
}

/* ===== STYLE BLOCK (required) ===== */


/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 2rem 0 3rem;
}

.legal-page h1 {
  margin-bottom: .5rem;
  color: var(--primary);
}

.legal-updated {
  font-size: .88rem;
  color: #888;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(45,106,79,.12);
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page section h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: .75rem;
}

.legal-page section p {
  margin-bottom: .85rem;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 0;
}

.success-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeInUp .5s ease-out;
}

.success-icon {
  margin-bottom: 1.5rem;
}

.success-icon svg {
  animation: successPop .4s ease-out .2s both;
}

@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-page h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.success-subtitle {
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.success-btn {
  display: inline-block;
  padding: .85rem 2rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.success-btn:hover {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translate(-2px, -2px);
}

/* ===== 404 PAGE ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 0;
}

.error-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.error-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  color: var(--bg-sec);
  line-height: 1;
  letter-spacing: -4px;
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
  animation: fadeInUp .5s ease-out;
}

.error-page h1 {
  color: var(--primary);
  margin-bottom: 1rem;
  animation: fadeInUp .5s ease-out .1s both;
}

.error-text {
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp .5s ease-out .2s both;
}

.error-btn {
  display: inline-block;
  padding: .85rem 2rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: fadeInUp .5s ease-out .3s both;
}

.error-btn:hover {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translate(-2px, -2px);
}

.error-decor {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}

.error-decor span {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .3;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.error-decor span:nth-child(2) { animation-delay: .3s; }
.error-decor span:nth-child(3) { animation-delay: .6s; }

@keyframes dotPulse {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.3); }
}
