/* ===== Variáveis ===== */
:root {
  --cream: #f7f2ea;
  --cream-dark: #ece2d0;
  --terracota: #b3703f;
  --terracota-dark: #8f5730;
  --ink: #2b241d;
  --ink-soft: #6b6155;
  --white: #ffffff;
  --gold: #c9a15a;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Jost', sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

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

section { scroll-margin-top: 90px; }

/* ===== Tipografia utilitária ===== */
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--terracota-dark);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.eyebrow--light { color: var(--gold); }
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 24px;
}
.section-title--light { color: var(--white); }

.servicos .section-title,
.portfolio .section-title,
.depoimentos > .container > .section-title,
.blog .section-title { text-align: left; }

.depoimentos .section-title, .servicos > .container > .section-title, .blog > .container > .section-title {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.link-arrow {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--terracota-dark);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
  white-space: nowrap;
}
.link-arrow:hover { border-color: var(--terracota-dark); }

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--terracota); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--center { display: block; width: fit-content; margin: 48px auto 0; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.header.is-scrolled {
  background: rgba(247, 242, 234, 0.96);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--white);
  font-weight: 500;
  transition: color .35s ease;
}
.header.is-scrolled .logo { color: var(--ink); }
.logo span { color: var(--gold); }
.logo--footer { color: var(--ink); }

.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .35s ease, opacity .2s ease;
  opacity: 0.9;
}
.nav a:hover { opacity: 1; }
.header.is-scrolled .nav a { color: var(--ink); }
.nav__cta {
  border: 1px solid rgba(255,255,255,0.6);
  padding: 9px 18px;
}
.header.is-scrolled .nav__cta { border-color: var(--ink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.menu-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: all .3s ease;
}
.header.is-scrolled .menu-toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,36,29,0.55) 0%, rgba(43,36,29,0.35) 45%, rgba(43,36,29,0.65) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero__lede {
  font-size: 17px;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.9);
}
.hero__dots {
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.hero__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  transition: background .3s ease;
}
.hero__dots button.is-active { background: var(--gold); border-color: var(--gold); }

/* ===== Sobre ===== */
.sobre { padding: 130px 0 100px; }
.sobre__grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 70px;
  align-items: center;
}
.sobre__img img { border-radius: 2px; }
.sobre__texto h2 { margin-bottom: 22px; }
.sobre__texto p { color: var(--ink-soft); margin-bottom: 16px; font-size: 15.5px; }
.sobre__texto .link-arrow { display: inline-block; margin-top: 10px; }

/* ===== Serviços ===== */
.servicos { padding: 100px 0; background: var(--cream-dark); }
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.servico__num {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.servico h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}
.servico p { color: var(--ink-soft); font-size: 14.5px; }

/* ===== Portfólio ===== */
.portfolio { padding: 110px 0; }
.portfolio__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 24px;
  flex-wrap: wrap;
}
.portfolio__head .section-title { margin-bottom: 0; }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio__item { position: relative; overflow: hidden; border-radius: 2px; display: block; }
.portfolio__item img {
  width: 100%; height: 340px; object-fit: cover;
  transition: transform .6s ease;
}
.portfolio__item:hover img { transform: scale(1.08); }
.portfolio__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(20,16,12,0.75), transparent);
  color: var(--white);
}
.portfolio__info h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 500; }
.portfolio__info span { font-size: 12px; letter-spacing: 0.06em; opacity: 0.85; }

/* ===== Processo ===== */
.processo { padding: 100px 0; background: var(--cream-dark); }
.processo__grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.processo__texto p { color: var(--ink-soft); margin-bottom: 28px; font-size: 15.5px; }
.processo__img img { border-radius: 2px; }

/* ===== Depoimentos ===== */
.depoimentos { padding: 110px 0; }
.depoimentos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.depoimento {
  background: var(--white);
  padding: 36px 30px;
  border-radius: 2px;
  border-top: 2px solid var(--terracota);
}
.depoimento p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.55;
  margin-bottom: 20px;
  color: var(--ink);
}
.depoimento cite { font-size: 12.5px; letter-spacing: 0.05em; color: var(--ink-soft); font-style: normal; }

/* ===== Blog ===== */
.blog { padding: 110px 0; background: var(--cream-dark); }
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}
.blog__card img { height: 210px; width: 100%; object-fit: cover; border-radius: 2px; margin-bottom: 20px; }
.blog__data { font-size: 12px; color: var(--terracota-dark); letter-spacing: 0.05em; }
.blog__body h3 {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 500;
  margin: 10px 0 14px;
  line-height: 1.35;
}

/* ===== Instagram ===== */
.instagram { padding: 110px 0; text-align: center; }
.instagram__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.instagram__grid img { width: 100%; height: 150px; object-fit: cover; }

/* ===== Contato ===== */
.contato { padding: 120px 0; background: var(--ink); color: var(--white); }
.contato__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.contato__lede { color: rgba(255,255,255,0.75); font-size: 15.5px; margin-bottom: 40px; max-width: 420px; }
.contato__info { display: flex; flex-direction: column; gap: 18px; }
.contato__info li { display: flex; flex-direction: column; gap: 4px; }
.contato__info strong { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.contato__info span { font-size: 15px; }

.contato__form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 12.5px; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); }
.form-row input, .form-row textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 13px 14px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14.5px;
  border-radius: 2px;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.contato__form .btn { margin-top: 8px; }
.form-success {
  display: none;
  font-size: 13.5px;
  color: var(--gold);
  margin-top: 4px;
}
.form-success.is-visible { display: block; }

/* ===== Footer ===== */
.footer { padding: 40px 0; background: var(--cream-dark); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__nav { display: flex; gap: 26px; }
.footer__nav a { font-size: 13px; color: var(--ink-soft); }
.footer__copy { font-size: 12.5px; color: var(--ink-soft); }

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 150;
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .sobre__grid, .processo__grid, .contato__grid { grid-template-columns: 1fr; gap: 44px; }
  .processo__img { order: -1; }
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid, .depoimentos__grid, .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .instagram__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%; height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right .4s ease;
  }
  .nav.is-open { right: 0; }
  .nav a { color: var(--white); font-size: 16px; }
  .nav__cta { align-self: flex-start; margin-left: 4px; }
  .menu-toggle { display: flex; }
  .header.is-scrolled .menu-toggle span,
  .menu-toggle span { background: var(--white); }
  .header:not(.is-scrolled) .menu-toggle span { background: var(--white); }

  .servicos__grid, .portfolio__grid, .depoimentos__grid, .blog__grid { grid-template-columns: 1fr; }
  .instagram__grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio__head { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; text-align: center; }
}
