/* ============================================================
   CASA DA PICANHA PENEDO - Stylesheet
   Premium steakhouse website
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --red: #C23137;
  --red-deep: #9E2429;
  --black: #0A0A0A;
  --black-soft: #141414;
  --cream: #F3EFE9;
  --cream-2: #ECE7DF;
  --neutral-700: #2B2B2B;
  --neutral-500: #6E6E6E;
  --neutral-300: #C9C2B8;
  --white: #FFFFFF;

  --font-display: "Cinzel", "Felix Titling", "Trajan Pro", serif;
  --font-body: "Manrope", "Finder", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1320px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(72px, 9vw, 140px);

  --nav-h: 120px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--neutral-700);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 64px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--red);
}
.section-title.on-dark { color: var(--white); }
.section-title.on-red  { color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
section {
  position: relative;
  padding-block: var(--section-y);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.--scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.nav__logo {
  flex-shrink: 0;
  display: block;
  width: 200px;
  aspect-ratio: 595 / 419;
}
.nav__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 44px);
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding-block: 6px;
  text-align: center;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); }

.btn-delivery {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 14px 28px;
  border-radius: 4px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-delivery:hover { background: var(--red-deep); transform: translateY(-1px); }

.nav__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__social {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav__social:hover { background: var(--red); transform: translateY(-2px); }
.nav__social svg, .nav__social img { width: 16px; height: 16px; }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav__burger span {
  width: 26px; height: 2px; background: var(--black);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.--open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.--open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: #000;
  color: var(--white);
  padding-top: var(--nav-h);
  padding-bottom: 0;
  overflow: hidden;
  display: block;
}
.hero__picture {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}
.hero__picture img {
  width: 100%;
  height: auto;
  display: block;
  /* Match underlying black so any rounding gap is invisible */
  background: #000;
}
.hero__scroll-anchor {
  position: absolute;
  inset: auto 0 0 0;
  pointer-events: none;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(.4); transform-origin: top; }
  50%      { transform: scaleY(1);  transform-origin: top; }
}

/* ============================================================
   QUEM SOMOS
   ============================================================ */
.about {
  background: var(--cream);
  color: var(--neutral-700);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__title {
  margin-bottom: 36px;
}
.about__lead {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 28px;
}
.about__text p { margin-bottom: 18px; }
.about__text strong { color: var(--black); font-weight: 700; }

.about__features {
  list-style: none;
  margin-top: 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about__features li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
  color: var(--black);
}
.about__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 14px; height: 1px;
  background: var(--red);
}

.about__media {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
}
.about__media image-slot { width: 100%; height: 100%; }

.about__sign {
  margin: clamp(56px, 7vw, 96px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  color: var(--red);
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 500;
  text-wrap: balance;
  position: relative;
  padding-top: clamp(40px, 5vw, 72px);
}
.about__sign::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 1px;
  background: var(--red);
}
.about__sign em {
  font-style: normal;
  display: block;
  color: var(--black);
  font-size: 1.18em;
  margin-top: .15em;
}

/* ============================================================
   UNIDADES
   ============================================================ */
.units {
  background: var(--red);
  color: var(--white);
  text-align: center;
}
.units__intro {
  max-width: 820px;
  margin: 28px auto 56px;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  font-weight: 600;
}
.units__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
  text-align: left;
}
.unit-card {
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.unit-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.45); }
.unit-card__media {
  aspect-ratio: 16 / 10;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.unit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.unit-card:hover .unit-card__media img { transform: scale(1.04); }
.unit-card__body {
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.unit-card__tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.unit-card__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.unit-card__addr {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}
.unit-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.unit-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.unit-btn:hover { background: var(--white); color: var(--red); border-color: var(--white); }
.unit-btn svg { width: 16px; height: 16px; }
.unit-btn.--primary { background: var(--black); border-color: var(--black); }
.unit-btn.--primary:hover { background: var(--white); color: var(--black); }

/* ============================================================
   CARDÁPIO
   ============================================================ */
.menu {
  background: var(--cream);
  text-align: center;
}
.menu__title { margin-bottom: 24px; }
.menu__text {
  max-width: 720px;
  margin: 0 auto 44px;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.6;
  color: var(--neutral-700);
}
.menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.menu__cta:hover { background: var(--black); transform: translateY(-2px); }
.menu__cta svg { width: 18px; height: 18px; }

.menu__divider {
  margin: 64px auto 0;
  width: 60px; height: 1px;
  background: var(--red);
}

/* ============================================================
   RESERVAS
   ============================================================ */
.reservas {
  background: var(--black);
  color: var(--white);
}
.reservas__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  margin-top: 48px;
}
.reservas__lead {
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 40px;
}
.reservas__phone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.reservas__phone svg { width: 22px; height: 22px; color: var(--red); }
.reservas__phone-text { display: flex; flex-direction: column; }
.reservas__phone-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.reservas__phone-number {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.04em;
}
.reservas__block { margin-bottom: 32px; }
.reservas__block h3 {
  color: var(--red);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.reservas__block ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}
.reservas__block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.reservas__cta-wrap {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.reservas__cta-wrap .unit-btn { flex: 0 0 auto; min-width: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 72px 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__logo {
  width: 220px; height: auto;
  margin-bottom: 22px;
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col p, .footer__col a {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  transition: color .25s var(--ease);
}
.footer__col a:hover { color: var(--red); }
.footer__col strong { color: var(--white); font-weight: 600; display: block; margin-bottom: 4px; }
.footer__col + .footer__col p { margin-bottom: 18px; }

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer__social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.footer__social:hover { background: var(--red); border-color: var(--red); }
.footer__social svg, .footer__social img { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   WHATSAPP FLOATING
   ============================================================ */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37,211,102,0.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 16px 36px rgba(37,211,102,0.6); }
.wa-float svg { width: 28px; height: 28px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
}

/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.--in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   IMAGE SLOT PLACEHOLDER STYLE
   ============================================================ */
.nav__social, .footer__social {
  color: var(--white);
}
.nav__social img, .footer__social img {
  /* Force SVG to render in white regardless of internal styles */
  filter: brightness(0) invert(1);
  transition: filter .25s var(--ease);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  :root { --nav-h: 96px; }

  .nav__logo { width: 150px; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--pad-x) 40px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav.--open .nav__links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 16px;
  }
  .nav__link::after { display: none; }
  .btn-delivery {
    text-align: center;
    margin: 18px 0 8px;
    padding: 16px 28px;
  }
  .nav__socials { justify-content: flex-start; padding-top: 12px; gap: 14px; }
  .nav__burger { display: flex; }

  .hero { padding-top: var(--nav-h); }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { position: relative; top: 0; order: -1; aspect-ratio: 4/3; }

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

  .reservas__grid { grid-template-columns: 1fr; gap: 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }

  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .unit-card__actions { flex-direction: column; }
  .unit-btn { width: 100%; }
}

/* ============================================================
   PRINT / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
