/* ===================================
   806 Pizza House - Custom Styles
   =================================== */

:root {
    --primary-color: #d32f2f;
    --secondary-color: #ff6f00;
    --accent-color: #fbc02d;
    --light-color: #fff8e1;
    --dark-color: #1a1a1a;
    --gray-color: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Touch-friendly tap targets */
a, button, .btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

/* Prevent text size adjustment on mobile */
body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Improve image rendering on mobile */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .navbar-logo {
    height: 40px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.brand-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--primary-color);
}

.brand-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    min-height: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:active {
    background-color: rgba(211, 47, 47, 0.1);
}

.navbar .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
}

.navbar .btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

/* Hero Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.loading {
    background-image: none;
}

.hero-slide.loaded {
    background-color: transparent;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   About Section
   =================================== */

.about-section {
    padding: 5rem 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 15px;
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.05);
}

.about-content {
    padding: 2rem;
}

.about-text p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.stat-box {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--gray-color);
}

/* ===================================
   Menu Section
   =================================== */

.menu-section {
    padding: 5rem 0;
}

.menu-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.menu-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.1);
}

.menu-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.menu-card-body {
    padding: 1.5rem;
}

.menu-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.menu-item-description {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.menu-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials-section {
    padding: 5rem 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--dark-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.author-date {
    font-size: 0.875rem;
}

/* ===================================
   Location Section - Bento Grid
   =================================== */

.location-section {
    padding: 5rem 0;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
    gap: 1rem;
    margin-top: 2rem;
}

/* Bento Box Base Styles */
.bento-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.bento-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Map Box - Large */
.bento-map {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    padding: 0;
}

.bento-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Address Box */
.bento-address {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

/* Hours Box */
.bento-hours {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    padding: 1.5rem;
}

/* Contact Box */
.bento-contact {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* Bento Box Content Styles */
.bento-icon {
    width: 45px;
    height: 45px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bento-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.bento-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.bento-box p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bento-box a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.bento-box a:hover {
    color: var(--secondary-color);
}

.bento-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Hours Display in Bento */
.hours-bento {
    max-height: 180px;
    overflow-y: auto;
}

.hours-row-bento {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.hours-row-bento:last-child {
    border-bottom: none;
}

.hours-row-bento span:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.hours-row-bento span:last-child {
    color: var(--gray-color);
}


/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--dark-color);
    color: var(--white);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===================================
   Buttons
   =================================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    min-height: 44px; /* Touch-friendly minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Mobile touch optimization */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-primary:active {
        transform: scale(0.98);
    }
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 991px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    /* Bento Grid - Tablet */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1rem;
    }

    .bento-map {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        height: 300px;
    }

    .bento-address {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .bento-hours {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .bento-contact {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 767px) {
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .navbar.scrolled .navbar-logo {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }
    
    .navbar .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* About Section */
    .about-section {
        padding: 3rem 0;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .about-content {
        padding: 1rem;
    }
    
    .stat-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    /* Bento Grid - Mobile */
    .location-section {
        padding: 3rem 0;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-map,
    .bento-address,
    .bento-hours,
    .bento-contact {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .bento-map {
        height: 250px;
    }
    
    .bento-box {
        padding: 1.5rem;
    }
    
    .bento-box h3 {
        font-size: 1.1rem;
    }
    
    .bento-icon {
        width: 40px;
        height: 40px;
    }
    
    .bento-icon i {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-logo {
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .footer-links,
    .footer-contact {
        font-size: 0.95rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    /* Containers */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .bento-map {
        height: 200px;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
}

