:root {
  color-scheme: light;
  --bg: #f6efe6;
  --bg-soft: #fffaf3;
  --ink: #15332e;
  --muted: #64726d;
  --gold: #8b783c;
  --gold-soft: #f0d5a2;
  --green: #12302b;
  --green-soft: #dce9df;
  --line: rgba(18, 48, 43, 0.14);
  --shadow: 0 24px 80px rgba(18, 48, 43, 0.14);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(240, 213, 162, 0.75), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(220, 233, 223, 0.95), transparent 32rem),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(139, 120, 60, 0.14);
  background: #fff;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  grid-column: 2;
  justify-self: center;
  text-decoration: none;
}

.brand-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 22vw, 310px);
  height: 68px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-logo-wrap::before {
  content: "FV";
}

.brand-logo-wrap.is-missing::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 1px;
  transform: translateY(14px);
  background: rgba(139, 120, 60, 0.45);
}

.brand-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  background: transparent;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  grid-column: 3;
  justify-self: end;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  flex-shrink: 0;
}

.nav a {
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav a:hover {
  background: #fff;
  color: var(--green);
}

main {
  overflow: hidden;
}

.hero,
.section {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: auto;
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.hero-text,
.section-heading p,
.text-panel p,
.location-card p,
.contact-section p,
.contact-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-text {
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #fff8eb;
  box-shadow: 0 14px 34px rgba(18, 48, 43, 0.2);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 250, 243, 0.76);
  color: var(--green);
}

.button.full {
  width: 100%;
}

.hero-card,
.service-card,
.text-panel,
.location-card,
.map-card,
.contact-card,
.trust-strip {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 250, 243, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(185, 128, 47, 0.26);
  border-radius: calc(var(--radius) - 10px);
}

.portrait-card {
  position: relative;
  min-height: clamp(330px, 42vw, 500px);
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(18, 48, 43, 0.82), rgba(139, 120, 60, 0.48)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.7), transparent 14rem);
}

.portrait-card::before {
  content: "FV";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 248, 235, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  letter-spacing: -0.12em;
}

.portrait-card::after {
  content: "Fábia Viegas";
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  color: #fff8eb;
  font-weight: 850;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.portrait-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-card.is-missing::after {
  content: "Foto institucional";
}

.hero-card h2 {
  font-size: 1.8rem;
}

.hero-card p,
.hero-card dd {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card dl {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.hero-card dl div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-card dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card dd {
  margin: 0.35rem 0 0;
  font-weight: 750;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip div {
  padding: 1.3rem;
  background: rgba(255, 250, 243, 0.72);
}

.metric {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 900;
}

.trust-strip small {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 1.2rem;
}

.contact-focus {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.office-card {
  min-height: 100%;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.office-card.featured {
  background: linear-gradient(135deg, rgba(255, 250, 243, 0.88), rgba(240, 213, 162, 0.36));
}

.office-city {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.office-card h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.office-card p {
  color: var(--muted);
  line-height: 1.75;
}

.office-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

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

.service-card {
  min-height: 250px;
  padding: 1.35rem;
  border-radius: 24px;
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
  line-height: 1.72;
}

.split-section,
.location-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.25rem;
  align-items: start;
}

.text-panel,
.location-card,
.map-card,
.contact-card {
  padding: 1.5rem;
  border-radius: 24px;
}

.location-section {
  align-items: stretch;
}

.address-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.address-list li {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  line-height: 1.65;
}

.address-list strong {
  color: var(--green);
}

.map-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  min-height: 300px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(185, 128, 47, 0.32), transparent 45%),
    linear-gradient(135deg, rgba(18, 48, 43, 0.94), rgba(37, 88, 76, 0.92));
  color: #fff8eb;
}

.map-card span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 2.4rem;
  font-weight: 950;
}

.map-card strong {
  margin-top: 0.2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.map-card small {
  color: rgba(255, 248, 235, 0.74);
}

.contact-section {
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.contact-card {
  background: var(--green);
  color: #fff8eb;
}

.contact-card p {
  margin: 1rem 0 0;
  color: rgba(255, 248, 235, 0.72);
}

.contact-card .button + .button {
  margin-top: 0.75rem;
}

.contact-card .button.primary {
  background: #fff8eb;
  color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding: 0.7rem 1rem 0.85rem;
  }

  .brand-logo-wrap {
    width: min(300px, 88vw);
    height: 76px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split-section,
  .location-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .office-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .trust-strip,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  .brand-logo-wrap {
    width: min(270px, 86vw);
    height: 70px;
  }

  .nav {
    gap: 0.2rem;
    padding: 0.25rem;
  }

  .nav a {
    padding: 0.58rem 0.62rem;
    font-size: 0.78rem;
  }

  h1 {
    font-size: 2.85rem;
  }

  .hero {
    width: min(100% - 1.25rem, 1160px);
    padding-top: 1.5rem;
  }

  .hero-actions,
  .office-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .portrait-card {
    min-height: 360px;
  }

  .hero-card,
  .text-panel,
  .location-card,
  .map-card,
  .contact-card {
    padding: 1.1rem;
  }
}
