/* ============================================================
   BrandXtrategy — Design System
   Palette: navy #113D61 · steel #3B6587 · sky #71A4CE
            gray #B8B8B8 · light #E1E1E1
   ============================================================ */

:root {
  --navy: #113D61;
  --navy-deep: #0C2E4A;
  --steel: #3B6587;
  --sky: #71A4CE;
  --sky-soft: #A8C8E4;
  --gray: #B8B8B8;
  --light: #E1E1E1;
  --bg: #F7F9FB;
  --white: #FFFFFF;
  --ink: #1B2A38;
  --ink-soft: #4A5D6E;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 61, 97, 0.10);
  --shadow-sm: 0 4px 14px rgba(17, 61, 97, 0.08);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand-logo img { height: 34px; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.95rem; font-weight: 500;
  transition: color .2s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.nav-cta {
  background: var(--navy); color: var(--white);
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
}
.main-nav a.nav-cta:hover { background: var(--steel); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--steel) 100%);
  color: var(--white);
  padding: 96px 0 110px;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  background: url('icon.png') no-repeat center / contain;
  opacity: 0.07; pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero .eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky-soft); margin-bottom: 18px;
}
.hero h1 {
  color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--sky); }
.hero p.sub {
  font-size: 1.15rem; color: #D7E4F0; max-width: 600px; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: 10px; padding: 14px 28px; font-size: 1rem;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sky); color: var(--navy-deep); box-shadow: 0 6px 20px rgba(113, 164, 206, .35); }
.btn-primary:hover { background: var(--sky-soft); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--steel); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--light); }
.trust-inner {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 18px 24px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 500;
}
.trust-inner span { display: flex; align-items: center; gap: 8px; }
.trust-inner svg { flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
}
.services-note {
  margin-top: 28px; text-align: center; font-size: 0.95rem; color: var(--ink-soft);
}
.service-card {
  background: var(--white); border: 1px solid var(--light);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.section.alt .service-card { background: var(--bg); }
.service-card { position: relative; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-demo {
  position: absolute; top: 20px; right: 20px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
  color: var(--steel); background: var(--white);
  border: 1.5px solid var(--sky-soft); border-radius: 99px;
  padding: 6px 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.card-demo:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-demo.soon { color: var(--gray); border-color: var(--light); background: var(--bg); cursor: default; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.service-card ul { list-style: none; margin: 14px 0 0; }
.service-card ul li {
  font-size: 0.9rem; color: var(--ink-soft); padding: 5px 0 5px 24px;
  position: relative;
}
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B6587' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.partner-tag {
  display: inline-block; margin-top: 16px;
  font-size: 0.78rem; font-weight: 600; color: var(--steel);
  background: rgba(113, 164, 206, 0.14);
  border: 1px solid rgba(113, 164, 206, 0.35);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card { position: relative; padding: 28px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--light); box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-family: 'Manrope', sans-serif;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Tools strip ---------- */
.tools-strip {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 20px; padding: 56px 48px;
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.tools-strip::after {
  content: ""; position: absolute; left: -60px; bottom: -80px;
  width: 280px; height: 280px;
  background: url('icon.png') no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none; /* decorativo — nunca capturar clique/toque */
}
.tools-strip > * { position: relative; z-index: 1; }
.tools-strip h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 10px; }
.tools-strip p { color: #CFE0EE; max-width: 520px; }

/* ---------- Tool cards (tools hub) ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  background: var(--white); border: 1px solid var(--light); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-card h3 { font-size: 1.15rem; }
.tool-card p { color: var(--ink-soft); font-size: 0.94rem; flex-grow: 1; }
.tool-card .btn { align-self: flex-start; padding: 10px 20px; font-size: 0.92rem; }
.badge-soon {
  display: inline-block; align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--steel); background: rgba(113,164,206,.15);
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(113,164,206,.3);
}
.badge-free {
  display: inline-block; align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #1E6B40; background: #E3F4EA; padding: 4px 10px; border-radius: 999px; border: 1px solid #BFE3CD;
}

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.about-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.about-wrap p { color: var(--ink-soft); margin-bottom: 16px; }
.about-quote {
  border-left: 4px solid var(--sky); padding: 6px 0 6px 20px;
  font-size: 1.12rem; font-weight: 600; color: var(--navy);
  font-family: 'Manrope', sans-serif; margin: 24px 0;
}
.about-visual {
  background: linear-gradient(150deg, var(--gray) 0%, var(--light) 45%, #F0F0F0 100%);
  border: 1px solid var(--light);
  border-radius: 20px; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-visual img { width: 55%; filter: drop-shadow(0 10px 24px rgba(17,61,97,.22)); }

/* ---------- Contact / Scan form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 22px; }
.contact-points { list-style: none; }
.contact-points li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; color: var(--ink-soft); font-size: 0.97rem;
}
.contact-points svg { flex-shrink: 0; margin-top: 3px; }

.form-card {
  background: var(--white); border: 1px solid var(--light);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
  scroll-margin-top: 90px; /* não esconder o topo do card sob o header sticky */
}
.form-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.form-card .form-sub { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; font-size: 0.95rem; font-family: inherit;
  border: 1.5px solid var(--light); border-radius: 9px; background: var(--bg);
  color: var(--ink); transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--sky); background: var(--white);
}
.form-card button {
  width: 100%; border: none; cursor: pointer; margin-top: 8px;
  font-family: inherit;
}
.form-note { font-size: 0.8rem; color: var(--gray); margin-top: 12px; text-align: center; }
.form-success {
  display: none; background: #E3F4EA; border: 1px solid #BFE3CD; color: #1E6B40;
  border-radius: 9px; padding: 14px 16px; font-size: 0.93rem; margin-bottom: 16px;
}

/* ---------- Examples ---------- */
.demo-banner {
  background: rgba(113,164,206,.12); border: 1px solid rgba(113,164,206,.35);
  border-radius: 12px; padding: 16px 20px; font-size: 0.93rem; color: var(--steel);
  margin-bottom: 40px; display: flex; gap: 12px; align-items: center;
}
.example-card { position: relative; }
.demo-stamp {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: .08em;
  color: var(--white); background: var(--steel);
  padding: 4px 10px; border-radius: 6px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9FB8CC; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a { display: block; color: #9FB8CC; text-decoration: none; font-size: 0.9rem; padding: 4px 0; }
.footer-grid a:hover { color: var(--sky); }
.footer-brand img { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: #6E8AA1;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white); padding: 64px 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px;
  background: url('icon.png') no-repeat center / contain; opacity: .07;
  pointer-events: none;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; position: relative; }
.page-hero p { color: #CFE0EE; max-width: 620px; font-size: 1.05rem; position: relative; }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.calc-card { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.calc-result {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius); padding: 36px; color: var(--white);
  position: sticky; top: 96px;
}
.calc-result h3 { color: var(--sky-soft); font-size: 0.9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.result-big { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; font-family: 'Manrope', sans-serif; color: var(--white); line-height: 1.1; }
.result-line { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 0.97rem; }
.result-line strong { font-family: 'Manrope', sans-serif; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--steel); }
.range-val {
  min-width: 86px; text-align: center; font-weight: 700; color: var(--navy);
  background: var(--bg); border: 1.5px solid var(--light); border-radius: 8px; padding: 8px 10px;
  font-family: 'Manrope', sans-serif;
}

/* ---------- Service card contact link ---------- */
.card-ask {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.88rem; font-weight: 600;
  color: var(--steel); text-decoration: none;
}
.card-ask:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Form tabs (scan / message in one card) ---------- */
.form-tabs {
  display: flex; gap: 0; margin: -36px -36px 26px; border-bottom: 1px solid var(--light);
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
}
.form-tabs .tab {
  flex: 1; padding: 16px 10px; font-family: inherit; font-size: 0.95rem; font-weight: 600;
  background: var(--bg); color: var(--ink-soft); border: none; cursor: pointer;
  border-bottom: 3px solid transparent; transition: color .2s, background .2s, border-color .2s;
}
.form-tabs .tab:first-child { border-right: 1px solid var(--light); }
.form-tabs .tab.active {
  background: var(--white); color: var(--navy); border-bottom-color: var(--sky);
}
.form-tabs .tab:hover:not(.active) { color: var(--navy); }

/* ---------- Contact extra text (left column) ---------- */
.contact-extra { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--light); }
.contact-extra h3 { font-size: 1.08rem; margin-bottom: 10px; }
.contact-extra p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 12px; }
.contact-extra a { color: var(--steel); font-weight: 600; text-decoration: none; }
.contact-extra a:hover { text-decoration: underline; }

/* ---------- Align right-hand visuals with the section TITLE (not the eyebrow) ---------- */
.about-visual, .contact-wrap .form-card { margin-top: 33px; }
@media (max-width: 880px) { .about-visual, .contact-wrap .form-card { margin-top: 0; } }

/* ---------- Scroll-to-top button ---------- */
#toTop {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 52px; height: 66px; border-radius: 26px;
  background: var(--white); border: 1px solid var(--light);
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
#toTop .up-arrow { width: 16px; height: 16px; opacity: .65; }
#toTop img { width: 26px; height: 26px; }
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { box-shadow: 0 12px 32px rgba(17,61,97,.22); transform: translateY(-2px); }
#toTop:hover .up-arrow { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .about-wrap, .contact-wrap, .calc-wrap { grid-template-columns: 1fr; }
  .about-visual { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .calc-result { position: static; }
}
@media (max-width: 760px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 16px 24px 24px; gap: 4px; border-bottom: 1px solid var(--light);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; font-size: 1.05rem; }
  .main-nav a.nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 60px 0; }
  .tools-strip { padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; }
}
