/* ==========================================================
   AFERA CONFEITARIA — design system
   Preto profundo + azul cobalto/royal, tipografia serifada
   ========================================================== */

:root{
  --ink:            #030308;
  --ink-1:          #07080f;
  --ink-2:          #0a0c16;
  --panel:          #0d1020;
  --panel-2:        #12162a;
  --line:           rgba(129, 156, 255, 0.13);
  --line-strong:    rgba(129, 156, 255, 0.32);

  --blue-900:       #0a1642;
  --blue-700:       #1c3494;
  --blue-600:       #2a45c9;
  --blue-500:       #3d5cf0;
  --blue-400:       #6f8dff;
  --blue-300:       #a4b7ff;

  --text-hi:        #f4f6ff;
  --text-mid:       #a6afd4;
  --text-low:       #656d8e;

  --gold:           #cfa763;
  --gold-soft:      rgba(207, 167, 99, 0.16);

  --radius-lg:      24px;
  --radius-md:      16px;
  --radius-sm:      10px;

  --serif:  "Fraunces", Georgia, serif;
  --sans:   "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--ink);
  color: var(--text-hi);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; }

::selection{ background: var(--blue-500); color: #fff; }

/* subtle grain overlay for texture */
.grain{
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- topbar ---------- */
.topbar{
  position: sticky; top: 0; z-index: 100;
  background: rgba(3, 3, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  max-width: var(--container); margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand{ display: flex; flex-direction: column; line-height: 1; }
.brand-mark{
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  color: var(--text-hi); letter-spacing: 0.01em;
}
.brand-sub{
  font-size: 0.62rem; letter-spacing: 0.16em;
  color: var(--gold); margin-top: 3px;
}
.nav-links{ display: flex; gap: 32px; }
.nav-links a{
  font-size: 0.92rem; color: var(--text-mid); font-weight: 500;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a::after{
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--blue-400);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover{ color: var(--text-hi); }
.nav-links a:hover::after{ width: 100%; }

.btn-whats-mini{
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; font-weight: 600; font-size: 0.88rem;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(45, 80, 230, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-whats-mini:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(45, 80, 230, 0.75); }

/* mobile hamburger */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span{
  display: block; width: 18px; height: 1.5px; margin: 0 auto;
  background: var(--text-hi);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile{
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink-1);
  transition: max-height 0.35s var(--ease);
}
.nav-mobile.is-open{ max-height: 340px; }
.nav-mobile a{
  padding: 16px 28px;
  font-size: 0.98rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:active, .nav-mobile a:hover{ color: var(--text-hi); background: rgba(129,156,255,0.05); }
.nav-mobile-cta{
  color: var(--blue-300) !important;
  font-weight: 700;
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 120px 28px 80px;
  overflow: hidden;
}
#hero-canvas{
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, rgba(61, 92, 240, 0.24), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(28, 52, 148, 0.16), transparent 65%);
  z-index: 0;
}
.hero-content{
  position: relative; z-index: 2;
  max-width: 700px;
  margin: 0 auto; text-align: center;
}
.hero-eyebrow{
  font-size: 0.86rem;
  color: var(--gold); font-weight: 600;
  margin: 0 0 18px;
}
.hero-title{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--text-hi);
}
.hero-desc{
  font-size: 1.08rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 38px;
  line-height: 1.65;
}
.hero-actions{
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-primary{
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; font-weight: 600; font-size: 0.98rem;
  padding: 15px 32px; border-radius: 999px;
  box-shadow: 0 12px 32px -10px rgba(45, 80, 230, 0.65);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(45, 80, 230, 0.8); }

.btn-ghost{
  border: 1px solid var(--line-strong);
  color: var(--text-hi); font-weight: 600; font-size: 0.98rem;
  padding: 15px 32px; border-radius: 999px;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
}
.btn-ghost:hover{ border-color: var(--blue-400); background: rgba(61, 92, 240, 0.08); }

.hero-meta{
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-meta-item{ display: flex; flex-direction: column; gap: 4px; }
.hero-meta-label{ font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-low); }
.hero-meta-value{ font-size: 0.94rem; color: var(--text-hi); font-weight: 600; }

/* ---------- intro strip ---------- */
.section-intro{
  max-width: 680px; margin: 0 auto;
  padding: 20px 28px 90px;
  text-align: center;
}
.section-intro p{
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 1.3rem; line-height: 1.5;
  color: var(--text-mid);
}

/* ---------- menu sections ---------- */
.menu-section{
  padding: 90px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.menu-section--alt{
  max-width: none;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.menu-section--alt > *{
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section-head{
  margin-bottom: 46px;
  max-width: 560px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.section-head-text h2{
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0 0 10px;
  color: var(--text-hi);
}
.section-head-text p{
  color: var(--text-mid); font-size: 1.02rem; margin: 0;
}
.section-head-rule{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  display: none;
}

/* card grid for kits */
.menu-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.menu-grid--compact{
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.kit-card{
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.kit-card:hover{ border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(0,0,0,0.7); }

.kit-card.is-featured{
  border-color: rgba(111, 141, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(111, 141, 255, 0.18), 0 24px 48px -24px rgba(45, 80, 230, 0.5);
}
.kit-card.is-featured::before{
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue-400), transparent 40%, var(--gold) 130%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}
.kit-badge{
  position: absolute; top: -13px; left: 26px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(45, 80, 230, 0.7);
}

.kit-head{
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.kit-name{
  font-family: var(--serif); font-weight: 600; font-size: 1.26rem;
  color: var(--text-hi); margin: 0;
}
.kit-serves{
  flex-shrink: 0;
  font-size: 0.68rem; font-weight: 700; color: var(--blue-300);
  background: rgba(111, 141, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  margin-top: 2px;
}
.kit-desc{
  color: var(--text-mid); font-size: 0.93rem; line-height: 1.6;
  margin: 0 0 22px; flex-grow: 1;
}
.kit-footer{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.kit-price{
  font-family: var(--serif); font-weight: 600; font-size: 1.4rem;
  color: var(--text-hi);
}
.kit-price small{
  font-family: var(--sans); font-size: 0.68rem; color: var(--text-low);
  font-weight: 600; display: block; margin-bottom: 3px;
}
.kit-order-btn{
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-hi); font-size: 0.85rem; font-weight: 600;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.kit-order-btn:hover{
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-color: transparent; transform: scale(1.03);
  color: #fff;
}

/* extras compact cards */
.extra-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.extra-card:hover{ border-color: var(--line-strong); transform: translateY(-2px); }
.extra-name{ font-weight: 600; font-size: 0.98rem; color: var(--text-hi); margin: 0 0 4px; }
.extra-note{ font-size: 0.82rem; color: var(--text-low); margin: 0; }
.extra-price{
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
  color: var(--blue-300); white-space: nowrap; flex-shrink: 0;
}

/* bolos table */
.table-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bolo-row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease);
  gap: 16px;
}
.bolo-row:last-child{ border-bottom: none; }
.bolo-row:hover{ background: rgba(61, 92, 240, 0.06); }
.bolo-name-wrap{ display: flex; align-items: center; gap: 14px; min-width: 0; }
.bolo-icon{
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(111, 141, 255, 0.1);
  color: var(--blue-300);
  border: 1px solid var(--line);
}
.bolo-name{
  font-family: var(--serif); font-size: 1.06rem; color: var(--text-hi);
  white-space: nowrap;
}
.bolo-order-hint{
  display: none;
  font-size: 0.78rem; color: var(--text-low);
}
.bolo-right{ display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.bolo-price{
  font-family: var(--serif); font-weight: 600; font-size: 1.16rem;
  color: var(--blue-300);
}
.bolo-arrow{
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text-mid);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.bolo-row:hover .bolo-arrow{
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-color: transparent; color: #fff;
}

/* ---------- contact ---------- */
.contact-section{
  padding: 100px 28px;
  max-width: var(--container); margin: 0 auto;
}
.contact-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-info h2{
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin: 0 0 16px;
}
.contact-lead{
  color: var(--text-mid); font-size: 1.02rem; line-height: 1.6;
  max-width: 440px; margin: 0 0 36px;
}
.contact-list{ display: flex; flex-direction: column; gap: 22px; }
.contact-list li{ display: flex; gap: 16px; align-items: flex-start; }
.contact-icon{
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(111, 141, 255, 0.1);
  color: var(--blue-300);
  border: 1px solid var(--line);
}
.contact-label{
  display: block; font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--text-low); margin-bottom: 3px;
}
.contact-list a{
  color: var(--text-hi); font-weight: 600; font-size: 0.98rem;
  transition: color 0.25s var(--ease);
}
.contact-list a:hover{ color: var(--blue-400); }
.contact-list span{ color: var(--text-hi); font-weight: 500; font-size: 0.96rem; line-height: 1.5; }

.contact-map{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  filter: grayscale(0.35) contrast(1.05) brightness(0.92);
}

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 48px 28px 100px;
  text-align: center;
}
.footer-inner{ max-width: 500px; margin: 0 auto; }
.footer-brand{ align-items: center; margin-bottom: 14px; }
.site-footer p{ color: var(--text-low); font-size: 0.86rem; margin: 4px 0; }
.footer-copy{ margin-top: 10px; font-size: 0.78rem; }

/* ---------- floating WhatsApp button ---------- */
.fab-whats{
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #1fbf5c, #17a34c);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 14px 32px -10px rgba(23, 163, 76, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fab-whats:hover{ transform: scale(1.08); box-shadow: 0 18px 36px -8px rgba(23, 163, 76, 0.75); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (min-width: 1400px){
  .hero-title{ font-size: 5rem; }
}

@media (max-width: 1024px){
  .contact-inner{ grid-template-columns: 1fr; }
  .contact-map{ min-height: 300px; order: -1; }
}

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-mobile{ display: flex; }
  .bolo-row{ padding: 16px 20px; }
}

@media (min-width: 861px){
  .nav-mobile{ display: none !important; }
}

@media (max-width: 640px){
  .section-head{ flex-direction: column; align-items: flex-start; }
  .kit-head{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .kit-serves{ margin-top: 0; }
  .bolo-name{ white-space: normal; }
  .bolo-icon{ width: 30px; height: 30px; }
  .extra-card{ padding: 18px; }
}

@media (max-width: 520px){
  .topbar-inner{ padding: 14px 18px; }
  .hero{ padding: 96px 18px 56px; min-height: 88vh; }
  .hero-actions{ flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost{ width: 100%; }
  .hero-meta{ gap: 24px; row-gap: 16px; }
  .menu-section{ padding: 56px 18px; }
  .menu-grid{ grid-template-columns: 1fr; }
  .contact-section{ padding: 64px 18px; }
  .fab-whats{ width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .kit-order-btn span{ display: none; }
  .kit-order-btn{ padding: 0; width: 42px; }
  .bolo-row{ flex-wrap: wrap; }
  .bolo-right{ gap: 12px; }
}

@media (max-width: 380px){
  .hero-title{ font-size: 2.2rem; }
  .hero-desc{ font-size: 1rem; }
}

/* keyboard focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}
