/*
Theme Name: The Kitchenette Bite
Theme URI: https://thekitchenettebite.com
Author: The Kitchenette Bite
Author URI: https://thekitchenettebite.com
Description: A warm, modern food blog theme for The Kitchenette Bite – featuring family-friendly recipes, air fryer favorites, and everyday cooking inspiration.
Version: 1.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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-kitchenette-bite
Tags: food, blog, recipes, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==================== GLOBAL CSS ==================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary-bg: #EFE2C3;
  --accent-peach: #F0D1A7;
  --accent-gold: #F2C17C;
  --text-charcoal: #1D1E20;
  --text-light: #4A4A4A;
  --terracotta: #A84920;

  --font-sans: 'DM Sans', sans-serif;
  --font-nunito: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: var(--primary-bg); color: var(--text-charcoal); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-nunito); font-weight: 800; color: var(--text-charcoal); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }

/* Global Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ==================== NAVBAR CSS ==================== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all 0.4s ease; padding: 1.5rem 0; }
.navbar.scrolled { background: rgba(239, 226, 195, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 1rem 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.logo-main { font-family: var(--font-nunito); font-size: 1.75rem; font-weight: 800; color: var(--text-charcoal); letter-spacing: -0.5px; line-height: 1; }
.logo-sub { font-size: 0.9rem; font-weight: 700; color: var(--terracotta); letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid var(--terracotta); margin-top: 2px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 1.05rem; position: relative; }
.nav-links a:not(.btn-contact)::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background-color: var(--terracotta); transition: width 0.3s ease; }
.nav-links a:hover:not(.btn-contact)::after { width: 100%; }
.btn-contact { background-color: var(--terracotta); color: white !important; padding: 0.6rem 1.5rem; border-radius: 30px; font-weight: 600; }
.btn-contact:hover { background-color: #8C3C1A; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(168, 73, 32, 0.3); }

/* WordPress Nav Menu overrides */
.nav-links ul { display: flex; gap: 2rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links ul li a { font-weight: 500; font-size: 1.05rem; position: relative; color: var(--text-charcoal); text-decoration: none; }
.nav-links ul li a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background-color: var(--terracotta); transition: width 0.3s ease; }
.nav-links ul li a:hover::after { width: 100%; }

/* Footer nav menu overrides */
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul li a:hover { color: var(--terracotta); padding-left: 5px; }

/* Hamburger */
.menu-toggle { display: none; background: transparent; width: 30px; height: 24px; position: relative; z-index: 1001; }
.hamburger { width: 100%; height: 2px; background: var(--text-charcoal); position: absolute; top: 50%; transform: translateY(-50%); transition: all 0.3s ease; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: var(--text-charcoal); left: 0; transition: all 0.3s ease; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
.hamburger.active { background: transparent; }
.hamburger.active::before { top: 0; transform: rotate(45deg); }
.hamburger.active::after { bottom: 0; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--primary-bg); flex-direction: column; justify-content: center; padding: 2rem; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
  .nav-links.open { right: 0; }
  .nav-links ul { flex-direction: column; }
}

/* ==================== HERO CSS ==================== */
.hero { padding: 180px 0 100px; background: linear-gradient(135deg, var(--accent-peach) 0%, var(--primary-bg) 100%); min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: var(--accent-gold); border-radius: 50%; filter: blur(120px); opacity: 0.5; z-index: 0; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; color: var(--text-charcoal); letter-spacing: -1px; }

.highlight { color: var(--terracotta); position: relative; display: inline-block; }
.highlight::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 8px; background-color: var(--accent-gold); z-index: -1; border-radius: 4px; }

.subtitle { font-size: 1.5rem; font-family: var(--font-nunito); font-weight: 600; margin-bottom: 1.5rem; color: var(--text-charcoal); }
.description { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2.5rem; max-width: 90%; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; }

.btn-primary { background-color: var(--terracotta); color: white; padding: 1rem 2rem; border-radius: 50px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(168, 73, 32, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(168, 73, 32, 0.5); background-color: #8C3C1A; }
.btn-secondary { color: var(--text-charcoal); font-weight: 700; font-size: 1.1rem; position: relative; }
.btn-secondary::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background-color: var(--terracotta); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
.btn-secondary:hover::after { transform: scaleX(1); transform-origin: left; }

.hero-visual { position: relative; height: 500px; }
.image-stack { position: relative; width: 100%; height: 100%; }
.polaroid { position: absolute; background: white; padding: 12px 12px 40px; border-radius: 4px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.polaroid img { width: 220px; height: 220px; object-fit: cover; border-radius: 2px; pointer-events: none; }
.polaroid .caption { position: absolute; bottom: 12px; width: 100%; left: 0; text-align: center; font-family: var(--font-nunito); font-weight: 700; color: var(--text-charcoal); font-size: 0.9rem; }
.polaroid:hover { z-index: 10; transform: scale(1.05) rotate(0deg) !important; box-shadow: 0 25px 50px rgba(0,0,0,0.15); }

.polaroid-1 { top: 10%; left: 10%; transform: rotate(-10deg); z-index: 3; }
.polaroid-2 { top: 30%; left: 45%; transform: rotate(12deg); z-index: 2; }
.polaroid-3 { top: 50%; left: 15%; transform: rotate(-5deg); z-index: 1; }

@media (max-width: 968px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .description { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-visual { height: 400px; margin-top: 2rem; }
  .polaroid img { width: 180px; height: 180px; }
  .polaroid-1 { left: 5%; }
  .polaroid-2 { left: 50%; }
  .polaroid-3 { left: 25%; }
}

/* ==================== RECIPE GRID CSS ==================== */
.categories-section { padding: 100px 0; background-color: var(--primary-bg); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; color: var(--text-charcoal); margin-bottom: 0.5rem; }
.section-header .underline { height: 4px; width: 80px; background-color: var(--terracotta); margin: 0 auto; border-radius: 2px; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3rem; }
.category-card { text-align: center; cursor: pointer; transition: transform 0.3s ease; }
.category-card:hover { transform: translateY(-10px); }
.image-wrapper { width: 250px; height: 250px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border: 8px solid white; transition: all 0.3s ease; }
.category-card:hover .image-wrapper { box-shadow: 0 15px 30px rgba(168, 73, 32, 0.2); border-color: var(--accent-gold); }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; pointer-events: none;}
.category-card:hover .image-wrapper img { transform: scale(1.1); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(168, 73, 32, 0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.category-card:hover .overlay { opacity: 1; }
.overlay span { color: white; font-family: var(--font-nunito); font-weight: 700; font-size: 1.2rem; background: var(--terracotta); padding: 0.5rem 1.2rem; border-radius: 30px; transform: translateY(20px); transition: transform 0.3s ease; }
.category-card:hover .overlay span { transform: translateY(0); }
.category-card h3 { font-size: 1.2rem; letter-spacing: 1px; color: var(--text-charcoal); }

@media (max-width: 768px) {
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }
  .image-wrapper { width: 200px; height: 200px; }
}

/* ==================== STATS CSS ==================== */
.stats-section { background-color: var(--terracotta); color: white; padding: 80px 0; margin: 40px 0; position: relative; overflow: hidden; }
.stats-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; text-align: center; }
.stat-box { flex: 1; min-width: 250px; }
.stat-box h3 { font-size: 4rem; font-family: var(--font-nunito); font-weight: 800; margin-bottom: 0.5rem; color: white; text-shadow: 2px 2px 10px rgba(0,0,0,0.1); }
.stat-box p { font-size: 1.2rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; opacity: 0.9; }

/* ==================== GALLERY CSS ==================== */
.gallery-section { padding: 80px 0; background-color: var(--primary-bg); position: relative; overflow: hidden; }
.gallery-section h2 { text-align: center; font-size: 3.5rem; font-family: var(--font-nunito); color: var(--text-charcoal); margin-bottom: 3rem; letter-spacing: -1px; }
.circular-gallery-wrapper { width: 100%; height: 600px; position: relative; overflow: hidden; border-radius: 20px; }
.circular-gallery { width: 100%; height: 100%; overflow: hidden; cursor: grab; }
.circular-gallery:active { cursor: grabbing; }

@media (max-width: 768px) {
  .circular-gallery-wrapper { height: 450px; }
  .gallery-section h2 { font-size: 2.5rem; }
}

/* ==================== TESTIMONIALS CSS ==================== */
.testimonials-section { padding: 80px 0; background-color: var(--accent-peach); overflow: hidden; }
.marquee-container { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; overflow: hidden; padding: 2rem 0; }
.marquee-track { display: flex; width: fit-content; animation: scroll-left 40s linear infinite; gap: 2rem; padding-left: 2rem; }
.marquee-track:hover { animation-play-state: paused; }
.testimonial-card { background: white; border-radius: 12px; padding: 2rem; min-width: 300px; max-width: 350px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 1rem; }
.testimonial-card .stars { color: var(--accent-gold); font-size: 1.5rem; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; font-size: 1.1rem; color: var(--text-light); line-height: 1.6; }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 1rem)); } }

/* ==================== FOOTER CSS ==================== */
.footer { background-color: var(--accent-peach); color: var(--text-charcoal); padding: 80px 0 20px; margin-top: 50px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.footer-logo h2 { font-family: var(--font-nunito); font-size: 2rem; margin-bottom: -5px; letter-spacing: -0.5px; }
.logo-accent { font-size: 1rem; font-weight: 700; color: var(--terracotta); letter-spacing: 3px; border-bottom: 2px solid var(--terracotta); }
.footer-brand p { margin-top: 1.5rem; color: var(--text-charcoal); opacity: 0.8; max-width: 300px; }
.footer-links h3, .footer-newsletter h3 { font-family: var(--font-nunito); font-size: 1.2rem; margin-bottom: 1.5rem; position: relative; display: inline-block; }
.footer-links h3::after, .footer-newsletter h3::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 50%; height: 2px; background-color: var(--terracotta); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--terracotta); padding-left: 5px; }
.footer-newsletter p { margin-bottom: 1rem; opacity: 0.8; }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input { padding: 0.8rem 1rem; border: none; border-radius: 4px 0 0 4px; outline: none; font-family: var(--font-sans); flex-grow: 1; }
.newsletter-form button { padding: 0.8rem 1.5rem; background-color: var(--terracotta); color: white; border-radius: 0 4px 4px 0; font-weight: 600; transition: background 0.3s ease; }
.newsletter-form button:hover { background-color: #8C3C1A; }
.footer-bottom { border-top: 1px solid rgba(29, 30, 32, 0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; opacity: 0.8; max-width: 1200px; margin: 0 auto; padding: 20px 2rem 0; }
.socials { display: flex; gap: 1.5rem; }
.socials a:hover { color: var(--terracotta); }

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ==================== SINGLE POST / PAGE CSS ==================== */
.single-post-wrap,
.page-content-wrap { padding: 140px 0 80px; min-height: 80vh; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2.8rem; line-height: 1.2; color: var(--text-charcoal); }
.post-meta { color: var(--text-light); font-size: 0.95rem; margin-top: 0.5rem; }
.post-thumbnail { border-radius: 16px; overflow: hidden; margin-bottom: 2rem; max-height: 500px; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-content { max-width: 780px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; color: var(--text-light); }
.post-content h2, .post-content h3 { color: var(--text-charcoal); margin: 2rem 0 1rem; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.post-content a { color: var(--terracotta); text-decoration: underline; }

/* WP Loop card layout */
.blog-loop { padding: 140px 0 80px; }
.blog-loop .section-header { margin-bottom: 3rem; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.post-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(168,73,32,0.15); }
.post-card-thumb { height: 220px; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-body { padding: 1.5rem; }
.post-card-body h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post-card-body h2 a { color: var(--text-charcoal); }
.post-card-body h2 a:hover { color: var(--terracotta); }
.post-card-body .excerpt { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; }
.read-more { display: inline-block; color: var(--terracotta); font-weight: 700; font-size: 0.95rem; }
.read-more:hover { text-decoration: underline; }

/* No posts message */
.no-posts { text-align: center; padding: 4rem 0; color: var(--text-light); }
