/* =========================================================
   LUAR PRINT — estilos
   Paleta: navy #16264a · laranja #e1601c
   ========================================================= */

/* ---------- Tokens de tema ---------- */
:root {
  --brand-navy: #16264a;
  --brand-navy-2: #1e3466;
  --brand-orange: #e1601c;
  --brand-orange-2: #f2792f;

  /* claro */
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --text: #16264a;
  --text-soft: #4a5878;
  --border: #e2e7f1;
  --logo-color: #16264a;
  --shadow: 0 10px 30px rgba(22, 38, 74, 0.10);
  --shadow-sm: 0 4px 14px rgba(22, 38, 74, 0.08);
  --header-bg: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --bg-elev: #0f1a30;
  --surface: #131f38;
  --text: #eef2fb;
  --text-soft: #9fb0d0;
  --border: #21304f;
  --logo-color: #ffffff;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(11, 17, 32, 0.82);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1, h2, h3, .logo__text { font-family: 'Poppins', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: 84px 0; }

.eyebrow {
  display: inline-block;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.15; }
.section__subtitle { color: var(--text-soft); margin-top: 10px; max-width: 620px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-family: 'Poppins', sans-serif;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-2));
  color: #fff; box-shadow: 0 8px 22px rgba(225, 96, 28, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(225, 96, 28, .45); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 5px; }
.logo__mark { flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: .95; }
.logo__luar { font-weight: 800; font-size: 1.35rem; letter-spacing: 3px; color: var(--logo-color); }
.logo__print { font-weight: 600; font-size: .72rem; letter-spacing: 6px; color: var(--brand-orange); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-weight: 500; color: var(--text-soft); position: relative; transition: color .2s;
}
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand-orange); transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 1.05rem; line-height: 1;
  display: grid; place-items: center; transition: transform .2s, border-color .2s;
}
.theme-toggle:hover { transform: rotate(-15deg); border-color: var(--brand-orange); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; border-radius: 2px; background: var(--text); transition: .3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero / Slider ---------- */
.hero { padding: 24px 0 0; }
.slider {
  position: relative; width: min(1300px, 100%); margin-inline: auto; overflow: hidden;
  aspect-ratio: 16 / 7;
}
.slider__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slider__slide { min-width: 100%; height: 100%; position: relative; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15, 26, 48, .55); color: #fff; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .2s;
}
.slider__arrow:hover { background: var(--brand-orange); }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }

.slider__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.slider__dot {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); transition: all .25s;
}
.slider__dot.is-active { background: var(--brand-orange); width: 28px; border-radius: 6px; }

/* ---------- Sobre ---------- */
.sobre { text-align: center; }
.sobre__text { max-width: 720px; margin: 18px auto 0; color: var(--text-soft); font-size: 1.08rem; }
.sobre__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: 'Poppins'; font-weight: 800; font-size: 2.2rem; color: var(--brand-orange); }
.stat__label { color: var(--text-soft); font-size: .92rem; }

/* ---------- Produtos ---------- */
.produtos__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-orange); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 12px; left: 12px; background: rgba(15,26,48,.7); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
/* Carrossel do card */
.card__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; border-radius: 999px;
  background: rgba(15,26,48,.62); color: #fff; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  opacity: 0; transition: opacity .2s ease, background .2s ease; backdrop-filter: blur(4px);
}
.card__nav--prev { left: 10px; }
.card__nav--next { right: 10px; }
.card__nav:hover { background: var(--brand-orange); }
.card:hover .card__nav, .card:focus-within .card__nav { opacity: 1; }
.card__dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.card__dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.5); transition: background .2s, width .2s; }
.card__dot.is-active { background: var(--brand-orange); width: 16px; }
/* Em telas de toque, mantém as setas sempre visíveis */
@media (hover: none) {
  .card__nav { opacity: 1; background: rgba(15,26,48,.5); }
}

.card__body { padding: 14px 16px 18px; }
.card__title { font-size: 1.05rem; font-weight: 700; }
.card__price { color: var(--text-soft); font-size: .85rem; margin-top: 4px; }
.card__price b { color: var(--brand-orange); }

/* ---------- Depoimentos ---------- */
.depoimentos { background: var(--bg-elev); text-align: center; }
.rating { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 26px 0 40px; }
.rating__num { font-family: 'Poppins'; font-weight: 800; font-size: 3rem; color: var(--brand-orange); line-height: 1; }
.rating__stars {
  font-size: 1.7rem; line-height: 1; letter-spacing: 2px; display: inline-block;
  /* preenchimento proporcional à nota via --pct (ex.: 4,8/5 = 96%) */
  background: linear-gradient(90deg, var(--brand-orange) var(--pct, 96%), var(--border) var(--pct, 96%));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.rating__of { color: var(--text-soft); font-size: .9rem; }
.depoimentos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.depo {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.depo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-bottom: 1px solid var(--border); }
.depo__body { padding: 16px; }
.depo__stars { color: var(--brand-orange); letter-spacing: 2px; }
.depo__name { font-weight: 700; margin-top: 6px; }
.depo__text { color: var(--text-soft); font-size: .92rem; margin-top: 4px; }

/* ---------- Encomenda ---------- */
.encomenda__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.encomenda__contacts { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.encomenda__contacts li { color: var(--text-soft); font-size: 1.02rem; }

.form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field > span { font-weight: 600; font-size: .9rem; }
.form__field input, .form__field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(225,96,28,.15);
}
.form__field textarea { resize: vertical; }
.form__file small { color: var(--text-soft); font-size: .8rem; }
.form__file input { padding: 10px; }
.form__submit { margin-top: 4px; }
.form__note { font-size: .78rem; color: var(--text-soft); text-align: center; }

/* ---------- Rodapé ---------- */
.footer { background: var(--brand-navy); color: #dfe6f5; padding-top: 54px; }
html[data-theme="dark"] .footer { background: #0a1020; }
.footer a { color: #dfe6f5; transition: color .2s; }
.footer a:hover { color: var(--brand-orange); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.footer__brand .logo__mark path[fill="var(--logo-color)"], .footer__brand .logo__mark rect { fill: #fff; }
.footer__col h3 { font-size: 1rem; margin-bottom: 12px; color: #fff; }
.footer__col p { margin-bottom: 6px; font-size: .95rem; }
.footer__social { display: flex; flex-direction: column; gap: 10px; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .85rem; color: #aab6d0; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.5);
  animation: waPulse 2.4s infinite; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(6,10,20,.72); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1; width: min(920px, 92%); max-height: 90vh; overflow: auto;
  margin: 5vh auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(15,26,48,.6); color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal__close:hover { background: var(--brand-orange); }
.modal__gallery { padding: 18px; }
.modal__img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 14px; background: rgba(127,127,127,.08); }
.modal__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.modal__thumbs img {
  width: 64px; height: 52px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: .7; transition: .2s;
}
.modal__thumbs img.is-active, .modal__thumbs img:hover { opacity: 1; border-color: var(--brand-orange); }
.modal__info { padding: 34px 30px; display: flex; flex-direction: column; }
.modal__title { font-size: 1.6rem; font-weight: 800; }
.modal__desc { color: var(--text-soft); margin-top: 10px; }
.modal__variacao { margin-top: 14px; font-weight: 700; font-size: 1.05rem; color: var(--brand-orange); display: flex; align-items: center; gap: 8px; }
.modal__variacao::before { content: "●"; font-size: .7rem; }
.modal__price { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; }
.modal__price-label { color: var(--text-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.modal__price-value { font-family: 'Poppins'; font-weight: 800; font-size: 2rem; color: var(--brand-orange); }
.modal__cta { margin-top: 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .produtos__grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos__grid { grid-template-columns: 1fr; }
  .encomenda__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .modal__box { grid-template-columns: 1fr; }

  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 10px 0; transform: translateY(-120%); transition: transform .3s ease; align-items: stretch;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 24px; }
  .nav__link::after { display: none; }
  .theme-toggle { margin: 10px 24px; width: fit-content; padding: 0 14px; border-radius: 999px; gap: 8px; }
  .hamburger { display: flex; }
}
@media (max-width: 540px) {
  .produtos__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .slider { aspect-ratio: 4 / 3; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .slider__track { transition: none; }
}
