/* ===================================================================
   MASTERCOM CAPITAL — identidade original
   Paleta: azul #0A4168 (do próprio site) | Fonte: Open Sans
   =================================================================== */

:root {
  --azul: #0A4168;
  --azul-esc: #07304D;
  --azul-med: #1565A0;
  --azul-claro: #E8F1F8;
  --cinza: #777777;
  --cinza-claro: #F5F7F9;
  --linha: #E1E7ED;
  --ink: #2C3E50;
  --max: 1200px;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cinza);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 25px; }

h1, h2, h3, h4 { margin: 0 0 .55em; line-height: 1.25; font-weight: 700; color: var(--azul); letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }
p  { margin: 0 0 1.1em; }

/* ---------------- header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10,65,104,.10);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 14px 0;
}
body.is-home .site-header:not(.scrolled) {
  background: transparent;
  box-shadow: none;
  padding: 20px 0;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(10,65,104,.11); padding: 10px 0; }

.header-inner { display: flex; align-items: center; gap: 28px; }

.logo { flex-shrink: 0; display: block; }
.logo img { height: 52px; width: auto; }
.logo .logo-escuro { display: none; }body.is-home .logo .logo-claro { display: block; }
body.is-home .logo .logo-escuro { display: none; }
body.is-home .site-header.scrolled .logo .logo-claro { display: none; }
body.is-home .site-header.scrolled .logo .logo-escuro { display: block; }
body.is-inner .logo .logo-claro { display: none; }
body.is-inner .logo .logo-escuro { display: block; }

.nav { display: flex; gap: 1px; margin-left: auto; align-items: center; }
.nav-link {
  padding: 10px clamp(7px, .72vw, 11px);
  font-size: clamp(11.5px, .95vw, 14px);
  font-weight: 600;
  color: var(--azul); transition: .2s; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
body.is-home .site-header:not(.scrolled) .nav-link { color: #fff; }
.nav-link:hover { background: var(--azul-claro); }
body.is-home .site-header:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,.15); }
.nav-link.active { color: var(--azul-med); box-shadow: inset 0 -2px 0 var(--azul-med); }
body.is-home .site-header:not(.scrolled) .nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 #fff; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 25px; height: 2px; background: var(--azul); margin: 5px 0; transition: .3s; }
body.is-home .site-header:not(.scrolled) .burger span { background: #fff; }

/* ---------------- HERO / CARROSSEL ---------------- */
.hero-slider {
  position: relative; height: 86vh; min-height: 540px; max-height: 780px;
  overflow: hidden; background: var(--azul-esc);
}
.slides-track { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
  display: flex; align-items: center;
  z-index: 1;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }

.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 8s linear;
}
.slide.active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,48,77,.90) 0%, rgba(7,48,77,.66) 46%, rgba(7,48,77,.32) 100%);
}

.slide-content { position: relative; z-index: 3; color: #fff; max-width: 800px; }
.slide-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.88); margin-bottom: 24px;
  padding-bottom: 11px; border-bottom: 2px solid rgba(255,255,255,.42);
}
.slide-title {
  color: #fff; font-size: clamp(30px, 4.5vw, 58px); font-weight: 700;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -.005em;
}
.slide-sub {
  font-size: clamp(15px, 1.55vw, 18px); color: rgba(255,255,255,.90);
  max-width: 570px; margin-bottom: 34px; font-weight: 300; line-height: 1.7;
}

/* setas */
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.30);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: .25s var(--ease); padding: 0;
}
.slide-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slide-arrow:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); }
.slide-arrow.prev { left: 26px; }
.slide-arrow.next { right: 26px; }

/* indicadores */
.slider-dots {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 6;
}
.slider-dots .dot {
  width: 36px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.34); transition: background .3s var(--ease), transform .3s var(--ease);
}
.slider-dots .dot:hover { background: rgba(255,255,255,.62); }
.slider-dots .dot.active { background: #fff; transform: scaleY(1.6); }

/* ---------------- sections ---------------- */
.section { padding: 92px 0; }
.section-gray { background: var(--cinza-claro); }
.section-blue { background: var(--azul); }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-blue p { color: rgba(255,255,255,.82); }
.section-blue .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section-blue .card h3 { color: #fff; }
.section-blue .card p { color: rgba(255,255,255,.78); }
.section-blue .card:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.34); box-shadow: 0 16px 40px rgba(0,0,0,.20); }
.section-blue .card-icon { background: rgba(255,255,255,.14); color: #fff; }
.section-blue .card-link { color: #fff; }

.section-head { max-width: 740px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 16px; margin-bottom: 0; }

.eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--azul-med); margin-bottom: 16px;
}
.eyebrow.light { color: rgba(255,255,255,.75); }

.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.intro-grid h2 { margin-bottom: 20px; }
.intro-grid p { font-size: 15.5px; line-height: 1.85; }
.quote-box {
  background: var(--cinza-claro); border-left: 4px solid var(--azul-med);
  padding: 30px 30px; border-radius: 0 4px 4px 0;
}
.quote-box p {
  margin: 0; font-size: 19px; line-height: 1.65; color: var(--azul);
  font-style: italic; font-weight: 300;
}
.quote-note { font-size: 14.5px; margin-top: 22px; line-height: 1.8; }

.link-arrow { color: var(--azul-med); font-weight: 700; font-size: 14px; display: inline-block; margin-top: 8px; }
.link-arrow:hover { color: var(--azul); }

/* ---------------- cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff; border: 1px solid var(--linha); border-radius: 4px;
  padding: 34px 30px; transition: .3s var(--ease); height: 100%;
  display: flex; flex-direction: column;
  border-top: 3px solid var(--azul-med);
}
.card:hover { box-shadow: 0 14px 36px rgba(10,65,104,.12); transform: translateY(-4px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px;
  background: var(--azul-claro); color: var(--azul-med);
  display: grid; place-items: center; font-size: 19px; font-weight: 800;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 18px; flex: 1; line-height: 1.75; }
.card-link { color: var(--azul-med); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.sector { padding: 28px 26px; background: #fff; border: 1px solid var(--linha); border-radius: 4px; transition: .3s var(--ease); }
.sector:hover { border-color: var(--azul-med); box-shadow: 0 10px 28px rgba(10,65,104,.09); }
.sector h3 { font-size: 17px; margin-bottom: 10px; }
.sector p { font-size: 14px; margin: 0; line-height: 1.72; }

/* ---------------- page hero (internas) ---------------- */
.page-hero {
  background: var(--azul); color: #fff; padding: 150px 0 62px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -60px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.045);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 16px; max-width: 700px; margin: 0; }
.crumbs { font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.crumbs a { color: rgba(255,255,255,.78); }
.crumbs a:hover { color: #fff; }

/* ---------------- prose ---------------- */
.prose { max-width: 820px; }
.prose h3 { margin-top: 40px; margin-bottom: 14px; font-size: 21px; }
.prose h3:first-child { margin-top: 0; }
.prose p { font-size: 15.5px; line-height: 1.85; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 15.5px; line-height: 1.8; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--azul-med); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote {
  margin: 32px 0; padding: 26px 30px; border-left: 4px solid var(--azul-med);
  background: var(--cinza-claro); border-radius: 0 4px 4px 0;
  font-size: 18px; color: var(--azul); font-style: italic; line-height: 1.65; font-weight: 300;
}
.prose blockquote p { margin: 0; color: inherit; font-size: inherit; }
.prose a { color: var(--azul-med); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.side-box { background: var(--cinza-claro); border: 1px solid var(--linha); border-radius: 4px; padding: 28px 24px; position: sticky; top: 100px; }
.side-box h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--azul); margin-bottom: 16px; font-weight: 700; }
.side-list { list-style: none; padding: 0; margin: 0 0 24px; }
.side-list li { border-bottom: 1px solid var(--linha); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 10px 0; font-size: 14px; color: var(--cinza); transition: .2s; }
.side-list a:hover, .side-list a.on { color: var(--azul-med); font-weight: 700; padding-left: 6px; }
.side-cta { border-top: 1px solid var(--linha); padding-top: 20px; font-size: 14px; }

/* ---------------- team ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.person {
  background: #fff; border: 1px solid var(--linha); border-radius: 4px;
  overflow: hidden; transition: .3s var(--ease); display: flex; flex-direction: column;
  border-top: 3px solid var(--azul-med);
}
.person:hover { box-shadow: 0 14px 38px rgba(10,65,104,.14); transform: translateY(-4px); }
.person-photo {
  width: 100%; aspect-ratio: 4 / 3; background: var(--azul-claro);
  overflow: hidden; position: relative;
}
.person-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  display: block; transition: transform .5s var(--ease);
}
.person:hover .person-photo img { transform: scale(1.045); }
.person-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.person h3 { font-size: 17.5px; margin-bottom: 5px; }
.person-role {
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--azul-med); font-weight: 700; margin-bottom: 13px; line-height: 1.5;
}
.person p { font-size: 14px; line-height: 1.72; margin: 0; }

/* avatar circular (usado na home) */
.person-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px;
  background: var(--azul); color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 700; letter-spacing: .02em;
}

/* board: cards mais compactos */
.team-grid.compacta .person-photo { aspect-ratio: 1 / 1; }

/* ---------------- form ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--azul); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--linha); border-radius: 3px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azul-med); box-shadow: 0 0 0 3px rgba(21,101,160,.10);
}
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 15px 18px; border-radius: 4px; margin-bottom: 24px; font-size: 14.5px; }
.alert-ok { background: #EAF6EE; border: 1px solid #BFE3CC; color: #1E6B42; }
.alert-err { background: #FDF1F1; border: 1px solid #F0CFCF; color: #9B2C2C; }


/* botão contornado (usado no hero sobre a foto) */
.btn-outline {
  display: inline-block; padding: 14px 36px;
  border: 2px solid #fff; border-radius: 0;
  color: #fff; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  text-decoration: none; cursor: pointer;
  transition: .25s var(--ease);
}
.btn-outline:hover { background: #fff; color: var(--azul); text-decoration: none; }
.btn-outline:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------------- botões ---------------- */
.btn-solid, .btn-white {
  display: inline-block; padding: 14px 32px; border-radius: 3px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transition: .25s var(--ease); cursor: pointer; border: 0; font-family: inherit;
}
.btn-solid { background: var(--azul); color: #fff; }
.btn-solid:hover { background: var(--azul-med); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10,65,104,.22); }
.btn-white { background: #fff; color: var(--azul); }
.btn-white:hover { background: var(--azul-claro); transform: translateY(-2px); }

/* ---------------- cta band ---------------- */
.cta-band { background: var(--azul-esc); color: #fff; padding: 68px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.80); margin: 0; max-width: 580px; }


/* coluna da marca no rodapé e seção de abertura da home */
.footer-brand { min-width: 0; }
.section.intro { padding-top: 96px; padding-bottom: 96px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--azul-esc); color: rgba(255,255,255,.70); padding: 62px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-tagline { margin-top: 18px; max-width: 300px; font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.58); }
.footer-col h4 { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 15px; font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; color: rgba(255,255,255,.68); transition: .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.45); }
.footer-note { max-width: 580px; line-height: 1.6; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
/* ---- tablet / menu mobile: entra em 1120px para o menu nunca estourar ---- */
@media (max-width: 1120px) {
  .burger { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
    background: var(--azul); flex-direction: column; align-items: stretch;
    padding: 92px 22px 30px; gap: 0; margin: 0;
    transform: translateX(100%); transition: transform .32s var(--ease);
    box-shadow: -12px 0 36px rgba(0,0,0,.28);
  }
  body.nav-open .nav { transform: none; }
  .nav-link, body.is-home .site-header:not(.scrolled) .nav-link {
    color: rgba(255,255,255,.92) !important; padding: 13px 10px !important;
    font-size: 15px !important; border-bottom: 1px solid rgba(255,255,255,.10);
    letter-spacing: .04em;
  }
  .nav-link.active { box-shadow: none !important; color: #fff !important; background: rgba(255,255,255,.10); }
  .logo img { height: 44px; }
  .hero-slider { height: 74vh; min-height: 470px; }
  .slide-arrow.prev { left: 12px; }
  .slide-arrow.next { right: 12px; }
  .slide-arrow { width: 40px; height: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .page-hero { padding: 122px 0 48px; }
  body.is-home .site-header:not(.scrolled) { background: rgba(10,65,104,.55); }
}

@media (max-width: 1020px) {
  .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .side-box { position: static; }
  .intro-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .grid-3, .grid-4, .team-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .slide-title { font-size: 28px; }
  .slide-arrow { display: none; }
  .slider-dots { bottom: 24px; }
  .slider-dots .dot { width: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
