/* ===== CUSTOM PROPERTIES ===== */
:root {
  --black:       #121214;
  --black-soft:  #1B1C1F;
  --black-alt:   #FFFFFF;
  --red:         #D2222D;
  --red-dark:    #A31A22;
  --red-light:   #FBE8E9;
  --red-soft:    #FF6B6B;
  --bg:          #F7F7F8;
  --white:       #FFFFFF;
  --text:        #19191B;
  --text-muted:  #6B6D72;
  --border:      #E4E4E7;
  --mid-1:       #121214;
  --mid-2:       #232327;
  --mid-3:       #34343A;
  --text-light:       #F5F5F6;
  --text-light-muted: rgba(245,245,246,0.66);
  --shadow-sm:   0 1px 3px rgba(18,18,20,0.08), 0 1px 2px rgba(18,18,20,0.05);
  --shadow-md:   0 4px 16px rgba(18,18,20,0.10), 0 2px 6px rgba(18,18,20,0.06);
  --radius:      12px;
  --radius-sm:   8px;
  --ease:        0.3s ease;
  --container:   1120px;
  --header-h:    100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }
a    { text-decoration: none; color: inherit; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 10px rgba(210,34,45,0.32);
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 18px rgba(210,34,45,0.42);
  transform: translateY(-1px);
}
.btn-nav {
  background: var(--red);
  color: #fff;
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}
.btn-nav:hover { background: var(--red-dark); }
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}
#site-header.scrolled {
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-logo { height: 74px; width: auto; }

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
#main-nav a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color var(--ease);
}
#site-header.scrolled #main-nav a:not(.btn) { color: var(--text-muted); }
#main-nav a:not(.btn):hover { color: var(--red); }
#site-header:not(.scrolled) #main-nav a:not(.btn):hover { color: #fff; }

/* Nav icon buttons (Instagram / localização) */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  transition: background var(--ease), color var(--ease), transform var(--ease);
  flex-shrink: 0;
}
.icon-link svg { width: 21px; height: 21px; }
.icon-link:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
#site-header.scrolled .icon-link {
  background: var(--bg);
  color: var(--text-muted);
}
#site-header.scrolled .icon-link:hover {
  background: var(--red);
  color: #fff;
}

/* Hamburger button */
#menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}
#menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
}
#site-header.scrolled #menu-btn span { background: var(--black); }
#menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  padding-top: var(--header-h);
  background:
    radial-gradient(circle, rgba(210,34,45,0.10) 1px, transparent 1px)
    var(--black);
  background-size: 30px 30px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: 3rem 4rem;
}
.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(210,34,45,0.16);
  color: #FF6B6B;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}
.hero-illustration img,
.hero-illustration .hero-image {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  display: block;
  height: auto;
}

/* Diferenciais mesclados ao hero — mesmo fundo escuro, sem costura */
.hero-values {
  padding-block: 1rem 6rem;
  position: relative;
}
.hero-values .card-diff {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-values .card-diff:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(210,34,45,0.45);
}
.hero-values .card-icon-lg {
  background: rgba(210,34,45,0.18);
  color: var(--red-soft);
}
.hero-values .card-diff h3 { color: #fff; }
.hero-values .card-diff p  { color: var(--text-light-muted); }

/* ===== SECTIONS ===== */
.section        { padding-block: 6rem; }

/* Gradiente contínuo entre Sobre e Serviços — clareia aos poucos, sem virar branco */
.mid-gradient {
  background: linear-gradient(180deg, var(--mid-1) 0%, var(--mid-2) 55%, var(--mid-3) 100%);
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.015em;
  margin-bottom: 0.625rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-light-muted);
}

/* ===== SOBRE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
}
.about-text {
  font-size: 1.02rem;
  color: var(--text-light-muted);
  line-height: 1.85;
}
.stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
}
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  margin-top: 0.15rem;
}

/* ===== GRIDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
/* Flexbox em vez de grid: quebra de linha sempre centralizada,
   sem sobrar quadrado desalinhado na última linha em nenhuma largura. */
.grid-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  flex: 0 1 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--red);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--red);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

/* ===== CARDS (diferenciais) ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-diff {
  display: flex;
  flex-direction: column;
}
.card-diff .card-icon-lg {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--red);
  flex-shrink: 0;
}
.card-diff .card-icon-lg svg { width: 26px; height: 26px; }
.card-diff h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.625rem;
}
.card-diff p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.section-contact {
  background: var(--black);
  text-align: center;
}
.section-contact h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section-contact > .container > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.contact-details {
  display: block;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.contact-details a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.contact-details a:hover { color: #fff; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--black-soft);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  height: 46px;
  width: auto;
  opacity: 0.85;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}
.footer-social {
  display: flex;
  gap: 1.1rem;
}
.footer-social a {
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  transition: color var(--ease);
}
.footer-social a:hover { color: var(--red); }
.footer-social svg { width: 18px; height: 18px; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger — service cards */
.grid-5 .service-card:nth-child(2).reveal { transition-delay: 0.04s; }
.grid-5 .service-card:nth-child(3).reveal { transition-delay: 0.08s; }
.grid-5 .service-card:nth-child(4).reveal { transition-delay: 0.12s; }
.grid-5 .service-card:nth-child(5).reveal { transition-delay: 0.16s; }
.grid-5 .service-card:nth-child(6).reveal { transition-delay: 0.04s; }
.grid-5 .service-card:nth-child(7).reveal { transition-delay: 0.08s; }
.grid-5 .service-card:nth-child(8).reveal { transition-delay: 0.12s; }
.grid-5 .service-card:nth-child(9).reveal { transition-delay: 0.16s; }
.grid-5 .service-card:nth-child(10).reveal { transition-delay: 0.20s; }

/* Stagger — diff cards */
.grid-2 .card:nth-child(2).reveal { transition-delay: 0.10s; }
.grid-2 .card:nth-child(3).reveal { transition-delay: 0.10s; }
.grid-2 .card:nth-child(4).reveal { transition-delay: 0.20s; }

/* Hero stagger */
.hero-text .badge.reveal      { transition-delay: 0.05s; }
.hero-text h1.reveal          { transition-delay: 0.15s; }
.hero-text .hero-lead.reveal  { transition-delay: 0.25s; }
.hero-text .btn.reveal        { transition-delay: 0.35s; }
.hero-illustration.reveal     { transition-delay: 0.20s; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 4rem 3rem;
    text-align: center;
  }
  .hero-lead { margin-inline: auto; }
  .hero-text .btn { margin-inline: auto; }
  .hero-illustration { order: -1; max-width: 300px; margin-inline: auto; }

  .about-grid { grid-template-columns: 1fr; }
  .stats {
    flex-direction: row;
    border-left: none;
    border-top: 3px solid var(--red);
    padding-left: 0;
    padding-top: 1.5rem;
    justify-content: space-between;
  }

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

/* Mobile */
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 46px; }

  #menu-btn { display: flex; }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
  }
  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  #main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  #main-nav a:not(.btn) { font-size: 1rem; color: var(--text-muted); }
  #main-nav .btn-nav    { font-size: 0.95rem; }
  #main-nav .nav-icons  { order: -1; align-self: flex-start; }
  #main-nav .icon-link  { background: var(--bg); color: var(--text-muted); }
  #main-nav .icon-link:hover { background: var(--red); color: #fff; }

  .section { padding-block: 4rem; }
  .section-header { margin-bottom: 2.5rem; }

  .service-card { flex-basis: 140px; }
  .grid-2 { grid-template-columns: 1fr; }

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

  .hero-text { text-align: left; }
  .hero-lead { margin-inline: 0; }
  .hero-text .btn { margin-inline: 0; }
  .hero-illustration { max-width: 220px; }

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

@media (max-width: 400px) {
  .hero-text h1 { font-size: 1.75rem; }
  .btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
}
