/* ============================================================
   MANUEL PASTOR CARNICERÍA — Main Stylesheet
   ============================================================ */

/* ---- Variables ---- */
:root {
    --red:         #9B1B30;
    --red-dark:    #6B0F20;
    --red-light:   #C0392B;
    --crimson:     #DC143C;
    --gold:        #C9A84C;
    --gold-light:  #E8C96A;
    --cream:       #FDF6EC;
    --cream-dark:  #F5E8D4;
    --brown:       #5C3317;
    --brown-dark:  #2C1A0E;
    --gray:        #6B7280;
    --gray-light:  #F3F4F6;
    --white:       #FFFFFF;
    --text:        #1F1F1F;
    --text-soft:   #4B4B4B;
    --border:      #E5D5C5;
    --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
    --shadow-md:   0 8px 24px rgba(0,0,0,.12);
    --shadow-lg:   0 16px 48px rgba(0,0,0,.18);
    --radius:      12px;
    --radius-lg:   20px;
    --transition:  .25s ease;
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Lato', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .5px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(155,27,48,.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155,27,48,.45);
    background: linear-gradient(135deg, var(--red-light), var(--red));
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-full { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: .875rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0;
    transition: all var(--transition);
}
#header.scrolled {
    background: rgba(27, 8, 8, .97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-emblem {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(155,27,48,.4);
    flex-shrink: 0;
}
.logo-emblem.small { width: 32px; height: 32px; font-size: 1rem; border-radius: 7px; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}
.logo-sub {
    font-size: .7rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-link {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: .3px;
    transition: color var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--gold-light);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 2px;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 5, 5, .88) 0%,
        rgba(100, 15, 30, .75) 50%,
        rgba(20, 5, 5, .85) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 0 24px;
    animation: heroFadeIn .9s ease forwards;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,.15);
    border: 1px solid rgba(201,168,76,.4);
    color: var(--gold-light);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: scrollBounce 2s infinite;
}
.scroll-arrow {
    width: 18px; height: 18px;
    border-right: 2px solid rgba(255,255,255,.4);
    border-bottom: 2px solid rgba(255,255,255,.4);
    transform: rotate(45deg);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
    background: var(--brown-dark);
    padding: 28px 0;
    border-bottom: 3px solid var(--red);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}
.feature-icon { font-size: 1.8rem; flex-shrink: 0; }
.feature-item strong { display: block; font-size: .9rem; font-weight: 700; }
.feature-item span { font-size: .78rem; color: rgba(255,255,255,.55); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--brown-dark);
    margin: 12px 0 12px;
    line-height: 1.2;
}
.section-header p { color: var(--gray); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,.65); }
.section-badge {
    display: inline-block;
    background: rgba(155,27,48,.1);
    border: 1px solid rgba(155,27,48,.25);
    color: var(--red);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
}
.offers-badge-pill {
    background: rgba(201,168,76,.2);
    border-color: rgba(201,168,76,.5);
    color: var(--gold-light);
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section { padding: 80px 0 100px; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-soft);
    background: var(--white);
    border: 2px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.filter-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(155,27,48,.05);
}
.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(155,27,48,.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    animation: cardFadeIn .4s ease forwards;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(155,27,48,.2);
}
.product-card.hidden { display: none; }

.product-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--cream-dark);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 3.5rem;
    color: rgba(255,255,255,.9);
    text-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.product-placeholder span.ph-label {
    font-size: .75rem;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .7;
    font-weight: 700;
}

/* Category-based placeholder gradients */
.ph-ternera   { background: linear-gradient(135deg, #7B3F00, #B5651D); }
.ph-cerdo     { background: linear-gradient(135deg, #8B1A1A, #CD5C5C); }
.ph-cordero   { background: linear-gradient(135deg, #2F4F4F, #5F9EA0); }
.ph-pollo     { background: linear-gradient(135deg, #8B6914, #DAA520); }
.ph-embutidos { background: linear-gradient(135deg, #6B0F20, #9B1B30); }
.ph-default   { background: linear-gradient(135deg, #4A1515, #8B1A1A); }

.product-category-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(27, 8, 8, .75);
    backdrop-filter: blur(6px);
    color: var(--gold-light);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(201,168,76,.3);
}

.product-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.product-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brown-dark);
    line-height: 1.3;
}
.product-desc {
    font-size: .875rem;
    color: var(--gray);
    line-height: 1.55;
    flex: 1;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.product-price {
    display: flex;
    flex-direction: column;
}
.product-price strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--red);
    font-family: var(--font-serif);
    line-height: 1;
}
.product-price span {
    font-size: .72rem;
    color: var(--gray);
    letter-spacing: .5px;
    margin-top: 2px;
}
.btn-reserve {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-reserve:hover {
    background: linear-gradient(135deg, var(--red-light), var(--red));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155,27,48,.35);
}

/* ============================================================
   OFFERS SECTION
   ============================================================ */
.offers-section {
    position: relative;
    background: var(--brown-dark);
    padding: 90px 0;
    overflow: hidden;
}
.offers-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(155,27,48,.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(201,168,76,.08) 0%, transparent 60%);
    pointer-events: none;
}
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.offers-empty {
    text-align: center;
    padding: 60px 0;
    color: rgba(255,255,255,.4);
    font-size: 1.1rem;
}

/* Offer Card */
.offer-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
}
.offer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,168,76,.5);
    background: rgba(255,255,255,.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.offer-img-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
}
.offer-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.offer-discount-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--brown-dark);
    font-size: .75rem;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.offer-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.offer-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
}
.offer-desc { font-size: .85rem; color: rgba(255,255,255,.55); flex: 1; }
.offer-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 12px;
}
.offer-price-new {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
}
.offer-price-old {
    font-size: .9rem;
    color: rgba(255,255,255,.35);
    text-decoration: line-through;
}
.offer-footer {
    padding: 0 22px 22px;
}
.btn-offer-reserve {
    width: 100%;
    padding: 11px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--brown-dark);
    font-weight: 700;
    font-size: .875rem;
    transition: all var(--transition);
}
.btn-offer-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,.4);
    filter: brightness(1.05);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { padding: 90px 0; background: var(--cream); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-info .section-badge { margin-bottom: 16px; display: inline-block; }
.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon-wrap {
    width: 44px; height: 44px;
    background: rgba(155,27,48,.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .9rem; color: var(--brown-dark); margin-bottom: 4px; }
.contact-item p { font-size: .875rem; color: var(--gray); margin: 0; line-height: 1.5; }
.hours-table { border-collapse: collapse; font-size: .875rem; margin-top: 4px; }
.hours-table td { padding: 3px 12px 3px 0; color: var(--gray); line-height: 1.4; vertical-align: top; }
.hours-table td:first-child { font-weight: 700; color: var(--brown-dark); white-space: nowrap; min-width: 80px; }
.hours-table .closed { color: #C0392B; font-weight: 600; }

.contact-visual { display: flex; justify-content: center; }
.contact-card {
    width: 320px;
    background: linear-gradient(145deg, var(--red-dark), var(--brown-dark));
    border-radius: var(--radius-lg);
    padding: 3px;
    box-shadow: var(--shadow-lg);
}
.contact-card-inner {
    background: linear-gradient(145deg, #2C1A0E, #1A0808);
    border-radius: calc(var(--radius-lg) - 3px);
    padding: 48px 36px;
    text-align: center;
}
.contact-logo-big { font-size: 4rem; margin-bottom: 16px; }
.contact-card-inner h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--white);
    font-weight: 700;
}
.contact-card-inner > p { color: var(--gold-light); font-size: .85rem; margin-top: 4px; letter-spacing: 1px; }
.contact-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
    margin: 24px 0;
}
.contact-motto { color: rgba(255,255,255,.5); font-style: italic; font-size: .9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--brown-dark);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 32px 0;
    position: relative;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
}
.footer-copy { color: rgba(255,255,255,.4); font-size: .8rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .8rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }

/* Hidden admin key */
.admin-key-btn {
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-size: .75rem;
    opacity: .12;
    transition: opacity .3s;
    padding: 4px;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    filter: grayscale(1);
}
.admin-key-btn:hover { opacity: .6; filter: none; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 3, 3, .75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(.92) translateY(20px);
    transition: transform .3s ease;
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-sm { max-width: 400px; text-align: center; }
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--text-soft);
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}
.modal-close:hover { background: var(--red); color: var(--white); }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-icon { font-size: 2.5rem; margin-bottom: 10px; }
.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--brown-dark);
    margin-bottom: 8px;
}
.modal-product-badge {
    display: inline-block;
    background: rgba(155,27,48,.1);
    color: var(--red);
    font-size: .82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(155,27,48,.2);
    margin-top: 8px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-group:last-of-type { margin-bottom: 0; }
.form-group label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--brown-dark);
    letter-spacing: .3px;
}
.req { color: var(--red); }
.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(155,27,48,.1);
}
.form-group input.error { border-color: #E53E3E; }
.form-group textarea { resize: vertical; min-height: 80px; }
.field-error { font-size: .76rem; color: #E53E3E; min-height: 16px; }
.form-note { font-size: .75rem; color: var(--gray); text-align: center; margin-top: 12px; }

/* Success modal */
.success-anim { font-size: 3.5rem; margin: 0 auto 16px; }
.modal-sm h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brown-dark); margin-bottom: 10px; }
.modal-sm p { color: var(--gray); font-size: .9rem; margin-bottom: 24px; line-height: 1.6; }

/* Drag handle for bottom-sheet modals on mobile */
.modal-drag-handle {
    display: none;
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: -12px auto 20px;
}

/* Admin access modal */
.admin-lock-icon { font-size: 3rem; margin-bottom: 12px; }
.admin-pass-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: .95rem;
    text-align: center;
    letter-spacing: 4px;
    outline: none;
    transition: all var(--transition);
    background: var(--cream);
    font-family: var(--font-sans);
}
.admin-pass-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(155,27,48,.1); }
.admin-error { color: #E53E3E; font-size: .82rem; min-height: 20px; margin: -8px 0 8px; text-align: center; }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.sk {
    background: linear-gradient(90deg, #f0e8e0 25%, #e8ddd4 50%, #f0e8e0 75%);
    background-size: 200% 100%;
    animation: skShimmer 1.4s infinite;
    border-radius: 6px;
}
@keyframes skShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.sk-img { height: 200px; border-radius: 0; }
.sk-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sk-title { height: 18px; width: 75%; }
.sk-text { height: 12px; width: 100%; }
.sk-text.short { width: 55%; }
.sk-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.sk-price { height: 24px; width: 70px; }
.sk-btn { height: 36px; width: 90px; border-radius: 50px; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--brown-dark);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #C0392B; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: rgba(155,27,48,.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================
   TOUCH & ACCESSIBILITY GLOBALS
   ============================================================ */
/* Prevent text selection on interactive elements */
.btn, .btn-reserve, .btn-offer-reserve, .filter-btn,
.hamburger, .admin-key-btn, .modal-close {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
/* Inputs at 16px to prevent iOS zoom on focus */
input, textarea, select {
    font-size: 16px !important;
}

/* ============================================================
   RESPONSIVE — Tablet 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-visual { display: none; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ============================================================
   RESPONSIVE — Mobile landscape / small tablet 768px
   ============================================================ */
@media (max-width: 768px) {
    /* --- Nav --- */
    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(20, 6, 6, .97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        transform: translateX(100%);
        opacity: 0;
        transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
        z-index: 999;
        padding-top: 72px;
        border: none;
    }
    .nav-links.open { transform: translateX(0); opacity: 1; }
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 18px 28px;
        font-size: 1.15rem;
        font-weight: 700;
        color: rgba(255,255,255,.85);
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .nav-link::after { display: none; }
    .nav-link:hover { color: var(--gold-light); background: rgba(255,255,255,.04); }
    .hamburger { display: flex; z-index: 1001; }

    /* --- Container --- */
    .container { padding: 0 16px; }

    /* --- Hero --- */
    .hero { min-height: 100svh; min-height: 100vh; }
    .hero-content { padding: 0 20px; }
    .hero-badge { font-size: .7rem; letter-spacing: 1.5px; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .hero-desc { font-size: .95rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
    .hero-actions .btn { width: 100%; max-width: 300px; }
    .hero-scroll-hint { display: none; }

    /* --- Features strip --- */
    .features-strip { padding: 20px 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .feature-item { gap: 10px; }
    .feature-icon { font-size: 1.5rem; }
    .feature-item strong { font-size: .82rem; }
    .feature-item span { font-size: .72rem; }

    /* --- Section headers --- */
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

    /* --- Products --- */
    .products-section { padding: 48px 0 56px; }
    .filter-bar {
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; padding: 9px 18px; font-size: .82rem; }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .product-img-wrap { height: 160px; }
    .product-body { padding: 14px 16px; gap: 6px; }
    .product-name { font-size: 1rem; }
    .product-desc { font-size: .8rem; }
    .product-footer { margin-top: 12px; padding-top: 12px; }
    .product-price strong { font-size: 1.15rem; }
    .btn-reserve { padding: 8px 14px; font-size: .78rem; }

    /* --- Offers --- */
    .offers-section { padding: 56px 0; }
    .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .offer-img-wrap { height: 150px; }

    /* --- Contact --- */
    .contact-section { padding: 56px 0; }
    .contact-info h2 { font-size: 1.6rem; margin-bottom: 24px; }
    .contact-items { gap: 18px; }

    /* --- Modal: bottom sheet on mobile --- */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 93svh;
        max-height: 93vh;
        padding: 20px 20px 32px;
        border-bottom: none;
        transform: translateY(100%);
    }
    .modal-sm {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: none;
        text-align: center;
    }
    .modal-overlay.active .modal { transform: translateY(0); }
    .modal-drag-handle { display: block; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* --- Footer --- */
    .footer { padding: 24px 0 20px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
    .footer-links { justify-content: center; }
    .admin-key-btn { bottom: 8px; right: 12px; }
}

/* ============================================================
   RESPONSIVE — Mobile portrait 480px
   ============================================================ */
@media (max-width: 480px) {
    /* --- Features --- */
    .features-grid { grid-template-columns: 1fr 1fr; }

    /* --- Products --- */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-img-wrap { height: 140px; }
    .product-placeholder { font-size: 2.5rem; }
    .product-category-tag { font-size: .6rem; padding: 4px 8px; }

    /* --- Offers --- */
    .offers-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — Small phone 390px
   ============================================================ */
@media (max-width: 390px) {
    .container { padding: 0 12px; }
    .nav-container { padding: 0 16px; }

    .hero-title { font-size: 2rem; }
    .hero-badge { display: none; }

    .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature-icon { font-size: 1.3rem; }

    .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .product-img-wrap { height: 120px; }
    .product-body { padding: 10px 12px; }
    .product-name { font-size: .9rem; }
    .product-desc { display: none; }
    .product-price strong { font-size: 1rem; }
    .btn-reserve { padding: 7px 10px; font-size: .72rem; white-space: nowrap; }

    .filter-btn { padding: 8px 14px; font-size: .78rem; }

    .modal { padding: 24px 16px 28px; }
    .modal-header h3 { font-size: 1.3rem; }

    .hours-table { font-size: .8rem; }
    .hours-table td:first-child { min-width: 64px; }
}
