/* ============================================================
   AMM Advogados — Identidade visual
   Azul-marinho profundo + dourado sofisticado
   ============================================================ */

:root {
  --navy-deep: #041735;
  --navy: #0a2147;
  --navy-soft: #122c57;
  --gold: #d9b385;
  --gold-dark: #c49d6c;
  --gold-soft: rgba(217, 179, 133, 0.35);
  --white: #ffffff;
  --offwhite: #f8f6f2;
  --gray-bg: #eef0f3;
  --text: #2a3342;
  --text-muted: #5d6878;
  --text-light: #c9d3e2;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow-card: 0 6px 24px rgba(4, 23, 53, 0.07);
  --shadow-card-hover: 0 14px 36px rgba(4, 23, 53, 0.13);
  --transition: 0.3s cubic-bezier(0.25, 0.6, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============ Tipografia / utilidades ============ */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.eyebrow--light { color: var(--gold); }

.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy-deep);
}

.section__title--light { color: var(--white); }

.gold-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 22px 0 26px;
}

.gold-rule--center { margin-left: auto; margin-right: auto; }

.section {
  padding: 104px 0;
}

.section--offwhite { background: var(--offwhite); }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy-deep); color: var(--text-light); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 8px 24px rgba(217, 179, 133, 0.35);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn--lg { padding: 18px 44px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--mt { margin-top: 28px; }

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.header--scrolled {
  background: rgba(4, 23, 53, 0.97);
  padding: 13px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand__monogram {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1;
}

.brand__divider {
  width: 1px;
  height: 22px;
  background: var(--gold-soft);
  align-self: center;
}

.brand__name {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 9px 22px;
  color: var(--gold);
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(18, 44, 87, 0.85) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, #06214d 60%, var(--navy-deep) 100%);
  overflow: hidden;
  padding: 140px 0 60px;
}

.hero__watermark {
  position: absolute;
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(16rem, 36vw, 30rem);
  line-height: 1;
  color: rgba(217, 179, 133, 0.04);
  user-select: none;
  pointer-events: none;
}

.hero__lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 179, 133, 0.06) 1px, transparent 1px);
  background-size: 100% 25vh;
  background-position: 0 12vh;
  pointer-events: none;
  mask-image: linear-gradient(105deg, transparent 40%, black 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 40%, black 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.06rem;
  font-weight: 300;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__figure {
  position: relative;
  justify-self: center;
  max-width: 420px;
}

.hero__figure-frame {
  position: absolute;
  inset: 8% -6% -4% 6%;
  border: 1px solid var(--gold-soft);
  border-radius: 220px 220px 0 0;
  pointer-events: none;
}

.hero__photo {
  position: relative;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============ Sobre ============ */

.sobre__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}

.sobre__photo-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.sobre__photo {
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 48px rgba(4, 23, 53, 0.18);
}

.sobre__photo-frame {
  position: absolute;
  inset: -20px 20px 20px -20px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}

.sobre__content p { margin-bottom: 18px; color: var(--text-muted); }

.sobre__highlights {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.sobre__highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--navy-deep);
}

/* check dourado */
.check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-soft);
  position: relative;
}

.check::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--gold-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============ Cards ============ */

.cards-grid {
  display: grid;
  gap: 28px;
}

.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.cards-grid--diferenciais {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--diferenciais .card:nth-child(4),
.cards-grid--diferenciais .card:nth-child(5) {
  /* centraliza a segunda linha de 2 cards */
}

.card {
  background: var(--white);
  border: 1px solid rgba(4, 23, 53, 0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-soft);
}

.card__icon {
  width: 56px;
  height: 56px;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--navy-deep);
  margin-bottom: 12px;
  line-height: 1.25;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card--minimal {
  background: var(--white);
  position: relative;
}

.card__number {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.card__number::after {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--gold);
  margin-top: 10px;
}

/* ============ Franchising ============ */

.franchising { position: relative; overflow: hidden; }

.franchising__watermark {
  position: absolute;
  right: -4%;
  bottom: -12%;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22rem;
  line-height: 1;
  color: rgba(217, 179, 133, 0.035);
  pointer-events: none;
  user-select: none;
}

.franchising .container { position: relative; }

.franchising__body {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.franchising__body p {
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 1.04rem;
}

.franchising__quote {
  position: relative;
  max-width: 740px;
  margin: 56px auto 0;
  padding: 40px 48px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--gold);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}

.franchising__quote-mark {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--navy-deep);
  padding: 0 18px;
  font-size: 3.4rem;
  line-height: 0.4;
  color: var(--gold);
  font-style: normal;
}

/* ============ Split (Franqueadoras / Franqueados) ============ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.split--reverse .split__text { order: 2; }
.split--reverse .split__list { order: 1; }

.split__text p { color: var(--text-muted); margin-bottom: 14px; }

.service-list {
  list-style: none;
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid rgba(4, 23, 53, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.section--offwhite .service-list { background: var(--white); }
#franqueados .service-list { background: var(--offwhite); }

.service-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--navy-deep);
  border-bottom: 1px solid rgba(4, 23, 53, 0.06);
  transition: background var(--transition), padding-left var(--transition);
}

.service-list li:last-child { border-bottom: none; }

.service-list li:hover {
  background: rgba(217, 179, 133, 0.08);
  padding-left: 32px;
}

/* ============ CTA ============ */

.cta {
  padding: 110px 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(18, 44, 87, 0.9) 0%, transparent 60%),
    var(--navy-deep);
  border-top: 1px solid rgba(217, 179, 133, 0.18);
  border-bottom: 1px solid rgba(217, 179, 133, 0.18);
}

.cta__inner {
  text-align: center;
  max-width: 760px;
}

.cta__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.cta__title em { font-style: italic; color: var(--gold); }

.cta__text {
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 40px;
}

/* ============ Contato ============ */

.contato__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}

.form {
  background: var(--white);
  border: 1px solid rgba(4, 23, 53, 0.06);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__field { margin-bottom: 20px; }

.form__field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  padding: 13px 16px;
  border: 1.5px solid rgba(4, 23, 53, 0.14);
  border-radius: var(--radius);
  background: var(--offwhite);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c49d6c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form__field textarea { resize: vertical; }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 179, 133, 0.2);
}

.form__feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: var(--gold-dark);
  min-height: 1.4em;
}

.contato__info {
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 44px 36px;
  color: var(--text-light);
}

.contato__info-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.contato__info-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 14px;
  margin-bottom: 16px;
}

.contato__list {
  list-style: none;
  display: grid;
  gap: 22px;
}

.contato__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contato__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold);
}

.contato__icon svg { width: 20px; height: 20px; }

.contato__list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.contato__list a,
.contato__list span:not(.contato__icon) {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contato__list a:hover { color: var(--gold); }

.contato__note {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 179, 133, 0.18);
  font-size: 0.88rem;
  font-weight: 300;
}

/* ============ Rodapé ============ */

.footer {
  background: var(--navy-deep);
  padding: 64px 0 36px;
  color: var(--text-light);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__brand { max-width: 420px; }

.brand--footer { margin-bottom: 18px; }

.footer__tagline {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-light);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: 480px;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--gold); }

.footer__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 179, 133, 0.3), transparent);
  margin: 40px 0 28px;
}

.footer__bottom { text-align: center; }

.footer__disclaimer {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(201, 211, 226, 0.65);
  max-width: 640px;
  margin: 0 auto 12px;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(201, 211, 226, 0.5);
}

.footer__credit {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(217, 179, 133, 0.55);
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--delay { transition-delay: 0.15s; }
.reveal--delay2 { transition-delay: 0.3s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============ Responsividade ============ */

@media (max-width: 1024px) {
  .section { padding: 84px 0; }

  .hero__inner { gap: 32px; }
  .hero__watermark { font-size: 20rem; }

  .sobre__grid,
  .split,
  .contato__grid {
    gap: 48px;
  }

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

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 80px 40px;
    background: var(--navy-deep);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.6, 0.3, 1);
    z-index: 99;
  }

  .nav.open { transform: translateX(0); }

  .nav__link {
    font-size: 1.05rem;
    padding: 12px 0;
    width: 100%;
  }

  .nav__link--cta {
    margin-top: 16px;
    text-align: center;
    padding: 13px 22px;
  }

  .nav-toggle { display: flex; z-index: 100; }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }

  .hero__figure { max-width: 300px; margin-top: 8px; }
  .hero__scroll { display: none; }

  .sobre__grid,
  .split,
  .contato__grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__text { order: 1; }
  .split--reverse .split__list { order: 2; }

  .sobre__media { order: 2; }
  .sobre__content { order: 1; }

  .sobre__photo-frame { inset: -14px 14px 14px -14px; }

  .form { padding: 32px 24px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer__top { flex-direction: column; gap: 32px; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }

  .cards-grid--3,
  .cards-grid--diferenciais { grid-template-columns: 1fr; }

  .hero__title { font-size: 2rem; }

  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }

  .franchising__quote { padding: 32px 20px; }
  .franchising__watermark { font-size: 12rem; }

  .brand__name { font-size: 0.72rem; letter-spacing: 0.22em; }
}
