/* =========================================================
   MA ENGENHARIA ESTRUTURAL -- Stylesheet
   Design system: navy + gold + charcoal, geometric/structural motifs
========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
input, textarea, select { outline: none; }

/* ---------- Design tokens ---------- */
:root {
  --navy: #2c2c48;
  --navy-2: #23233c;
  --navy-3: #1a1a2e;
  --navy-tint: #3d3d63;
  --gold: #cc9e3c;
  --gold-light: #e0bc63;
  --gold-dark: #a67d2e;
  --charcoal: #373435;
  --white: #ffffff;
  --off-white: #faf8f4;
  --paper: #f2efe8;
  --ink: #26263f;
  --ink-soft: #5c5c74;
  --ink-faint: #8b8ba0;
  --border-soft: #e7e3d9;
  --success: #2e8b57;
  --danger: #d64545;

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px rgba(26,26,46,.08);
  --shadow-md: 0 12px 32px rgba(26,26,46,.12);
  --shadow-lg: 0 24px 60px rgba(26,26,46,.18);
  --ease: cubic-bezier(.19,1,.22,1);
  --header-h: 84px;
}

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

html.no-scroll, body.no-scroll { overflow: hidden; height: 100%; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; font-weight: 700; }

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

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

.section__head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 16px; }
.section__title--light { color: var(--white); }
.section__subtitle { color: var(--ink-soft); font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--gold-dark);
  margin-bottom: 14px;
  position: relative;
  padding-left: 34px;
}
.eyebrow::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 24px; height: 2px; background: var(--gold);
}
.eyebrow--light { color: var(--gold-light); }

.text-gold { color: var(--gold); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 12px 20px; z-index: 9999; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 40px; height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 14px 28px; border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 8px 24px rgba(204,158,60,.35); }
.btn--gold:hover { background: var(--gold-light); color: #fff; box-shadow: 0 12px 32px rgba(204,158,60,.5); transform: translateY(-2px); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-2px); }

.btn--outline-dark { background: transparent; color: var(--navy-3); border: 1.5px solid rgba(26,26,46,.35); }
.btn--outline-dark:hover { background: var(--navy-3); color: #fff; border-color: var(--navy-3); }

.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* =========================================================
   SPLASH SCREEN
========================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--navy-3);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 28px;
  max-width: 420px;
  width: 100%;
}

.splash__logo {
  display: block;
  width: auto;
  height: clamp(56px, 10vw, 88px);
  max-width: min(86vw, 360px);
  margin: 0 auto;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateY(8px);
  animation: splashLogoIn .9s var(--ease) .15s forwards;
}
@keyframes splashLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

.splash__tag {
  margin-top: 28px;
  color: rgba(255,255,255,.55);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  animation: splashFadeUp .7s var(--ease) .55s forwards;
}
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash__bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,.1);
  margin: 32px auto 0;
  border-radius: 99px;
  overflow: hidden;
  opacity: 0;
  animation: splashFadeUp .6s var(--ease) .75s forwards;
}
.splash__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width .25s ease;
  border-radius: 99px;
}

/* =========================================================
   HEADER
========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 0;
  transition: background-color .4s ease, box-shadow .4s ease, padding .4s ease;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.header__logo { display: inline-flex; align-items: center; height: 44px; }
.header__logo-img { height: 100%; width: auto; object-fit: contain; transition: opacity .3s ease; }
.header__logo-img--dark { display: none; }

.header.is-scrolled { background: rgba(250,248,244,.92); backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(26,26,46,.08); padding: 10px 0; }
.header.is-scrolled .header__logo-img--light { display: none; }
.header.is-scrolled .header__logo-img--dark { display: block; }

.nav__list { display: flex; gap: 34px; }
.nav__link {
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: #fff;
  position: relative; padding: 6px 0; transition: color .3s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link:hover, .nav__link.is-active { color: var(--gold-light); }
.header.is-scrolled .nav__link { color: var(--navy); }
.header.is-scrolled .nav__link:hover, .header.is-scrolled .nav__link.is-active { color: var(--gold-dark); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__cta { flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: all .35s var(--ease); }
.header.is-scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.is-active span { background: var(--navy) !important; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 890; background: var(--navy-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  transform: translateY(-100%); transition: transform .55s var(--ease);
  padding: 100px 24px 40px;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__list { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-nav__list li { opacity: 0; transform: translateY(16px); transition: all .5s var(--ease); transition-delay: calc(var(--d) * .06s); }
.mobile-nav.is-open .mobile-nav__list li { opacity: 1; transform: translateY(0); }
.mobile-nav__link { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; }
.mobile-nav__link:hover { color: var(--gold); }
.mobile-nav__social { display: flex; gap: 22px; }
.mobile-nav__social a { color: rgba(255,255,255,.7); }
.mobile-nav__social a:hover { color: var(--gold); }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: var(--header-h);
}
.hero__bg {
  position: absolute; inset: -5% -5% -20% -5%; background-size: cover; background-position: 60% center;
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,46,.75) 0%, rgba(26,26,46,.55) 45%, rgba(26,26,46,.92) 100%),
    linear-gradient(100deg, rgba(26,26,46,.65) 10%, rgba(26,26,46,.15) 55%, rgba(204,158,60,.1) 100%);
}
.hero__pattern {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url('../img/padrao-ma.png');
  background-repeat: repeat-y;
  background-position: right top;
  background-size: 140px auto;
  opacity: .12;
  mix-blend-mode: screen;
}
.hero__grid-lines {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero .container { padding-left: clamp(48px, 8vw, 140px); padding-right: clamp(24px, 4vw, 48px); }
.hero__inner { position: relative; z-index: 2; padding: 100px 0 60px; max-width: 720px; }
.hero__title { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5rem); margin: 10px 0 24px; }
.hero__title span { display: block; }
.hero__title--accent { color: var(--gold); }
.hero__subtitle { color: rgba(255,255,255,.85); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 620px; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; }

.hero__stats { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.15); background: rgba(20,20,36,.55); backdrop-filter: blur(10px); }
.hero__stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 24px; gap: 20px; }
.stat { text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--gold); }
.stat__plus { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.stat__label { display: block; font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 4px; letter-spacing: .02em; }

.hero__scroll {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #fff; opacity: .8; animation: bounce 2s ease-in-out infinite;
}
@media (max-width: 900px) { .hero__scroll { display: none; } }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

@media (max-width: 900px) {
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero .reveal { transform: translateY(24px); }

/* =========================================================
   SOBRE
========================================================= */
.sobre__grid { display: grid; grid-template-columns: .85fr 1fr; gap: 80px; align-items: center; }
.sobre__media { position: relative; }
.sobre__media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 2; aspect-ratio: 4/5; }
.sobre__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.sobre__pattern {
  position: absolute; top: -24px; right: -24px; width: 65%; height: 65%; z-index: 1;
  border: 3px solid var(--gold); border-radius: var(--radius-lg); opacity: .5;
}
.sobre__badge {
  position: absolute; bottom: -28px; left: -28px; z-index: 3;
  background: var(--navy); color: #fff; padding: 20px 26px; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg);
}
.sobre__badge svg { color: var(--gold); }
.sobre__badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); }
.sobre__badge span { font-size: .78rem; color: rgba(255,255,255,.8); line-height: 1.3; }

.sobre__text { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.02rem; }
.sobre__list { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.sobre__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.sobre__list .icon { color: var(--gold); }

@media (max-width: 940px) {
  .sobre__grid { grid-template-columns: 1fr; gap: 90px 0; }
  .sobre__media { max-width: 420px; margin: 0 auto 30px; }
}

/* =========================================================
   DIFERENCIAIS
========================================================= */
.diferenciais { background: var(--paper); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.diff-card {
  background: #fff; border-radius: var(--radius-md); padding: 40px 32px; text-align: left;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  border: 1px solid var(--border-soft);
}
.diff-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.diff-card__icon {
  width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--gold);
  transition: transform .4s var(--ease);
}
.diff-card:hover .diff-card__icon { transform: rotate(-6deg) scale(1.06); }
.diff-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.diff-card p { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .diff-grid { grid-template-columns: 1fr; } }

/* =========================================================
   SERVICOS -- flip cards
========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.flip-card { perspective: 1600px; height: 400px; }
.flip-card__inner {
  position: relative; width: 100%; height: 100%; transition: transform .8s var(--ease);
  transform-style: preserve-3d; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.flip-card.is-flipped .flip-card__inner, .flip-card:hover .flip-card__inner { transform: rotateY(180deg); }

.flip-card__front, .flip-card__back {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-md); overflow: hidden;
}
.flip-card__front {
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  color: #fff;
}
.flip-card__front-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,.15) 0%, rgba(26,26,46,.55) 60%, rgba(26,26,46,.92) 100%);
}
.flip-card__icon { position: relative; z-index: 1; color: var(--gold); margin-bottom: 12px; }
.flip-card__front h3 { position: relative; z-index: 1; color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.flip-card__hint { position: relative; z-index: 1; font-size: .78rem; color: rgba(255,255,255,.65); }

.flip-card__back {
  transform: rotateY(180deg); background: var(--navy);
  padding: 34px 28px; display: flex; flex-direction: column; gap: 14px; color: #fff;
}
.flip-card__back svg { color: var(--gold); }
.flip-card__back h3 { color: #fff; font-size: 1.2rem; }
.flip-card__back p { color: rgba(255,255,255,.78); font-size: .92rem; flex: 1; }
.flip-card__back .btn { align-self: flex-start; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } .flip-card { height: 360px; } }

/* =========================================================
   TECNOLOGIA / BIM
========================================================= */
.tecnologia {
  background: linear-gradient(160deg, var(--navy-3), var(--navy) 70%);
  position: relative; overflow: hidden;
}
.tecnologia::before {
  content: ''; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 50px 50px;
}
.tecnologia__grid { display: grid; grid-template-columns: 1fr .95fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.tecnologia__text { color: rgba(255,255,255,.78); margin: 20px 0 32px; font-size: 1.02rem; }
.tecnologia__text strong { color: var(--gold-light); }
.tecnologia__features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 34px; }
.tf { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 14px 16px; border-radius: var(--radius-sm); color: #fff; font-weight: 600; font-size: .9rem; }
.tf .icon { color: var(--gold); flex-shrink: 0; }

.tecnologia__media { position: relative; }
.tecnologia__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #fff; }
.tecnologia__media-frame { position: absolute; inset: -18px; border: 2px solid rgba(204,158,60,.4); border-radius: var(--radius-lg); z-index: -1; }

@media (max-width: 940px) {
  .tecnologia__grid { grid-template-columns: 1fr; gap: 50px; }
  .tecnologia__media { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 500px) { .tecnologia__features { grid-template-columns: 1fr; } }

/* =========================================================
   PORTFOLIO
========================================================= */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.filter-btn {
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; padding: 11px 24px;
  border-radius: 100px; border: 1.5px solid var(--border-soft); color: var(--ink-soft); background: #fff;
  transition: all .3s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3.2; box-shadow: var(--shadow-sm); transition: transform .3s ease;
}
.portfolio-item.is-hidden { display: none; }
.portfolio-item:hover { transform: translateY(-6px); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  background: linear-gradient(180deg, transparent 40%, rgba(26,26,46,.95) 100%);
  color: #fff;
}
.tag { display: inline-block; background: var(--gold); color: var(--navy-3); font-size: .72rem; font-weight: 800; padding: 5px 14px; border-radius: 100px; margin-bottom: 10px; align-self: flex-start; letter-spacing: .03em; }
.portfolio-item__overlay h3 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.portfolio-item__link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--gold-light); }
.portfolio-empty { text-align: center; color: var(--ink-faint); padding: 40px 0; font-size: 1.05rem; }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* =========================================================
   EQUIPE
========================================================= */
.team-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.team-media { position: relative; }
.team-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3/3.6; object-fit: cover; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.team-media__frame { position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--gold); border-radius: var(--radius-lg); z-index: 1; }

.team-content__name { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.team-content__role { color: var(--gold-dark); font-weight: 700; font-family: var(--font-head); margin: 6px 0 20px; }
.team-content__bio { color: var(--ink-soft); margin-bottom: 30px; font-size: 1.03rem; }

.team-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }
.team-fact { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--radius-sm); padding: 16px; }
.team-fact svg { color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.team-fact strong { display: block; font-size: .82rem; color: var(--navy); margin-bottom: 3px; }
.team-fact span { font-size: .85rem; color: var(--ink-soft); }

.team-quote { position: relative; background: var(--navy); color: #fff; padding: 32px 30px; border-radius: var(--radius-md); }
.team-quote svg { color: var(--gold); opacity: .8; margin-bottom: 12px; }
.team-quote p { font-size: 1.05rem; font-style: italic; line-height: 1.6; margin-bottom: 12px; color: rgba(255,255,255,.92); }
.team-quote cite { font-style: normal; font-weight: 700; color: var(--gold-light); font-size: .9rem; }

@media (max-width: 940px) {
  .team-grid { grid-template-columns: 1fr; gap: 60px; }
  .team-media { max-width: 320px; margin: 0 auto; }
  .team-facts { grid-template-columns: 1fr; }
}

/* =========================================================
   DEPOIMENTOS
========================================================= */
.depoimentos { background: var(--paper); }
.carousel { max-width: 820px; margin: 0 auto; position: relative; }
.carousel__track { display: flex; transition: transform .6s var(--ease); }
.testimonial {
  flex: 0 0 100%; background: #fff; border-radius: var(--radius-lg); padding: 48px 52px; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-soft);
}
.testimonial__quote { color: var(--gold); margin: 0 auto 12px; opacity: .8; }
.testimonial__stars { display: flex; justify-content: center; gap: 4px; color: var(--gold); margin-bottom: 18px; }
.testimonial p { font-size: 1.15rem; color: var(--navy); line-height: 1.6; margin-bottom: 26px; font-weight: 500; }
.testimonial__author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.testimonial__author strong { display: block; color: var(--navy); font-size: .95rem; }
.testimonial__author span { font-size: .82rem; color: var(--ink-faint); }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 34px; }
.carousel__arrow {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1.5px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--navy); transition: all .3s ease; flex-shrink: 0;
}
.carousel__arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.carousel__dots { display: flex; gap: 9px; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border-soft); transition: all .3s ease; }
.carousel__dots button.is-active { background: var(--gold); width: 26px; border-radius: 6px; }

@media (max-width: 600px) { .testimonial { padding: 36px 26px; } .testimonial p { font-size: 1rem; } }

/* =========================================================
   CTA BAND
========================================================= */
.cta-band { position: relative; background: linear-gradient(120deg, var(--gold-dark), var(--gold) 60%, var(--gold-light)); padding: 90px 0; overflow: hidden; }
.cta-band__pattern {
  position: absolute; inset: 0; opacity: .18;
  background-image: url('../img/padrao-ma.png');
  background-repeat: repeat;
  background-size: 110px auto;
  background-position: center;
  mix-blend-mode: multiply;
}
.cta-band__inner { position: relative; text-align: center; max-width: 720px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy-3); margin-bottom: 16px; }
.cta-band p { color: rgba(26,26,46,.75); font-size: 1.08rem; margin-bottom: 34px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }

/* =========================================================
   CONTATO
========================================================= */
.contato__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; }
.contato__info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 20px 22px; transition: all .3s ease;
}
a.info-card:hover { border-color: var(--gold); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.info-card__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card strong { display: block; font-size: .95rem; color: var(--navy); }
.info-card span { font-size: .88rem; color: var(--ink-soft); }

.contato__social { margin-top: 12px; display: flex; align-items: center; gap: 16px; }
.contato__social span { font-weight: 700; font-size: .85rem; color: var(--navy); }
.contato__social div { display: flex; gap: 10px; }
.contato__social a { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .3s ease; }
.contato__social a:hover { background: var(--gold); color: #fff; }

.contato__form { background: #fff; border-radius: var(--radius-lg); padding: 42px; box-shadow: var(--shadow-md); border: 1px solid var(--border-soft); }
.contato__form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--off-white); font-size: .95rem; transition: border-color .3s ease, background .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field__error { display: none; color: var(--danger); font-size: .78rem; margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: .84rem; color: var(--ink-soft); cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--gold-dark); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox a { color: var(--gold-dark); font-weight: 600; }

@media (max-width: 940px) { .contato__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .contato__form { padding: 28px 22px; } }

/* =========================================================
   FOOTER
========================================================= */
.footer { position: relative; background: var(--navy-3); color: rgba(255,255,255,.75); padding: 80px 0 0; overflow: hidden; }
.footer__pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('../img/padrao-ma.png');
  background-repeat: repeat;
  background-size: 130px auto;
  background-position: center top;
  opacity: .015;
  mix-blend-mode: screen;
}
.footer__grid,
.footer__bottom {
  position: relative;
  z-index: 1;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: .9rem; line-height: 1.7; max-width: 300px; margin-bottom: 22px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; transition: all .3s ease; }
.footer__social a:hover { background: var(--gold); color: var(--navy-3); }

.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: .9rem; transition: color .3s ease; }
.footer__col a:hover { color: var(--gold-light); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.footer__contact .icon { color: var(--gold); margin-top: 2px; }

.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 26px 24px; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer__bottom-inner div { display: flex; gap: 22px; }
.footer__bottom-inner a:hover { color: var(--gold-light); }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom-inner { flex-direction: column; text-align: center; } }

/* =========================================================
   FLOATING BUTTONS
========================================================= */
.whatsapp-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 500;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .3s ease;
}
.whatsapp-fab .icon { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ringPulse 2.2s ease-out infinite; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

.back-to-top {
  position: fixed; bottom: 26px; right: 96px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .35s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--navy-3); }

@media (max-width: 560px) {
  .whatsapp-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .whatsapp-fab .icon { width: 26px; height: 26px; }
  .back-to-top { width: 42px; height: 42px; bottom: 18px; right: 82px; }
}

/* =========================================================
   MODAL / LIGHTBOX
========================================================= */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20,20,36,.8); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative; background: #fff; border-radius: var(--radius-lg); max-width: 760px; width: 100%; max-height: 88vh;
  overflow-y: auto; box-shadow: var(--shadow-lg); transform: scale(.92) translateY(20px); transition: transform .45s var(--ease);
}
.modal.is-open .modal__panel { transform: scale(1) translateY(0); }
.modal__close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: var(--navy); box-shadow: var(--shadow-sm); transition: all .3s ease; }
.modal__close:hover { background: var(--gold); color: var(--navy-3); }
.modal__image { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.modal__image img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 32px 36px 36px; }
.modal__body h3 { font-size: 1.5rem; margin: 10px 0 14px; }
.modal__body p { color: var(--ink-soft); margin-bottom: 24px; line-height: 1.7; }

/* =========================================================
   TOAST
========================================================= */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(30px); z-index: 3000;
  background: var(--navy-3); color: #fff; padding: 16px 26px; border-radius: 100px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .4s var(--ease);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast .icon { color: var(--success); flex-shrink: 0; }
.toast.is-error .icon { color: var(--danger); }

/* =========================================================
   COOKIE BANNER
========================================================= */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: var(--navy-3); color: rgba(255,255,255,.85); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
  transform: translateY(100%); transition: transform .5s var(--ease);
  box-shadow: 0 -8px 24px rgba(0,0,0,.2);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner svg { color: var(--gold); flex-shrink: 0; }
.cookie-banner p { font-size: .88rem; max-width: 560px; text-align: center; }
.cookie-banner a { color: var(--gold-light); font-weight: 600; }

@media (max-width: 600px) { .cookie-banner { flex-direction: column; text-align: center; padding: 20px; } }

/* =========================================================
   MISC responsive header
========================================================= */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
}

/* Selection color */
::selection { background: var(--gold); color: var(--navy-3); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
