/* ==========================================================================
   LRB Esquadrias de Alumínio — Landing Page
   ========================================================================== */

:root {
  /* Cores */
  --navy: #011534;
  --navy-800: #062248;
  --navy-700: #0d305e;
  --navy-100: #dbe4f0;
  --accent: #f97316;
  --accent-hover: #ea6a0c;
  --whatsapp: #25d366;
  --whatsapp-hover: #1eb955;
  --silver: #e6e6e6;
  --bg-light: #f6f8fb;
  --white: #ffffff;
  --text: #1f2937;
  --text-muted: #5b6676;
  --text-on-dark: #c9d4e5;

  /* Tipografia */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Diversos */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 21, 52, 0.10);
  --shadow-lg: 0 18px 50px rgba(1, 21, 52, 0.18);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section--muted { background: var(--bg-light); }
.section--dark { background: var(--navy); }
.section--dark h2 { color: var(--white); }
.section--dark p { color: var(--text-on-dark); }

.section__head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section__head p { color: var(--text-muted); margin-top: .75rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.eyebrow--light { color: #ffb377; }
.eyebrow--accent { color: var(--accent); }

.text-accent { color: var(--accent); }

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .35);
}
.btn--whatsapp:hover { background: var(--whatsapp-hover); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(249, 115, 22, .35);
}
.btn--accent:hover { background: var(--accent-hover); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  background: #010e24;
  font-size: .82rem;
  color: var(--text-on-dark);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .45rem;
  padding-bottom: .45rem;
}
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item svg { color: var(--accent); flex-shrink: 0; }
.topbar__wa {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: #6ee7a0;
}
.topbar__wa svg { flex-shrink: 0; }
.topbar__wa:hover { color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-800);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.logo { display: inline-flex; align-items: center; }
.logo__img {
  height: 72px;
  width: auto;
  display: block;
}
.logo__img--footer { height: 84px; }

.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a {
  color: var(--text-on-dark);
  font-size: .92rem;
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: #fff; border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .4rem;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.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(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(249, 115, 22, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(13, 48, 94, .9), transparent 60%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__sub {
  color: #e4ebf5;
  font-size: 1.06rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.9rem; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: .88rem;
  color: #e4ebf5;
}
.hero__badges li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__badges svg { color: var(--accent); }
.hero__art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}

/* ==========================================================================
   Serviços
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid #e8ecf2;
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .8rem; }
.card__list { flex: 1; display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.card__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .93rem;
  color: var(--text-muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: .55rem;
  height: .55rem;
  border-radius: 2px;
  background: var(--accent);
}
.card__cta {
  font-weight: 700;
  font-size: .92rem;
  color: var(--accent);
  transition: color .15s ease;
}
.card__cta:hover { color: var(--accent-hover); }

.card--highlight {
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  border: 0;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}
.card--highlight h3 { color: #fff; }
.card--highlight p { color: var(--text-on-dark); font-size: .95rem; }
.card--highlight .btn { align-self: flex-start; }

/* ==========================================================================
   Galeria "Nosso trabalho"
   ========================================================================== */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem .9rem .8rem;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(1, 21, 52, .9), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption { opacity: 1; transform: none; }
.gallery__cta { text-align: center; margin-top: 2.6rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(1, 10, 26, .92);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lightbox__close:hover { background: var(--accent); }

/* ==========================================================================
   Destaque Fachadas (B2B)
   ========================================================================== */

.feature__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 3.5rem;
}
.feature__content p { margin-bottom: 1.4rem; }
.feature__list { display: grid; gap: .6rem; margin-bottom: 1.8rem; }
.feature__list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-on-dark);
  font-size: .97rem;
}
.feature__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.feature__art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Como funciona
   ========================================================================== */

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.steps__item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  position: relative;
}
.steps__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(249, 115, 22, .35);
}
.steps__item h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.steps__item p { font-size: .92rem; color: var(--text-muted); }
.steps__cta { text-align: center; margin-top: 2.6rem; }

/* ==========================================================================
   Por que a LRB
   ========================================================================== */

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.why__item .card__icon { margin: 0 auto 1rem; }
.why__item h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.why__item p { font-size: .9rem; color: var(--text-muted); }

/* ==========================================================================
   Depoimentos
   ========================================================================== */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  border: 1px solid #e8ecf2;
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.testimonial__stars { color: var(--accent); letter-spacing: .15em; font-size: 1.05rem; }
.testimonial blockquote {
  font-size: .96rem;
  color: var(--text);
  flex: 1;
}
.testimonial figcaption { display: grid; font-size: .86rem; }
.testimonial figcaption strong { color: var(--navy); }
.testimonial figcaption span { color: var(--text-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__container { max-width: 820px; }
.faq__list { display: grid; gap: .8rem; }
.faq__item {
  background: var(--white);
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ==========================================================================
   Contato / CTA final
   ========================================================================== */

.contact {
  background:
    radial-gradient(800px 460px at 110% 0%, rgba(249, 115, 22, .14), transparent 60%),
    var(--navy);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact__info h2 { margin-bottom: .9rem; }
.contact__info > p { margin-bottom: 1.6rem; }
.contact__list { display: grid; gap: .9rem; }
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--text-on-dark);
  font-size: .96rem;
}
.contact__list svg { color: var(--accent); flex-shrink: 0; margin-top: .2rem; }
.contact__list a:hover { color: #fff; }

.contact__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.contact__card-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .12);
  color: var(--whatsapp);
  margin-bottom: 1.2rem;
}
.contact__card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.contact__card p { color: var(--text-muted) !important; margin-bottom: 1.6rem; }
.contact__card .btn { margin-bottom: 1.1rem; }
.contact__card-note {
  display: block;
  font-size: .85rem;
  color: var(--text-muted) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #010e24;
  color: var(--text-on-dark);
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}
.footer__brand p { margin: 1rem 0 1.4rem; max-width: 34ch; }
.footer__wa { font-size: .9rem; padding: .7rem 1.3rem; }
.footer__col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.2rem 0;
  font-size: .82rem;
  text-align: center;
}

/* ==========================================================================
   Botão flutuante WhatsApp
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .15s ease, background-color .15s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); background: var(--whatsapp-hover); }

@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Animações de entrada
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 3.5rem 0; }

  .topbar__item--address { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-800);
    padding: .5rem 1.25rem 1rem;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .3);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav-toggle { display: flex; }
  .header__cta { margin-left: auto; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .hero__art { max-width: 440px; }
  .hero__art img { aspect-ratio: 4 / 3; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .feature__inner, .contact__inner { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 560px) {
  .services__grid, .steps__grid, .why__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }

  .header__cta { padding: .6rem 1rem; font-size: .85rem; }
  .hero__actions .btn { width: 100%; }

  .wa-float { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
}
