/* ============================================================
   The Place Steak Houze — Design Tokens
   Source: /v2/_design_reference/project/The Place Steak Houze.html
   Anything below is the cross-page design system (variables,
   typography helpers, buttons, badges, dividers, forms,
   nav, ticker, footer). Page-specific layouts live in pages.css.
   ============================================================ */

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background-color: #0B2A2E;
    color: #F5F0E8;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ---------- TOKENS ---------- */
:root {
    /* Surfaces */
    --bg-primary:    #0B2A2E;   /* page background — dark teal */
    --bg-secondary:  #0D3538;   /* card surface */
    --bg-tertiary:   #0F3D42;   /* hover surface */
    --bg-deeper:     #0A2528;   /* darker section (reserve-mini) */
    --bg-image:      #141009;   /* photo placeholder */

    /* Accent — gold family */
    --gold:               #C9A84C;
    --gold-light:         #E8D5A3;
    --gold-bg:            rgba(201,168,76,0.06);
    --gold-border:        rgba(201,168,76,0.18);
    --gold-border-strong: rgba(201,168,76,0.25);
    --gold-line:          rgba(201,168,76,0.15);
    --gold-faint:         rgba(201,168,76,0.5);

    /* Text — warm cream */
    --cream:         #F5F0E8;
    --cream-muted:   rgba(245,240,232,0.45);
    --cream-fainter: rgba(245,240,232,0.25);

    /* Doneness palette (steak page) */
    --done-rare:        #DC2626;
    --done-medium-rare: #EA580C;
    --done-medium:      #D97706;
    --done-medium-well: #92400E;
    --done-well:        #44403C;

    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body:    'Montserrat', sans-serif;

    /* Spacing scale (8-pt) */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;
    --sp-9: 80px;
    --sp-10: 96px;

    /* Live height of the sticky top nav. The default below is the
       measured desktop height; site.js overrides this with the actual
       offsetHeight on load + resize so the menu page's sticky category
       bar lands flush below the nav, never behind it. */
    --nav-height: 73px;
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
}
.h-display {
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.05;
    letter-spacing: -0.5px;
}
.gold-italic {
    font-style: italic;
    color: var(--gold);
}
.price {
    font-family: var(--font-display);
    color: var(--gold);
    font-weight: 300;
    font-size: 19px;
    white-space: nowrap;
}
.item-code {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--gold-faint);
    text-transform: uppercase;
    font-weight: 400;
}
.placeholder-text {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--cream);
    opacity: 0.12;
    font-size: 18px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* ---------- BADGES ---------- */
.badge {
    display: inline-block;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 4px 9px;
    border: 0.5px solid rgba(201,168,76,0.4);
    color: rgba(201,168,76,0.85);
}
.badge--prestige {
    background: rgba(201,168,76,0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* ---------- BUTTONS (sharp corners, never round) ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    text-align: center;
    line-height: 1;
}
.btn--gold {
    background: var(--gold);
    color: var(--bg-primary);
    border: 0.5px solid var(--gold);
}
.btn--gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}
.btn--ghost {
    background: transparent;
    color: var(--gold);
    border: 0.5px solid var(--gold);
}
.btn--ghost:hover { background: rgba(201,168,76,0.08); }
.btn--full { width: 100%; display: block; }

/* ---------- FORM FIELDS ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field__label {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
}
.input, .textarea, .select {
    background: rgba(201,168,76,0.05);
    border: 0.5px solid var(--gold-border-strong);
    color: var(--cream);
    padding: 13px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}
.input::placeholder, .textarea::placeholder { color: rgba(245,240,232,0.35); }
.input:focus, .textarea:focus, .select:focus {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
}
.textarea { resize: vertical; min-height: 90px; }

/* ---------- DIVIDERS ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 60px 0 40px;
}
.divider__line {
    flex: 1;
    height: 0.5px;
    background: var(--gold-line);
}
.divider__diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.divider__label {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    padding: 0 10px;
}
.sub-label {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 28px 0 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sub-label::after {
    content: "";
    flex: 1;
    height: 0.5px;
    background: var(--gold-line);
}

/* ---------- LAYOUT CONTAINERS ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ---------- CARDS (dish primitive) ---------- */
.dish {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}
.dish:hover { background: var(--bg-tertiary); transform: translateY(-2px); }
.dish--bordered { border: 0.5px solid var(--gold-border-strong); }
.dish__img {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-image);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dish__img::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg,
            transparent 0, transparent 30px,
            rgba(201,168,76,0.022) 30px, rgba(201,168,76,0.022) 31px);
}
.dish__img::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(20,16,9,0.75), transparent);
    pointer-events: none;
}
/* Representative stand-in photo shown inside the placeholder card's image
   area. Fills the 4:3 box; the hatch sits behind it and the bottom gradient
   (::after) reads over it. */
.dish__rep {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}
.dish__img::after { z-index: 2; }
.dish__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
}
.dish__body {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.dish__code { display: block; }
.dish__name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
    margin-top: 2px;
}
.dish__desc {
    font-size: 12px;
    line-height: 1.65;
    color: var(--cream-muted);
    font-weight: 300;
    margin-top: 4px;
    flex: 1;
}
.dish__foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 0.5px solid var(--gold-line);
}

/* Photo-tile variant — used when an item has a real photo on disk.
   The image is square and already contains dish name, price, brand flag.
   No body, no overlaid badge — the photo carries everything. */
.dish--photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-image);
    padding: 0;
}
.dish--photo .dish__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.dish--photo:hover .dish__photo {
    transform: scale(1.02);
}

/* Hero variant of dish card — used inside grids */
.dish--hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--bg-secondary);
    border: 0.5px solid var(--gold-border-strong);
}
.dish--hero .dish__img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.dish--hero .dish__body { padding: 44px 48px; justify-content: center; gap: 14px; }
.dish--hero .dish__name { font-size: 34px; line-height: 1.15; }
.dish--hero .dish__desc { font-size: 13px; max-width: 420px; }
.dish--hero .price { font-size: 24px; }

/* ---------- LOGO ----------
   The PNG wordmark (black art on transparent) is used as a CSS mask
   over a solid gold fill, so the brand color stays bound to --gold
   (one variable to change later) and the wordmark stays crisp.
   The original aspect ratio is 1744:920 ≈ 1.895:1.
   The .logo__name / .logo__sub classes are kept as text-only fallbacks
   inside the same .logo container in case the mask-image fails to load. */
.logo {
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.logo__mark {
    display: block;
    width: 110px;
    height: 58px;
    background-color: var(--gold);
    -webkit-mask: url('../images/logo-mark.png') no-repeat center / contain;
            mask: url('../images/logo-mark.png') no-repeat center / contain;
    /* Accessible name supplied via aria-label on the <a class="logo"> */
}
.logo--lg .logo__mark { width: 150px; height: 79px; }
/* Legacy text fallback (kept hidden when the mask renders, shown if the
   PNG ever fails). Browsers that support mask-image render .logo__mark fine. */
.logo__name,
.logo__sub { display: none; }

/* ---------- NAV ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,42,46,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 0.5px solid rgba(201,168,76,0.20);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    max-width: 1440px;
    margin: 0 auto;
}
.nav__links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav__link {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 400;
    cursor: pointer;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}
.nav__link:hover { color: var(--gold); }
.nav__link.is-active { color: var(--gold); }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0; right: 0;
    height: 1px;
    background: var(--gold);
}
.nav__cta { white-space: nowrap; }
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.nav__hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold);
}
.nav__mobile {
    display: none;
    flex-direction: column;
    padding: 16px 32px 28px;
    border-top: 0.5px solid var(--gold-border);
    background: var(--bg-primary);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link {
    padding: 14px 0;
    border-bottom: 0.5px solid rgba(201,168,76,0.10);
}
.nav__mobile-cta { margin-top: 18px; }

/* ---------- TICKER ---------- */
.ticker {
    background: rgba(201,168,76,0.08);
    border-top: 0.5px solid var(--gold-border);
    border-bottom: 0.5px solid var(--gold-border);
    overflow: hidden;
    padding: 11px 0;
    position: relative;
}
.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 45s linear infinite;
}
.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--cream);
    text-transform: uppercase;
    padding: 0 28px;
    font-weight: 300;
    white-space: nowrap;
}
.ticker__diamond {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-primary);
    border-top: 0.5px solid rgba(201,168,76,0.10);
    padding: 72px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 56px;
    padding-bottom: 56px;
}
.footer__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    color: var(--cream);
    margin-top: 24px;
    line-height: 1.5;
    max-width: 280px;
    font-weight: 300;
    opacity: 0.85;
}
.footer__tag {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--cream-muted);
    text-transform: uppercase;
    margin-top: 10px;
}
.footer__heading {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
    font-weight: 400;
}
.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__list a {
    font-size: 12px;
    color: var(--cream);
    font-weight: 300;
    transition: color 0.2s;
    cursor: pointer;
}
.footer__list a:hover { color: var(--gold); }
.footer__contact p {
    font-size: 12px;
    color: var(--cream);
    margin-bottom: 10px;
    font-weight: 300;
}
.footer__contact .footer__muted {
    color: var(--cream-muted);
    font-size: 11px;
}
.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.footer__social a {
    width: 36px;
    height: 36px;
    border: 0.5px solid var(--gold-border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: background 0.2s, color 0.2s;
}
.footer__social a:hover { background: var(--gold); color: var(--bg-primary); }
.footer__bar {
    border-top: 0.5px solid var(--gold-line);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.footer__bar p {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--cream-muted);
    text-transform: uppercase;
}
/* Discreet developer credit — muted text, gold clickable name */
.footer__credit a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer__credit a:hover { text-decoration: underline; }

/* ---------- RESPONSIVE — nav/ticker/footer only (page-specific rules in pages.css) ---------- */
@media (max-width: 920px) {
    .nav__inner { padding: 16px 24px; }
    .container { padding: 0 24px; }
    .nav__links, .nav__cta { display: none; }
    .nav__hamburger { display: flex; }

    .footer__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
    .footer { padding: 56px 0 0; }
    .footer__bar { padding: 18px 0; text-align: center; flex-direction: column; }
}
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .ticker__item { font-size: 10px; padding: 0 20px; }
}
