/* styles.css – Tacos Livermore */

/* Root + Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg-dark: #050608;
    --color-bg-dark-alt: #101218;
    --color-card-dark: rgba(15, 18, 25, 0.95);
    --color-text-dark: #f7f7f7;
    --color-muted-dark: #b1b5c0;

    --color-bg-light: #f5f5f7;
    --color-bg-light-alt: #ffffff;
    --color-card-light: #ffffff;
    --color-text-light: #111827;
    --color-muted-light: #6b7280;

    --color-primary: #ff6b1a;     /* vibrant orange */
    --color-secondary: #ffb703;   /* warm yellow */
    --color-accent: #00c49a;      /* teal/green */
    --color-ubereats: #222f26;    /* charcoal/ubereats style */
    --color-grubhub: #e01b3c;
    --color-border: #2c3140;
    --color-contrast-bg: #000000;
    --color-contrast-text: #ffffff;

    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --radius-none: 0;
    --spacing: 1rem;
    --max-width: 1100px;

    --transition-fast: 0.2s ease-out;

    --base-font-size: 16px;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

/* Default: dark theme */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* Dark theme explicit */
body.dark-theme {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
}

/* Light theme */
body.light-theme {
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
}

/* High Contrast Mode */
body.high-contrast {
    background-color: var(--color-contrast-bg);
    color: var(--color-contrast-text);
}

body.high-contrast .section,
body.high-contrast .site-footer,
body.high-contrast .main-nav {
    background-color: #000;
    color: #fff;
}

body.high-contrast a,
body.high-contrast .btn {
    color: #fff;
}

/* Highlight Headers */
body.highlight-headings h1,
body.highlight-headings h2,
body.highlight-headings h3,
body.highlight-headings h4 {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--color-secondary);
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4rem 0;
    background: var(--color-bg-dark);
}

/* alternate backgrounds for dark */
.section:nth-of-type(even) {
    background: var(--color-bg-dark-alt);
}

/* Light theme overrides for sections */
body.light-theme .section {
    background: var(--color-bg-light);
}

body.light-theme .section:nth-of-type(even) {
    background: var(--color-bg-light-alt);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.section-text {
    color: var(--color-muted-dark);
    max-width: 700px;
}

body.light-theme .section-text {
    color: var(--color-muted-light);
}

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 6, 8, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .main-nav {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text-dark);
}

body.light-theme .nav-brand {
    color: var(--color-text-light);
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-title {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a,
.nav-links button {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: none;
    border: none;
    cursor: pointer;
}

body.light-theme .nav-links a,
body.light-theme .nav-links button {
    color: var(--color-text-light);
}

.nav-links a:hover,
.nav-links button:hover {
    color: var(--color-secondary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.hero-video-bg iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 4rem 1.5rem 3rem;
}

.hero-subtitle {
    margin-top: 0.75rem;
    color: var(--color-muted-dark);
}

/* Light theme subtitle color */
body.light-theme .hero-subtitle {
    color: var(--color-muted-light);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Buttons (no rounded corners) */
.btn {
    border-radius: var(--radius-none);
    border: 1px solid transparent;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #ff7f3b;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #000;
}

.btn-secondary:hover {
    background: #ffd166;
}

.btn-accent {
    background: var(--color-accent);
    color: #00100b;
}

.btn-accent:hover {
    background: #05d9ac;
}

.btn-ubereats {
    background: var(--color-ubereats);
    color: #e2ffe7;
}

.btn-ubereats:hover {
    background: #1a231d;
}

.btn-grubhub {
    background: var(--color-grubhub);
    color: #fff;
}

.btn-grubhub:hover {
    background: #b1142e;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-dark);
}

body.light-theme .btn-outline {
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--color-text-light);
}

.btn-outline:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

/* Welcome Section */
.section-welcome .section-text {
    margin-top: 0.5rem;
}

/* About Section */
.section-about {
    background: radial-gradient(circle at top left, rgba(255, 107, 26, 0.18), transparent 55%), var(--color-bg-dark-alt);
}

body.light-theme .section-about {
    background: radial-gradient(circle at top left, rgba(255, 107, 26, 0.18), transparent 55%), var(--color-bg-light-alt);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: center;
}

.about-image-wrapper {
    display: flex;
    justify-content: flex-end;
}

.about-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-left: 5px; /* 5px margin on the right side image */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .about-image {
    border-color: rgba(15, 23, 42, 0.15);
}

/* Gallery */
.section-gallery {
    background: var(--color-bg-dark);
}

body.light-theme .section-gallery {
    background: var(--color-bg-light);
}

.gallery-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px; /* 5px margin between squared images */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.gallery-item:hover::after {
    opacity: 1;
}

/* Menu */
.section-menu {
    background: radial-gradient(circle at top right, rgba(0, 196, 154, 0.14), transparent 55%), var(--color-bg-dark-alt);
}

body.light-theme .section-menu {
    background: radial-gradient(circle at top right, rgba(0, 196, 154, 0.08), transparent 55%), var(--color-bg-light-alt);
}

#menu-categories {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-category {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

body.light-theme .menu-category {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.menu-category h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
}

.category-intro {
    color: var(--color-muted-dark);
    margin-bottom: 1rem;
}

body.light-theme .category-intro {
    color: var(--color-muted-light);
}

.menu-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

body.light-theme .menu-item {
    border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}

.menu-item-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.menu-item-name {
    font-weight: 500;
}

.menu-item-description {
    font-size: 0.92rem;
    color: var(--color-muted-dark);
}

body.light-theme .menu-item-description {
    color: var(--color-muted-light);
}

.menu-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Audio button */
.audio-toggle {
    border-radius: var(--radius-none);
    border: 1px solid var(--color-border);
    background: rgba(15, 18, 25, 0.9);
    color: var(--color-secondary);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

body.light-theme .audio-toggle {
    background: #e5e7eb;
    border-color: #cbd5f5;
}

.audio-toggle .material-symbols-outlined {
    font-size: 20px;
}

/* Reviews / Parallax */
.parallax-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #fff;
}

.parallax-overlay {
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.75), rgba(5, 6, 8, 0.96));
    padding: 4rem 0;
}

body.light-theme .parallax-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.9));
    color: #f9fafb;
}

.reviews-inner {
    text-align: center;
}

.reviews-slider {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.review-card {
    max-width: 650px;
    padding: 1.5rem;
    background: rgba(5, 6, 8, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

body.light-theme .review-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--color-text-light);
}

.review-text {
    margin-bottom: 1rem;
}

.review-name {
    font-weight: 500;
}

.review-source {
    font-size: 0.85rem;
    color: var(--color-muted-dark);
}

body.light-theme .review-source {
    color: var(--color-muted-light);
}

.review-rating {
    margin-top: 0.5rem;
    color: #ffd166;
}

.reviews-arrow {
    border-radius: var(--radius-none);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.light-theme .reviews-arrow {
    border-color: rgba(148, 163, 184, 0.6);
    color: #f9fafb;
}

/* Generic Parallax Quote Sections */
.parallax-quote {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #fff;
}

.parallax-quote .parallax-overlay {
    padding: 3rem 0;
    text-align: center;
}

.parallax-quote-text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* Contact */
.section-contact {
    background: var(--color-bg-dark);
}

body.light-theme .section-contact {
    background: var(--color-bg-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
}

.contact-info .section-text {
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    margin: 0.5rem 0 1rem;
    color: var(--color-muted-dark);
}

body.light-theme .contact-list {
    color: var(--color-muted-light);
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--color-secondary);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--color-secondary);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: none;
}

/* Footer */
.site-footer {
    background: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0 2rem;
    font-size: 0.85rem;
}

body.light-theme .site-footer {
    background: #0f172a;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-muted-dark);
}

body.light-theme .footer-links a {
    color: #cbd5f5;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-none);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(5, 6, 8, 0.95);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .accessibility-btn {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.7);
}

.accessibility-btn .material-symbols-outlined {
    font-size: 26px;
}

/* Modals (shared) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1200;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: rgba(15, 18, 25, 0.96); /* dark charcoal-ish */
    color: #fff;
    width: calc(100% - 20px);  /* full width minus 10px margin on each side */
    height: calc(100% - 20px); /* full height minus 10px margin on each side */
    margin: 10px;
    padding: 5px;              /* 5px padding */
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
}

.modal-gallery-content {
    padding: 1rem;
}

.modal-email-content {
    background-image: url('images/marketing.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-email-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.7), rgba(5, 6, 8, 0.95));
    z-index: 0;
}

.email-overlay {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.modal-text {
    color: var(--color-muted-dark);
}

.modal-image {
    max-width: 380px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    border-radius: var(--radius-none);
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close .material-symbols-outlined {
    font-size: 24px;
}

/* Email Form */
.email-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.email-form input[type="email"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-none);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(5, 6, 8, 0.9);
    color: #fff;
}

.email-response {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* Accessibility Controls */
.accessibility-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Screenreader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .about-layout,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-image-wrapper {
        justify-content: center;
    }

    .contact-map iframe {
        min-height: 220px;
    }
}

@media (max-width: 800px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(5, 6, 8, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.25rem 1rem;
        display: none;
    }

    body.light-theme .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.open {
        display: flex;
    }

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

    .hero-section {
        min-height: 70vh;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding-top: 5rem;
    }

    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-card {
        padding: 1.25rem;
    }

    .modal-image {
        max-width: 300px;
    }
}
