/* 
 * Eggington's Website Styles
 * Based on the style guide
 */

/* ===== Variables ===== */
:root {
    /* Colors */
    --color-deep-purple: #6A2E7D;
    --color-sunrise-orange: #F7941D;
    --color-warm-cream: #FFF8E8;
    --color-sage-green: #8BAF75;
    --color-brick-red: #A63D40;
    --color-sky-blue: #6ABED8;
    --color-charcoal: #333333;
    --color-medium-gray: #777777;
    --color-light-gray: #EEEEEE;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 24px;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    
    /* Transitions */
    --transition-default: all 0.3s ease-in-out;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-warm-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-deep-purple);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.625rem; /* 42px */
}

h2 {
    font-size: 2rem; /* 32px */
}

h3 {
    font-size: 1.5rem; /* 24px */
}

h4 {
    font-size: 1.25rem; /* 20px */
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-deep-purple);
    text-decoration: none;
    transition: var(--transition-default);
}

a:hover {
    color: var(--color-sunrise-orange);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Utility Classes ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-default);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-sunrise-orange);
    color: var(--color-white);
    border: none;
}

.btn-primary:hover {
    background-color: #e08012; /* Darker orange */
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-deep-purple);
    border: 2px solid var(--color-deep-purple);
}

.btn-secondary:hover {
    background-color: var(--color-deep-purple);
    color: var(--color-white);
}

/* ===== Header ===== */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 var(--space-sm);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-sunrise-orange);
    transition: var(--transition-default);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-deep-purple);
    position: relative;
    transition: var(--transition-default);
    text-align: left;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-deep-purple);
    transition: var(--transition-default);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--color-white);
    padding: var(--space-md) 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    margin-bottom: var(--space-sm);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-xs) 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-order-btn {
    margin-top: var(--space-md);
}

/* ===== Hero Section ===== */
.hero {
    background-image: url('../images/hero_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 var(--container-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* ===== Welcome Section ===== */
.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.welcome-image img {
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Featured Dishes Section ===== */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.dish-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-default);
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dish-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.dish-info {
    padding: var(--space-md);
}

.dish-info h3 {
    margin-bottom: var(--space-xs);
}

.dishes-cta {
    text-align: center;
}

/* ===== Hours & Location Section ===== */
.hours-location {
    background-color: var(--color-light-gray);
}

.hours-location-content {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--space-lg);
}

.hours-list li {
    margin-bottom: var(--space-xs);
    display: flex;
    justify-content: space-between;
}

.hours-list span {
    font-weight: 600;
}

.location address {
    font-style: normal;
    margin-bottom: var(--space-xs);
}

.location .phone {
    margin-bottom: var(--space-sm);
}

.map {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Testimonials Section ===== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
}

.rating {
    color: var(--color-sunrise-orange);
}

/* ===== Gallery Preview Section ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.gallery-item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-default);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-cta {
    text-align: center;
}

/* ===== Newsletter Section ===== */
.newsletter {
    background-color: var(--color-deep-purple);
    color: var(--color-white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter .section-title {
    color: var(--color-white);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-sm);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.footer h3 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.footer-contact address {
    font-style: normal;
    margin-bottom: var(--space-xs);
}

.footer-hours .hours-list li {
    justify-content: flex-start;
    gap: var(--space-xs);
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-deep-purple);
    color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition-default);
}

.social-icons a:hover {
    background-color: var(--color-sunrise-orange);
}

.footer-nav-list li {
    margin-bottom: var(--space-xs);
}

.footer-nav-list a {
    color: var(--color-white);
}

.footer-nav-list a:hover {
    color: var(--color-sunrise-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    color: var(--color-light-gray);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--color-sunrise-orange);
}

/* ===== Media Queries ===== */
@media (max-width: 1023px) {
    h1 {
        font-size: 2rem; /* 32px */
    }
    
    h2 {
        font-size: 1.75rem; /* 28px */
    }
    
    h3 {
        font-size: 1.375rem; /* 22px */
    }
    
    h4 {
        font-size: 1.125rem; /* 18px */
    }
    
    .hero {
        height: 500px;
    }
    
    .welcome-content,
    .dishes-grid,
    .hours-location-content,
    .testimonials-slider {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 767px) {
    :root {
        --container-padding: 16px;
    }
    
    h1 {
        font-size: 1.75rem; /* 28px */
    }
    
    h2 {
        font-size: 1.5rem; /* 24px */
    }
    
    h3 {
        font-size: 1.25rem; /* 20px */
    }
    
    h4 {
        font-size: 1rem; /* 16px */
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .main-nav,
    .order-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .welcome-content,
    .dishes-grid,
    .hours-location-content,
    .testimonials-slider,
    .gallery-grid,
    .footer-info {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--space-xs);
    }
}



.hero-text p { color: white; }
