/* ==========================================================================
   IÁ COMUNICAÇÃO — sistema de design
   Paleta: papel #FAFAF6 · tinta #1B1D2A · acento (cor principal) #FF6A3D
   Tipografia: Fraunces (display) · Space Grotesk (corpo) · JetBrains Mono (rótulos)
   ========================================================================== */

:root {
  --paper: #FAFAF6;
  --paper-dim: #F1EFE7;
  --ink: #1B1D2A;
  --ink-soft: #565B72;
  --ink-faint: rgba(27, 29, 42, 0.12);
  --highlight: #FF6A3D;
  --accent: #FF6A3D;
  --accent-dark: #E1531F;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --container: 1180px;
  --gap: clamp(1.5rem, 3vw, 3rem);
  --radius: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--highlight);
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--ink);
}
.btn--light:hover { box-shadow: 4px 6px 0 var(--ink); }

/* mark / highlighter signature */
mark {
  background: none;
  color: inherit;
  position: relative;
  padding: 0 0.08em;
}
mark::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--highlight);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 2px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-faint);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.logo span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-top: 1rem;
}
.hero-copy p {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.hero-visual {
  position: relative;
}
.hero-visual .media-frame {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}
.hero-visual img {
  width: 100%;
  height: auto;
}

/* skeleton for lazy-loaded media */
.media-frame {
  position: relative;
  background: var(--paper-dim);
  overflow: hidden;
  border-radius: var(--radius);
}
.media-frame img {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.media-frame.is-loaded img { opacity: 1; }
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(27,29,42,0.06) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.media-frame.is-loaded::before { display: none; }
@keyframes shimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}
.ticker-track span::after {
  content: "•";
  color: var(--highlight);
  margin-left: 2rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS — generic
   ========================================================================== */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head h2 { margin-top: 0.9rem; }
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   QUEM SOMOS
   ========================================================================== */
.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--gap);
  align-items: center;
}
.about-visual .media-frame { aspect-ratio: 5 / 4; }
.about-copy p.lede {
  font-size: 1.2rem;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.4;
}
.about-copy p.detail {
  margin-top: 1.1rem;
  color: var(--ink-soft);
}
.pillars {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  list-style: none;
  padding: 0;
}
.pillars li {
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
}
.pillars h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.pillars p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services { background: var(--paper-dim); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-faint);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background 0.35s var(--ease);
}
.service-card:hover { background: var(--paper-dim); }
.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background: rgba(255, 106, 61, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
}
.service-card h3 { margin-top: 1rem; }
.service-card p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   DIFERENCIAL
   ========================================================================== */
.diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.diff-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--ink-faint);
  align-items: start;
}
.diff-list li:last-child { border-bottom: 1px solid var(--ink-faint); }
.diff-list .diff-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
}
.diff-list h3 { font-size: 1.15rem; }
.diff-list p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.96rem; }

/* ==========================================================================
   DEPOIMENTO
   ========================================================================== */
.testimonial {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.testimonial .wrap { max-width: 800px; text-align: center; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--highlight);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  font-weight: 500;
}
.testimonial cite {
  display: block;
  margin-top: 1.8rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(250, 250, 246, 0.65);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  text-align: center;
}
.cta .wrap { max-width: 760px; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cta p {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.cta .btn { margin-top: 2rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 250, 246, 0.15);
}
.footer-brand .logo { color: var(--paper); }
.footer-brand p {
  margin-top: 1rem;
  color: rgba(250, 250, 246, 0.65);
  max-width: 32ch;
  font-size: 0.94rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: rgba(250, 250, 246, 0.85);
}
.footer-col a { transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--highlight); }
.footer-bottom {
  padding: 1.6rem 0 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(250, 250, 246, 0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    border-bottom: 1px solid var(--ink-faint);
    gap: 1.2rem;
  }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .diff-list li { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
