/*
Theme Name: Avocado Health Hub
Theme URI: https://avocadohealthhub.com
Author: Avocado Health Hub
Author URI: https://avocadohealthhub.com
Description: Premium SEO-optimized food & wellness blog theme for the avocado niche. Pinterest-friendly, AI-search ready, fast, and built for organic traffic in the USA, Canada, Australia, and Europe. Includes recipe schema, FAQ schema, article schema, custom category templates, and a magazine-style homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avocado-health-hub
Tags: blog, food-and-drink, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root{
  --ahh-leaf:#2f6b3a;
  --ahh-leaf-2:#3f8a4d;
  --ahh-pit:#3b2a1a;
  --ahh-cream:#fbf7ef;
  --ahh-flesh:#e6e89a;
  --ahh-ink:#1f2a24;
  --ahh-muted:#6b7a72;
  --ahh-line:#e7e2d5;
  --ahh-accent:#d97706;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--ahh-cream);
  color:var(--ahh-ink);
  line-height:1.7;
  font-size:17px;
}
h1,h2,h3,h4,h5{font-family:'Fraunces','Playfair Display',Georgia,serif;color:var(--ahh-pit);line-height:1.2;margin:1.4em 0 .6em}
h1{font-size:clamp(2rem,4vw,3.2rem)}
h2{font-size:clamp(1.5rem,2.6vw,2.1rem)}
h3{font-size:1.35rem}
a{color:var(--ahh-leaf);text-decoration:none}
a:hover{color:var(--ahh-leaf-2);text-decoration:underline}
img{max-width:100%;height:auto;border-radius:14px}
.container{max-width:1180px;margin:0 auto;padding:0 22px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,247,239,.95);backdrop-filter:saturate(160%) blur(10px);border-bottom:1px solid var(--ahh-line)}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:24px}
.brand{display:flex;align-items:center;gap:10px;font-family:'Fraunces',serif;font-weight:700;font-size:1.35rem;color:var(--ahh-pit)}
.brand img{width:36px;height:36px;border-radius:10px}
.nav{display:flex;gap:22px;flex-wrap:wrap}
.nav a{color:var(--ahh-pit);font-weight:500}
.cta{background:var(--ahh-leaf);color:#fff !important;padding:10px 16px;border-radius:999px;font-weight:600}
.cta:hover{background:var(--ahh-leaf-2);text-decoration:none}

/* Hero */
.hero{padding:60px 0 30px}
.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center}
.hero h1{margin-top:0}
.hero p{font-size:1.15rem;color:var(--ahh-muted);max-width:55ch}
@media(max-width:860px){.hero-grid{grid-template-columns:1fr}}

/* Cards / grid */
.section{padding:50px 0}
.section h2{margin-top:0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
@media(max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.grid{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--ahh-line);border-radius:18px;overflow:hidden;transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -22px rgba(47,107,58,.35)}
.card .thumb{aspect-ratio:4/3;overflow:hidden;background:var(--ahh-line)}
.card .thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;display:block;transition:transform .5s}
.card:hover .thumb img{transform:scale(1.05)}
.card .body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.cat-pill{display:inline-block;background:var(--ahh-flesh);color:var(--ahh-pit);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:4px 10px;border-radius:999px;width:fit-content}
.card h3{margin:.2em 0;font-size:1.2rem}
.card p{margin:0;color:var(--ahh-muted);font-size:.95rem}
.card .meta{margin-top:auto;color:var(--ahh-muted);font-size:.8rem;padding-top:8px}

/* Single post */
.single article{max-width:760px;margin:0 auto;padding:30px 0 60px}
.single .featured{margin:18px 0 28px}
.single .featured img{width:100%;aspect-ratio:16/9;object-fit:cover}
.single .lead{font-size:1.18rem;color:var(--ahh-pit)}
.single .meta-row{display:flex;gap:14px;color:var(--ahh-muted);font-size:.9rem;flex-wrap:wrap;align-items:center}
.recipe-card,.nutrition,.faq,.takeaways{background:#fff;border:1px solid var(--ahh-line);border-radius:18px;padding:24px 26px;margin:28px 0}
.recipe-card h3,.nutrition h3,.faq h3,.takeaways h3{margin-top:0;color:var(--ahh-leaf)}
.recipe-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:14px 0 18px}
@media(max-width:620px){.recipe-grid{grid-template-columns:repeat(2,1fr)}}
.recipe-stat{background:var(--ahh-cream);border-radius:12px;padding:10px 12px}
.recipe-stat .k{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ahh-muted)}
.recipe-stat .v{font-weight:700;color:var(--ahh-pit)}
.nutrition table{width:100%;border-collapse:collapse}
.nutrition td{padding:10px 6px;border-bottom:1px solid var(--ahh-line)}
.nutrition td:last-child{text-align:right;font-weight:700}
.faq details{border-bottom:1px solid var(--ahh-line);padding:14px 0}
.faq summary{cursor:pointer;font-weight:600;color:var(--ahh-pit)}
.takeaways ul{padding-left:20px;margin:0}
.takeaways li{margin:6px 0}

.tagrow{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.tagrow a{background:#fff;border:1px solid var(--ahh-line);padding:6px 12px;border-radius:999px;font-size:.85rem;color:var(--ahh-pit)}

/* Newsletter */
.newsletter{background:linear-gradient(135deg,var(--ahh-leaf),var(--ahh-leaf-2));color:#fff;border-radius:22px;padding:40px;margin:50px 0;text-align:center}
.newsletter h2{color:#fff;margin-top:0}
.newsletter form{display:flex;gap:10px;max-width:480px;margin:18px auto 0;flex-wrap:wrap;justify-content:center}
.newsletter input{flex:1;min-width:220px;padding:14px 16px;border-radius:999px;border:0;font-size:1rem}
.newsletter button{background:var(--ahh-pit);color:#fff;border:0;padding:14px 22px;border-radius:999px;font-weight:700;cursor:pointer}

/* Footer */
.site-footer{background:var(--ahh-pit);color:#e9e2d2;margin-top:60px;padding:50px 0 24px}
.site-footer a{color:#e9e2d2}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px}
@media(max-width:760px){.footer-grid{grid-template-columns:1fr 1fr}}
.site-footer h4{color:#fff;margin-top:0;font-size:1rem;letter-spacing:.05em;text-transform:uppercase}
.legal{border-top:1px solid rgba(255,255,255,.15);margin-top:34px;padding-top:18px;color:#bdb6a4;font-size:.85rem;text-align:center}

/* Mobile nav */
.menu-toggle{display:none;background:none;border:0;font-size:1.6rem;cursor:pointer;color:var(--ahh-pit)}
@media(max-width:760px){
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--ahh-cream);flex-direction:column;padding:18px 22px;border-bottom:1px solid var(--ahh-line)}
  .nav.open{display:flex}
  .menu-toggle{display:block}
}
