/* ═══════════════════════════════════════════
   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=Magari:wght@300;400;600;700;900&display=swap"); */

/* @font-face {
    font-family: "Magari";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/Magari-Regular.ttf") format("woff2");
} */

@font-face {
    font-family: oklahoma;
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url("../fonts/oklahoma.ttf") format("woff2");
}

@font-face {
    font-family: Almarai;
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url("../fonts/Almarai-Regular.ttf") format("woff2");
}

/* ── CSS Custom Properties ── */
:root {
    --red: rgb(133 0 0 / var(--tw-bg-opacity, 1));
    --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: #c0a68e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: "Magari", sans-serif; */
    overflow-x: hidden;
}

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

/* .font-Magari {
    font-family: "Magari", 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 0.65s ease,
        transform 0.65s ease;
}

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

.fd2 {
    transition-delay: 0.12s;
}

.fd3 {
    transition-delay: 0.24s;
}

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

.hero-animate-2 {
    animation: fadeUp 0.7s ease both;
    animation-delay: 0.35s;
}

.hero-animate-3 {
    animation: fadeUp 0.7s ease both;
    animation-delay: 0.55s;
}

.hero-animate-4 {
    animation: fadeUp 0.7s ease both;
    animation-delay: 0.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 0.3s,
        opacity 0.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;
    z-index: 205;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.drawer.is-open {
    transform: translateX(0);
    background: rgba(11, 11, 11, 0.97);
}

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

/* ── Background images (cannot be pure Tailwind) ── */
.bg-hero {
    background-image:
        linear-gradient(
            180deg,
            rgba(11, 11, 11, 0.4) 0%,
            rgba(11, 11, 11, 0.9) 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(0.65);
    opacity: 0.45;
}

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

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

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

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

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

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

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

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

/* ── "View Collection" shine button ── */
.es-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.002);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 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, 0.2) 100%
    );
}

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

.sig-div-icon {
    opacity: 0.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, 0.2)
    );
}

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

.bull-icon {
    opacity: 0.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, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition:
        border-color 0.2s,
        color 0.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 0.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 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(80, 69, 59, 0.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, 0.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, 0.4);
    text-decoration: none;
    transition: color 0.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, 0.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;
    z-index: 0;
    pointer-events: none;
}

.page-bg__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 11, 11, 0.92) 0%,
        rgba(11, 11, 11, 0.75) 100%
    );
    z-index: 0;
    pointer-events: none;
}

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

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

.f-input:not(:placeholder-shown),
.f-textarea:not(:placeholder-shown) {
    border-color: var(--gold);
    color: #e5e2e1;
}

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

/* ── Dropdown option colours (all frontend selects) ── */
select option {
    background-color: #201f1f;
    color: #e5e2e1;
}

/* ── Phone input row ── */
.phone-row {
    display: flex;
    border: 1px solid rgba(80, 69, 59, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.phone-row:focus-within {
    border-color: var(--gold);
}

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

.phone-num {
    flex: 1;
    padding: 12px 16px 13px;
    background: rgba(53, 53, 52, 0.4);
    border: none;
    /* font-family: "Magari", sans-serif; */
    font-size: 12px;
    letter-spacing: 1.6px;
    color: rgba(212, 196, 183, 0.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 0.2s;
}

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

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

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

/* ── Date / Time input brand colours ── */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(72%) sepia(30%) saturate(400%) hue-rotate(10deg)
        brightness(95%);
    cursor: pointer;
    opacity: 0.8;
}

input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
    color: #e5e2e1;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    color: #e5e2e1;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text {
    color: #d4a373;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="time"]::-webkit-datetime-edit-ampm-field,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
    color: #e5e2e1;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus,
input[type="time"]::-webkit-datetime-edit-ampm-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-month-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-day-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-year-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field:focus {
    background-color: #a53b2d;
    color: #e5e2e1;
    border-radius: 2px;
}

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