/********** Ay Chihuahua Bar — Custom CSS **********/

@font-face {
    font-family: "Destrukt Rough";
    src: url("../fonts/Destrukt-Rough.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "Adventure";
    src: url("../fonts/OldeEnglish.ttf") format("opentype");
    font-display: swap;
}

:root {
    --ax-red: #C8102E;
    --ax-green: #006847;
    --ax-gold: #D4A017;
    --ax-dark: #1a1a1a;
    --ax-darker: #111111;
    --ax-cream: #FFF8F0;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

h1, h2, h3, .font-heading,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: "Destrukt Rough", "Fredoka", "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.03em;
    line-height: 1.08;
}

h4, h5, h6, .font-body {
    font-family: "Adventure", "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: capitalize !important;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, var(--ax-darker), #07100b, var(--ax-dark), #05100a) !important;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #ccc;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.has-sticky-header {
    padding-top: var(--sticky-offset, 0px);
}

@media (min-width: 992px) {
    .display-1 {
        font-size: 5rem;
    }
}

.btn {
    font-family: "Fredoka", "Poppins", sans-serif;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
    background-color: var(--ax-red) !important;
    border-color: var(--ax-red) !important;
}

.btn-primary:hover {
    background-color: #a00d24 !important;
    border-color: #a00d24 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

.bg-primary {
    background-color: var(--ax-green) !important;
}

.text-primary {
    color: var(--ax-gold) !important;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 99;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.floating-whatsapp:hover {
    color: #fff;
    background: #1fb85a;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    .back-to-top,
    .floating-whatsapp {
        width: 52px;
        height: 52px;
        bottom: 18px;
    }

    .back-to-top {
        left: 18px;
    }

    .floating-whatsapp {
        right: 18px;
    }
}

/* Navbar */
.site-header {
    position: relative;
    z-index: 1030;
    transition: box-shadow .3s ease, transform .3s ease;
}

.site-header .navbar {
    transition: padding .3s ease, background-color .3s ease;
}

.site-header .site-logo {
    max-height: 60px;
    transition: max-height .3s ease;
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: headerSlideDown .3s ease-out;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.site-header.is-sticky .header-contact-row {
    display: none !important;
}

.site-header.is-sticky .site-logo {
    max-height: 52px;
}

.site-header.is-sticky .navbar-dark .navbar-nav .nav-link {
    padding: 28px 0;
}

.site-header.is-sticky .navbar {
    background: rgba(17, 17, 17, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-dark .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    color: #ccc;
    font-size: 17px;
    outline: none;
    transition: color .3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--ax-gold) !important;
}

@media (max-width: 991.98px) {
    .site-header.is-sticky .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .navbar-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.section-title {
    color: var(--ax-gold) !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .24rem;
}


@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Animations */
.animate-up-down {
    position: relative;
    animation: animateUpDown 1s ease infinite;
}

@keyframes animateUpDown {
    0% { top: 0px; }
    50% { top: 10px; }
    100% { top: 0px; }
}

.animate-rotate {
    position: absolute;
    animation: animateRotate 8s linear infinite;
}

@keyframes animateRotate {
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

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

.hero-logo {
    max-width: 280px;
    filter: drop-shadow(0 0 30px rgba(212,160,23,0.3));
    animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-tagline {
    font-size: 1.3rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--ax-gold);
}

.hero-sub {
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: #ccc;
}

.btn-menu-cta {
    background: linear-gradient(135deg, var(--ax-red), #e6142f);
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .4s;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
}

.btn-menu-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.6);
    color: #fff;
}

/* Menu Cards */
.menu-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 0;
    transition: all .4s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--ax-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.15);
}

.menu-card .menu-card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .6s ease;
}

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

.menu-card .menu-card-body {
    padding: 20px 24px 24px;
    flex: 1;
}

.menu-card .menu-name {
    font-family: "Fredoka", sans-serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 4px;
}

.menu-card .menu-variants {
    color: var(--ax-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.menu-card .menu-desc {
    color: #999;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.menu-card .menu-price {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    color: var(--ax-red);
    font-weight: 700;
}

.menu-category-title {
    font-family: "Fredoka", sans-serif;
    color: var(--ax-gold);
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(212,160,23,0.3);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Menu Tabs */
.menu-tabs .nav-link {
    color: #999;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px !important;
    padding: 10px 24px;
    margin: 0 4px 8px;
    transition: all .3s;
    font-size: 0.9rem;
}

.menu-tabs .nav-link:hover {
    color: var(--ax-gold);
    border-color: var(--ax-gold);
}

.menu-tabs .nav-link.active {
    background: var(--ax-green) !important;
    border-color: var(--ax-green) !important;
    color: #fff !important;
}

/* Hours Table */
.hours-table {
    width: 100%;
}

.hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ccc;
}

.hours-table td:first-child {
    font-weight: 600;
    color: #fff;
}

.hours-table td:last-child {
    text-align: right;
    color: var(--ax-gold);
}

.hours-table tr.closed td:last-child {
    color: var(--ax-red);
}

/* Feature Cards */
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all .4s;
}

.feature-card:hover {
    border-color: var(--ax-gold);
    transform: translateY(-5px);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Instagram */
.instagram img {
    transition: .5s;
}

.instagram img:hover {
    opacity: .7;
    transform: scale(1.05);
}

/* Language Toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #999;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all .3s;
    font-family: "Poppins", sans-serif;
}

.lang-btn.active {
    background: var(--ax-green);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    color: #fff;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    transition: all .3s;
    margin: 0 4px;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--ax-gold);
    color: #fff;
    transform: translateY(-3px);
}

/* Map */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
}

/* Sunday Special */
.sunday-badge {
    background: linear-gradient(135deg, var(--ax-red), #ff4444);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); }
}

/* Footer */
.footer-brand {
    max-width: 120px;
    margin-bottom: 15px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ax-darker); }
::-webkit-scrollbar-thumb { background: var(--ax-green); border-radius: 4px; }

/* Contact Form */
.contact-form .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 12px;
}

.contact-form .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--ax-gold);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.15);
}

.contact-form .form-control::placeholder {
    color: #777;
}

@media (min-width: 991.98px) {
    .credit {
        background: #111111;
    }
}

/* Navbar logo */
.navbar-logo {
    max-height: 60px;
}

/* About section image */
.about-img {
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.about-page-hero {
    background:
        radial-gradient(circle at top left, rgba(200, 16, 46, 0.22), transparent 35%),
        radial-gradient(circle at top right, rgba(0, 104, 71, 0.22), transparent 38%),
        linear-gradient(180deg, var(--ax-darker) 0%, #181818 100%);
}

.about-page-intro {
    max-width: 760px;
    color: #bbb;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-story-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 30px;
}

.about-story-card p:last-child {
    margin-bottom: 0;
}

.about-value-card,
.about-experience-card {
    height: 100%;
}

.about-experience-card .feature-icon,
.about-value-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-cta-panel {
    background:
        linear-gradient(135deg, rgba(200, 16, 46, 0.16), rgba(0, 104, 71, 0.18)),
        rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 48px 24px;
}

@media (max-width: 767.98px) {
    .about-story-card,
    .about-cta-panel {
        padding: 24px 20px;
    }
}

/* Divider */
.divider-gold {
    width: 60px;
    height: 3px;
    background: var(--ax-gold);
    margin: 15px auto;
    border-radius: 2px;
}
