:root {
  color-scheme: light;
  --bg: #faf9f6;
  --bg-alt: #f2f0eb;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b6560;
  --line: #e4e0d8;
  --accent: #1e3a5f;
  --accent-soft: #e8eef4;
  --gold: #9a7b4f;
  --radius: 4px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
}

/* ── Layout ── */
.section-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Typography ── */
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 10vw, 120px);
}

.hero-text {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: #16304f;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #ccc8bf;
  background: var(--bg-alt);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero-trust li {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-trust strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-frame-inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, var(--accent-soft) 0%, #f7f4ef 45%, #ebe6dc 100%);
}

/* ── Intro ── */
.intro {
  padding: 0 0 80px;
  border-bottom: 1px solid var(--line);
}

.intro-quote {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.intro-quote em {
  font-style: italic;
  color: var(--accent);
}

/* ── Work grid ── */
#trabalhos {
  padding: 80px 0 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 80px;
  border: 1px solid var(--line);
  background: var(--line);
}

.work-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  transition: background 0.25s;
}

.work-card:hover {
  background: var(--bg-alt);
}

.work-category {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Services ── */
.services-band {
  padding: 80px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-card {
  padding-top: 8px;
  border-top: 2px solid var(--accent);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Process ── */
.process {
  padding: 80px 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-num {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Contact ── */
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  padding: 56px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-copy h2 {
  margin-bottom: 16px;
}

.contact-copy p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.contact-actions .button {
  width: 100%;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

/* ── Scroll reveal ── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-visual {
    order: -1;
  }

  .hero-frame {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

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

  .service-grid,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: clamp(20px, 4vw, 48px);
    left: clamp(20px, 4vw, 48px);
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .site-header {
    position: relative;
  }

  .nav-links.is-open {
    display: flex;
  }

  .work-grid,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    flex-direction: column;
    gap: 16px;
  }

  .contact {
    padding: 32px 24px;
  }

  .contact-actions {
    min-width: auto;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
