@charset "UTF-8";

/* Variáveis */
:root {
  color-scheme: dark;
  --bg: #11100f;
  --panel: #1b1917;
  --line: #34302b;
  --text: #f5f1e9;
  --muted: #b5ada3;
  --orange: #ff9a16;
  --green: #21c365;
}

/* Configurações gerais */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

/* Atalho de acessibilidade */
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: white;
  color: black;
  padding: 12px;
  z-index: 100;
}

.skip:focus {
  top: 8px;
}

/* Cabeçalho */
header {
  border-bottom: 1px solid #ffffff12;
  background: #11100ff5;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  object-fit: contain;
  display: block;
}

/* Botões e links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.btn:hover {
  filter: brightness(1.1);
}

.green {
  background: var(--green);
  color: #052a17;
}

.orange {
  background: var(--orange);
  color: #2d1700;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Apresentação */
.hero {
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 75% 0,
      #b22b19,
      transparent 66%
    ),
    linear-gradient(
      125deg,
      #731914,
      #b51d17 64%,
      #48150e
    );
}

.hero-inner {
  position: relative;
  padding-top: 70px;
  padding-bottom: 65px;
  min-height: 570px;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.status {
  display: inline-block;
  background: #24080266;
  border: 1px solid #ffffff15;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
}

.status.open {
  color: #a2ffbf;
}

h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -2.7px;
  margin: 20px 0 25px;
  font-weight: 900;
}

h1 span {
  color: var(--orange);
}

.intro {
  color: #f0d7ce;
  font-size: 16px;
  line-height: 1.8;
}

.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 28px 0;
}

.hero-note {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e7b3a4;
}

/* Ilustração da pizza */
.pizza-art {
  position: absolute;
  right: -135px;
  top: 85px;
  width: 450px;
  height: 450px;
  border: 25px solid #fb951a;
  border-radius: 50%;
  background: conic-gradient(
    from 8deg,
    #e23d0f 0 42deg,
    #f3ad28 43deg 86deg,
    #e23d0f 87deg 130deg,
    #f3ad28 131deg 174deg,
    #e23d0f 175deg 218deg,
    #f3ad28 219deg 262deg,
    #e23d0f 263deg 306deg,
    #f3ad28 307deg 360deg
  );
  transform: rotate(-13deg);
  opacity: 0.85;
  box-shadow: 0 30px 100px #28070066;
}

.pizza-art i {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 100%;
  background: #9f2116;
  box-shadow: inset 0 0 0 5px #b72a1a;
  left: 70px;
  top: 65px;
}

.pizza-art i:nth-of-type(2) {
  left: 250px;
  top: 80px;
}

.pizza-art i:nth-of-type(3) {
  left: 200px;
  top: 250px;
}

.pizza-art i:nth-of-type(4) {
  left: 90px;
  top: 265px;
}

.pizza-art i:nth-of-type(5) {
  left: 290px;
  top: 205px;
}

.pizza-art i:nth-of-type(6) {
  left: 165px;
  top: 150px;
}

/* Delivery e retirada */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 85px;
}

.service {
  padding: 24px;
  display: flex;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.service:first-child {
  background: #122018;
}

.service-icon {
  color: var(--orange);
  font-size: 32px;
  font-weight: bold;
}

.service:first-child .service-icon {
  color: var(--green);
}

.service h2 {
  font-size: 17px;
  text-transform: uppercase;
  margin: 0;
}

.service p {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0;
}

.service small {
  font-size: 11px;
  color: var(--orange);
}

.service:first-child small {
  color: #86d89f;
}

/* Títulos das seções */
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: var(--orange);
  margin: 0 0 10px;
}

section > h2,
.section-heading h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.18;
  letter-spacing: -1.1px;
  margin: 0 0 32px;
}

h2 span {
  color: var(--orange);
}

/* Destaques */
.featured-section {
  margin-bottom: 85px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Produtos */
.product {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.featured-grid .product {
  background: linear-gradient(145deg, #342117, #1d1915);
  padding: 22px;
}

.tag {
  align-self: flex-start;
  background: #743113;
  color: #ffc080;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 16px;
}

.product h3 {
  font-size: 16px;
  line-height: 1.35;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.product p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 22px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.product .btn {
  padding: 10px 14px;
  font-size: 10px;
  gap: 5px;
}

.featured-grid .product-bottom {
  flex-wrap: wrap;
}

/* Cardápio e categorias */
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.filters {
  display: flex;
  gap: 8px;
  margin: 0 0 30px;
  flex-wrap: wrap;
}

.filters a {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 12px;
}

.filters a:hover {
  background: var(--orange);
  color: #281500;
}

.category-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 35px 0 18px;
  color: var(--orange);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.menu-grid .product {
  min-height: 170px;
}

/* Área do pedido */
#pedido {
  margin: 85px 0 75px;
}

.checkout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: start;
}

/* Carrinho */
.cart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  position: sticky;
  top: 122px;
}

.cart-panel h3 {
  margin: 0 0 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.cart-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.cart-item h4 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.cart-item p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.quantity {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.quantity button,
.remove {
  border: 1px solid var(--line);
  color: var(--text);
  background: #121110;
  border-radius: 8px;
  height: 30px;
  min-width: 30px;
}

.remove {
  font-size: 11px;
  padding: 0 9px;
}

.quantity span {
  font-size: 13px;
}

/* Totais e frete */
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  font-size: 14px;
}

.total-row strong {
  font-size: 24px;
  color: var(--orange);
  white-space: nowrap;
}

.freight {
  color: #f6c58e;
  background: #ff9a160b;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  margin: 0;
}

/* Formulários */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.full {
  grid-column: 1 / -1;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #1a1816;
  padding: 13px 14px;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}

legend {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 12px;
}

.submit {
  width: 100%;
  margin-top: 16px;
}

/* Avisos do formulário */
.form-note,
.privacy {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

.privacy {
  font-size: 10px;
  color: #8f887f;
}

.error {
  color: #ffac9c;
  font-size: 12px;
  margin: 10px 0;
}

.error:empty {
  display: none;
}

/* Rodapé */
footer {
  border-top: 1px solid var(--line);
  background: #0c0b0a;
  padding: 35px 0 110px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.footer-inner p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}

.footer-end {
  text-align: right;
  align-self: center;
}

.footer-end strong {
  color: var(--text);
}

/* Barra flutuante do carrinho */
.cart-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, calc(100% - 32px));
  padding: 17px 25px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #281500;
  box-shadow: 0 10px 40px #0009;
  z-index: 25;
  font-size: 13px;
  font-weight: bold;
}

/* Notificação temporária */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 99px;
  background: #f2ebdf;
  color: #231c13;
  font-size: 12px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
}

/* Janela de montagem da pizza */
dialog {
  width: min(520px, calc(100% - 30px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  padding: 30px;
}

dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}

dialog h2 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 0 30px 10px 0;
}

.close {
  position: absolute;
  right: 17px;
  top: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 28px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.pizza-types {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}

.pizza-types label {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 9px;
  flex-direction: row;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0;
  cursor: pointer;
}

.pizza-types label:has(input:checked) {
  color: var(--orange);
  border-color: var(--orange);
}

.pizza-types input {
  width: 15px;
  accent-color: var(--orange);
  margin: 0;
}

#whole-details h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

#whole-details p {
  font-size: 12px;
  color: var(--muted);
}

#half-details label {
  margin: 15px 0;
}

#price-rule {
  font-size: 11px;
}

/* Tablets e telas intermediárias */
@media (max-width: 800px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pizza-art {
    right: -230px;
    opacity: 0.4;
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .service-grid {
    margin-bottom: 55px;
  }

  .featured-section {
    margin-bottom: 55px;
  }
}

/* Celulares */
@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .top {
    height: 80px;
  }

  .top .logo {
    width: 70px;
    height: 70px;
  }

  .top .btn {
    font-size: 11px;
    padding: 12px 15px;
    gap: 10px;
  }

  html {
    scroll-padding-top: 95px;
  }

  .hero-inner {
    padding: 38px 0;
    min-height: 490px;
  }

  h1 {
    font-size: 43px;
    letter-spacing: -1.5px;
  }

  .hero-copy {
    width: 100%;
  }

  .intro {
    font-size: 13px;
  }

  .actions {
    gap: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .pizza-art {
    width: 350px;
    height: 350px;
    right: -250px;
    top: 90px;
    opacity: 0.2;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0 50px;
  }

  .service {
    padding: 18px;
  }

  .featured-grid {
    gap: 10px;
  }

  .featured-grid .product {
    padding: 16px;
  }

  .product h3 {
    font-size: 14px;
  }

  .product p {
    font-size: 11px;
  }

  .price {
    font-size: 18px;
  }

  .featured-grid .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid .btn {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-bottom: 15px;
  }

  .section-heading p {
    margin-bottom: 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .product {
    padding: 20px;
  }

  .menu-grid .product {
    min-height: 145px;
  }

  .form-grid {
    gap: 13px;
  }

  .form-grid label {
    grid-column: 1 / -1;
  }

  #pedido {
    margin-top: 55px;
  }

  .cart-panel {
    padding: 20px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-end {
    max-width: 180px;
  }

  .cart-bar {
    font-size: 11px;
    gap: 8px;
    padding: 17px 18px;
  }

  dialog {
    padding: 24px;
  }

  .pizza-types {
    gap: 8px;
  }

  .pizza-types label {
    font-size: 10px;
  }
}

/* Preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Complementos do checkout e acesso administrativo */
.checkout-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.admin-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
}

/* Assinatura do desenvolvedor */
.developer-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  margin: 18px 0 22px;
  color: #fff;
}

.developer-credit p {
  margin: 0;
  color: #fff;
}

.developer-logo {
  width: 168px;
  max-width: 100%;
  height: auto;
}

/* Ajustes finais do rodapé em celulares */
@media (max-width: 520px) {
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-end {
    align-self: stretch;
    text-align: left;
    max-width: none;
  }

  .developer-credit {
    align-items: flex-start;
  }

  .developer-logo {
    width: 208px;
  }
}