/* =========================================================
   Agência Open — estilos
   ========================================================= */

:root {
  --ink: #0f1218;
  --ink-soft: #2a2f3a;
  --muted: #5d6472;
  --paper: #f7f5f0;
  --white: #ffffff;
  --line: #e3dfd6;
  --accent: #ff5a1f;
  --accent-dark: #e14710;
  --accent-soft: #ffe7dc;
  --navy: #141b2d;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(15, 18, 24, 0.25);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow--light { color: #ffb08f; }

.highlight {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--light:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.btn--small {
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 7px solid var(--accent);
  position: relative;
}

.logo__mark::after {
  content: "";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  transform: rotate(45deg);
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.logo__text small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

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

.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle,
.menu-button { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  inset: 0;
  margin: auto;
}

.ring--lg {
  width: 100%;
  height: 100%;
  border: 46px solid var(--accent);
}

.ring--md {
  width: 52%;
  height: 52%;
  background: var(--navy);
}

.hero__card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.hero__card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero__card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.hero__card--a { top: 6%; left: -8%; }
.hero__card--b { top: 44%; right: -10%; }
.hero__card--c { bottom: 4%; left: 6%; }

/* ---------- Números ---------- */
.stats {
  background: var(--ink);
  color: var(--white);
  padding: 2.75rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  line-height: 1;
}

.stat span {
  color: #b8bdc8;
  font-size: 0.95rem;
}

/* ---------- Seções ---------- */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section--alt {
  background: var(--white);
}

.section__head {
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ---------- Sobre ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- Serviços ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.service p {
  color: var(--muted);
  margin: 0;
}

.service--cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.service--cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* ---------- Imobiliário ---------- */
.realestate {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.realestate__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.realestate__content > p {
  color: #c4cad6;
  font-size: 1.08rem;
}

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

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.realestate__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  height: 340px;
}

.building {
  width: 90px;
  border-radius: 10px 10px 0 0;
  background: var(--b-color);
  position: relative;
}

.building::before {
  content: "";
  position: absolute;
  inset: 18px 14px 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 12px, transparent 12px 26px);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 24px);
          mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 24px);
}

.building--1 { --b-color: #2b3550; height: 62%; }
.building--2 { --b-color: var(--accent); height: 100%; width: 110px; }
.building--3 { --b-color: #3c4870; height: 78%; }

/* ---------- Dados da empresa ---------- */
.company {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.company__item {
  background: var(--white);
  padding: 1.5rem 1.75rem;
}

.company__item--wide {
  grid-column: span 3;
}

.company dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.company dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: #e3f6e9;
  color: #17793a;
  font-size: 0.95rem;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Contato ---------- */
.contact {
  padding-top: 0;
}

.contact__box {
  background: var(--ink);
  color: var(--white);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.contact__box p { color: #b8bdc8; margin: 0; }

.contact__links {
  display: grid;
  gap: 1rem;
}

.contact__link {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.contact__link span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffb08f;
}

.contact__link strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.contact__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}

/* ---------- Rodapé ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer p { margin: 0; }

.logo--footer .logo__mark {
  width: 26px;
  height: 26px;
  border-width: 5px;
}

.logo--footer .logo__text {
  font-size: 1.3rem;
  color: var(--ink);
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 960px) {
  .hero__grid,
  .about,
  .realestate__grid,
  .contact__box {
    grid-template-columns: 1fr;
  }

  .hero__visual { max-width: 360px; }

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

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

  .realestate__visual { height: 260px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  /* Menu mobile (sem JavaScript) */
  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 2;
  }

  .menu-button span {
    display: block;
    height: 2px;
    width: 24px;
    margin-inline: auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 16px 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav a:not(.btn) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:not(.btn)::after { display: none; }

  .nav .btn { margin-top: 1rem; }

  .menu-toggle:checked ~ .nav { display: flex; }

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

  .company { grid-template-columns: 1fr; }
  .company__item--wide { grid-column: auto; }
}

@media (max-width: 560px) {
  .services,
  .stats__grid { grid-template-columns: 1fr; }

  .hero__card { min-width: 0; padding: 0.7rem 0.9rem; }
  .hero__card strong { font-size: 1.1rem; }
  .hero__card--a { left: 0; }
  .hero__card--b { right: 0; }

  .ring--lg { border-width: 34px; }

  .hero__actions .btn { flex: 1 1 100%; }

  .building { width: 70px; }
  .building--2 { width: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
