/* MJA — Tecnologia · Consultoria e Imóveis
   Static site · mobile-first · Cloudflare Pages ready */

:root {
  --navy: #0A1628;
  --navy-2: #12233A;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-soft: #CCFBF1;
  --white: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --line: rgba(10, 22, 40, 0.08);
  --paper: #F8FAFC;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(10, 22, 40, 0.10);
  --shadow-sm: 0 4px 16px rgba(10, 22, 40, 0.08);
  --header-h: 72px;
  --max: 1120px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

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

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand { display: flex; align-items: center; min-width: 0; }
.brand__logo { object-fit: contain; }
.brand__logo--desktop { display: none; height: 48px; width: auto; }
.brand__logo--mobile { width: 48px; height: 48px; border-radius: 10px; }

.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover,
.nav a:focus-visible {
  background: var(--teal-soft);
  color: var(--teal-dark);
  outline: none;
}

.btn.header__cta { display: none; margin-left: 8px; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open .nav {
  display: flex;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
body.nav-open .nav a { padding: 12px 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.22);
}
.btn--primary:hover { background: var(--navy-2); }

.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.28);
}
.btn--teal:hover { background: var(--teal-dark); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 22, 40, 0.14);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); background: rgba(13, 148, 136, 0.06); }

.btn--wa {
  background: var(--wa);
  color: var(--white);
}
.btn--wa:hover { background: var(--wa-dark); }

.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
  background: linear-gradient(165deg, #F0FDFA 0%, #FFFFFF 45%, #EEF2FF 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(13, 148, 136, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(10, 22, 40, 0.08), transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow--light { color: #5EEAD4; }

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
  max-width: 16ch;
}
.text-teal { color: var(--teal); }

.hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px;
}
.hero__stats li {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
}
.hero__stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero__stats span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Sections */
.section { padding: 64px 0; }
.section--light { background: var(--paper); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}
.section--navy .section__sub,
.section--navy p { color: rgba(255, 255, 255, 0.78); }

.section__head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section__head h2,
.service__content h2 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: inherit;
  margin-bottom: 12px;
}
.section--light .section__head h2,
.service:not(.section--navy) .service__content h2 { color: var(--navy); }

.section__sub {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 148, 136, 0.35);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-content: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.card__link {
  font-weight: 700;
  font-size: 14px;
  color: var(--teal);
}
.card__link:hover { color: var(--teal-dark); }

/* Service blocks */
.service__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}
.service__content p { margin-bottom: 20px; }
.service__content > .btn { margin-top: 8px; }

.checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist--light li { color: rgba(255, 255, 255, 0.92); }

.service__panel {
  display: grid;
  gap: 14px;
}
.panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.panel-card--accent {
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border: none;
}
.panel-card--accent .panel-card__tag { color: rgba(255, 255, 255, 0.85); }
.panel-card--accent p { color: rgba(255, 255, 255, 0.88); }

.panel-card--glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.panel-card--glass .panel-card__tag { color: #5EEAD4; }
.panel-card--glass p { color: rgba(255, 255, 255, 0.78); }

.panel-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.panel-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.panel-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact */
.contact__grid {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.contact-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: var(--shadow);
}
.contact-card--wa {
  background: linear-gradient(145deg, #ECFDF5 0%, #FFFFFF 70%);
  border-color: rgba(37, 211, 102, 0.35);
}
.contact-card__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.contact-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  word-break: break-word;
}
.contact-card__hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.mail-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.mail-form__row { margin-bottom: 14px; }
.mail-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.mail-form input,
.mail-form textarea {
  width: 100%;
  border: 1px solid rgba(10, 22, 40, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mail-form input:focus,
.mail-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
  background: var(--white);
}
.mail-form__note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.mail-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 0 100px;
}
.footer__inner {
  display: grid;
  gap: 24px;
}
.footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
.footer__brand p {
  font-size: 14px;
  color: #5EEAD4;
  font-weight: 600;
}
.footer__meta {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.footer__meta a:hover { color: #5EEAD4; }
.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

/* Sticky WhatsApp FAB */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s, background 0.2s;
}
.wa-fab:hover { transform: translateY(-2px); background: var(--wa-dark); }
.wa-fab svg { width: 28px; height: 28px; flex: 0 0 auto; }
.wa-fab__label { padding-right: 2px; }

/* Desktop */
@media (min-width: 768px) {
  :root { --header-h: 80px; }

  .brand__logo--mobile { display: none; }
  .brand__logo--desktop { display: block; }

  .nav-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .btn.header__cta { display: inline-flex; }

  .hero { padding: 72px 0 80px; }
  .hero h1 { max-width: 18ch; }

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

  .service__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
  }
  .service__grid--reverse .service__content { order: 2; }
  .service__grid--reverse .service__panel { order: 1; }

  .contact__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .footer { padding-bottom: 48px; }
  .footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .footer__copy { grid-column: 1 / -1; }

  .wa-fab { right: 24px; bottom: 24px; }
}

@media (min-width: 1024px) {
  .hero__lead { font-size: 1.15rem; }
  .section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
