/*
Theme Name:   Jornal Utilidade GP Child
Theme URI:    https://jornalutilidade.com/
Description:  Premium food blog child theme for GeneratePress – inspired by Sweet and Savory Meals Premium food blog child theme for GeneratePress – inspired by Sweet and Savory Meals & The Kitchen Whisperer. Beautiful recipe cards, elegant typography, warm food colors and modern layout. The Kitchen Whisperer. Includes Latest Recipes + Popular sections on homepage, beautiful recipe cards, elegant typography and warm food colors.
Author:       Jornal Utilidade
Author URI:   https://jornalutilidade.com/
Template:     generatepress
Version:      1.2.0
Requires at least: 6.0
Tested up to: 6.7
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:  generatepress-child
Tags:         blog, news, one-column, two-columns, left-sidebar, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Jornal Utilidade – Premium Food Blog Design (v1.1)
   Inspired by: Sweet and Savory Meals + The Kitchen Whisperer
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Warm Food Palette */
  --ju-primary:        #c2410c;          /* Warm terracotta / burnt orange */
  --ju-primary-dark:   #9a3412;
  --ju-primary-light:  #ffedd5;
  --ju-accent:         #b45309;          /* Golden amber */
  --ju-accent-soft:    #fef3c7;
  
  /* Neutrals */
  --ju-text:           #1c1917;          /* Almost black */
  --ju-text-muted:     #57534e;          /* Warm gray */
  --ju-text-light:     #78716c;
  --ju-bg:             #fafaf9;          /* Warm off-white */
  --ju-card-bg:        #ffffff;
  --ju-border:         #e7e5e4;
  
  /* Effects */
  --ju-radius:         16px;
  --ju-radius-sm:      10px;
  --ju-shadow:         0 4px 20px rgba(28, 25, 23, 0.06);
  --ju-shadow-hover:   0 12px 40px rgba(28, 25, 23, 0.12);
  --ju-transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --ju-font-heading:   'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ju-font-body:      'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Base ---------- */
body {
  background-color: var(--ju-bg);
  color: var(--ju-text);
  font-family: var(--ju-font-body);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ju-font-heading);
  font-weight: 700;
  color: var(--ju-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--ju-primary);
  transition: var(--ju-transition);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ju-primary-dark);
}

/* ---------- Header – Clean & Elegant ---------- */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 12px rgba(28, 25, 23, 0.06);
  border-bottom: 1px solid var(--ju-border);
}

.main-navigation .main-nav > ul > li > a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 1rem 1.1rem;
  color: var(--ju-text);
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
  color: var(--ju-primary);
}

/* Logo styling */
.site-logo img {
  max-height: 60px;
  width: auto;
}

/* ---------- Hero / Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: var(--ju-radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* ---------- Recipe Cards (Main Design Upgrade) ---------- */
.separate-containers .site-main > article,
.separate-containers .inside-article {
  background: var(--ju-card-bg);
  border-radius: var(--ju-radius);
  box-shadow: var(--ju-shadow);
  border: 1px solid var(--ju-border);
  overflow: hidden;
  transition: var(--ju-transition);
  margin-bottom: 2.5rem !important;
  padding: 0 !important;
}

.separate-containers .inside-article:hover {
  box-shadow: var(--ju-shadow-hover);
  transform: translateY(-6px);
}

/* Featured Image */
.separate-containers .post-image {
  margin: 0 !important;
  overflow: hidden;
}

.separate-containers .post-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.separate-containers .inside-article:hover .post-image img {
  transform: scale(1.05);
}

/* Content Padding */
.separate-containers .inside-article .entry-header,
.separate-containers .inside-article .entry-summary,
.separate-containers .inside-article .entry-content,
.separate-containers .inside-article .entry-meta {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.separate-containers .inside-article .entry-header {
  padding-top: 1.6rem;
  padding-bottom: 0.4rem;
}

.separate-containers .inside-article .entry-summary {
  padding-bottom: 1.8rem;
}

/* Category Badge – Soft & Elegant */
.cat-links {
  margin-bottom: 0.6rem;
}

.cat-links a {
  display: inline-block;
  background: var(--ju-primary-light);
  color: var(--ju-primary) !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  transition: var(--ju-transition);
}

.cat-links a:hover {
  background: var(--ju-primary);
  color: #fff !important;
}

/* Entry Title */
.entry-title,
.entry-title a {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--ju-text) !important;
  margin: 0.3rem 0 0.6rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.entry-title a:hover {
  color: var(--ju-primary) !important;
}

/* Meta */
.entry-meta {
  font-size: 0.82rem;
  color: var(--ju-text-light);
  margin-bottom: 0.9rem;
}

.entry-meta a {
  color: var(--ju-text-muted);
}

.entry-meta a:hover {
  color: var(--ju-primary);
}

/* Excerpt */
.entry-summary p {
  color: var(--ju-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

/* Read More Button – Soft & Attractive */
.read-more {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: var(--ju-primary) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem !important;
  border-radius: 50px !important;
  border: none !important;
  text-decoration: none !important;
  transition: var(--ju-transition);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.25);
}

.read-more:hover {
  background: var(--ju-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.35);
}

/* ---------- Single Post – Beautiful Reading Experience ---------- */
.single .inside-article {
  padding: 0 !important;
  overflow: visible;
}

.single .featured-image {
  margin-bottom: 2rem;
  border-radius: var(--ju-radius);
  overflow: hidden;
}

.single .entry-header {
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--ju-border);
  margin-bottom: 2rem;
}

.single .entry-title {
  font-size: 2.4rem !important;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.single .entry-meta {
  font-size: 0.9rem;
}

.single .entry-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ju-text);
}

.single .entry-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ju-primary-light);
}

.single .entry-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.single .entry-content p {
  margin-bottom: 1.4rem;
}

.single .entry-content img {
  border-radius: var(--ju-radius-sm);
  box-shadow: var(--ju-shadow);
}

/* Ingredients / List Highlight – Very useful for recipes */
.single .entry-content ul {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border-radius: var(--ju-radius);
  border-left: 5px solid var(--ju-primary);
  margin: 1.8rem 0;
}

.single .entry-content ul li {
  margin-bottom: 0.5rem;
  color: var(--ju-text);
}

.single .entry-content ol {
  background: #f5f5f4;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border-radius: var(--ju-radius);
  margin: 1.8rem 0;
}

/* ---------- Buttons Global ---------- */
.button,
.wp-block-button__link,
button,
input[type="submit"],
.gb-button {
  border-radius: 50px !important;
  font-weight: 600;
  transition: var(--ju-transition);
  letter-spacing: 0.02em;
}

/* ---------- Sidebar & Widgets ---------- */
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
  color: var(--ju-text);
}

.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--ju-primary);
  border-radius: 2px;
}

.widget {
  background: var(--ju-card-bg);
  border-radius: var(--ju-radius);
  padding: 1.5rem;
  box-shadow: var(--ju-shadow);
  border: 1px solid var(--ju-border);
  margin-bottom: 1.8rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  margin-top: 4rem;
}

.site-footer a {
  color: #a8a29e;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-widgets .widget-title {
  color: #fafaf9;
}

.footer-widgets .widget-title::after {
  background: var(--ju-primary);
}

/* ---------- Pagination ---------- */
.page-numbers {
  border-radius: 10px !important;
  font-weight: 600;
  transition: var(--ju-transition);
}

.page-numbers.current {
  background: var(--ju-primary) !important;
  border-color: var(--ju-primary) !important;
  color: #fff !important;
}

.page-numbers:hover {
  background: var(--ju-primary-light) !important;
  color: var(--ju-primary) !important;
}

/* ---------- Newsletter / CTA Style ---------- */
.ju-newsletter {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: var(--ju-radius);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 768px) {
  .entry-title,
  .entry-title a {
    font-size: 1.25rem !important;
  }

  .single .entry-title {
    font-size: 1.75rem !important;
  }

  .separate-containers .inside-article .entry-header,
  .separate-containers .inside-article .entry-summary,
  .separate-containers .inside-article .entry-content,
  .separate-containers .inside-article .entry-meta {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
  }

  .page-header {
    padding: 1.8rem 1.2rem;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }
}

/* ---------- Accessibility ---------- */
a:focus-visible,
button:focus-visible,
.menu-item a:focus-visible {
  outline: 2px solid var(--ju-primary);
  outline-offset: 3px;
}

/* ---------- Small Utilities ---------- */
.ju-badge {
  display: inline-block;
  background: var(--ju-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Better spacing for GeneratePress separate containers */
.separate-containers .site-main {
  margin-top: 2rem;
}


/* ==========================================================================
   HOMEPAGE SECTIONS – Latest + Popular Recipes
   ========================================================================== */

.ju-homepage-sections {
  margin-bottom: 3rem;
}

.ju-section {
  margin-bottom: 3.5rem;
}

.ju-section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.ju-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ju-text);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.ju-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ju-primary);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.ju-section-subtitle {
  color: var(--ju-text-muted);
  font-size: 1rem;
  margin: 0.6rem 0 0;
}

/* Recipe Grid */
.ju-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.ju-recipe-grid.ju-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Recipe Card */
.ju-recipe-card {
  background: var(--ju-card-bg);
  border-radius: var(--ju-radius);
  box-shadow: var(--ju-shadow);
  border: 1px solid var(--ju-border);
  overflow: hidden;
  transition: var(--ju-transition);
  display: flex;
  flex-direction: column;
}

.ju-recipe-card:hover {
  box-shadow: var(--ju-shadow-hover);
  transform: translateY(-6px);
}

.ju-card-image-link {
  display: block;
  overflow: hidden;
}

.ju-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f4;
}

.ju-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.ju-recipe-card:hover .ju-card-image img {
  transform: scale(1.06);
}

.ju-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ju-text-light);
  font-size: 0.9rem;
}

.ju-card-content {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow1;
}

.ju-card-category {
  margin-bottom: 0.5rem;
}

.ju-card-category a {
  display: inline-block;
  background: var(--ju-primary-light);
  color: var(--ju-primary) !important;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  transition: var(--ju-transition);
}

.ju-card-category a:hover {
  background: var(--ju-primary);
  color: #fff !important;
}

.ju-card-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  margin: 0 0 0.6rem;
  flex-grow: 1;
}

.ju-card-title a {
  color: var(--ju-text) !important;
}

.ju-card-title a:hover {
  color: var(--ju-primary) !important;
}

.ju-card-meta {
  font-size: 0.8rem;
  color: var(--ju-text-light);
  margin-bottom: 1rem;
}

.ju-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ju-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  transition: var(--ju-transition);
  box-shadow: 0 3px 12px rgba(194, 65, 12, 0.22);
  margin-top: auto;
  align-self: flex-start;
}

.ju-card-button:hover {
  background: var(--ju-primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(194, 65, 12, 0.32);
}

/* Small cards for Popular section */
.ju-card-small .ju-card-title {
  font-size: 1.05rem !important;
}

.ju-card-small .ju-card-content {
  padding: 1.1rem 1.2rem 1.3rem;
}

/* Popular section background accent */
.ju-popular-section {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 40%, #fff7ed 100%);
  border-radius: var(--ju-radius);
  padding: 2.5rem 1.8rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .ju-recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ju-recipe-grid.ju-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ju-recipe-grid,
  .ju-recipe-grid.ju-grid-4 {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .ju-section-title {
    font-size: 1.55rem;
  }

  .ju-popular-section {
    padding: 1.8rem 1.2rem;
  }
}
