/* ============ GCOMM · Base ============ */
:root {
  --navy: #070b34;
  --navy-2: #0e1465;
  --blue: #1446e0;
  --blue-soft: #0f64c2;
  --green: #00e57a;
  --green-dark: #00b862;
  --ink: #101828;
  --ink-soft: #475467;
  --line: #e6e9f0;
  --bg-gray: #f4f6fb;
  --grad: linear-gradient(120deg, #0f0a6f 0%, #0f64c2 55%, #00c97b 100%);
  --radius: 18px;
  --shadow: 0 8px 30px rgba(7, 11, 52, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}
h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.kicker {
  font-size: .82rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.kicker.green { color: var(--green); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.section { padding: 88px 0; }
.section-sub { max-width: 640px; color: var(--ink-soft); margin-bottom: 42px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; font-family: 'Inter', sans-serif;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: #04361d; box-shadow: 0 6px 20px rgba(0, 229, 122, .35); }
.btn-green:hover { background: #12ff8f; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-full { width: 100%; justify-content: center; }

/* ============ Header ============ */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 44px; width: auto; }
nav { display: flex; gap: 26px; margin-left: auto; }
nav a { font-size: .93rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
nav a:hover { color: var(--blue); }
.nav-cta { padding: 10px 20px; font-size: .88rem; }
#hamburger { display: none; background: none; border: none; cursor: pointer; }
#hamburger span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ============ Hero ============ */
.hero {
  position: relative; color: #fff;
  padding: 190px 0 110px; overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(7,11,52,.96) 25%, rgba(14,20,101,.82) 55%, rgba(0,132,88,.55) 100%),
    url('assets/cases/ufv-perimetro-2.jpg') center/cover no-repeat;
}
.hero-inner { position: relative; max-width: 780px; }
.hero-kicker {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  border: 1px solid rgba(0,229,122,.4); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 24px; background: rgba(0,229,122,.08);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 20px; }
.grad-text {
  background: linear-gradient(90deg, #38e089, #00e57a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.06rem; color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 46px; flex-wrap: wrap; }
.stat strong { font-family: 'Sora', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--green); display: block; }
.stat span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ============ Cards Soluções ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px;
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .2s, transform .2s, border-color .2s;
  background: #fff;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: #fff; }
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--ink-soft); }

/* ============ Dark sections ============ */
.dark-section { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.dark-section::before {
  content: ''; position: absolute; right: -180px; top: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 90px solid rgba(0,229,122,.10);
}
.dark-section h2 { color: #fff; }
.dark-section p { color: rgba(255,255,255,.8); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.check-list { list-style: none; margin: 22px 0 30px; }
.check-list li {
  padding-left: 32px; position: relative; margin-bottom: 12px; color: rgba(255,255,255,.85);
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,229,122,.15); color: var(--green);
  font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ============ Carrossel Projetos ============ */
.carousel-wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 26px; scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.case-card {
  flex: 0 0 330px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case-img { position: relative; height: 190px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case-card:hover .case-img img { transform: scale(1.05); }
.grad-cover {
  background: var(--grad); display: flex; align-items: center; justify-content: center;
}
.grad-cover svg { width: 74px; height: 74px; fill: rgba(255,255,255,.9); }
.tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(7,11,52,.78); color: #fff; backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 999px;
}
.case-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.case-body h3 { font-size: 1.08rem; }
.case-scope { font-size: .8rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.case-body p:not(.case-scope) { font-size: .88rem; color: var(--ink-soft); }
.case-link { margin-top: auto; padding-top: 10px; font-size: .85rem; font-weight: 600; color: var(--green-dark); }
.case-link:hover { text-decoration: underline; }
.car-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 1rem; cursor: pointer; box-shadow: var(--shadow);
  transition: background .15s, color .15s;
}
.car-btn:hover { background: var(--navy); color: #fff; }
.car-btn.prev { left: 6px; }
.car-btn.next { right: 6px; }

/* ============ Clientes marquee ============ */
.gray-section { background: var(--bg-gray); }
.logo-marquee { overflow: hidden; margin-top: 16px; position: relative; }
.logo-marquee::before, .logo-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-gray), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-gray), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 64px; width: max-content;
  animation: marquee 55s linear infinite; padding: 18px 0;
}
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 84px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s;
}
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Fabricantes ============ */
.fab-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px;
}
.fab {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  height: 92px; display: flex; align-items: center; justify-content: center;
  padding: 18px; transition: box-shadow .2s, transform .2s;
}
.fab:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.fab img { max-height: 46px; width: auto; object-fit: contain; }

/* ============ Contato ============ */
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-item strong { display: block; color: var(--green); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact-item span, .contact-item a { color: rgba(255,255,255,.85); }
.contact-item a:hover { color: var(--green); }
.socials { display: flex; gap: 14px; margin-top: 6px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.socials a:hover { background: var(--green); border-color: var(--green); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
.contact-form {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.contact-form h3 { margin-bottom: 18px; font-size: 1.3rem; }
.contact-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: .93rem; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,229,122,.18);
}
.dark-section .contact-form p.form-note { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* ============ Footer ============ */
footer { background: #05081f; color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.footer-wrap { display: flex; flex-direction: column; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand img { height: 42px; background: #fff; border-radius: 10px; padding: 5px 12px; }
.footer-brand p { font-size: .88rem; max-width: 420px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; }
.footer-links a:hover { color: var(--green); }
.copy { font-size: .78rem; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; padding-right: 84px; }

/* ============ WhatsApp float ============ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============ Responsivo ============ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 150px 0 80px; }
  .hero-stats { gap: 30px; }
}
@media (max-width: 820px) {
  nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  nav.open { max-height: 420px; }
  nav a { padding: 15px 24px; border-top: 1px solid var(--line); }
  #hamburger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .carousel-wrap { padding: 0 16px; }
  .car-btn { display: none; }
  .case-card { flex-basis: 285px; }
  .section { padding: 64px 0; }
}
