/* ==========================================================================
   NOBILE CHAIRS — style.css
   Paleta: #E7D398 (areia dourada) · #9C6F57 (madeira) · #FFFFFF · #404040
   Tipografia: Marcellus (títulos) · Archivo (texto)
   ========================================================================== */

:root {
  --gold: #E7D398;
  --gold-deep: #cbb26e;
  --wood: #9C6F57;
  --wood-dark: #7d5743;
  --ink: #404040;
  --ink-deep: #33302b;
  --ink-soft: #6f6b64;
  --white: #ffffff;
  --cream: #F7F2E6;
  --hairline: #e3dcc9;

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { font-weight: 500; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Tipografia de seção ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tinted { background: var(--cream); }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 1.2rem;
}
.section__eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}
.section__eyebrow--light { color: var(--gold); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  line-height: 1.22;
  letter-spacing: .005em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  max-width: 24ch;
  text-wrap: balance;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.section__head .section__title { margin-bottom: 0; }
.section__lead {
  max-width: 380px;
  color: var(--ink-soft);
  padding-bottom: .4rem;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}
.btn--primary:hover { background: var(--gold-deep); }

.btn--outline {
  border-color: currentColor;
  padding: .7rem 1.4rem;
  font-size: .72rem;
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 1.2rem 0;
  transition: background-color .4s, box-shadow .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
  padding: .8rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.logo__img {
  height: 52px;
  width: auto;
  transition: height .4s;
}
.header.is-scrolled .logo__img { height: 42px; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
}
.nav__link {
  position: relative;
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  padding: .3rem 0;
  transition: color .4s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header.is-scrolled .nav__link { color: var(--ink); }
.header.is-scrolled .nav__link::after { background: var(--wood); }

.header__cta { color: var(--white); border-color: rgba(255,255,255,.55); }
.header__cta:hover { border-color: var(--gold); color: var(--gold); }
.header.is-scrolled .header__cta { color: var(--wood); border-color: var(--wood); }
.header.is-scrolled .header__cta:hover { background: var(--wood); color: var(--white); }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.header__burger span {
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .3s, background-color .4s;
}
.header.is-scrolled .header__burger span,
.header.menu-open .header__burger span { background: var(--ink); }
.header.menu-open .header__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header.menu-open .header__burger span:nth-child(2) { opacity: 0; }
.header.menu-open .header__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: -8% 0; z-index: -2; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 12s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(75deg, rgba(43, 34, 27, .84) 8%, rgba(43, 34, 27, .48) 52%, rgba(43, 34, 27, .22) 100%);
}

.hero__content { padding: 8rem 0 6rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.16;
  letter-spacing: .005em;
  max-width: 16ch;
}

.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards;
}
.hero__title .line:nth-child(1) span { animation-delay: .15s; }
.hero__title .line:nth-child(2) span { animation-delay: .3s; }
.hero__title .line:nth-child(3) span { animation-delay: .45s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__sub {
  max-width: 46ch;
  margin-top: 1.7rem;
  font-size: 1.04rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ---------- Faixa marquee ---------- */

.marquee {
  background: var(--ink-deep);
  color: var(--gold);
  overflow: hidden;
  padding: 1.05rem 0;
  border-block: 1px solid rgba(231, 211, 152, .25);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; font-size: .6rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   3. SOBRE
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about__media { position: relative; }

.about__img { overflow: hidden; }
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.about__img:hover img { transform: scale(1.04); }

.about__img--main { aspect-ratio: 4 / 5; }
.about__img--detail {
  position: absolute;
  right: -12%;
  bottom: -10%;
  width: 52%;
  aspect-ratio: 1;
  border: 8px solid var(--white);
}

.about__badge {
  position: absolute;
  top: -1.2rem;
  left: -1.2rem;
  background: var(--ink-deep);
  color: var(--gold);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.about__badge strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}
.about__badge small {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.about__text > p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 58ch; }

.about__pillars {
  display: grid;
  gap: 0;
  margin: 2rem 0 2.4rem;
}
.about__pillars li {
  border-top: 1px solid var(--hairline);
  padding: 1.1rem 0;
}
.about__pillars li:last-child { border-bottom: 1px solid var(--hairline); }
.about__pillars h3 {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: .3rem;
}
.about__pillars p { font-size: .95rem; color: var(--ink-soft); }

/* ==========================================================================
   4. SERVIÇOS
   ========================================================================== */

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

.service__img {
  aspect-ratio: 4 / 3;
  background: #e9e2d2;
}

/* ---------- Slider genérico (crossfade) ---------- */
.slider { position: relative; overflow: hidden; }
.slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 5s ease-out;
  will-change: opacity, transform;
}
.slider .slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* indicadores de progresso */
.slider__dots {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: .4rem;
}
.slider__dots button {
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .4);
  transition: background-color .3s;
}
.slider__dots button.is-active { background: var(--gold); }

.service__body {
  padding: 1.4rem 0 0;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.6rem;
}
.service__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.service__body p { font-size: .95rem; color: var(--ink-soft); }

.services__note {
  margin-top: 3rem;
  color: var(--ink-soft);
}
.services__note a {
  color: var(--wood);
  font-weight: 500;
  border-bottom: 1px solid var(--wood);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.services__note a:hover { color: var(--wood-dark); }

/* ==========================================================================
   5. DIFERENCIAIS
   ========================================================================== */

.difference {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .82);
}
.difference .section__title { color: var(--white); }

.difference__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.difference__head .section__title { margin-bottom: 0; }
.difference__lead {
  max-width: 400px;
  color: rgba(255, 255, 255, .65);
  padding-bottom: .3rem;
}

.difference__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 2.8rem;
}
.difference__item {
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 1.3rem;
}
.difference__item h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: .45rem;
}
.difference__item p {
  font-size: .93rem;
  color: rgba(255, 255, 255, .66);
}

.difference__banner {
  margin-top: 4rem;
}
.difference__banner-media {
  aspect-ratio: 21 / 7;
  background: #2b2823;
}
.difference__banner figcaption {
  margin-top: .8rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   6. CONTATO
   ========================================================================== */

.contact__head { margin-bottom: 3rem; }
.contact__head .section__title { margin-bottom: 0; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: start;
}

.contact__intro {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.contact__details > div {
  border-top: 1px solid var(--hairline);
  padding: 1.15rem 0;
}
.contact__details > div:last-child { border-bottom: 1px solid var(--hairline); }
.contact__details dt {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: .25rem;
}
.contact__details dd {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.9;
}
.contact__details a { transition: color .3s; }
.contact__details a:hover { color: var(--wood); }

.contact__map {
  position: relative;
  align-self: stretch;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(.35) contrast(.95);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding: 4.5rem 0 3.5rem;
}

.header__logo--footer .logo__img { height: 72px; }

.footer__brand p { margin-top: 1.3rem; font-size: .93rem; }

.footer__social {
  display: flex;
  gap: .7rem;
  margin-top: 1.5rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--gold);
  transition: border-color .3s, color .3s;
}
.footer__social a:hover { border-color: var(--gold); }

.footer h4 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer__nav ul, .footer__contact ul { display: grid; gap: .6rem; }
.footer__nav a, .footer__contact a {
  font-size: .93rem;
  transition: color .3s;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact li { font-size: .93rem; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.3rem 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  transition: opacity .3s;
}
.footer__credit:hover { opacity: .8; }
.footer__credit span {
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}
.footer__credit img {
  height: 44px;
  width: auto;
}

/* ---------- WhatsApp flutuante ---------- */

.whats-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6);
  transition: transform .35s var(--ease);
}
.whats-float:hover { transform: scale(1.07); }

/* ==========================================================================
   Animações de scroll (reveal)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line span { transform: none; }
}

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

@media (max-width: 1024px) {
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .about__media { max-width: 480px; margin-inline: auto; }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .difference__items { grid-template-columns: 1fr 1fr; }

  .section__head,
  .difference__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 720px) {
  .header__nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
  }
  .header.menu-open .header__nav {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }
  .nav__link { color: var(--ink) !important; font-size: .95rem; }
  .header__cta { border-color: var(--wood); color: var(--wood); }
  .header__burger { display: flex; }
  .header.menu-open { background: var(--white); }
  .logo__img { height: 44px; }
  .header.is-scrolled .logo__img { height: 38px; }

  .hero__title { font-size: clamp(2rem, 8.6vw, 2.5rem); }
  .hero__actions .btn,
  .about__text .btn,
  .btn--primary { width: 100%; }

  .services__grid { grid-template-columns: 1fr; }
  .difference__items { grid-template-columns: 1fr; gap: 1.8rem; }
  .difference__banner-media { aspect-ratio: 16 / 9; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .contact__form .btn { width: 100%; }

  .about__img--detail { right: -4%; }
  .about__badge { left: -.6rem; top: -1rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; padding: 3.2rem 0 2.6rem; }
  .footer__bottom-inner { justify-content: flex-start; text-align: left; }
}
