/* =========================================================
   PORTFÓLIO PARA DIVULGAÇÃO DE SITES
   Arquivo: style.css
   Tema padrão: Light
   Para trocar cores principais, edite as variáveis abaixo.
========================================================= */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #152033;
  --muted: #617089;
  --line: rgba(21, 32, 51, 0.12);
  --primary: #175cff;
  --primary-2: #00a8ff;
  --accent: #10b981;
  --shadow: 0 24px 70px rgba(18, 35, 61, 0.14);
  --radius: 24px;
  --frame-height: 360px;
}

body[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0d1a2b;
  --surface-2: #12243a;
  --text: #f4f7fb;
  --muted: #a9b7ca;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #4f8cff;
  --primary-2: #00d4ff;
  --accent: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(23, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.10), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(23, 92, 255, 0.12);
  flex: 0 0 auto;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a,
.theme-toggle {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-menu a:hover,
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  min-height: calc(100vh - 90px);
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 70px max(24px, calc((100vw - 1180px) / 2)) 48px;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(4, 15, 31, 0.94) 0%, rgba(5, 19, 39, 0.86) 38%, rgba(7, 23, 46, 0.60) 68%, rgba(8, 25, 49, 0.34) 100%),
    url("assets/hero-bg.png") center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.35rem, 6vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 34px rgba(23, 92, 255, 0.28);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.trust-row div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 0.95rem;
}

.trust-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(23, 92, 255, 0.28), rgba(16, 185, 129, 0.18));
  filter: blur(34px);
  z-index: -1;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), var(--surface-2));
  box-shadow: var(--shadow);
}

.main-preview {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 84px 34px 34px;
}

.browser-bar {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.preview-glow {
  height: 230px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(23, 92, 255, 0.84), rgba(0, 212, 255, 0.48)),
    url("assets/site-institucional.svg") center top / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.main-preview h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.main-preview p {
  color: var(--muted);
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-stats span,
.tag {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.service-card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 14px 40px rgba(18, 35, 61, 0.08);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--surface-2);
  font-size: 1.4rem;
}

.service-card h3 {
  margin: 22px 0 10px;
}

.service-card p,
.project-info p,
.timeline p,
.authority-card p,
.contact-card p {
  color: var(--muted);
}

.portfolio-section {
  width: min(1260px, calc(100% - 32px));
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(18, 35, 61, 0.10);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card.hide {
  display: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.site-frame {
  --scroll-distance: 0px;
  --scroll-time: 9s;
  position: relative;
  height: var(--frame-height);
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.site-frame::before {
  content: "Passe o mouse para rolar";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.site-image {
  width: 100%;
  height: auto;
  min-height: 100%;
  transform: translateY(0);
  transition-property: transform;
  transition-timing-function: linear;
  transition-duration: 1.2s;
  will-change: transform;
}

.project-card:hover .site-image,
.project-card.is-scrolling .site-image {
  transform: translateY(calc(-1 * var(--scroll-distance)));
  transition-duration: var(--scroll-time);
}

.project-info {
  padding: 22px;
}

.project-info h3 {
  margin: 14px 0 8px;
  line-height: 1.15;
}

.process-section {
  width: min(1180px, calc(100% - 32px));
}

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

.timeline article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.authority-card,
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
}

.authority-card h2,
.contact-card h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.authority-list {
  display: grid;
  gap: 12px;
}

.authority-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--primary);
  font-weight: 800;
}

/* Responsividade */
@media (max-width: 1080px) {
  .hero,
  .authority-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .projects-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --frame-height: 330px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 58px 0;
  }

  .topbar {
    padding: 12px;
  }

  .brand-text small {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-menu {
    display: flex;
  }

  .nav-menu a,
  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }

  .trust-row,
  .services-grid,
  .projects-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .main-preview {
    min-height: auto;
  }

  .preview-glow {
    height: 190px;
  }

  .footer {
    flex-direction: column;
  }

  .site-frame::before {
    content: "Toque para rolar";
  }
}


/* =========================================================
   AJUSTE: fundo escuro na 3ª e 5ª dobras
   1ª dobra: Hero
   2ª dobra: Serviços
   3ª dobra: Portfólio
   4ª dobra: Processo
   5ª dobra: Credibilidade
========================================================= */

.portfolio-section,
.authority-section {
  position: relative;
  background: #030c1a;
  color: #ffffff;
  box-shadow: 0 0 0 100vmax #030c1a;
  clip-path: inset(0 -100vmax);
}

.portfolio-section .section-heading h2,
.portfolio-section .section-heading p,
.authority-section h2,
.authority-section p {
  color: #ffffff;
}

.portfolio-section .section-heading p,
.authority-section p {
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-section .eyebrow,
.authority-section .eyebrow {
  color: #d8e8ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.portfolio-section .project-card {
  background: rgba(255, 255, 255, 0.96);
  color: #152033;
}

.portfolio-section .project-info p {
  color: #617089;
}

.authority-section .authority-card {
  background:
    linear-gradient(135deg, rgba(23, 92, 255, 0.18), rgba(0, 168, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.authority-section .authority-list span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
