/*
  HARRINGTON BREEZE - FINAL POLISHED VERSION (Updated)
*/

/* ------------------------------ */
/* #VARIABLES & GLOBAL RESETS
/* ------------------------------ */
:root {
  --primary-color: #D32F2F;
  --dark-color: #1A1A1A;
  --light-color: #FDFDFD;
  --grey-color: #F5F5F5;
  --accent-color: #F4A261;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;

  --container-width: 1200px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.7;
}

body.no-scroll {
    overflow: hidden;
}

/* NEW: Accessibility focus styles for keyboard users */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 2px;
}

/* NEW: Custom scrollbar for a polished look */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--grey-color); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }


/* ------------------------------ */
/* #ANIMATIONS
/* ------------------------------ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.header { animation: fadeInDown 0.8s ease-out; }
.hero h1 { animation: fadeInUp 0.8s ease-out 0.3s; animation-fill-mode: both; }
.hero-subtitle { animation: fadeInUp 0.8s ease-out 0.5s; animation-fill-mode: both; }
.hero .btn-accent { animation: fadeInUp 0.8s ease-out 0.7s; animation-fill-mode: both; }

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------ */
/* #LAYOUT & HELPERS
/* ------------------------------ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #777;
  max-width: 600px;
  margin: 0 auto 50px auto;
  text-align: center;
}

/* ------------------------------ */
/* #HEADER & NAVIGATION
/* ------------------------------ */
.header {
  height: var(--header-height);
  background-color: var(--light-color);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures items are pushed to the ends */
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-image {
  height: 60px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
  line-height: 1; /* This is the critical fix for alignment */
}

.main-nav {
  margin-left: auto;
}

/* This rule is for desktop view */
@media (min-width: 769px) {
  .main-nav {
    margin-left: auto; /* Pushes nav to the right on desktop */
  }
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 700;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--light-color);
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
  background-color: #a02020;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--dark-color);
}
.btn-accent:hover {
  background-color: #e59045;
}

/* ------------------------------ */
/* #MOBILE NAVIGATION
/* ------------------------------ */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------ */
/* #HERO SECTION
/* ------------------------------ */
.hero {
  position: relative;
  height: clamp(450px, 60vh, 600px); 
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  text-align: center;
  overflow: hidden;
  background: url('images/hero-background.jpg') no-repeat center center/cover;
  margin-bottom: -50px; 
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}
#hero-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -2; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)); z-index: -1; }
.hero-content { z-index: 1; }
.hero h1 { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; margin-bottom: 30px; max-width: 600px; }
.hero-subtitle { margin-left: auto; margin-right: auto; font-family: Georgia, 'Times New Roman', Times, serif; font-style: italic; font-size: 1.3rem; color: #f0f0f0; padding: 15px 30px; border-left: 3px solid var(--accent-color); background-color: rgba(0, 0, 0, 0.25); display: inline-block; border-radius: 5px; }

/* ------------------------------ */
/* #PROMISE SECTION
/* ------------------------------ */
.promise-section { background-color: var(--grey-color); padding: 110px 0 60px 0; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.promise-item { text-align: center; }
.promise-icon { display: inline-flex; justify-content: center; align-items: center; width: 70px; height: 70px; background-color: var(--accent-color); color: var(--dark-color); border-radius: 50%; margin-bottom: 20px; }
.promise-icon svg { width: 32px; height: 32px; }
.promise-item h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; }
.promise-item p { color: #555; line-height: 1.6; }

/* ------------------------------ */
/* #FEATURED ITEMS SECTION
/* ------------------------------ */
.featured-items { background-color: var(--grey-color); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.featured-card { background: var(--light-color); border-radius: 30px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.featured-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.featured-card img, .featured-card video { width: 100%; height: 250px; object-fit: cover; }
.featured-card-content { padding: 25px; flex-grow: 1; text-align: center; }
.featured-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; }
.cta-card { background-color: var(--primary-color); color: var(--light-color); text-decoration: none; justify-content: center; align-items: center; }
.cta-card h3 { color: var(--light-color); }
.cta-card .featured-card-content { text-align: center; }
.cta-card-icon { margin-top: 15px; transition: transform 0.3s ease; }
.cta-card:hover .cta-card-icon { transform: translateX(10px); }

/* ------------------------------ */
/* #TESTIMONIALS SECTION
/* ------------------------------ */
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-380px * 7)); } }
.testimonials { background-color: var(--light-color); }
.testimonial-scroller { width: 100%; overflow: hidden; padding: 40px 0; -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent); mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent); }
.testimonial-track { display: flex; width: calc((350px + 30px) * 14); animation: scroll 60s linear infinite; gap: 30px; }
.testimonial-track:hover { animation-play-state: paused; }
.testimonial-card { width: 350px; flex-shrink: 0; background-color: var(--grey-color); padding: 30px; border-radius: 10px; border-left: 5px solid var(--primary-color); }
.testimonial-card .stars { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 15px; }
.testimonial-card blockquote p { font-size: 1.1rem; font-style: italic; color: #555; margin-bottom: 15px; }
.testimonial-card cite { font-weight: 700; font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
  .header, .hero h1, .hero-subtitle, .hero .btn-accent { animation: none; }
}

/* ------------------------------ */
/* #MENU FILTERS & DELIVERY LINK
/* ------------------------------ */
.menu-filters { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; }
.filter-btn { padding: 10px 25px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--dark-color); background-color: var(--grey-color); border: 2px solid #ddd; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover { background-color: #ddd; border-color: #ccc; }
.filter-btn.is-active { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--light-color); }

/* ------------------------------ */
/* #MENU PAGE
/* ------------------------------ */
.menu-category { margin-bottom: 60px; }
.menu-category-title { font-family: var(--font-heading); font-size: 2rem; border-bottom: 3px solid var(--primary-color); display: inline-block; padding-bottom: 10px; margin-bottom: 30px; }
.category-note { text-align: center; font-style: italic; color: #555; margin-top: -30px; margin-bottom: 40px; }
.menu-subcategory-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--dark-color); margin-top: 40px; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.menu-list { display: grid; grid-template-columns: 1fr; gap: 25px; }
.menu-item { display: flex; align-items: center; padding-bottom: 20px; border-bottom: 1px dashed #ccc; }
.menu-image-link { display: block; width: 150px; height: 150px; flex-shrink: 0; margin-right: 30px; background-color: var(--grey-color); border-radius: 25px; }
.menu-item-image { width: 100%; height: 100%; border-radius: 25px; object-fit: cover; cursor: pointer; }
.menu-item-content { flex-grow: 1; }
.menu-item-content h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 5px; }
.menu-item-content p { color: #666; max-width: 90%; }
.menu-item-price { font-weight: 700; font-size: 1.2rem; color: var(--primary-color); white-space: nowrap; padding-left: 20px; }

/* ------------------------------ */
/* #AI HELPER & OTHER PAGES
/* ------------------------------ */
.ai-title { display: flex; align-items: center; justify-content: center; gap: 15px; }
.ai-recommender { max-width: 800px; margin: 40px auto; background: var(--light-color); padding: 40px; border-radius: 10px; box-shadow: 0 5px 30px rgba(0,0,0,0.08); }
.ai-input-form .form-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.ai-input-form .form-group { flex: 1; text-align: left; min-width: 200px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 10px; }
.ai-input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; }
.radio-group, .checkbox-group { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.ai-response { margin-top: 30px; padding: 20px; background-color: var(--grey-color); border-radius: 5px; text-align: left; }
.recommendation-list { list-style: none; padding: 0; }
.recommendation-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #ddd; }
.recommendation-item:last-child { border-bottom: none; }
.recommendation-image { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; margin-top: 40px; }
.contact-grid { grid-template-columns: 1fr 1.5fr; }
.about-image img { width: 100%; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-content h2, .contact-details h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 20px; }
.map-embed iframe { width: 100%; height: 400px; border: none; border-radius: 10px; }

/* ------------------------------ */
/* #FOOTER
/* ------------------------------ */
.footer { background-color: var(--dark-color); color: #a9a9a9; padding: 60px 0 0 0; text-align: left; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-logo { display: inline-block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--light-color); text-decoration: none; margin-bottom: 15px; }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { color: var(--light-color); transition: color 0.3s ease; }
.footer-socials a:hover { color: var(--primary-color); }
.footer-socials svg { width: 24px; height: 24px; }
.footer-heading { font-family: var(--font-heading); font-size: 1.2rem; color: var(--light-color); margin-bottom: 20px; }
.hours-heading { margin-top: 20px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #a9a9a9; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--light-color); }
.footer-contact { font-style: normal; line-height: 1.8; }
.footer-contact a { color: #a9a9a9; text-decoration: none; }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid #333; font-size: 0.9rem; color: #888; }

/* ------------------------------ */
/* #LIGHTBOX, BACK-TO-TOP, CHATBOT
/* ------------------------------ */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
body.lightbox-open .lightbox-overlay { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; }
.lightbox-image { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox-close { position: absolute; top: -40px; right: -10px; font-size: 2.5rem; color: white; cursor: pointer; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--primary-color); color: var(--light-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s, transform 0.4s; z-index: 1000; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); }
.chat-widget ~ .back-to-top { bottom: 100px; }

.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1001; }
.chat-trigger { width: 60px; height: 60px; background-color: var(--primary-color); color: var(--light-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s; }
.chat-trigger:hover { transform: scale(1.1); }
.chat-window { width: 350px; max-width: 90vw; height: 500px; max-height: 70vh; background-color: var(--light-color); border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); position: absolute; bottom: 80px; right: 0; display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s; }
.chat-widget.is-open .chat-window { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-widget.is-open .chat-trigger { transform: scale(0.9); opacity: 0; visibility: hidden; }
.chat-header { background-color: var(--primary-color); color: var(--light-color); padding: 15px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); font-weight: 700; }
.chat-close { background: none; border: none; color: var(--light-color); font-size: 1.5rem; cursor: pointer; }
.chat-body { flex-grow: 1; padding: 15px; overflow-y: auto; }
.chat-messages { display: flex; flex-direction: column; }
.chat-message { max-width: 85%; padding: 10px 15px; border-radius: 20px; margin-bottom: 10px; line-height: 1.4; }
.chat-message.bot { background-color: var(--grey-color); align-self: flex-start; }
.chat-message.user { background-color: var(--accent-color); color: var(--dark-color); align-self: flex-end; }
.chat-footer { display: flex; padding: 10px; border-top: 1px solid #eee; }
#chat-input { flex-grow: 1; border: 1px solid #ddd; border-radius: 20px; padding: 10px 15px; font-size: 1rem; }
#chat-send { background-color: var(--primary-color); color: var(--light-color); border: none; border-radius: 50%; width: 40px; height: 40px; margin-left: 10px; cursor: pointer; flex-shrink: 0; }

/* ------------------------------ */
/* #RESPONSIVE DESIGN
/* ------------------------------ */
@media (min-width: 992px) { 
    .menu-list { grid-template-columns: 1fr 1fr; } 
}

@media (max-width: 992px) { 
    .featured-grid { grid-template-columns: 1fr 1fr; } 
    .contact-grid, .about-grid { grid-template-columns: 1fr; } 
    .footer-grid { grid-template-columns: 1fr; text-align: center; } 
    .footer-socials { justify-content: center; }
}

@media (max-width: 768px) { 
    .header { position: fixed; }
    
    .main-nav { 
        position: fixed; 
        top: var(--header-height); 
        left: 0; 
        width: 100%; 
        height: calc(100vh - var(--header-height));
        background-color: var(--light-color); 
        flex-direction: column; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        display: flex;
    } 
    .main-nav.is-active { 
        transform: translateX(0);
    } 
    .main-nav ul { flex-direction: column; width: 100%; gap: 0; } 
    .main-nav li { width: 100%; text-align: center; } 
    .main-nav a { display: block; padding: 20px; border-bottom: 1px solid #eee; } 
    .mobile-nav-toggle { display: block; } 
    .header-call-btn { display: none; }
    
    .hero h1 { font-size: 2.8rem; } 
    .hero-subtitle { font-size: 1.1rem; padding: 10px 20px; } 
    .featured-grid, .promise-grid { grid-template-columns: 1fr; } 
    .section-title { font-size: 2rem; } 
    .menu-item { flex-direction: column; align-items: flex-start; gap: 15px; } 
    .menu-image-link { width: 100%; height: 200px; margin-right: 0; }
    .menu-item-content p { max-width: 100%; } 
    .menu-item-price { align-self: flex-end; padding-left: 0; margin-top: 10px; } 
    .about-image { order: -1; } 

    .menu-item-image {
        object-fit: contain;
        background-color: #f9f9f9;

      }


      /* =================================== */
/* MOBILE FIXES              */
/* =================================== */

/* =================================== */
/* MOBILE FIXES - ATTEMPT 2            */
/* =================================== */
@media (max-width: 768px) {
  
  /* Pushing down the main content area */
  main {
    padding-top: 120px !important; /* Using !important to force the style */
  }

  /* Reducing heading size */
  h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }
}

}