/* ==========================================================================
   Home no desktop (>= 1024px)
   --------------------------------------------------------------------------
   Carregado com media="(min-width: 1024px)" e, por garantia, tudo aqui dentro
   repete a media query: no celular este arquivo nao tem efeito nenhum.
   O HTML e o mesmo do celular; so a home (.shell--home) muda de layout.
   As outras paginas seguem com a coluna sobre o fundo do por do sol
   (regra "Desktop" no fim de style.css).

   Ritmo da pagina: barra fixa > abertura em duas colunas (texto | foto) >
   secoes editoriais com o titulo a esquerda > faixa do fim de tarde >
   cartao de reserva > onde estamos > atalhos em cartoes > rodape.
   ========================================================================== */
@media (min-width: 1024px) {

  html:has(.shell--home) { scroll-padding-top: 96px; }
  @media (prefers-reduced-motion: no-preference) {
    html:has(.shell--home) { scroll-behavior: smooth; }
  }

  /* A coluna vira pagina inteira: o fundo desfocado da regra generica fica
     escondido atras dela, entao nem e pintado. */
  body:has(> .shell--home)::before { content: none; }

  .shell--home {
    /* Calha lateral: 40px no minimo, e o conteudo nunca passa de 1200px. */
    --gut: max(40px, calc((100% - 1200px) / 2));
    max-width: none;
    box-shadow: none;
  }

  /* ---------- Barra do topo ---------- */
  .shell--home .topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 36px;
    height: 72px;
    /* A direita fica livre para os botoes de idioma e tema (fixos, abaixo). */
    padding: 0 calc(var(--gut) + 128px) 0 var(--gut);
    background: color-mix(in srgb, var(--card) 90%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
  }
  .topbar__brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--on-card);
  }
  .topbar__emblem {
    width: 44px; height: 44px; flex: none;
    display: grid; place-items: center;
    border-radius: 11px;
    background: #f6ecd9;
    border: 1.5px solid rgba(18,41,61,0.85);
  }
  .topbar__emblem img { width: 30px; height: auto; }
  .topbar__name {
    font-family: var(--font-display); font-weight: 600;
    font-variation-settings: "opsz" 60;
    font-size: 1.28rem; line-height: 1.05; letter-spacing: -0.01em;
  }
  .topbar__name span {
    display: block; margin-top: 3px;
    font-family: var(--font-ui); font-weight: 600;
    font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--coral);
  }
  .topbar__nav {
    flex: 1;
    display: flex; justify-content: flex-end; gap: 28px;
  }
  .topbar__nav a {
    white-space: nowrap;
    font-weight: 500; font-size: 0.93rem;
    color: var(--on-card-soft); text-decoration: none;
    padding: 6px 0;
    background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 100% / 0 2px;
    transition: color 0.15s ease, background-size 0.2s ease;
  }
  .topbar__nav a:hover { color: var(--on-card); background-size: 100% 2px; }
  .topbar__nav a:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; border-radius: 4px; }
  .shell--home .topbar__cta {
    width: auto; flex: none;
    padding: 11px 20px; font-size: 0.92rem; border-radius: 12px;
    box-shadow: none;
  }
  .shell--home .topbar__cta svg { width: 17px; height: 17px; }

  /* Idioma e tema: saem de cima da foto e vao para o canto direito da barra.
     Fixos (nao absolutos) para acompanhar a barra durante a rolagem. */
  .shell--home .lang-toggle,
  .shell--home .theme-toggle {
    position: fixed; top: 19px; z-index: 30;
    background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-color: var(--hairline);
    color: var(--on-card);
    opacity: 0.85;
  }
  .shell--home .theme-toggle { right: var(--gut); }
  .shell--home .lang-toggle { left: auto; right: calc(var(--gut) + 44px); }
  .shell--home .lang-toggle:hover,
  .shell--home .theme-toggle:hover { opacity: 1; background: var(--card-2); }

  /* ---------- Abertura: texto e acoes | foto ---------- */
  .shell--home .intro {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    column-gap: 64px;
    min-height: clamp(560px, calc(100vh - 72px), 800px);
    padding: 28px var(--gut) 8px;
  }
  .shell--home .hero {
    grid-column: 2; grid-row: 1 / -1;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 22, 34, 0.22);
  }
  .shell--home .hero picture { display: block; height: 100%; }
  .shell--home .hero__img { height: 100%; object-position: center 45%; }
  .shell--home .hero::after { height: 45%; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35)); }

  .shell--home .board {
    grid-column: 1; grid-row: 2;
    padding: 0; text-align: left;
  }
  /* O emblema ja esta na barra; repetir na abertura sobraria. */
  .shell--home .board__medallion { display: none; }
  .shell--home .eyebrow { margin: 0 0 14px; font-size: 0.74rem; }
  .shell--home .board h1 {
    font-size: clamp(2.5rem, 3.5vw, 3.6rem);
    line-height: 1.06; letter-spacing: -0.02em;
    max-width: 15ch; margin: 0;
  }
  .shell--home .board__sub {
    margin: 20px 0 0; max-width: 38ch;
    font-size: 1.1rem; line-height: 1.55;
  }

  /* As acoes entram direto na grade da abertura: botoes na coluna do texto,
     o cartao do cardapio flutuando sobre o canto da foto. */
  .shell--home .actions { display: contents; }
  .shell--home .actions > * { grid-column: 1; max-width: 440px; }
  .shell--home .actions > .btn-pair { grid-row: 3; margin-top: 34px; }
  .shell--home .actions > .promo-rv { grid-row: 4; margin-top: 12px; }
  .shell--home .actions > .btn--lunch { grid-row: 5; margin-top: 12px; }
  .shell--home .actions > .btn--ghost { grid-row: 6; margin-top: 12px; }
  .shell--home .promo-rv { transition: transform 0.2s ease; }
  .shell--home .promo-rv:hover { transform: translateY(-2px); }
  .shell--home .actions > .feature {
    grid-column: 2; grid-row: 1 / -1;
    align-self: end; justify-self: start;
    width: min(340px, 55%); min-height: 150px;
    margin: 0 0 28px 28px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
  }
  .shell--home .feature:hover { transform: translateY(-3px); }
  .shell--home .feature__title { font-size: 1.7rem; }
  /* "Toque para abrir" e instrucao de celular. */
  .shell--home .feature__sub { display: none; }
  .shell--home .btn-pair .btn { padding: 15px 16px; font-size: 1rem; }

  .shell--home .btn { transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
  .shell--home .btn:hover { transform: translateY(-1px); }
  .shell--home .btn--solid:hover { box-shadow: 0 8px 18px rgba(18,41,61,0.22); }

  /* ---------- Secoes ---------- */
  .shell--home .sec {
    margin: 0;
    padding: 104px var(--gut) 0;
  }
  .shell--home .sec h2 {
    font-size: clamp(1.9rem, 2.4vw, 2.4rem);
    line-height: 1.12; letter-spacing: -0.015em;
    margin: 0 0 16px;
  }
  .shell--home .sec h2::before {
    content: ""; display: block;
    width: 36px; height: 3px; border-radius: 2px;
    margin-bottom: 18px;
    background: var(--coral);
  }
  .shell--home .sec p { font-size: 1.04rem; line-height: 1.7; max-width: 64ch; margin-bottom: 16px; }
  .shell--home .sec > .btn { width: auto; justify-self: start; padding: 14px 26px; margin-top: 8px; }

  /* Editorial: titulo fixo a esquerda (4 de 12 colunas), conteudo a direita.
     8 linhas explicitas para o titulo poder ocupar todas e ficar "sticky"
     enquanto o conteudo rola; linhas vazias medem zero (row-gap e 0). */
  .shell--home .sec--split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(8, auto);
    column-gap: 48px; row-gap: 0;
  }
  .shell--home .sec--split > h2 {
    grid-column: 1 / 5; grid-row: 1 / -1;
    align-self: start;
    position: sticky; top: 104px;
    max-width: 13ch;
  }
  .shell--home .sec--split > *:not(h2) { grid-column: 5 / 13; }

  /* Galeria de pratos: 3 por linha. */
  .shell--home .sec--split > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px; margin: 18px 0 24px;
  }
  .shell--home .grid img { border-radius: 16px; transition: transform 0.35s ease; }
  .shell--home .grid figure picture { display: block; overflow: hidden; border-radius: 16px; }
  .shell--home .grid figure:hover img { transform: scale(1.035); }
  .shell--home .grid figcaption { font-size: 0.88rem; margin-top: 10px; }

  /* Fim de tarde: faixa com o fundo alternado e as tres fotos numa fileira
     so, abaixo do texto (o titulo ocupa as 8 linhas explicitas, entao as
     fotos caem na primeira linha implicita, ja em largura total). */
  .shell--home .sec--mosaic {
    margin-top: 104px;
    padding-bottom: 104px;
    background: var(--card-2);
  }
  .shell--home .sec--mosaic > .wide { grid-column: 1 / 7; margin: 36px 0 0; }
  .shell--home .sec--mosaic > .grid {
    /* encosta na foto larga: o mesmo respiro de 20px entre as tres */
    grid-column: 7 / 13; margin: 36px 0 0 -28px;
    grid-template-columns: 1fr 1fr; gap: 20px;
  }
  .shell--home .sec--mosaic .wide img,
  .shell--home .sec--mosaic .grid img {
    height: clamp(340px, 30vw, 440px); aspect-ratio: auto;
    border-radius: 18px;
  }

  /* Reserva: cartao escuro com os botoes ao lado do texto. O --ink inverte
     sozinho no tema escuro, entao o cartao vira claro la. */
  .shell--home .sec--cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: repeat(3, auto);
    column-gap: 56px;
    margin: 104px var(--gut) 0;
    padding: 56px 64px 44px;
    border-radius: 28px;
    background: var(--ink);
    color: var(--card);
  }
  .shell--home .sec--cta > * { grid-column: 1; }
  .shell--home .sec--cta h2 { color: var(--card); }
  .shell--home .sec--cta h2::before { background: var(--sun); }
  .shell--home .sec--cta p { color: color-mix(in srgb, var(--card) 78%, transparent); }
  .shell--home .sec--cta a:not(.btn) { color: var(--card); }
  .shell--home .sec--cta > .btn-pair {
    display: flex;
    grid-column: 2; grid-row: 1 / -1; align-self: center;
    gap: 12px; margin: 0;
  }
  .shell--home .sec--cta .btn-pair .btn { width: auto; padding: 15px 24px; font-size: 1rem; white-space: nowrap; }
  .shell--home .sec--cta .btn--ghost {
    color: var(--card);
    border-color: color-mix(in srgb, var(--card) 35%, transparent);
  }
  .shell--home .sec--cta .btn--ghost:hover { border-color: var(--card); }
  /* Depois do cartao, a proxima secao nao precisa de tanto respiro. */
  .shell--home .sec--cta + .sec { padding-top: 96px; }

  /* Onde estamos: endereco e horarios lado a lado, botoes embaixo. */
  .shell--home .sec--local > .place { grid-column: 5 / 9; margin: 12px 0 0; padding: 20px 22px; }
  .shell--home .sec--local > .hours { grid-column: 9 / 13; margin: 12px 0 0; align-self: start; font-size: 0.95rem; }
  .shell--home .sec--local .hours dd { white-space: nowrap; }
  .shell--home .sec--local > .btn-pair { margin-top: 24px; max-width: 460px; }

  /* ---------- Atalhos: cartoes ---------- */
  .shell--home .links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 104px var(--gut) 24px;
  }
  .shell--home .links__label { grid-column: 1 / -1; margin: 0 0 8px; }
  .shell--home .link-row {
    padding: 18px 20px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: var(--card-2);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .shell--home .link-row:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--on-card) 35%, transparent);
    box-shadow: 0 10px 24px rgba(10, 22, 34, 0.10);
  }
  .shell--home .link-row__stamp { background: var(--card); }

  /* ---------- Rodape ---------- */
  .shell--home .foot { margin-top: 72px; padding: 40px var(--gut) 48px; }
}

@media (min-width: 1280px) {
  .shell--home .links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Notebook pequeno e tablet deitado: a barra perde o subtitulo da marca e
   aperta o menu para tudo caber numa linha. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .shell--home .topbar { gap: 24px; }
  .topbar__name span { display: none; }
  .topbar__nav { gap: 20px; }
  .topbar__nav a { font-size: 0.88rem; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .shell--home .feature:hover,
  .shell--home .btn:hover,
  .shell--home .link-row:hover,
  .shell--home .grid figure:hover img { transform: none; }
}
