/*
Theme Name: AlloTasty
Theme URI: https://allotasty.com
Author: Chef Berta
Author URI: https://allotasty.com
Description: A clean, modern healthy recipe blog theme for AlloTasty by Chef Berta — certified nutritionist and culinary expert.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allotasty
Tags: food, recipe, blog, clean, green, health
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --green:       #2D6048;
  --green-mid:   #3d7a5e;
  --green-light: #90C4A9;
  --gold:        #C8963A;
  --gold-light:  #F5E6C8;
  --white:       #ffffff;
  --cream:       #F8F5F0;
  --cream-dark:  #EEE8DF;
  --text-dark:   #1a1a1a;
  --text-medium: #5a5a5a;
  --text-light:  #888;
  --border:      #e5e0d8;
  --accent:      #2D6048;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,.12);
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Lato', system-ui, sans-serif;
  --max-w:       1200px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-mid); }
ul { list-style: none; }
h1,h2,h3,h4,h5 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text-dark);
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 48px 0;
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.nav-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-logo a span { color: var(--green); }
.nav-logo a em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-light);
  margin-left: 2px;
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text-medium);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--green); background: var(--cream); }
.nav-links .nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 20px;
}
.nav-links .nav-cta:hover { background: var(--green-mid); }
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: .3s;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }
}

/* =============================================
   HERO (Homepage)
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, #dff0e8 100%);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--green); }
.hero p {
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--green);
  padding: 20px 0;
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-item strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-serif);
}
.stat-item span { font-size: 0.8rem; opacity: .85; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--cream) 0%, #dff0e8 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--text-medium); max-width: 600px; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--green); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text-medium); font-weight: 600; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b8832e; color: var(--white); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--cream);
  color: var(--green);
  border: 1px solid var(--border);
  transition: .2s;
  text-decoration: none;
}
.btn-sm:hover { background: var(--green); color: var(--white); }

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--cream-dark);
}
.section-header h2 { font-size: 1.5rem; }
.section-header a { color: var(--green); font-size: 0.9rem; font-weight: 700; }

/* =============================================
   RECIPES GRID
   ============================================= */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.recipe-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--cream-dark);
}
.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.recipe-card:hover .recipe-card-image img { transform: scale(1.05); }
.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: .3px;
}
.category-badge.gold { background: var(--gold); }
.time-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}
.recipe-card-body { padding: 20px; }
.recipe-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.recipe-card-body h3 a { color: var(--text-dark); }
.recipe-card-body h3 a:hover { color: var(--green); }
.recipe-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.recipe-card-desc { font-size: 0.875rem; color: var(--text-medium); line-height: 1.6; margin-bottom: 16px; }
.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}
.difficulty { font-size: 0.78rem; color: var(--text-light); }

/* Card background colors */
.bg-quinoa  { background: #e8f0eb; }
.bg-salmon  { background: #fde8dc; }
.bg-avocado { background: #e0eddf; }
.bg-shrimp  { background: #fdf0e0; }
.bg-parfait { background: #f0e8f5; }
.bg-rice    { background: #f5f0e0; }
.bg-smoothie{ background: #e8f5e0; }
.bg-chickpea{ background: #f5ede0; }
.bg-zucchini{ background: #e0f0e8; }
.bg-soup    { background: #e8f0e0; }
.bg-sweet   { background: #f5e8d8; }
.bg-tacos   { background: #f0e8d8; }
.bg-pasta   { background: #f5f0e8; }
.bg-stirfry { background: #e8f0e8; }
.bg-quesadil{ background: #f5ece0; }
.bg-caprese { background: #f5e8e8; }
.bg-steak   { background: #f0e8e0; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

/* Chef Bio Card */
.chef-bio-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chef-bio-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 28px 24px 24px;
  text-align: center;
}
.chef-avatar {
  font-size: 3rem;
  margin-bottom: 10px;
}
.chef-bio-header h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.chef-title { color: rgba(255,255,255,.8); font-size: 0.82rem; }
.chef-bio-body { padding: 20px; background: var(--white); }
.chef-bio-body p { font-size: 0.875rem; color: var(--text-medium); margin-bottom: 12px; line-height: 1.65; }
.chef-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.chef-stat {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.chef-stat strong { display: block; font-family: var(--font-serif); font-size: 1.1rem; color: var(--green); }
.chef-stat span { font-size: 0.72rem; color: var(--text-light); }
.chef-specialties { margin-bottom: 16px; }
.chef-specialties h4 { font-size: 0.82rem; color: var(--text-medium); margin-bottom: 8px; }
.specialty-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.specialty-tag {
  background: var(--cream-dark);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Widget */
.widget {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-header {
  background: var(--cream-dark);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.widget-header h3 { font-size: 0.95rem; }
.widget-body { padding: 12px 0; background: var(--white); }
.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: var(--text-medium);
  font-size: 0.875rem;
  font-weight: 600;
  transition: .15s;
}
.category-list li a:hover { background: var(--cream); color: var(--green); }
.category-list li a span {
  background: var(--cream-dark);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 56px 0;
  margin-top: 40px;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-text h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.newsletter-text p { color: rgba(255,255,255,.85); font-size: 0.95rem; max-width: 420px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  font-size: 0.9rem;
  width: 280px;
  outline: none;
  font-family: var(--font-sans);
}
.newsletter-form .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
}
.newsletter-form .btn-primary:hover { background: #b8832e; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #1a2d23;
  color: rgba(255,255,255,.75);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .logo { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: .2s;
  color: var(--white);
}
.social-link:hover { background: var(--green); color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,.65); transition: .15s; }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding: 48px 0;
  align-items: start;
}
@media (max-width: 768px) { .about-layout { grid-template-columns: 1fr; } }

.about-image-container { position: relative; }
.about-chef-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  width: 90px; height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
}

.about-content .label {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.about-content h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 20px; }
.about-content p { color: var(--text-medium); line-height: 1.8; margin-bottom: 16px; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 480px) { .about-values { grid-template-columns: 1fr; } }
.about-value {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid var(--border);
}
.about-value .icon { font-size: 1.5rem; margin-bottom: 8px; }
.about-value h4 { font-size: 0.9rem; margin-bottom: 6px; }
.about-value p { font-size: 0.82rem; color: var(--text-medium); margin: 0; }

/* Timeline */
.about-timeline { background: var(--cream); padding: 60px 0; margin-top: 20px; }
.about-timeline-inner h2 { text-align: center; font-size: 1.8rem; margin-bottom: 40px; }
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.timeline-item { display: flex; gap: 20px; position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--green-light);
}
.timeline-item:last-child::before { display: none; }
.timeline-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--white);
  border: 2px solid var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
}
.timeline-content { padding-top: 6px; }
.timeline-content .year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.875rem; color: var(--text-medium); line-height: 1.65; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: 1.6rem; margin-bottom: 16px; }
.contact-info > p { color: var(--text-medium); line-height: 1.75; margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border);
}
.contact-item h4 { font-size: 0.88rem; margin-bottom: 3px; }
.contact-item p { font-size: 0.875rem; color: var(--text-medium); }
.contact-item a { color: var(--green); }

/* Contact Form */
.contact-form-container {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
}
.contact-form-container h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { min-height: 130px; resize: vertical; }
.success-message {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: #e8f5e0;
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
}
.success-message.show { display: block; }
