:root {
  --cf-azul-escuro: #1c2f4f;
  --cf-azul: #2f80c7;
  --cf-azul-claro: #4fb3e8;
  --cf-ciano: #16a7d9;
  --cf-verde: #3aa873;
  --cf-tinta: #10233d;
  --cf-muted: #5f6f82;
  --cf-cinza: #4f4f4f;
  --cf-cinza-claro: #f5f5f5;
  --cf-borda: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--cf-muted);
  line-height: 1.6;
  background: #fff;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--cf-borda);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--cf-cinza);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--cf-azul);
}

.main-nav .nav-contact {
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--cf-azul);
  color: #fff;
}

.main-nav .nav-contact:hover {
  background: var(--cf-azul-escuro);
  color: #fff;
}

.logout-form {
  margin: 0;
  display: flex;
}

.logout-form .btn {
  font-family: inherit;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--cf-azul);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cf-azul-escuro);
}

.btn-outline {
  border-color: var(--cf-azul);
  color: var(--cf-azul);
}

.btn-outline:hover {
  background: var(--cf-azul);
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--cf-azul-escuro), var(--cf-azul));
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.hero-logo {
  max-width: 500px;
  width: 90%;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: #e6f0fa;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--cf-azul-escuro);
}

/* Sections */
.section {
  padding: 64px 24px;
}

.section-alt {
  background: var(--cf-cinza-claro);
}

.section h2 {
  font-size: 1.8rem;
  color: var(--cf-azul-escuro);
  margin-bottom: 16px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 6px 0 12px;
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 1.05rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--cf-azul);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: #fff;
  border: 1px solid var(--cf-borda);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 45px rgb(16 35 61 / 5%);
}

.card h3 {
  margin-top: 0;
  color: var(--cf-azul-escuro);
  line-height: 1.3;
}

.card p {
  margin-bottom: 0;
}

.card-soon {
  border-style: dashed;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  background: var(--cf-azul-escuro);
  color: #cdd9e6;
  text-align: center;
  padding: 32px 24px;
}

.footer-logo {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Autenticacao / formularios */
.auth-section {
  padding: 48px 24px;
  display: flex;
  justify-content: center;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--cf-borda);
  border-radius: 8px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
}

.auth-card.auth-card-wide {
  max-width: 760px;
}

.auth-card h1 {
  color: var(--cf-azul-escuro);
  margin-top: 0;
}

.auth-card h2 {
  color: var(--cf-azul);
  font-size: 1.1rem;
  margin: 32px 0 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .field-full {
  grid-column: 1 / -1;
}

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--cf-cinza);
}

.field input,
.field select {
  padding: 10px 12px;
  border: 1px solid var(--cf-borda);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--cf-azul);
}

.field-errors {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-errors {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #c0392b;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.messages li {
  background: #e6f4ea;
  border: 1px solid #b7e1c1;
  color: #1e7e34;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 8px;
}

.auth-links {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--cf-azul);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

/* ControlFocus: marca legível e navegação fixa — setembro/2026. */
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 22px rgb(28 47 79 / 8%);
}
.header-inner { min-height: 94px; gap: 24px; }
.brand { position: relative; display: inline-flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.brand-art { display: block; width: 260px; aspect-ratio: 1826 / 620; overflow: hidden; }
.brand .brand-art img { display: block; width: 100%; height: auto; max-width: none; clip-path: polygon(0 0, 100% 0, 100% 82%, 34% 82%, 34% 100%, 0 100%); }
.brand-tagline {
  display: block;
  position: absolute;
  top: 84%;
  left: 34%;
  right: 0;
  margin: 0;
  white-space: nowrap;
  color: #1c2f4f;
  text-align: center;
  font-size: 8.4px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero { padding: 64px 0 72px; background: linear-gradient(125deg, #152b48, #215c91); }
.hero-brand { margin: 0 auto 34px; }
.hero-brand .brand-art { width: min(540px, 88vw); }
.hero-brand img, .footer-brand img { filter: brightness(0) invert(1); }
.hero-brand .brand-art, .footer-brand .brand-art { position: relative; }
.hero-brand .brand-art::after, .footer-brand .brand-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/logo_controlfocus_grande.072668d6ea90.png") left top / 100% auto no-repeat;
  clip-path: polygon(0 0, 34% 0, 34% 100%, 0 100%);
  filter: url('#brand-cyan-on-dark');
  pointer-events: none;
}
.hero-brand .brand-tagline { color: #77ddff; font-size: clamp(10px, 1.8vw, 14px); letter-spacing: .02em; }
.hero h1 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); line-height: 1.2; }
.hero .lead { line-height: 1.8; }
.btn-primary { background: #1768a5; }
.btn-primary:hover { background: #125382; }
.menu-toggle { display: none; }
.footer-brand { margin-bottom: 24px; }
.footer-brand .brand-art { width: 300px; }
.footer-brand .brand-tagline { color: #77ddff; font-size: 9.4px; }
.site-footer { padding: 42px 24px 30px; }
a:focus-visible, button:focus-visible { outline: 3px solid #17a7d9; outline-offset: 5px; }
.hero a:focus-visible { outline-color: white; }
@media (max-width: 800px) {
  html { scroll-padding-top: 106px; }
  .header-inner { flex-wrap: wrap; padding: 10px 20px; gap: 12px; min-height: 88px; }
  .brand-art { width: 210px; }
  .brand-tagline { font-size: 6.9px; letter-spacing: 0; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #bacbda; border-radius: 7px; background: white; color: #1c2f4f; font: inherit; cursor: pointer; }
  .main-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0; }
  .menu-toggle:not([hidden]) + .main-nav:not(.is-open) { display: none; }
  .main-nav a { padding: 10px 12px; text-align: center; }
  .main-nav .nav-contact { margin-top: 4px; }
  .hero { padding: 44px 0 52px; }
  .hero-brand { margin-bottom: 30px; }
  .hero .lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section { padding: 42px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-section { padding: 30px 16px; }
  .auth-card { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Home portfolio */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 12px;
  color: #9ee7ff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 6px;
  background: rgb(255 255 255 / 8%);
  color: #edf9ff;
  font-weight: 700;
  font-size: .92rem;
}

.cards-services {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.cards-services .card {
  border-top: 4px solid var(--cf-ciano);
}

.cards-services .card:nth-child(3n + 2) {
  border-top-color: var(--cf-azul);
}

.cards-services .card:nth-child(3n) {
  border-top-color: var(--cf-verde);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.expertise-item {
  padding: 22px 24px;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: #fff;
}

.expertise-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--cf-azul);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expertise-item strong {
  display: block;
  color: var(--cf-tinta);
  font-size: 1.04rem;
  line-height: 1.45;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 26px 24px;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: #fff;
}

.step-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cf-ciano);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.step h3 {
  margin: 0 0 10px;
  color: var(--cf-azul-escuro);
}

.step p {
  margin: 0;
}

.contact-section {
  background: linear-gradient(125deg, #10233d, #164d77);
  color: #fff;
}

.contact-section .section-eyebrow {
  color: #9ee7ff;
}

.contact-section h2 {
  margin: 8px 0 14px;
  color: #fff;
  line-height: 1.2;
}

.contact-section p {
  color: #dbeaf5;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 36px;
  align-items: center;
}

.contact-panel {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
}

.contact-panel h3 {
  margin: 0 0 10px;
  color: #fff;
}

.contact-panel .btn {
  margin-top: 8px;
}

/* Apresentação do responsável pela marca, sem competir com o produto. */
.founder-card {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 32px;
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid #dce6ef;
  border-left: 4px solid #16a7d9;
  border-radius: 12px;
  background: #f5f9fc;
  text-align: left;
}
.founder-eyebrow { color: #1768a5; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.founder-card .founder-name { margin: 8px 0 4px; color: #1c2f4f; font-size: 1.5rem; font-weight: 700; }
.founder-card .founder-degree { margin: 0; color: #465d72; font-size: .9rem; line-height: 1.6; }
.founder-story h3 { margin: 0 0 12px; color: #1c2f4f; font-size: 1.15rem; }
.founder-story p { margin: 0; color: #465d72; line-height: 1.75; }
@media (max-width: 640px) {
  .founder-card { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
}

@media (max-width: 800px) {
  .hero-points {
    justify-content: stretch;
  }

  .hero-points li {
    flex: 1 1 160px;
    text-align: center;
  }

  .expertise-grid,
  .process-steps,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .section-heading h2 {
    font-size: 1.55rem;
  }

  .hero-points li {
    flex-basis: 100%;
  }

  .contact-panel,
  .expertise-item,
  .step {
    padding: 22px 18px;
  }
}
