/* Freitas Oliveira - Advocacia Imobiliaria */

:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-alt: #f6f4f1;
  --text: #003020;
  --text-muted: rgba(0, 48, 32, 0.72);
  --cream: #e3d8c5;
  --cream-muted: rgba(227, 216, 197, 0.78);
  --copper: #d87020;
  --copper-hover: #e8832f;
  --copper-soft: rgba(216, 112, 32, 0.16);
  --green: #003020;
  --green-mid: #0a3d2c;
  --green-hover: #014530;
  --line: rgba(0, 48, 32, 0.12);
  --line-light: rgba(227, 216, 197, 0.18);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 48, 32, 0.10);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1100px;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--copper);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: min(220px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--copper);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 48, 32, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-hover);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(216, 112, 32, 0.55);
  background: var(--copper-soft);
}

.btn-accent {
  background: var(--copper);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(216, 112, 32, 0.28);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--copper-hover);
}

.btn-ghost-light {
  border-color: var(--line-light);
  color: var(--cream);
  background: transparent;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  border-color: rgba(216, 112, 32, 0.65);
  background: var(--copper-soft);
  color: #ffffff;
}

/* Bands */
.band-green-wrap {
  background: var(--green);
  color: var(--cream);
  background-image:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(216, 112, 32, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(227, 216, 197, 0.06), transparent 50%);
}

.band-green-wrap .eyebrow {
  color: var(--copper);
}

.band-green-wrap h1,
.band-green-wrap h2,
.band-green-wrap h3,
.band-green-wrap .stat h2,
.band-green-wrap .service-card h3,
.band-green-wrap .about-name,
.band-green-wrap .location-city,
.band-green-wrap .contact-value {
  color: var(--cream);
}

.band-green-wrap .lead,
.band-green-wrap .section-head p,
.band-green-wrap .stat p,
.band-green-wrap .service-card p,
.band-green-wrap .section-note,
.band-green-wrap .about-copy p,
.band-green-wrap .about-points li {
  color: var(--cream-muted);
}

.band-green-wrap .about-photo-caption .about-name,
.band-green-wrap .about-photo-caption .about-role {
  color: var(--cream);
}

.band-green-wrap .stat,
.band-green-wrap .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-light);
}

.band-green-wrap .stat:hover,
.band-green-wrap .service-card:hover {
  background: rgba(216, 112, 32, 0.12);
  border-color: rgba(216, 112, 32, 0.45);
}

.band-green-wrap .service-icon {
  background: rgba(216, 112, 32, 0.16);
  color: var(--copper);
}

.band-green-wrap .about-points li {
  border-top-color: var(--line-light);
}

.band-green-wrap > .hero,
.band-green-wrap > .stats,
.band-green-wrap > .section {
  background: transparent;
  background-image: none;
}

.band-green-wrap > .section.about-has-bg {
  position: relative;
  isolation: isolate;
  background-color: var(--green);
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 32, 20, 0.78) 0%,
      rgba(0, 24, 16, 0.86) 45%,
      rgba(0, 18, 12, 0.9) 100%
    ),
    image-set(
      url("/assets/fundo-sobre.webp") type("image/webp"),
      url("/assets/fundo-sobre.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-has-bg .about-copy {
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(0, 16, 12, 0.42);
  border: 1px solid var(--line-light);
}


.band-light {
  background: var(--bg);
  color: var(--text);
}

.band-light .section-head p,
.band-light .contact-label,
.band-light .location-address {
  color: var(--text-muted);
}

.band-light h2,
.band-light .location-city,
.band-light .contact-value {
  color: var(--text);
}



/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    gap: 2.5rem;
  }
}

.hero-grid .lead {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.02rem;
  color: var(--cream-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-photo {
  margin: 0;
  width: 100%;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-light);
  background: var(--green-mid);
}

.hero-photo picture {
  display: block;
  height: 100%;
}

.hero-photo img {
  width: 100%;
  height: auto;
  max-height: 52vh;
  aspect-ratio: 1108 / 1419;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (min-width: 900px) {
  .hero-photo {
    min-height: 100%;
  }

  .hero-photo img {
    height: 100%;
    max-height: none;
  }
}

.hero-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: min(100%, 320px);
  margin: 0 auto;
}

.hero-corners {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(var(--copper), var(--copper)) top left / 28px 1.5px no-repeat,
    linear-gradient(var(--copper), var(--copper)) top left / 1.5px 28px no-repeat,
    linear-gradient(var(--copper), var(--copper)) top right / 28px 1.5px no-repeat,
    linear-gradient(var(--copper), var(--copper)) top right / 1.5px 28px no-repeat,
    linear-gradient(var(--copper), var(--copper)) bottom left / 28px 1.5px no-repeat,
    linear-gradient(var(--copper), var(--copper)) bottom left / 1.5px 28px no-repeat,
    linear-gradient(var(--copper), var(--copper)) bottom right / 28px 1.5px no-repeat,
    linear-gradient(var(--copper), var(--copper)) bottom right / 1.5px 28px no-repeat;
  opacity: 0.85;
}

/* Stats */
.stats {
  padding: 0 0 1rem;
}

.stats-grid {
  display: grid;
  gap: 0.85rem;
}

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

.stat {
  padding: 1.35rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.stat:hover {
  border-color: rgba(216, 112, 32, 0.45);
  background: var(--copper-soft);
}

.stat-num {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--copper);
}

.stat h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.stat p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cream-muted);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  /* kept for compatibility; band-green-wrap owns background */
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--cream-muted);
}

.section-note {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--cream-muted);
  font-style: italic;
}

/* Services */
.services-carousel {
  display: grid;
  gap: 0.85rem;
}

.services-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  cursor: pointer;
}

.carousel-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--copper-soft);
  border-color: rgba(216, 112, 32, 0.55);
  color: #ffffff;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.services-grid {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
  padding: 1.35rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

@media (min-width: 640px) {
  .service-card {
    flex-basis: calc((100% - 0.9rem) / 2.12);
  }
}

@media (min-width: 980px) {
  .service-card {
    flex-basis: calc((100% - 1.8rem) / 3.12);
  }
}

.service-card:hover {
  border-color: rgba(216, 112, 32, 0.5);
  background: var(--copper-soft);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: rgba(216, 112, 32, 0.12);
  color: var(--copper);
}

.service-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.service-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.service-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cream-muted);
}


/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(280px, 0.95fr) 1.05fr;
    gap: 3rem;
    align-items: stretch;
  }
}

.about-photo {
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-light);
  background: var(--green-mid);
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (min-width: 900px) {
  .about-photo {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    align-self: start;
  }

  .about-photo img {
    min-height: 520px;
    height: 100%;
    max-height: 640px;
  }
}

.about-photo-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 3.5rem 1.25rem 1.35rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 20, 14, 0.55) 35%,
    rgba(0, 16, 12, 0.92) 70%,
    rgba(0, 12, 10, 0.97) 100%
  );
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.about-photo-caption .about-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.about-photo-caption .about-role {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-copy .btn {
  margin-top: 0.75rem;
}

.about-points {
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.92rem;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--copper);
}

@media (max-width: 899px) {
  .about-grid {
    display: flex;
    flex-direction: column;
  }

  .about-photo {
    order: -1;
  }

  .about-photo img {
    max-height: 520px;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 0.75rem;
}

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

  .contact-grid .contact-link--full,
  .contact-grid .location {
    grid-column: 1 / -1;
  }
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(216, 112, 32, 0.55);
  background: var(--copper-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.contact-link:active {
  transform: translateY(0) scale(0.985);
}

.contact-link--primary {
  border-color: rgba(216, 112, 32, 0.45);
  background: linear-gradient(135deg, rgba(216, 112, 32, 0.16), rgba(216, 112, 32, 0.05));
}

.contact-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(216, 112, 32, 0.12);
  color: var(--copper);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-link:hover .contact-icon,
.contact-link:focus-visible .contact-icon {
  background: var(--copper);
  color: #ffffff;
}

.contact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.location {
  display: block;
  padding: 1.15rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.location:hover,
.location:focus-visible {
  border-color: rgba(216, 112, 32, 0.55);
  background: var(--copper-soft);
  transform: translateY(-2px);
}

.location-city {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.location-address {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.location-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.location-hint svg {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.25s var(--ease);
}

.location:hover .location-hint svg {
  transform: translateX(3px);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 5.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.credit {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1faa4f;
  color: #fff;
  box-shadow: none;
  transition: transform 0.2s var(--ease);
}

.float-wa svg {
  width: 1.55rem;
  height: 1.55rem;
}

.float-wa:hover,
.float-wa:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
    place-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    margin-top: 0.65rem;
    justify-content: center;
    border-bottom: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card,
  .contact-link,
  .location,
  .btn,
  .float-wa,
  .location-hint svg {
    transition: none;
  }

  .service-card:hover,
  .contact-link:hover,
  .location:hover {
    transform: none;
  }

  .services-grid {
    scroll-behavior: auto;
  }
}
