/* ===================================================================
   AM Edificações — Landing Page
   Paleta provisória (baseada no material de marketing já em uso).
   TODO: revisar cores/tipografia quando a logo oficial for definida.
=================================================================== */

:root {
  --color-navy: #1B1E3D;
  --color-navy-light: #2A2F5C;
  --color-gold: #C9A177;
  --color-gold-dark: #B08C5F;
  --color-cream: #EFE3D1;
  --color-offwhite: #F5F3EC;
  --color-text: #22242E;
  --color-gray: #6B7280;
  --color-border: #E4E0D8;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE57;

  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(27, 30, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 30, 61, 0.12);

  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure, form { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

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

h1, h2, h3 { font-family: var(--font-heading); }

section[id] {
  scroll-margin-top: var(--header-height);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.todo-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #B45309;
  background: #FEF3C7;
  border: 1px dashed #D97706;
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-offwhite);
  color: var(--color-offwhite);
}
.btn--outline:hover { background: rgba(245, 243, 236, 0.12); }

.btn--dark {
  background: var(--color-navy);
  color: var(--color-offwhite);
}
.btn--dark:hover { background: var(--color-navy-light); transform: translateY(-1px); }

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(27, 30, 61, 0.96);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #fff;
}
.logo__badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.logo__badge--footer {
  height: 60px;
}

.nav__list {
  display: flex;
  gap: 20px;
}
.nav__link {
  color: var(--color-offwhite);
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--color-gold); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-gold);
  transition: width 0.2s ease;
}
.nav__link:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-offwhite);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 90px) 0 90px;
  background: var(--color-navy);
  overflow: hidden;
}
.hero__carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.68;
}
.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.1s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.hero__slide-blur,
.hero__slide-fg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__slide-blur {
  background-size: cover;
  filter: blur(35px) brightness(0.75) saturate(1.1);
  transform: scale(1.15);
}
.hero__slide-fg {
  background-size: contain;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(27,30,61,0.94) 0%, rgba(27,30,61,0.72) 42%, rgba(27,30,61,0.55) 100%),
    radial-gradient(circle at 85% 20%, rgba(201, 161, 119, 0.12), transparent 45%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 780px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-offwhite);
  margin-bottom: 20px;
}
.hero__rotator {
  display: inline-grid;
  vertical-align: bottom;
}
.hero__rotator-word {
  grid-area: 1 / 1;
  color: var(--color-gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero__rotator-word.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(245, 243, 236, 0.82);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--color-gold);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 28px;
  padding: 40px 20px;
  text-align: center;
}
.stats__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-navy);
}
.stats__label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}
.section--alt {
  background: var(--color-cream);
}
.section__eyebrow {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
}
.section__lead {
  max-width: 720px;
  color: var(--color-gray);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

/* ---------- Cards (Serviços) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-navy);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.card__text {
  color: var(--color-gray);
  font-size: 0.95rem;
}
.card__text + .card__text { margin-top: 10px; }
.card__text--todo {
  font-size: 0.8rem;
  font-style: italic;
  color: #B45309;
}

/* ---------- Missão / Visão / Valores ---------- */
.mvv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0 12px;
}
.mvv-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.mvv-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.mvv-item__text {
  font-size: 0.9rem;
  color: var(--color-gray);
}

@media (min-width: 760px) {
  .mvv-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 44px;
}
.diff-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diff-item__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(27, 30, 61, 0.06);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diff-item__icon svg { width: 24px; height: 24px; }
.diff-item__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-navy);
}
.diff-item__text {
  font-size: 0.92rem;
  color: var(--color-gray);
}

/* ---------- Áreas de atuação ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
.areas-region {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.areas-region__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.areas-region__icon { width: 24px; height: 24px; color: var(--color-gold-dark); }
.areas-region__header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}
.areas-region__list li {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-gray);
  font-size: 0.95rem;
}
.areas-region__list li:first-child { border-top: none; }

.areas-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
}

@media (min-width: 900px) {
  .areas-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
    align-items: stretch;
  }
}

/* ---------- Galeria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(27,30,61,0.85), transparent);
  color: var(--color-offwhite);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Contato ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contact__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-gray);
  font-size: 0.95rem;
}
.contact__list a {
  color: var(--color-navy);
  font-weight: 600;
  transition: color 0.15s ease;
}
.contact__list a:hover { color: var(--color-gold-dark); }
.contact__list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-gold-dark);
  margin-top: 2px;
}

.contact__form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}
.form__field input,
.form__field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-offwhite);
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-gold-dark);
}
.form__hint {
  font-size: 0.78rem;
  color: var(--color-gray);
  text-align: center;
}

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Trabalhe Conosco ---------- */
.work-with-us {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.work-with-us .section__lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-navy);
  color: rgba(245, 243, 236, 0.75);
  padding: 48px 0 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 243, 236, 0.12);
}
.logo--footer .logo__text { color: var(--color-offwhite); }
.footer__cnpj {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(245, 243, 236, 0.55);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__nav a { font-size: 0.9rem; }
.footer__nav a:hover { color: var(--color-gold); }
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 236, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer__social svg { width: 18px; height: 18px; }
.footer__social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}
.footer__bottom {
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
}

@media (min-width: 700px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: transform 0.15s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 1059px) {
  .header__actions .btn--whatsapp { display: none; }
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 400px; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .nav__list li { border-top: 1px solid rgba(245,243,236,0.08); }
  .nav__link { display: block; padding: 14px 0; }
}

/* ---------- Desktop tweaks ---------- */
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .diff-grid { grid-template-columns: repeat(4, 1fr); }
}
