/* Cardozo, Costa & Dorneles — landing estática */

:root {
  --bg-deep: #0c0c0a;
  --bg: #121210;
  --bg-elevated: #1c1c18;
  --bg-soft: #242420;
  --text: #f2f0ea;
  --text-muted: #a8a59a;
  --silver: #c8c4b8;
  --line: rgba(200, 196, 184, 0.18);
  --whatsapp: #25d366;
  --whatsapp-deep: #1da851;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 68rem;
  --touch: 2.75rem;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--silver);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg-deep);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space) + 0.5rem) var(--space) var(--space);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(200, 196, 184, 0.08), transparent 55%),
    linear-gradient(165deg, #1a1a16 0%, var(--bg-deep) 48%, #0e0e0c 100%);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: auto 10% 18% 10%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(200, 196, 184, 0.07), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  margin-inline: auto;
  text-align: center;
  animation: fade-up 0.9s ease both;
}

.hero__logo {
  width: clamp(9.5rem, 38vw, 14rem);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--silver);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
}

.hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.8vw, 1.125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #04140a;
}

.btn--whatsapp:hover {
  background: var(--whatsapp-deep);
  color: #04140a;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--silver);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Offices —— */
.offices {
  padding: clamp(3rem, 8vw, 5.5rem) var(--space);
  background:
    linear-gradient(180deg, #151512 0%, var(--bg-elevated) 40%, #181814 100%);
  border-top: 1px solid var(--line);
}

.offices__intro {
  width: min(100%, var(--max));
  margin: 0 auto 2.25rem;
  text-align: center;
}

.offices__heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
}

.offices__sub {
  margin: 0;
  color: var(--text-muted);
}

.offices__grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.office {
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--line);
}

.office__city {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 600;
}

.office__address {
  margin: 0 0 1.15rem;
  font-style: normal;
  color: var(--text-muted);
}

.office__list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.office__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.office__list a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  word-break: break-word;
}

.office__sep {
  margin: 0 0.4rem;
  color: var(--text-muted);
}

.office__map {
  margin-top: 0.25rem;
}

.office__maps {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--touch);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.office__maps:hover {
  border-bottom-color: var(--silver);
}

.office__maps span {
  font-size: 0.95em;
  opacity: 0.8;
}

.office__map iframe {
  display: block;
  width: 100%;
  height: clamp(14rem, 40vw, 18rem);
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-soft);
  filter: grayscale(0.15) contrast(0.95);
}

/* —— Footer —— */
.footer {
  padding: 2rem var(--space) calc(2rem + 4.5rem);
  text-align: center;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--silver);
}

.footer__email {
  font-size: 0.95rem;
}

/* —— FAB —— */
.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: fab-in 0.7s ease 0.4s both;
}

.fab:hover {
  background: var(--whatsapp-deep);
  color: #fff;
  transform: scale(1.05);
}

.fab__icon {
  width: 1.7rem;
  height: 1.7rem;
}

/* —— Motion —— */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fab-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__inner,
  .fab,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Breakpoints —— */
@media (min-width: 480px) {
  .hero__actions {
    gap: 1rem;
  }

  .btn {
    min-width: 9.5rem;
  }
}

@media (min-width: 768px) {
  .offices__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }

  .office {
    padding-left: 1.35rem;
  }

  .fab {
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 4rem;
  }

  .offices {
    padding-block: 5.5rem;
  }

  .offices__intro {
    margin-bottom: 3rem;
  }
}
