/* ===============================================
   1. CSS VARIABLES
   =============================================== */
:root {
    /* Colors - Casual Halal Restaurant Theme */
    --primary-color: #d4af37;
    --primary-dark: #b8972f;
    --primary-light: #e5c965;
    --secondary-color: #2c5530;
    --secondary-dark: #1e3d22;
    --accent-color: #c41e3a;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --overlay: rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-headings: Georgia, 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ===============================================
   2. RESET & BASE STYLES
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===============================================
   3. LAYOUT COMPONENTS
   =============================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

/* ===============================================
   4. HEADER & NAVIGATION
   =============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.header.hidden {
    transform: translateY(-100%);
}

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

.header__logo {
    flex-shrink: 0;
}

.header__title {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.header__subtitle {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.nav__list {
    display: flex;
    gap: var(--spacing-md);
}

.nav__link {
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link:hover::after {
    width: 100%;
}

/* ===============================================
   5. HERO SECTION
   =============================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 80px;
    overflow: hidden;
}

.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero__slide.active {
    opacity: 1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    z-index: 2;
}

.hero__title {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero__rating {
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background var(--transition-fast);
}

.hero__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero__arrow--prev {
    left: 20px;
}

.hero__arrow--next {
    right: 20px;
}

/* ===============================================
   6. BUTTONS
   =============================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
    background: var(--text-light);
    color: var(--text-primary);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===============================================
   7. STARS & RATING
   =============================================== */
.stars {
    display: inline-flex;
    gap: 4px;
}

.star {
    font-size: 1.2rem;
    color: #ddd;
}

.star.filled {
    color: var(--primary-color);
}

.star.half {
    background: linear-gradient(90deg, var(--primary-color) 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    margin-left: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===============================================
   8. FEATURES SECTION
   =============================================== */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card__title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.feature-card__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===============================================
   9. OFFERINGS SECTION
   =============================================== */
.offerings {
    padding: var(--spacing-lg) 0;
}

.offerings__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.badge--primary {
    background: var(--primary-color);
    color: var(--text-primary);
}

.badge--secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.badge--accent {
    background: var(--accent-color);
    color: var(--text-light);
}

/* ===============================================
   10. GALLERY SECTION
   =============================================== */
.gallery {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-sm);
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__btn {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.gallery__btn:hover {
    transform: scale(1.1);
}

/* ===============================================
   11. HOURS SECTION
   =============================================== */
.hours {
    padding: var(--spacing-xl) 0;
}

.hours__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.hours__table {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hours__row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.hours__row:last-child {
    border-bottom: none;
}

.hours__row:nth-child(even) {
    background: var(--bg-light);
}

.hours__day {
    font-weight: 600;
    color: var(--secondary-color);
}

.hours__time {
    color: var(--text-secondary);
}

.hours__chart {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hours__chart-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: var(--spacing-sm);
}

.chart-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===============================================
   12. REVIEWS SECTION
   =============================================== */
.reviews {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.reviews__summary {
    display: flex;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    justify-content: center;
    align-items: center;
}

.reviews__overall {
    text-align: center;
}

.reviews__score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.reviews__stars {
    margin: var(--spacing-xs) 0;
}

.reviews__count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.reviews__distribution {
    flex: 1;
    max-width: 300px;
}

.distribution-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 0.5rem;
}

.distribution-label {
    width: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.distribution-track {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.distribution-count {
    width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.reviews__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.review-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.review-card__date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-card__text {
    margin: var(--spacing-sm) 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.review-card__ratings {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.rating-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-card__meta {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===============================================
   13. CONTACT SECTION
   =============================================== */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact__info {
    display: grid;
    gap: var(--spacing-md);
}

.contact__card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact__icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.contact__label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.contact__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact__link {
    color: var(--primary-color);
    font-weight: 600;
}

.contact__link:hover {
    text-decoration: underline;
}

.contact__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* ===============================================
   14. CTA SECTION
   =============================================== */
.cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-light);
}

.cta__content {
    text-align: center;
}

.cta__title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta__text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

/* ===============================================
   15. FOOTER
   =============================================== */
.footer {
    background: var(--text-primary);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer__title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.footer__text {
    color: #ccc;
    font-size: 0.9rem;
}

.footer__heading {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: #ccc;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary-color);
}

.footer__bottom {
    border-top: 1px solid #333;
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer__copyright {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer__note {
    color: #666;
    font-size: 0.85rem;
}

/* ===============================================
   16. LIGHTBOX
   =============================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--text-light);
    z-index: 2001;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__arrow--prev {
    left: 30px;
}

.lightbox__arrow--next {
    right: 30px;
}

/* ===============================================
   17. ANIMATIONS
   =============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===============================================
   18. MEDIA QUERIES
   =============================================== */
@media (max-width: 1023px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hours__content {
        grid-template-columns: 1fr;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        margin-top: 70px;
        min-height: 500px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__arrow {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features__grid,
    .reviews__list,
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .reviews__summary {
        flex-direction: column;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lightbox__arrow {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .lightbox__arrow--prev {
        left: 10px;
    }

    .lightbox__arrow--next {
        right: 10px;
    }
}