/* ============================================================
   APEX EDUCAÇÃO & NEGÓCIOS — Premium Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #0F678A;
  --blue-dark: #0a4f6e;
  --blue-light:#e8f4fa;
  --orange:    #E97C17;
  --orange-dk: #c96910;
  --white:     #ffffff;
  --gray-bg:   #f7f9fc;
  --gray-200:  #eef1f6;
  --gray-400:  #9aa5b8;
  --gray-600:  #5c6b82;
  --gray-800:  #1e2d3d;
  --text:      #1e2d3d;
  --text-light:#5c6b82;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15,103,138,.08);
  --shadow-md: 0 8px 32px rgba(15,103,138,.12);
  --shadow-lg: 0 20px 60px rgba(15,103,138,.16);
  --trans:     .3s cubic-bezier(.4,0,.2,1);
  --font:      'Poppins', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Commons ---------- */
.section { padding: 96px 0; }
.section--gray { background: var(--gray-bg); }
.section--blue { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(233,124,23,.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

.text-orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(233,124,23,.35);
}
.btn--orange:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  box-shadow: 0 6px 28px rgba(233,124,23,.45);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,103,138,.08);
  transition: box-shadow var(--trans), background var(--trans);
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(15,103,138,.1);
  background: rgba(255,255,255,.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity var(--trans);
}
.logo-img:hover { opacity: .85; }

.logo-img--footer {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15,103,138,.3);
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: -10px; right: -10px;
  width: 26px; height: 26px;
  background: var(--orange);
  border-radius: 50%;
  opacity: .3;
}
.logo-mark--sm { width: 36px; height: 36px; }

.logo-a {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-apex {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .04em;
}
.logo-sub {
  font-size: .65rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .02em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--trans), background var(--trans);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: left var(--trans), right var(--trans);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after { left: 12px; right: 12px; }
.nav__link.active { color: var(--blue); font-weight: 600; }
.nav__link.active::after { left: 12px; right: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #071e2c 0%, #0a3d5e 50%, #0F678A 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: rgba(233,124,23,.15);
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--2 {
  width: 360px; height: 360px;
  background: rgba(15,103,138,.4);
  bottom: -80px; left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(30px, -30px); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(233,124,23,.15);
  border: 1px solid rgba(233,124,23,.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.hero__stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero__card-wrap {
  position: relative;
  width: 380px;
  height: 360px;
}

.visual-card {
  position: absolute;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--trans);
}
.visual-card:hover { transform: translateY(-4px); }
.visual-card p { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9); }
.visual-icon { width: 48px; height: 48px; flex-shrink: 0; }
.visual-icon svg { width: 48px; height: 48px; }

.visual-card--main {
  top: 0; left: 0;
  width: 250px;
  animation: cardFloat 6s ease-in-out infinite;
}
.visual-card--alt {
  bottom: 30px; right: 0;
  width: 260px;
  animation: cardFloat 8s ease-in-out infinite reverse;
}
.visual-card--float {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  animation: cardFloat 7s ease-in-out infinite 1s;
}
.visual-card--float:hover { transform: translate(-50%,-54%); }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.visual-card--float {
  animation: cardFloat2 7s ease-in-out infinite 1s;
}
@keyframes cardFloat2 {
  0%, 100% { transform: translate(-50%,-50%) translateY(0); }
  50% { transform: translate(-50%,-50%) translateY(-10px); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}
.hero__scroll span {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__img-bg {
  position: absolute;
  top: -20px; left: -20px;
  right: 20px; bottom: 20px;
  background: linear-gradient(135deg, var(--blue-light) 0%, #d0e9f5 100%);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about__graphic {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.about__graphic svg { width: 100%; border-radius: var(--radius-md); }

.about__badge-wrap {
  position: absolute;
  bottom: -16px;
  left: 24px;
  display: flex;
  gap: 12px;
  z-index: 2;
}
.about__badge-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about__badge-item strong { display: block; font-size: 1rem; font-weight: 700; color: var(--blue); }
.about__badge-item span { font-size: .7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }

.about__content { }
.about__content .section__tag { margin-bottom: 12px; }
.about__content .section__title { text-align: left; margin-bottom: 20px; }

.about__text {
  font-size: .97rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about__text strong { color: var(--blue); font-weight: 600; }

.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.about__pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-200);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  transition: all var(--trans);
}
.about__pillar:hover {
  background: var(--blue-light);
  border-color: rgba(15,103,138,.2);
  transform: translateX(4px);
}
.about__pillar-icon {
  width: 32px; height: 32px;
  background: rgba(15,103,138,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about__pillar-icon svg { width: 16px; height: 16px; stroke: var(--blue); }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services__grid .service-card:nth-child(4) { grid-column: 1; }
.services__grid .service-card:nth-child(5) { grid-column: 2; }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--trans);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 60px; height: 60px;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 60px; height: 60px; }

.service-card__number {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  transition: color var(--trans);
}
.service-card:hover .service-card__number { color: rgba(15,103,138,.08); }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--trans), color var(--trans);
}
.service-card__link svg { width: 16px; height: 16px; transition: transform var(--trans); }
.service-card__link:hover { color: var(--orange); }
.service-card__link:hover svg { transform: translateX(4px); }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diff__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff__grid .diff__card:nth-child(4) { grid-column: 1; }
.diff__grid .diff__card:nth-child(5) { grid-column: 2; }

.diff__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--trans);
}
.diff__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15,103,138,.15);
}

.diff__icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
}
.diff__icon svg { width: 56px; height: 56px; }

.diff__card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.35;
}
.diff__card p {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================================
   IMPACT
   ============================================================ */
.impact__inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.impact__quote {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 56px;
  position: relative;
  padding: 0 20px;
}
.impact__quote::before,
.impact__quote::after {
  content: '"';
  font-size: 4rem;
  color: var(--orange);
  opacity: .4;
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.4em;
}
.impact__quote::before { margin-right: 4px; }
.impact__quote::after { margin-left: 4px; }

.impact__numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.impact__num {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}
.impact__num strong {
  display: inline-block;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.impact__num span {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--orange);
}
.impact__num p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  margin-top: 6px;
}
.impact__divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.15);
}

/* ============================================================
   CLIENTS MARQUEE
   ============================================================ */
.clients { overflow: hidden; padding-bottom: 96px; }
.clients .section__header { margin-bottom: 48px; }

.clients__track-wrap {
  position: relative;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.clients__track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.clients__item {
  flex-shrink: 0;
  width: 180px;
  height: 90px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
}
.clients__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(15,103,138,.2);
}

.clients__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  opacity: .65;
  transition: filter var(--trans), opacity var(--trans);
}
.clients__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--gray-bg) 0%, var(--blue-light) 100%);
}
.cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta__badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(15,103,138,.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.cta__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.25;
  margin-bottom: 16px;
}
.cta__sub {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section__title { text-align: left; margin-bottom: 16px; }
.contact__intro {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact__items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact__item-icon {
  width: 40px; height: 40px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__item-icon svg { width: 18px; height: 18px; stroke: var(--blue); }
.contact__item strong { display: block; font-size: .88rem; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.contact__item span { font-size: .88rem; color: var(--text-light); }

.contact__cnpj {
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.contact__cnpj small { font-size: .75rem; color: var(--gray-400); }

/* Form */
.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.contact__form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 28px;
}

.form__group {
  margin-bottom: 18px;
}
.form__group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form__group input,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--gray-bg);
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
  outline: none;
  resize: none;
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15,103,138,.1);
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--gray-400);
}

.form__success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  background: #eafaf1;
  border: 1px solid #27ae60;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: #1e7f45;
}
.form__success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form__success.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-800);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .footer__logo .logo-apex { color: var(--white); }
.footer__brand .footer__logo .logo-sub { color: rgba(255,255,255,.4); }
.footer__brand p {
  margin-top: 16px;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer__nav h5,
.footer__contact h5 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--trans), padding-left var(--trans);
}
.footer__nav a:hover { color: var(--orange); padding-left: 4px; }

.footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.footer__contact p svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; stroke: var(--orange); fill: none; }

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--trans), box-shadow var(--trans);
  z-index: 990;
}
.whatsapp-btn svg { width: 28px; height: 28px; }
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.5);
}
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,.2);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* ============================================================
   ANIMATIONS — Scroll Reveal
   ============================================================ */
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up { transform: translateY(40px); }
.fade-up--delay { transition-delay: .15s; }
.fade-up--d2 { transition-delay: .1s; }
.fade-up--d3 { transition-delay: .2s; }
.fade-left { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__grid .service-card:nth-child(4),
  .services__grid .service-card:nth-child(5) { grid-column: auto; }

  .diff__grid { grid-template-columns: 1fr 1fr; }
  .diff__grid .diff__card:nth-child(4),
  .diff__grid .diff__card:nth-child(5) { grid-column: auto; }

  .hero__inner { gap: 40px; }
  .about__inner { gap: 48px; }
  .contact__inner { gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Header mobile */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 8px;
    box-shadow: -4px 0 40px rgba(0,0,0,.15);
    transition: right var(--trans);
    z-index: 1000;
  }
  .nav.open { right: 0; }
  .nav__list { flex-direction: column; align-items: flex-start; width: 100%; gap: 2px; }
  .nav__link { font-size: 1rem; padding: 12px 8px; }
  .nav .btn { width: 100%; justify-content: center; margin-top: 12px; }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 24px;
  }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: none; }

  /* About */
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { display: none; }
  .about__content .section__title { text-align: center; }
  .about__content .section__tag { display: block; text-align: center; }

  /* Services & Diff */
  .services__grid { grid-template-columns: 1fr; }
  .diff__grid { grid-template-columns: 1fr; }

  /* Impact */
  .impact__numbers { flex-direction: column; gap: 24px; }
  .impact__divider { width: 60px; height: 1px; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom .container { flex-direction: column; text-align: center; }

  /* CTA */
  .cta__title br { display: none; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 20px; }
  .hero__stat strong { font-size: 1.3rem; }
  .contact__form-wrap { padding: 24px 16px; }
  .about__pillars { grid-template-columns: 1fr; }
}

/* Overlay for mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }
