/* ═══════════════════════════════════════════
   COWBOY STEAKHOUSE — main.css
   Shared styles for all pages
   (everything that cannot be Tailwind utilities)
═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Manrope:wght@300;400;600;700;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
    --red: #A53B2D;
    --gold: #D4A373;
    --cream: #D4C4B7;
    --dark: #201F1F;
    --card: #1C1B1B;
    --black: #0B0B0B;
    --near: #0E0E0E;
    --green: #1A241A;
    --muted: rgba(237, 224, 212, 0.6);
    --bdr: rgba(80, 69, 59, 0.1);
    --stone: #50453B;
}

/* ── Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

/* ── Font helpers ── */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-manrope {
    font-family: 'Manrope', sans-serif;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 3px;
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fd2 {
    transition-delay: .12s;
}

.fd3 {
    transition-delay: .24s;
}

/* ── Hero entrance animations ── */
.hero-animate-1 {
    animation: fadeUp .7s ease both;
    animation-delay: .15s;
}

.hero-animate-2 {
    animation: fadeUp .7s ease both;
    animation-delay: .35s;
}

.hero-animate-3 {
    animation: fadeUp .7s ease both;
    animation-delay: .55s;
}

.hero-animate-4 {
    animation: fadeUp .7s ease both;
    animation-delay: .75s;
}

/* ── Active nav link ── */
.nav-link.active,
.nav-link:hover {
    color: var(--red);
}

.nav-link.active {
    text-decoration: underline;
}

/* ── Hamburger animation ── */
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ── */
.drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 11, .97);
    z-index: 205;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform .35s ease;
}

.drawer.is-open {
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .drawer {
        display: flex;
    }
}

/* ── Background images (cannot be pure Tailwind) ── */
.bg-hero {
    background-image:
        linear-gradient(180deg, rgba(11, 11, 11, .40) 0%, rgba(11, 11, 11, .90) 100%),
        url('../images/hero-bg.png');
}

.bg-boots {
    background-image: url('../images/boots.png');
}

.sauce-bg-img {
    background: url('../images/sauce.png') center 20% / cover no-repeat;
    filter: saturate(0) brightness(.65);
    opacity: .45;
}

/* ── Size toggle buttons ── */
.size-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(80, 69, 59, .3);
    border-radius: 2px;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #E5E2E1;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.size-btn.active,
.size-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Dish / branch card hover ── */
.dish-card {
    transition: transform .3s;
}

.dish-card:hover {
    transform: translateY(-4px);
}

/* ── Gallery panel ── */
.gallery-panel img {
    filter: grayscale(1);
    transition: filter .5s, transform .6s;
}

.gallery-panel:hover img {
    filter: grayscale(0);
    transform: scale(1.06);
}

/* ── Plan card hover ── */
.plan-card {
    transition: border-color .25s;
}

.plan-card:hover {
    border-color: rgba(165, 59, 45, .35);
}

/* ── "View Collection" shine button ── */
.es-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .002);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    border-radius: 4px;
    z-index: 0;
}

.es-btn span {
    position: relative;
    z-index: 1;
}

/* ── Shared signature divider ── */
.sig-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sig-div-line-l {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 163, 115, 0) 0%, rgba(212, 163, 115, .2) 100%);
}

.sig-div-line-r {
    flex: 1;
    height: 1px;
    background: linear-gradient(270deg, rgba(212, 163, 115, 0) 0%, rgba(212, 163, 115, .2) 100%);
}

.sig-div-icon {
    opacity: .4;
    margin: 0 32px;
}

/* ── Bull-horns divider (auth + about pages) ── */
.bull-divider {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
}

.bull-div-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 163, 115, 0), rgba(212, 163, 115, .2));
}

.bull-div-line.rev {
    background: linear-gradient(270deg, rgba(212, 163, 115, 0), rgba(212, 163, 115, .2));
}

.bull-icon {
    opacity: .3;
}

/* ── Full footer grid (all full-page layouts) ── */
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 56px;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 200px;
    flex-shrink: 0;
}

.footer-logo {
    width: 111px;
    height: 96px;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--red);
    line-height: 1.5;
}

.social-row {
    display: flex;
    gap: 16px;
}

.soc-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(80, 69, 59, .3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color .2s, color .2s;
}

.soc-link:hover {
    border-color: var(--red);
    color: var(--red);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 200px;
    flex-shrink: 0;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--red);
}

.footer-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-ul a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}

.footer-ul a:hover {
    color: var(--cream);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.footer-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 12px;
}

.wa-footer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #60D669;
    color: #fff;
    padding: 12px 24px;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .2s;
}

.wa-footer:hover {
    opacity: .87;
}

.footer-bottom {
    border-top: 1px solid rgba(80, 69, 59, .1);
    padding: 22px 48px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-copy {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(237, 224, 212, .35);
}

@media (max-width: 1024px) {
    .footer-grid {
        padding: 0 40px 40px;
    }

    .footer-brand,
    .footer-col {
        width: calc(50% - 20px);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        flex-direction: column;
        padding: 0 20px 32px;
        gap: 32px;
    }

    .footer-brand,
    .footer-col {
        width: 100%;
    }

    .footer-bottom {
        padding: 16px 20px;
    }
}

/* ── Minimal footer (auth pages) ── */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-footer a {
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(237, 224, 212, .4);
    text-decoration: none;
    transition: color .2s;
}

.page-footer a:hover {
    color: var(--cream);
}

.page-footer p {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(237, 224, 212, .25);
}

/* ── Auth page background ── */
.page-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 100px;
}

.page-bg__img {
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.png') center/cover no-repeat;
}

.page-bg__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .75) 100%);
}

/* ── Shared form inputs ── */
.f-input,
.f-textarea {
    width: 100%;
    padding: 12px 16px 13px;
    background: rgba(53, 53, 52, .4);
    border: 1px solid var(--red);
    border-radius: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    letter-spacing: 1.6px;
    color: rgba(212, 196, 183, .2);
    outline: none;
    transition: border-color .2s, color .2s;
}

.f-input:focus,
.f-textarea:focus {
    border-color: var(--gold);
    color: #E5E2E1;
}

.f-textarea {
    min-height: 74px;
    resize: vertical;
}

/* ── Phone input row ── */
.phone-row {
    display: flex;
    border: 1px solid var(--red);
    border-radius: 4px;
    overflow: hidden;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: rgba(53, 53, 52, .4);
    border-right: 1px solid rgba(80, 69, 59, .3);
    font-size: 12px;
    color: rgba(212, 196, 183, .2);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.phone-num {
    flex: 1;
    padding: 12px 16px 13px;
    background: rgba(53, 53, 52, .4);
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    letter-spacing: 1.6px;
    color: rgba(212, 196, 183, .2);
    outline: none;
}

.phone-num:focus {
    color: #E5E2E1;
}

/* ── Cart badge (absolute counter) ── */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    border-radius: 9999px;
    min-width: 17px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 9px;
    color: #fff;
    padding: 0 4px;
}

/* ── Back button ── */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    color: var(--red);
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s;
}

.back-btn:hover {
    opacity: .75;
}

/* ── Section / page wrappers ── */
.page {
    padding-top: 160px;
    padding-bottom: 80px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}