/*
Theme Name: Deliciously Pro
Theme URI: https://themeforest.net/user/fastpega75
Author: Your Name
Author URI: https://adan-firm.com
Description: Premium multipurpose Restaurant & Café WordPress Theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deliciously-pro
Tags: restaurant, cafe, food, bakery, reservation, woocommerce
*/

/* ==========================================================================
   Deliciously Pro Theme
   ==========================================================================

   TABLE OF CONTENTS
   1.  Variables & Theming
   2.  Global & Base Layout
   3.  Typography
   4.  Utility Classes
   5.  Components (Buttons, Cards, Forms)
   6.  Header & Navigation
   7.  Sections (Hero, About, Menu, etc.)
   8.  Footer
   9.  Page Specific Styles (Index, Luxury, 404, Search)
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & THEMING
   ========================================================================== */

/**
 * Light Mode (Default) Colors
 * - A sophisticated, warm palette with a primary gold accent.
 * UPDATED: Darkened Gold (#D4AF37 -> #CCA845) to meet WCAG AA contrast on white backgrounds.
 */
:root {
  /* Colors */
  --color-bg: #FBFAF7;
  --color-surface: #E8E0D2;
  --color-muted-surface: #F1F3F7;
  --color-border: #EAEDED;
  --color-white: #ffffff; /* Added missing */
  --color-background-light: #F1F3F7; /* Added missing alias */

  /* Text Colors */
  --color-text: #1A1714;
  --color-text-main: #1A1714; /* Added missing */
  --color-text-muted: #6D6761;
  --color-text-meta: #777; /* Added missing */
  --color-text-light: #777; /* Added missing */

  /* Accents */
  --color-accent: #CCA845; /* Adjusted for Contrast */
  --color-accent-dark: #B9902E;
  --color-accent-light: #E8CD81;
  --color-primary: #D4AF37; /* Kept original for decorative elements */

  /* Spacing & Radius (Added Missing Globals) */
  --spacing-unit: 1.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Typography */
  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-heading: 'Playfair Display', Georgia, serif; /* Added missing */
  --base-font-size: 16px;
  --line-height: 1.6;

  /* Effects */
  --shadow-sm: 0 2px 6px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 8px 30px rgba(17, 17, 17, 0.10);
  --shadow-lg: 0 15px 50px rgba(17, 17, 17, 0.15);
  --box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Added missing */

  /* Transitions */
  --transition-base: all 0.3s ease-in-out; /* Added missing */
}

/**
 * Dark Mode Colors
 * - A deep, rich palette with a vibrant gold accent.
 */
body.dark-mode {
  --color-bg: #141414;
  --color-surface: #1C1C1E;
  --color-muted-surface: #262628;

  --color-text: #F5F4F2;
  --color-text-main: #F5F4F2;
  --color-text-muted: #A5A5A5;

  --color-accent: #D4AF37;
  --color-accent-dark: #FDB831;
  --color-accent-light: #FFE084;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.60);
}


/* ==========================================================================
   2. GLOBAL & BASE LAYOUT
   ==========================================================================*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--base-font-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height);
  background-color: var(--color-bg);
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ==========================================================================*/

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text);
  margin: 0 0 0.6em 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover, a:focus {
  color: var(--color-accent-dark);
  outline: none;
}

/* ==========================================================================
   4. UTILITY CLASSES
   ==========================================================================*/

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.text-gradient {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.18s ease;
  font-family: var(--font-sans);
}

.btn:active,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-bg); /* Light text on dark gold background */
  box-shadow: var(--shadow-sm);
  border-radius: calc(var(--radius-sm) + 2px);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-accent-dark), var(--color-accent));
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1.125rem; }


/* --- Cards --- */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-header { padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); }


/* --- Forms --- */
.form-group {
  margin-bottom:1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  outline: none;
}

/* --- Social Icons --- */
.icon-facebook::before {
    content: "\f09a";
    font-family: "Font Awesome 6 Brands";
}
.icon-instagram::before {
    content: "\f16d";
    font-family: "Font Awesome 6 Brands";
}
.icon-twitter::before {
    content: "\f099";
    font-family: "Font Awesome 6 Brands";
}
.icon-location::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.icon-phone::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.icon-email::before {
    content: "\f0e0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}


/* ==========================================================================
   6. HEADER & NAVIGATION
   ==========================================================================*/

.site-header {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-branding .site-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.site-branding .site-title:hover {
  color: var(--color-accent);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.main-navigation ul li a:hover {
  color: var(--color-accent);
  background-color: rgba(212, 175, 55, 0.05);
}


/* ==========================================================================
   7. SECTIONS
   ==========================================================================

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.8));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* --- About Section --- */
.about-section {
  padding: 6rem 0;
  background-color: var(--color-surface);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}
.about-content .text {
  font-size: 1.125rem;
  line-height: 1.7;
}
.about-content .image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-content .image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Menu Section --- */
.menu-section {
  padding: 6rem 0;
  background-color: var(--color-bg);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.menu-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.menu-card-image {
  height: 220px;
}
.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.menu-card-content .title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}
.menu-card-content .description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.menu-card-content .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: auto;
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--color-surface);
}

.testimonial-item {
  padding: 2rem;
  text-align: center;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}
.testimonial-text {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Contact Section --- */
.contact-section {
  padding: 6rem 0;
  background-color: var(--color-surface);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}
.contact-form {
  background-color: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contact-info .icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* --- Reservation Form --- */
.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-group.full-width {
    flex: 100%;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}
.wpcf7-submit {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}
.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: var(--radius-sm);
}
.wpcf7-mail-sent-ok {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}
.wpcf7-validation-errors {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* ==========================================================================
   8. FOOTER (Added Missing Section)
   ========================================================================== */
.site-footer {
    background-color: var(--color-surface);
    color: var(--color-text);
    padding-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-accent);
}
.footer-bottom {
    background-color: var(--color-bg);
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
}
.copyright, .theme-credit {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ==========================================================================*/

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .header-main {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .about-grid,
  .menu-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .btn {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   9. PAGE SPECIFIC STYLES
   ========================================================================== */

/* --- Page Header --- */
.page-header {
    background-color: var(--color-background-light);
    border-bottom: 1px solid var(--color-border);
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-unit) 0;
    color: var(--color-text-main);
}

.content-area-wrapper {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: flex-start;
}

.post-grid-container {
    flex-grow: 1;
}

/* --- Blog Post Card --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-unit);
}

.post-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    box-shadow: var(--box-shadow);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-card__link {
    display: block;
    overflow: hidden;
}

.post-card__thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition-base);
}

.post-card:hover .post-card__thumbnail {
    transform: scale(1.08);
}

.post-card__content {
    padding: var(--spacing-unit);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card__category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
}
.post-card__title a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-base);
}
.post-card__title a:hover {
    color: var(--color-primary);
}

.post-card__meta {
    font-size: 0.8rem;
    color: var(--color-text-meta);
    margin-bottom: var(--spacing-unit);
}
.post-card__meta a {
    color: var(--color-text-meta);
    text-decoration: none;
}
.post-card__meta a:hover {
    color: var(--color-primary);
}

.post-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
    flex-grow: 1;
}

.post-card__footer {
    margin-top: auto;
}

.post-card__read-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5em 1em;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    transition: var(--transition-base);
}
.post-card__read-more:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- Sidebar & Pagination --- */
#secondary {
    flex-shrink: 0;
    width: 300px;
}

.widget {
    background-color: var(--color-white);
    padding: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: calc(var(--spacing-unit) * 2);
}

.page-numbers {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: bold;
}

@media (max-width: 992px) {
    .content-area-wrapper {
        flex-direction: column;
    }
    #secondary {
        width: 100%;
        margin-top: calc(var(--spacing-unit) * 2);
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
    .post-card__title {
        font-size: 1.25rem;
    }
}

/* --- Luxury Page Wrapper (Scoped) --- */
.luxury-page-wrapper {
    --color-primary: #b89f5d; 
    --color-text: #3a3a3a;
    --color-text-light: #777;
    --color-background: #fcfcfc;
    --color-white: #fff;
    --color-border: #e0e0e0;
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --spacing-unit: 1.5rem;
    --border-radius: 4px;
    --transition-base: all 0.3s ease-in-out;
}

.luxury-page-wrapper {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 400;
}

.luxury-page-wrapper h1,
.luxury-page-wrapper h2,
.luxury-page-wrapper h3,
.luxury-page-wrapper h4,
.luxury-page-wrapper h5,
.luxury-page-wrapper h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
}

.luxury-page-wrapper h1 { font-size: 3rem; }
.luxury-page-wrapper h2 { font-size: 2.25rem; }
.luxury-page-wrapper h3 { font-size: 1.875rem; }

.luxury-page-wrapper .page-hero-header {
    padding: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.luxury-page-wrapper .page-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0;
    letter-spacing: -1px;
}

.luxury-page-wrapper .breadcrumb-trail,
.luxury-page-wrapper .breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
}

.luxury-page-wrapper .page-featured-image-banner {
    line-height: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.luxury-page-wrapper .page-featured-image-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.luxury-page-wrapper .content-area-wrapper {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.luxury-page-wrapper .page-content-wrapper {
    max-width: 900px; 
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2.5);
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.luxury-page-wrapper .page-content p {
    margin-bottom: var(--spacing-unit);
    font-size: 1.1rem;
}

.luxury-page-wrapper .page-content blockquote {
    margin: calc(var(--spacing-unit) * 2) 0;
    padding-left: calc(var(--spacing-unit) * 1.5);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    color: var(--color-text-light);
}

.luxury-page-wrapper .page-content ul,
.luxury-page-wrapper .page-content ol {
    padding-left: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}

.luxury-page-wrapper .page-content li {
    margin-bottom: 0.5rem;
}

.luxury-page-wrapper #comments {
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: var(--spacing-unit);
    border-top: 1px solid var(--color-border);
}

.luxury-page-wrapper .comment-reply-title {
    font-size: 1.5rem;
}

.luxury-page-wrapper .comment-form input,
.luxury-page-wrapper .comment-form textarea {
    width: 100%;
    padding: var(--spacing-unit);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}

.luxury-page-wrapper .comment-form .submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
}

.luxury-page-wrapper .comment-form .submit:hover {
    opacity: 0.9;
    text-decoration: none;
}

@media (max-width: 768px) {
    .luxury-page-wrapper .page-hero-header {
        padding: calc(var(--spacing-unit) * 2) 0;
    }
    .luxury-page-wrapper .content-area-wrapper {
        padding: calc(var(--spacing-unit) * 2) 0;
    }
    .luxury-page-wrapper .page-content-wrapper {
        padding: var(--spacing-unit);
    }
}

/* --- 404 Page Styles (Scoped) --- */
.restaurant-404-wrapper {
    --color-primary: #c9302c; 
    --color-text: #333;
    --color-text-light: #777;
    --color-background: #f8f8f8;
    --color-white: #fff;
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --spacing-unit: 1.5rem;
    --border-radius: 8px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-404-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    text-align: center;
    background-color: var(--color-background);
}

.error-404-content {
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.restaurant-404-wrapper .error-404-graphic {
    color: var(--color-primary);
    opacity: 0.8;
    margin-bottom: var(--spacing-unit);
    animation: float 3s ease-in-out infinite;
}

.restaurant-404-wrapper .error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    opacity: 0.1;
}

.restaurant-404-wrapper .error-message {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: -2rem; 
    margin-bottom: var(--spacing-unit);
}

.restaurant-404-wrapper .error-subtext {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.restaurant-404-wrapper .error-404-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.restaurant-404-wrapper .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    cursor: pointer;
}

.restaurant-404-wrapper .cta-button-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}
.restaurant-404-wrapper .cta-button-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.2);
}

.restaurant-404-wrapper .cta-button-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}
.restaurant-404-wrapper .cta-button-secondary:hover {
    background-color: var(--color-text);
    color: var(--color-white);
    transform: translateY(-2px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .restaurant-404-wrapper .error-code {
        font-size: 6rem;
    }
    .restaurant-404-wrapper .error-message {
        font-size: 2rem;
    }
    .restaurant-404-wrapper .error-404-actions {
        flex-direction: column;
        align-items: center;
    }
    .restaurant-404-wrapper .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Search Results Page (Scoped) --- */
.search-results-page {
    --color-primary: #b89f5d;
    --color-text: #3a3a3a;
    --color-text-light: #777;
    --color-border: #e0e0e0;
    --color-background: #fcfcfc;
    --color-white: #fff;
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --spacing-unit: 1.5rem;
    --border-radius: 8px;
    --transition-base: all 0.3s ease-in-out;
}

.search-results-page .search-page-header {
    background-color: var(--color-background);
    padding: calc(var(--spacing-unit) * 3) 0;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.search-results-page .search-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.search-results-page .search-title span {
    color: var(--color-primary);
}

.search-results-page .search-count {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.search-results-page .search-filters { /* Fixed typo in selector name */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.search-results-page .filter-button {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition-base);
}
.search-results-page .filter-button:hover,
.search-results-page .filter-button.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.search-results-page .search-results-container {
    padding: calc(var(--spacing-unit) * 3) 0;
}

.search-results-page .results-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.search-results-page .result-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-base);
}
.search-results-page .result-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.search-results-page .result-item-inner {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-unit);
    gap: var(--spacing-unit);
}

.search-results-page .result-item-thumbnail {
    flex-shrink: 0;
}
.search-results-page .search-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.search-results-page .result-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-results-page .result-item-header {
    margin-bottom: 0.5rem;
}
.search-results-page .result-item-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}
.search-results-page .result-item-title a {
    color: var(--color-text);
    text-decoration: none;
}
.search-results-page .result-item-title a:hover {
    color: var(--color-primary);
}

.search-results-page .result-item-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.search-results-page .result-item-meta .separator {
    margin: 0 0.5rem;
}

.search-results-page .result-item-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
    flex-grow: 1;
}

.search-results-page .view-details-button {
    align-self: flex-start;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition-base);
}
.search-results-page .view-details-button:hover {
    border-bottom-color: var(--color-primary);
}

.search-results-page .no-results-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
}
.search-results-page .no-results-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-unit);
}
.search-results-page .no-results-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.search-results-page .no-results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.search-results-page .no-results-actions .cta-button-primary,
.search-results-page .no-results-actions .cta-button-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}
.search-results-page .no-results-actions .cta-button-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.search-results-page .no-results-actions .cta-button-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.search-results-page .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: calc(var(--spacing-unit) * 3);
}
.search-results-page .page-numbers {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}
.search-results-page .page-numbers:hover,
.search-results-page .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .search-results-page .result-item-inner {
        flex-direction: column;
    }
    .search-results-page .search-thumbnail {
        width: 100%;
        height: 200px;
    }
    .search-results-page .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    .search-results-page .no-results-actions .cta-button-primary,
    .search-results-page .no-results-actions .cta-button-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* --- Theme Options Panel --- */
.deliciously-pro-options-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f1f1f1;
    padding: 20px;
}

.deliciously-pro-options-wrap .nav-tab-wrapper {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0;
}

.deliciously-pro-options-wrap .nav-tab {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.deliciously-pro-options-wrap .nav-tab.active {
    color: #23282d;
    border-bottom-color: #0073aa;
}

.deliciously-pro-options-wrap .tab-content {
    display: none;
    padding: 20px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.deliciously-pro-options-wrap .tab-content.active {
    display: block;
}

.deliciously-pro-options-wrap .form-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.deliciously-pro-options-wrap .form-table th {
    text-align: left;
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    width: 200px;
}

.deliciously-pro-options-wrap .form-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.deliciously-pro-options-wrap .form-table tr:last-child td {
    border-bottom: none;
}

.deliciously-pro-options-wrap input[type="text"],
.deliciously-pro-options-wrap input[type="url"],
.deliciously-pro-options-wrap select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.deliciously-pro-options-wrap .upload-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   CORE WORDPRESS SUPPORT (REQUIRED FOR THEMEFOREST)
   ========================================================================== */

/* Block Alignments (Gutenberg/Classic) */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}
.alignright {
    float: right;
    margin-left: 1.5rem;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Captions */
.wp-caption,
.gallery-caption {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--color-text-muted);
    text-align: center;
}

/* Sticky Posts */
.sticky {
    display: block;
    border: 1px solid var(--color-accent);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

/* By Post Author */
.bypostauthor {
    display: inline;
}

/* Gallery Support */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.gallery-item {
    flex-grow: 1;
}

/* Screen Reader Text (Accessibility) */
.screen-reader-text,
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}