/* Escritório Fácil — design system (layout de referência) */
:root {
  --bg-deep: #0d0d0d;
  --bg-card: #1a1a1a;
  --text-muted: #a1a1aa;
  --accent: #33b2f6;
  --accent-soft: rgba(51, 178, 246, 0.15);
  --accent-glow: rgba(51, 178, 246, 0.35);
  --text: #ffffff;
  --radius: 12px;
  --radius-sm: 10px;
  --header-h: 72px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

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

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

.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(51, 178, 246, 0.45);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

.prose-spacing-top {
  margin-top: 3rem;
}

.v-center {
  align-self: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 50% 20% -20%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.4;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-copy h1 .highlight {
  color: var(--accent);
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 28rem;
  margin: 0 0 1.75rem;
}

.hero-cta {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.hero-visual {
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Hero com arte do layout (banner PNG — recorte responsivo) */
.hero-visual--layout {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 10;
  max-height: min(480px, 52vh);
}

.hero-visual--layout::after {
  display: none;
}

.hero-visual--layout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section-title p {
  color: var(--text-muted);
  margin: 0;
}

/* Service cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-service {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.card-service::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.card-service:hover {
  border-color: rgba(51, 178, 246, 0.25);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.card-service h3 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 1;
}

.card-service p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-copy .eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.why-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.why-copy h2 strong {
  color: var(--accent);
  font-weight: 700;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.checklist svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.why-visual {
  position: relative;
}

.why-visual img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Page hero (internas) */
.page-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.page-hero .eyebrow {
  margin: 0 0 0.5rem;
}

.content-block {
  padding: 3rem 0 4.5rem;
}

.prose {
  color: var(--text-muted);
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration: none;
}

.prose h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

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

.grid-2--top {
  align-items: start;
}

/* Form */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 32rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner .muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .hero-visual--layout {
    order: -1;
    max-width: none;
    width: 100%;
    margin-inline: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .hero-visual--layout img {
    object-position: 58% center;
    min-height: 220px;
  }

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

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

@media (max-width: 480px) {
  .hero-visual--layout {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
  }

  .hero-visual--layout img {
    object-position: 50% 35%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(13, 13, 13, 0.97);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav-main.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-main .btn-primary {
    width: 100%;
  }
}
