:root {
  --bg: #eef3fb;
  --bg-soft: #e2eaf7;
  --surface: #ffffff;
  --text: #15213a;
  --muted: #566480;
  --line: rgba(26, 75, 168, 0.14);
  --brand: #e63327;
  --brand-2: #1a4ba8;
  --accent: #2f6fe0;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(26, 75, 168, 0.12);
  --max: 1180px;
  font-synthesis: none;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Space Grotesk", sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

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

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(26, 75, 168, 0.1);
  border: 1px solid rgba(26, 75, 168, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 25px rgba(230, 51, 39, 0.3);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--full { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(238, 243, 251, 0.8);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.is-scrolled { border-color: var(--line); background: rgba(238, 243, 251, 0.96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  border-radius: 12px;
}
.brand__logo {
  height: 48px; width: 48px;
  object-fit: cover;
  border-radius: 50%;
}
.footer__brand .brand__logo { height: 68px; width: 68px; }
.brand__name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; display: flex; flex-direction: column; }
.brand__name small { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 500; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.05em; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* Hero */
.hero { position: relative; padding: 140px 0 110px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 51, 39, 0.1), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(26, 75, 168, 0.12), transparent 46%),
    radial-gradient(circle at 60% 90%, rgba(47, 111, 224, 0.08), transparent 45%);
  z-index: -1;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,16,30,0.9) 0%, rgba(10,16,30,0.7) 45%, rgba(10,16,30,0.35) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 720px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: "Space Grotesk", sans-serif; font-size: 2rem; color: var(--text); }
.hero__stats span { color: var(--muted); font-size: 0.9rem; }

/* Hero com foto: textos claros sobre a imagem */
.hero--photo h1 { color: #fff; }
.hero--photo h1 span { background: linear-gradient(135deg, #ff5a4d, #5b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--photo p { color: rgba(255,255,255,0.85); }
.hero--photo .eyebrow { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.hero--photo .hero__stats strong { color: #fff; }
.hero--photo .hero__stats span { color: rgba(255,255,255,0.8); }
.hero--photo .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero--photo .btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* Sections */
.section { padding: 90px 0; }
.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section__head p { color: var(--muted); }

/* About */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__card {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about__card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: 0.2;
}
.about__badge { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--accent); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.about__card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.about__card p { color: var(--muted); }
.about__text h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 18px; }
.about__text > p { color: var(--muted); margin-bottom: 28px; }
.pillars { list-style: none; display: grid; gap: 16px; }
.pillars li { display: flex; flex-direction: column; padding: 16px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.pillars strong { color: var(--brand-2); font-family: "Space Grotesk", sans-serif; margin-bottom: 4px; }
.pillars span { color: var(--muted); font-size: 0.95rem; }

/* Services */
.services { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.service__media {
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.service::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,12,22,0.95) 10%, rgba(8,12,22,0.55) 45%, rgba(8,12,22,0.15) 100%);
  transition: background 0.3s ease;
}
.service:hover .service__media { transform: scale(1.08); }
.service:hover::after { background: linear-gradient(to top, rgba(140,20,15,0.95) 10%, rgba(26,75,168,0.5) 55%, rgba(8,12,22,0.2) 100%); }
.service__body { position: relative; padding: 28px; color: #fff; width: 100%; }
.service__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}
.service h3 { font-size: 1.4rem; margin: 6px 0 10px; color: #fff; }
.service p { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin-bottom: 16px; }
.service__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.9rem;
  color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, gap 0.2s ease;
}
.service:hover .service__cta { opacity: 1; transform: none; }
.service__cta:hover { gap: 12px; color: #ff8a7d; }

/* Gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; }
.gallery__cta { display: flex; justify-content: center; margin-top: 32px; }
.g { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background-size: cover; background-position: center; }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.g:hover img { transform: scale(1.07); }
.g figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 18px; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.g1 { grid-column: span 2; grid-row: span 2; background-image: linear-gradient(135deg, #e63327, #1a4ba8); }
.g2 { background-image: linear-gradient(135deg, #1a4ba8, #2f6fe0); }
.g3 { background-image: linear-gradient(135deg, #6b7280, #374151); }
.g4 { grid-column: span 2; background-image: linear-gradient(135deg, #e63327, #8a1c15); }
.g5 { background-image: linear-gradient(135deg, #2f6fe0, #0a2a66); }

/* Partners */
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.partner:hover { transform: translateY(-6px); border-color: rgba(26,75,168,0.4); }
.partner img {
  height: 110px;
  width: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-soft);
}
.partner span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, var(--bg-soft), #d7e2f5);
}
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.elfsight-app-c4048f4d-092e-4adb-a3ec-fa76179cb976 { min-height: 320px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote p { margin-bottom: 22px; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.quote footer strong { display: block; }
.quote footer small { color: var(--muted); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
.contact__info > p { color: var(--muted); margin-bottom: 28px; }
.contact__list { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__socials { display: flex; gap: 12px; flex-wrap: wrap; }
.contact__socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  color: var(--text);
  transition: 0.2s;
}
.contact__socials a svg { transition: transform 0.2s ease; }
.contact__socials a:hover { background: var(--surface); transform: translateY(-2px); }
.contact__socials a[aria-label="Facebook"]:hover { border-color: #1877f2; color: #4a9bff; }
.contact__socials a[aria-label="Instagram"]:hover { border-color: #e1306c; color: #ff5c92; }
.contact__socials a[aria-label="WhatsApp"]:hover { border-color: #25d366; color: #3ee07b; }

.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }

/* Footer */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { color: var(--muted); margin-top: 16px; font-size: 0.95rem; max-width: 260px; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: 0.2s;
}
.footer__socials a:hover { color: var(--text); background: var(--surface); transform: translateY(-2px); }
.footer__col h4 { margin-bottom: 16px; font-size: 1rem; }
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: center; }

/* WhatsApp Float */
.whats {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.whats:hover { transform: scale(1.08); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .g1, .g4 { grid-column: span 2; }
}

@media (hover: none) {
  .service__cta { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    z-index: 40;
    flex-direction: column; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    padding: 12px 24px;
    opacity: 0; visibility: hidden;
    transform: translateY(-110%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .services__grid, .testimonials__grid, .footer__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
}

/* Modal Galeria */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 40, 0.7); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; max-width: 1000px; margin: 5vh auto; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal__title { margin-bottom: 20px; }
.modal__close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--bg-soft); font-size: 26px; line-height: 1; cursor: pointer; color: var(--text); }
.modal__close:hover { background: var(--line); }
.modal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modal__grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
@media (max-width: 700px) {
  .modal__grid { grid-template-columns: repeat(2, 1fr); }
  .modal__dialog { margin: 3vh 12px; padding: 20px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; z-index: 1100; background: rgba(0,0,0,.9); align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 20px; right: 28px; background: none; border: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 28px; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.modal__grid img { cursor: zoom-in; }
@media (max-width: 700px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 22px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* Ajustes finos para telas pequenas */
@media (max-width: 560px) {
  .hero { padding: 110px 0 70px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 36px; }
  .container { padding: 0 18px; }
  .hero p { font-size: 1.05rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__stats { gap: 22px; }
  .hero__stats strong { font-size: 1.6rem; }
  .partners__grid { grid-template-columns: 1fr 1fr; }
  .contact__form { padding: 24px; }

  /* Footer mobile */
  .footer { padding: 44px 0 20px; }
  .footer__inner { gap: 28px; text-align: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .footer__socials { justify-content: center; }
  .footer__col h4 { margin-bottom: 12px; }
}

@media (max-width: 380px) {
  .modal__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 16px; }
}
