/*
======================================
1. Theme Information
======================================
*/
Theme Name: JudesFudes
Theme URI: http://judesfudes.com
Author: Jude Smith
Author URI: http://judesfudes.com
Description: Custom theme for JudesFudes website
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: judesfudes-theme
Tags: modern, clean, responsive, food, blog

/*
======================================
2. Global Resets
======================================
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #E5E1D6; /* Matte Light Beige */
  color: #3A3A3A; /* Matte Black */
}

/*
======================================
3. Typography
======================================
*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: #4F6D52; /* Matte Leafy Green */
  margin-bottom: 15px;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

a {
  color: #8C8C8C; /* Default link color */
  text-decoration: none;
}
a:hover {
  color: #4F6D52; /* Matte Leafy Green on hover */
}

/*
======================================
4. Header & Navigation
======================================
*/

/* Global Header Styles */
.header {
  background-color: #3A3A3A; /* Matte Black */
  border-bottom: 3px solid #4F6D52; /* Leafy Green bar */
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.site-logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-icon {
  width: 50px;
  height: auto;
}

.site-title a {
  font-family: 'Georgia', serif;
  font-size: 24px;
  color: #ffffff;
}

.site-title a:hover {
  color: #4F6D52;
}

/* Main Navigation */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  font-family: 'Georgia', serif;
  font-size: 16px;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.nav-menu li a:hover {
  background-color: #4F6D52;
  color: #3A3A3A;
}

/* Updated Burger Menu Styling */
.menu-toggle {
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: space-between;
  width: 35px; /* Slightly larger for better visibility */
  height: 25px; /* Slightly taller for spacing */
  cursor: pointer;
  padding: 5px; /* Add padding for better touch targets */
  border: 2px solid #4F6D52; /* Green outline to match theme */
  border-radius: 5px; /* Rounded corners for smooth look */
  background-color: #3A3A3A; /* Matches header */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: #4F6D52; /* Green background on hover */
  border-color: #3A3A3A; /* Black outline on hover */
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #4F6D52; /* Green theme color */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active state for Burger Menu */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #3A3A3A; /* Black theme color for active */
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0; /* Hide middle bar */
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #3A3A3A; /* Black theme color for active */
}

/* Mobile Menu */
.nav-menu {
  display: flex; /* Display flex for desktop */
  flex-direction: row; /* Horizontal layout by default */
}

.nav-menu.active {
  flex-direction: column; /* Vertical layout for mobile */
  background-color: #3A3A3A; /* Matte Black */
  padding: 10px 20px;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 1000;
  border-top: 2px solid #4F6D52; /* Green theme */
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  text-align: center;
}

/* Responsive Styling */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex; /* Enable burger menu */
  }

  .nav-menu {
    display: none; /* Hidden by default for mobile */
  }

  .nav-menu.active {
    display: flex; /* Show menu when active */
  }
}

@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none; /* Hide burger menu on larger screens */
  }

  .nav-menu {
    display: flex; /* Ensure visible for desktop */
    gap: 20px;
  }
}

/*
======================================
5. Hero Section
======================================
*/
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #F5F3EE;
}
.hero h1 {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  color: #4F6D52;
  margin-bottom: 20px;
}
.tagline {
  font-size: 1.2rem;
  color: #3A3A3A;
  margin-bottom: 30px;
}
.hero-btn {
  display: inline-block;
  background-color: #4F6D52;
  color: #ffffff;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.hero-btn:hover {
  background-color: #3A3A3A;
}

/*
======================================
6. Card Layout (Featured & Categories)
======================================
*/
.card-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.card-box {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-image {
  width: 100%;
  height: 450px; /* Desired height for the image */
  object-fit: cover; /* Ensures the image fits without distortion */
  display: block;
  border-bottom: 3px solid #4F6D52; /* Matte Leafy Green separator */
}

.card-label {
  position: absolute;
  bottom: 20px; /* Moves the button slightly up to overlap the image */
  left: 50%;
  transform: translateX(-50%); /* Center the button */
  background-color: #4F6D52; /* Matte Leafy Green */
  color: #ffffff; /* White text */
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 20px; /* Button size */
  border-radius: 20px; /* Rounded corners */
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.card-label:hover {
  background-color: #3A3A3A; /* Matte Black on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
}

/* Featured Recipes Section Title */
.featured-section h2 {
  text-align: center; /* Centers the title horizontally */
  margin-bottom: 20px; /* Adds spacing below the title */
  font-size: 1.8rem; /* Adjust font size if needed */
  color: #4F6D52; /* Matches the color scheme */
}
/* =======================
7. Browse by Category
======================= */
.home-recipe-categories {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center; /* Centers the entire section, including the title */
}

.section-title {
  margin-bottom: 20px;
  font-size: 24px;
  font-family: 'Georgia', serif;
  color: #4F6D52;
}

.category-buttons {
  display: flex;
  justify-content: center; /* Centers the buttons horizontally */
  flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
  gap: 20px; /* Adds space between buttons */
  margin: 20px 0;
}

.category-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #4F6D52; /* Matte Leafy Green */
  color: #ffffff; /* White text */
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.category-btn:hover {
  background-color: #3A3A3A; /* Matte Black on hover */
  transform: scale(1.05); /* Slight zoom effect */
}


/*
======================================
8. Search Bar
======================================
*/
.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.search-bar input[type="text"] {
  width: 300px;
  padding: 10px;
  border: 1px solid #4F6D52;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.search-bar button {
  padding: 10px;
  border: none;
  background-color: #4F6D52; /* Matte Leafy Green */
  color: #ffffff;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: #3A3A3A;
}

/*
======================================
9. Footer Styles
======================================
*/
.footer {
  background-color: #3A3A3A; /* Matte Black */
  color: #ffffff; /* White text */
  padding: 40px 0; /* Increased padding for better spacing */
  text-align: center;
  font-size: 14px;
}

.footer .container {
  max-width: 1200px; /* Aligns footer width with the rest of the site */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Adds space between footer elements */
}

.footer h3 {
  font-size: 18px; /* Slightly larger text for section headings */
  color: #4F6D52; /* Leafy Green */
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 15px; /* Space between social media icons */
  justify-content: center;
  list-style: none;
  padding: 0;
}

.social-links li a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%); /* Grayscale effect by default */
}

.social-links li a img:hover {
  transform: scale(1.2); /* Slightly enlarges on hover */
  filter: grayscale(0); /* Restores full color on hover */
}

.footer-links {
  display: flex;
  gap: 15px; /* Space between footer navigation links */
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #8C8C8C; /* Cool Gray */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4F6D52; /* Leafy Green */
}

.footer-copyright {
  font-size: 12px;
  color: #8C8C8C; /* Cool Gray */
  margin-top: 10px;
}
/*
======================================
10. Search Bar Styles
======================================
*/

.recipe-search-section {
    margin: 20px auto;
    text-align: center;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-field {
    width: 100%; /* Full width */
    max-width: 1100px; /* 3x Longer */
    padding: 15px 20px; /* Generous padding for a clean look */
    font-size: 18px; /* Readable font size */
    border: 2px solid #4F6D52; /* Matches theme color */
    border-radius: 5px; /* Rounded corners */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-field:focus {
    border-color: #3A3A3A; /* Slightly darker border on focus */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
}

.search-submit {
    background-color: #4F6D52; /* Matches theme */
    color: #ffffff;
    border: none;
    padding: 15px 30px; /* Consistent button size */
    font-size: 18px; /* Matches the input field */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-submit:hover {
    background-color: #3A3A3A; /* Darker hover effect */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Hover shadow effect */
}

/* AUTOCOMPLETE DROPDOWN */
.search-results {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    max-width: 1100px;
    background: white;
    border: 1px solid #4F6D52;
    border-radius: 5px;
    z-index: 1000;
    display: none; /* Hidden until there are results */
}

.search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results li {
    padding: 10px;
    border-bottom: 1px solid #E5E1D6;
    cursor: pointer;
    font-size: 16px;
    color: #3A3A3A;
}

.search-results li:hover {
    background-color: #F5F3EE;
}


/*
======================================
11. Contact Us - Layout Adjustments
======================================
*/

/* Wrapper for the entire contact form section */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background-color: #F5F3EE; /* Matches theme */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
}

/* Left Section: Text and Email */
.contact-left {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.contact-left h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    color: #4F6D52;
    margin-bottom: 20px;
}

.contact-left p {
    font-size: 1.2rem;
    color: #3A3A3A;
    margin-bottom: 10px;
}

.contact-email {
    font-size: 1.2rem;
    color: #4F6D52;
    text-decoration: none;
    font-weight: bold;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Right Section: Contact Form */
.contact-right {
    width: 100%;
}

/* Two-column layout for First and Last Name */
.two-column {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.two-column input {
    flex: 1; /* Ensure equal width for both inputs */
    padding: 12px;
    border: 1px solid #8C8C8C;
    border-radius: 5px;
    font-size: 1rem;
    color: #3A3A3A;
    box-sizing: border-box;
}

/* Email Field */
.contact-right input,
.contact-right select,
.contact-right textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #8C8C8C;
    border-radius: 5px;
    font-size: 1rem;
    color: #3A3A3A;
    box-sizing: border-box;
}

.contact-right input:focus,
.contact-right select:focus,
.contact-right textarea:focus {
    border-color: #4F6D52;
    box-shadow: 0 0 5px rgba(79, 109, 82, 0.5);
    outline: none;
}

/* Button */
.contact-right button {
    padding: 12px 20px;
    background-color: #4F6D52;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Full width for button */
}

.contact-right button:hover {
    background-color: #3A3A3A;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Phone Number and Country Code Row */
.contact-right .phone-row {
    display: flex;
    gap: 10px; /* Space between the country code dropdown and phone input */
    margin-bottom: 15px;
}

/* Country Code Dropdown */
.contact-right .country-dropdown {
    flex: 0 0 120px; /* Makes the country dropdown smaller */
    padding: 12px;
    border: 1px solid #8C8C8C;
    border-radius: 5px;
    font-size: 1rem;
    color: #3A3A3A;
}

/* Phone Number Input */
.contact-right .phone-number {
    flex: 1; /* Takes the remaining space */
    padding: 12px;
    border: 1px solid #8C8C8C;
    border-radius: 5px;
    font-size: 1rem;
    color: #3A3A3A;
}

/* Checkboxes Section */
.checkboxes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between checkbox and text */
    font-size: 1rem;
    color: #3A3A3A;
    font-family: 'Arial', sans-serif;
}

.checkboxes a {
    color: #4F6D52; /* Matches theme */
    text-decoration: none;
    font-weight: bold;
}

.checkboxes a:hover {
    text-decoration: underline;
}

.checkboxes input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4F6D52; /* Matches theme color */
    margin-top: 2px; /* Center-align checkbox */
}

/*
======================================
10. AJAX Search Dropdown Styles
======================================
*/
.search-results {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    max-width: 1100px; /* Adjust width based on design */
    background: white;
    border: 2px solid #4F6D52; /* Matches theme */
    border-radius: 5px;
    z-index: 1000;
    display: none; /* Initially hidden */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results li {
    padding: 12px;
    border-bottom: 1px solid #E5E1D6; /* Light separator */
    cursor: pointer;
    font-size: 16px;
    color: #3A3A3A;
    transition: background-color 0.3s ease;
}

.search-results li:last-child {
    border-bottom: none; /* Remove border from last item */
}

.search-results li:hover {
    background-color: #F5F3EE; /* Light hover effect */
}

.search-results li a {
    color: #3A3A3A;
    text-decoration: none;
    display: block;
    width: 100%;
}

.search-results li a:hover {
    color: #4F6D52; /* Matches theme */
}
