:root {
    --brand-primary: var(--garfood-brand-primary);
    --brand-secondary: var(--garfood-brand-secondary);
    --brand-ink: #202124;
    --brand-paper: #fffdf9;
    --brand-soft: #f5f1ea;
    --brand-line: rgba(32, 33, 36, .1);
    --brand-shadow: 0 18px 44px rgba(32, 33, 36, .1);
}

body {
    color: var(--brand-ink);
    background: var(--brand-paper);
}

.glass-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 253, 249, .96);
    border-bottom: 1px solid var(--brand-line);
    box-shadow: 0 4px 22px rgba(32, 33, 36, .035);
}

.header-container {
    min-height: 96px;
    max-width: 1240px;
    gap: 28px;
}

.logo {
    min-width: 248px;
    letter-spacing: -.04em;
}

.logo h2 {
    font-size: clamp(1.28rem, 2vw, 1.65rem);
    font-weight: 800;
}

.endereco-box {
    padding: 12px 20px;
    border-left: 1px solid var(--brand-line);
}

.end-label { color: var(--brand-primary); font-weight: 800; }
.end-value { color: var(--brand-ink); font-weight: 700; }

.auth-buttons { gap: 12px; }
.btn {
    min-height: 46px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--brand-primary) 26%, transparent);
}
.btn-outline { border-color: var(--brand-line); background: #fff; }

.hero-search {
    position: relative;
    overflow: hidden;
    min-height: 352px;
    padding: 78px 0 88px;
    background: linear-gradient(115deg, color-mix(in srgb, var(--brand-primary) 11%, #fff) 0%, var(--brand-paper) 56%, color-mix(in srgb, var(--brand-secondary) 10%, #fff) 100%);
    border-bottom: 1px solid var(--brand-line);
}
.hero-search::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--brand-primary);
}
.hero-content { position: relative; max-width: 990px; text-align: center; }
.hero-content h1 {
    max-width: 760px;
    margin: 0 auto 30px;
    color: var(--brand-ink);
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 800;
}
.search-bar {
    min-height: 72px;
    padding: 10px 12px 10px 24px;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    box-shadow: var(--brand-shadow);
}
.search-bar input { color: var(--brand-ink); font-size: 1.02rem; }
.search-bar input::placeholder { color: #73716d; }
.btn-search { min-height: 50px; border-radius: 8px; background: var(--brand-primary); font-weight: 800; }

.categories-section { margin-top: -32px; position: relative; z-index: 2; }
.category-nav-wrap {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    box-shadow: var(--brand-shadow);
}
.category-item { border-radius: 8px; transition: transform .2s ease, color .2s ease, background .2s ease; }
.category-item:hover { transform: translateY(-3px); }
.category-item.active { background: color-mix(in srgb, var(--brand-primary) 12%, #fff); color: var(--brand-primary); }
.category-item.active .cat-icon { background: var(--brand-primary); }

.restaurants-section { padding-top: 52px; }
.restaurants-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}
.restaurants-hint {
    margin: 8px 0 0;
    color: #73716d;
    font-size: .92rem;
}
.refresh-restaurants {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    background: #fff;
    color: var(--brand-ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.refresh-restaurants:hover {
    color: var(--brand-primary);
    border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--brand-line));
    transform: translateY(-2px);
}
.refresh-restaurants:disabled { opacity: .65; cursor: wait; transform: none; }
.refresh-restaurants.is-loading i { animation: brand-spin .8s linear infinite; }
@keyframes brand-spin { to { transform: rotate(360deg); } }
.restaurants-section h2, .section-title { color: var(--brand-ink); letter-spacing: -.035em; }
.restaurant-card {
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    box-shadow: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.restaurant-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--brand-line)); box-shadow: var(--brand-shadow); }

.site-footer { background: #201f1c; border-top: 5px solid var(--brand-primary); }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a:hover { color: var(--brand-primary); }

@media (max-width: 700px) {
    .restaurants-heading { align-items: stretch; flex-direction: column; }
    .refresh-restaurants { width: 100%; }
}

@media (max-width: 900px) {
    .header-container { min-height: auto; padding-top: 16px; padding-bottom: 16px; }
    .logo { min-width: 0; }
    .endereco-box { border-left: 0; padding: 8px 0; }
    .hero-search { min-height: 320px; padding: 54px 0 68px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Selo de loja: retangular, legivel e proporcional aos links sociais. */
.footer-social .footer-app-link {
    width: auto;
    min-width: 0;
    height: 44px;
    padding: 0 15px 0 13px;
    border-radius: 10px;
    background: #2c2a27;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
    color: #fff;
    gap: 9px;
}

.footer-social .footer-app-link i {
    color: var(--brand-primary);
    font-size: 19px;
}

.footer-social .footer-app-link span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.footer-social .footer-app-link:hover {
    background: #37332f;
    border-color: var(--brand-primary);
    color: #fff;
}

@media (max-width: 768px) {
    .endereco-box {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .endereco-box .end-value {
        justify-content: center;
        text-align: center;
    }
}
