/*
Theme Name: Tasty Home Kitchen
Theme URI: https://example.com/
Author: Fito
Author URI: https://example.com/
Description: A clean, simple recipe-focused WordPress theme for U.S. audiences. Optimized for food blogs and easy weeknight dinners.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tasty-home-kitchen
*/

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #faf6f2;
  color: #222;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  font-size: 1.4rem;
}

.main-nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 6px 10px;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background-color: #ffe3c2;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
}

/* Hero */
.hero {
  padding: 40px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.hero-text p {
  margin-bottom: 20px;
  color: #555;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a3c, #ff5b5b);
  color: #fff;
}

.btn-secondary {
  background-color: #fff;
  border: 1px solid #ff8a3c;
  color: #ff5b28;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary:hover {
  background-color: #fff4ec;
}

/* Search */
.search-section {
  padding: 24px 0;
  background-color: #fff8f3;
}

.search-section input[type="search"] {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

/* Categories teaser */
.categories-section {
  padding: 32px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.category-card {
  background-color: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #f0e0d3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.category-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Posts / Recipes Grid */
.recipes-section {
  padding: 32px 0 40px;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.recipe-card {
  background-color: #fff;
  border-radius: 18px;
  border: 1px solid #f0e0d3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.recipe-card img {
  border-radius: 18px 18px 0 0;
  max-height: 190px;
  object-fit: cover;
}

.recipe-content {
  padding: 14px 16px 16px;
}

.recipe-content h2,
.recipe-content h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.recipe-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 8px;
}

.recipe-excerpt {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

/* Newsletter */
.newsletter-section {
  background-color: #fff8f3;
  padding: 28px 0;
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  min-width: 220px;
}

/* Generic Page Styles */
.page,
.single,
.archive,
.search {
  padding: 32px 0 40px;
}

.page h1,
.single h1,
.archive h1,
.search h1 {
  margin-top: 0;
}

/* Contact Form */
.contact-form,
form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-top: 16px;
}

.contact-form label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form input,
.contact-form textarea,
form.wpcf7-form input,
form.wpcf7-form textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

/* Recipe Single Layout */
.recipe-page {
  padding: 32px 0 40px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}

.breadcrumb a {
  text-decoration: underline;
}

.recipe-header h1 {
  margin-bottom: 8px;
}

.recipe-intro {
  color: #555;
}

.recipe-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  margin-top: 8px;
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.recipe-image {
  margin-bottom: 16px;
}

.recipe-section h2 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.ingredients-list,
.instructions-list,
.notes-list {
  padding-left: 18px;
}

.sidebar-list,
.sidebar-links {
  list-style: none;
  padding-left: 0;
}

.sidebar-links li {
  margin-bottom: 6px;
}

.sidebar-links a {
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 16px 0;
  background-color: #fff;
  font-size: 0.85rem;
  color: #777;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

/* Small Note */
.small-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .recipe-layout {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 16px;
    top: 56px;
    background-color: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

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

  .menu-toggle {
    display: block;
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
