/* =======================================================
   BRAINERGY AI AGENCY – style.css  (layout card / fundo branco)
   ======================================================= */

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

:root {
  /* Palette – calibrada com base no logo Brainergy */
  --navy:        #0b1a38;           /* azul navy exato do logo */
  --navy2:       #0d1f45;
  --navy3:       #091530;
  --card-bg:     #0d1c33;
  --card-bg2:    #111f38;
  --cyan:        #00c8d7;           /* ciano do ícone/texto do logo */
  --cyan-lt:     #22d3ee;
  --cyan-dim:    rgba(0,200,215,0.14);
  --border:      rgba(0,200,215,0.22);
  --white:       #ffffff;
  --gray:        #94a3b8;
  --gray-lt:     #cbd5e1;
  --page-bg:     #ffffff;           /* pure white page background */
  --page-bg-outer: #e8eef8;         /* outer wrapper light blue */

  /* Typography */
  --ff: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: 1.5rem;
  --hero-radius: 22px;              /* rounded corners on hero card */

  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--ff);
  background: var(--page-bg);       /* ← pure white everywhere */
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  background: var(--page-bg);
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--page-bg); }
::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.4); border-radius: 3px; }

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── Logo ────────────────────────────────────────────────  */
.logo-icon svg,
.logo-icon-lg svg {
  display: block;
  filter: drop-shadow(0 0 7px rgba(6,182,212,0.55));
}
.logo-text  { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo-name  { display: flex; align-items: baseline; }
.logo-brain { font-size: 1.12rem; font-weight: 900; letter-spacing: .06em; color: var(--white); }
.logo-ergy  { font-size: 1.12rem; font-weight: 900; letter-spacing: .06em; color: var(--cyan); }
.logo-sub   { font-size: .5rem;  letter-spacing: .22em; color: var(--cyan-lt); text-transform: uppercase; opacity: .85; }

/* ─── HERO WRAPPER (the big dark rounded card) ───────────── */
/*
   Structure:
   .hero-card  ← big dark rounded rectangle (full-width inside page padding)
     .header
     .hero  (canvas + content)
   .services   ← overlapping out below .hero-card
*/

.page-wrapper {
  padding: 1.2rem;                  /* space around the card on all sides */
  position: relative;
  background: var(--page-bg);       /* pure white outer area */
  min-height: 100vh;
}
.hero-card {
  background: linear-gradient(160deg, #0b1a38 0%, #091530 60%, #0d1f45 100%);
  border-radius: var(--hero-radius);
  overflow: visible;               /* allow icon boxes to overlap from below */
  position: relative;
  max-width: var(--container);     /* same max-width as other sections */
  margin-inline: auto;             /* center horizontally */
  box-shadow:
    0 8px 40px rgba(0,0,0,0.45),
    0 2px 8px  rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(0,200,215,0.06);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: var(--hero-radius) var(--hero-radius) 0 0;
  background: #0b1a38;              /* exata cor de fundo do logo */
  border-bottom: 1px solid rgba(0,200,215,0.18);
  box-shadow:
    0 1px 0 rgba(0,200,215,0.08),
    0 2px 12px rgba(0,0,0,0.3);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled {
  background: #0b1a38;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.65),
    0 1px 0 rgba(0,200,215,0.18);
}

.nav {
  display: flex;
  align-items: center;
  height: 96px;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: auto;
  max-height: 52px;            /* proporcional: navbar 96px − 44px de respiro */
  width: auto;
  max-width: 220px;
  display: block;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  image-rendering: high-quality;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav__logo-img:hover { opacity: .9; transform: scale(1.02); }

/* ── Nav links – right side (matching screenshot order) ─── */
.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;               /* push to right */
}

.nav__link {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gray-lt);
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: color .2s var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: width .25s var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* ── Nav Dropdown ─── */
.nav__item-dropdown { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(.97);
  background: #0f1e34;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .5rem;
  list-style: none;
  min-width: 180px;
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 200;
}
.nav__item-dropdown:hover .nav__dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
.nav__item-dropdown::after { 
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 20px;
}
.nav__dropdown-link {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-lt);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 6px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__dropdown-link:hover {
  background: rgba(255,255,255,.06);
  color: var(--cyan);
}
.nav__link .chevron,
.nav__dropdown-link .chevron {
  transition: transform .22s var(--ease);
}
.nav__item-dropdown:hover > .nav__link .chevron,
.nav__item-subdropdown:hover > .nav__dropdown-link .chevron {
  transform: rotate(180deg);
}
.nav__item-subdropdown:hover .nav__subdropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav__item-subdropdown { position: relative; }
.nav__subdropdown {
  position: absolute;
  top: calc(100% + 0.5rem + 2px); /* Inicia abaixo do fim da caixa do menu pai */
  left: -0.6rem; /* Alinha exatamente com a borda esquerda da caixa pai */
  transform: translateY(-10px) scale(.97);
  background: #0f1e34;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .5rem;
  list-style: none;
  min-width: 180px; /* Mesma largura da caixa pai */
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 200;
}
.nav__item-subdropdown::after { 
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 15px;
}

/* ── Nav controls (divider, lang, CTA) ─── */
.nav__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav__divider {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.14);
  flex-shrink: 0;
}

/* Language Selector */
.lang-selector { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: .38rem;
  background: none;
  border: none;
  color: var(--gray-lt);
  font-family: var(--ff);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  padding: .32rem .45rem;
  border-radius: 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-btn:hover { color: var(--white); background: rgba(255,255,255,.06); }

.chevron {
  transition: transform .22s var(--ease);
  flex-shrink: 0;
}
.lang-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #0f1e34;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .35rem;
  list-style: none;
  min-width: 152px;
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 200;
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  font-size: .8rem;
  padding: .45rem .8rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--gray-lt);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.lang-option:hover  { background: rgba(6,182,212,.12); color: var(--cyan-lt); }
.lang-option.active { color: var(--cyan); font-weight: 600; background: rgba(6,182,212,.08); }

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1.3rem;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--ff);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .2s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(6,182,212,0.38);
}
.btn-cta:hover {
  background: var(--cyan-lt);
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(6,182,212,.6);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.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 SECTION ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(5,12,28,0.4) 0%, rgba(11,23,48,0.75) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(11,23,48,0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 5rem 4.5rem;      /* bottom space inside hero card */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Badge pill */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: .5rem 1.4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  color: var(--gray-lt);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(6,182,212,.7); }
  50%      { box-shadow: 0 0 0 7px rgba(6,182,212,0); }
}

/* Hero title */
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--white);
}
.hero__line2 { display: block; }
.hero__accent {
  color: var(--cyan);
  font-style: normal;
  animation: glow 3s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 20px rgba(6,182,212,.5); }
  to   { text-shadow: 0 0 45px rgba(6,182,212,.95), 0 0 80px rgba(6,182,212,.35); }
}

.hero__sub {
  font-size: clamp(.95rem, 2vw, 1.18rem);
  color: var(--gray-lt);
  font-weight: 400;
  max-width: 540px;
  line-height: 1.6;
}

/* ─── SERVICES CARDS  ─────────────────────────────────────
   Cards rise up to overlap hero card bottom;
   icon sits at top of each card inside the overlap
   ─────────────────────────────────────────────────────── */
.services {
  position: relative;
  z-index: 10;
  margin-top: -80px;               /* overlap hero card bottom */
  padding-bottom: 0;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2.4rem;          /* doubled equal left/right space */
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;                        /* white gap between each separate card */
}

/* Remove old divider rule – now handled by grid gap */

.card {
  background: var(--card-bg);
  border-radius: var(--hero-radius);  /* full rounded corners */
  padding: 1.5rem 1.8rem 2.2rem;   /* top padding accommodates the icon inside */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
  cursor: default;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.card:hover {
  background: var(--card-bg2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
}

/* Icon box – sits at the top of the card, slightly overlapping the hero card */
.card__icon {
  width: 78px; height: 78px;
  background: rgba(6,182,212,0.14);
  border: 1.5px solid rgba(6,182,212,0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  margin-top: -50px;               /* pulls icon up so it overlaps the hero card */
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4), 0 0 0 1px rgba(6,182,212,0.12);
}
.card:hover .card__icon {
  background: rgba(6,182,212,0.24);
  box-shadow: 0 6px 26px rgba(6,182,212,0.35);
  transform: translateY(-3px);
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.3;
}

.card__desc {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
}
/* Cyan highlight on links within card desc */
.card__desc strong,
.card__desc a { color: var(--cyan); font-weight: 500; text-decoration: none; }


/* ─── BELOW-CARD sections (on the light background) ──────── */
/* All sections below the hero card sit on the white background */

/* shared section wrapper */
.section-wrap {
  padding: 5rem 0;
  color: var(--navy);              /* text dark on white bg */
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

/* ─── SERVICES EXTENDED ───────────────────────────────── */
.services-extended {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: var(--page-bg);
}

/* canvas hidden in light sections */
.services-extended__canvas,
.about__canvas {
  display: none;
}
.services-extended__overlay,
.about__overlay {
  display: none;
}

.services-extended__inner {
  position: relative;
  z-index: 2;
  background: #1a2c4e;             /* solid dark card */
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 18px;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}
/* Override text colors inside dark section */
.services-extended__inner .section-title { color: var(--white); }

.services-extended__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 3rem;
}

.svc-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(6,182,212,0.1);
  transition: transform .22s var(--ease);
}
.svc-item:hover { transform: translateX(4px); }

.svc-item__num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cyan);
  opacity: .22;
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  transition: opacity .22s var(--ease);
}
.svc-item:hover .svc-item__num { opacity: .65; }

.svc-item__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}
.svc-item__desc {
  font-size: .87rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ─── ABOUT ─────────────────────────────────────────────── */
.about {
  position: relative;
  padding: 0 0 4rem;
  background: var(--page-bg);
}

.about__inner {
  position: relative;
  z-index: 2;
  background: var(--navy);         /* same navy as hero card */
  border: 1px solid rgba(6,182,212,0.18);
  border-radius: 18px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;  /* esquerda (texto+logo) | direita (form) */
  gap: 3rem;
  align-items: stretch;            /* colunas com mesma altura */
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
  overflow: hidden;
}
.about__inner .section-title { color: var(--white); }
#about-heading {
  font-size: clamp(1.1rem, 2.2vw, 1.7rem); /* máximo que cabe sem quebrar "IA" */
  white-space: nowrap;                       /* proíbe quebra de linha */
}

/* Coluna esquerda: texto + logo */
.about__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* texto no topo, logo no fundo */
  gap: 2rem;
}

.about__desc {
  font-size: 1rem;
  color: var(--gray-lt);
  line-height: 1.7;
  max-width: 580px;
}

/* Divisor decorativo entre texto e logo na coluna esquerda */
.about__logo-card {
  display: flex;
  align-items: center;
  padding-top: 1.6rem;
  margin-top: .4rem;
  border-top: 1px solid rgba(0,200,215,0.15);  /* linha ciana sutil */
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
}

.about__logo-img {
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  /* Dissolve o fundo branco do JPG contra o fundo escuro navy */
  mix-blend-mode: screen;
  opacity: .92;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.about__logo-card:hover .about__logo-img {
  opacity: 1;
  transform: scale(1.04);
}

/* Coluna direita: formulário de contato embutido */
.about__contact {
  border-left: 1px solid rgba(6,182,212,0.15);
  padding-left: 3rem;
}


/* ─── CONTACT (estilos do formulário – agora dentro do .about card) ─── */

.contact__title {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact__form { display: flex; flex-direction: column; gap: 1.35rem; }

.form-group { display: flex; flex-direction: column; gap: .45rem; }

.form-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--gray-lt);
  text-transform: uppercase;
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  padding: .82rem 1rem;
  color: var(--white);
  font-family: var(--ff);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,.13);
}
.form-input::placeholder { color: rgba(255,255,255,.18); }
.form-input.error { border-color: #f87171; }

.form-input--code {
  width: 70px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 600;
  color: var(--gray-lt);
}

.phone-row { display: flex; gap: .65rem; }

.form-textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  padding: .95rem;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--ff);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 0 20px rgba(6,182,212,.32);
}
.btn-submit:hover {
  background: var(--cyan-lt);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6,182,212,.52);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit.loading { opacity: .65; cursor: not-allowed; }

.form-msg {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  font-weight: 600;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid;
  animation: msgFadeIn .35s ease;
}
/* Garante que o atributo [hidden] funcione mesmo com display:flex definido */
.form-msg[hidden] { display: none !important; }
.form-msg--ok  { color: #4ade80; background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.25); }
.form-msg--err { color: #f87171; background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.25); }

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--page-bg);
  border-top: 1px solid rgba(11,23,48,0.1);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.footer__socials { display: flex; gap: .9rem; }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
  color: #64748b;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.social-btn:hover {
  color: var(--cyan);
  border-color: rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.08);
  transform: translateY(-2px);
}

.footer__copy {
  font-size: .68rem;
  letter-spacing: .12em;
  color: #94a3b8;
  text-transform: uppercase;
  text-align: center;
}

/* ─── Scroll-reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; gap: 0; }
  .services__grid .card:not(:last-child) {
    border-right: none;
    border-bottom: 3px solid var(--page-bg);
  }
  .card:first-child { border-radius: 0; }
  .card:last-child  { border-radius: 0 0 var(--hero-radius) var(--hero-radius); }
  .services-extended__grid { grid-template-columns: 1fr; }
  /* About: empilha as colunas em telas menores */
  .about__inner { grid-template-columns: 1fr; }
  .about__contact { border-left: none; padding-left: 0; border-top: 1px solid rgba(6,182,212,0.15); padding-top: 2rem; }
  .about__logo-card { margin-inline: auto; }
  .contact__card { padding: 2rem 1.25rem; }
}

@media (max-width: 768px) {
  .card__icon { margin-top: -38px; }
  .page-wrapper { padding: .75rem; }
  --hero-radius: 14px;

  .nav__links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(11,23,48,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s var(--ease), opacity .32s var(--ease);
    backdrop-filter: blur(14px);
    z-index: 99;
    margin-left: 0;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links li { width: 100%; }
  .nav__link {
    display: block;
    text-align: center;
    padding: 1rem;
    font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav__link br { display: none; }
  .hamburger { display: flex; }
  .hero__content { padding-block: 4rem 4.5rem; }
  .services { margin-top: -60px; }
}

@media (max-width: 520px) {
  .nav__controls { gap: .5rem; }
  .nav__divider  { display: none; }
  .btn-cta       { padding: .45rem .8rem; font-size: .7rem; }
  #lang-code     { display: none; }
}
