/* ============================================
   CMBI Solutions — Full Design CSS
   Matching the React/Tailwind webdev design
   ============================================ */

/* ─── VARIABLES ─── */
:root {
  --blue: #1e5bd6;
  --blue-dark: #1649ad;
  --navy: #0f2447;
  --navy-950: #0b1020;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8f9fb;
  --white: #ffffff;
  --cyan: #38bdf8;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(30, 91, 214, 0.08);
  --shadow-lg: 0 12px 35px rgba(30, 91, 214, 0.1);
  --shadow-btn: 0 6px 20px rgba(30, 91, 214, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1180px;
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* ─── LAYOUT ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

.text-center {
  text-align: center;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  color: var(--navy-950);
  line-height: 1.15;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 24px;
}

.text-blue {
  color: var(--blue);
}

.kicker {
  display: inline-block;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.kicker--light {
  color: var(--blue);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-desc {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-subtitle {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin-bottom: 32px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: var(--white) !important;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 91, 214, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-arrow .arrow {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.btn-arrow:hover .arrow {
  transform: translateX(3px);
}

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .header-logo {
    height: 44px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-600);
  border-radius: 10px;
}

.nav a:hover {
  color: var(--blue);
  background: rgba(30, 91, 214, 0.06);
}

.nav .nav-cta {
  margin-left: 12px;
  border-radius: var(--radius);
}

.nav .nav-cta:hover {
  background: var(--blue-dark);
}

/* Burger */
.nav-toggle {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-overlay {
  display: none;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 50%, #eef4ff 100%);
  padding: 64px 0 80px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob--right {
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 91, 214, 0.06) 0%, transparent 70%);
}

.hero-blob--left {
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 91, 214, 0.04) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-grid--centered {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.hero-copy--centered .hero-lead,
.hero-copy--centered .hero-support {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy--centered .cta-group {
  justify-content: center;
}

.hero-copy--centered .hero-points {
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 580px;
}

.hero-lead strong {
  color: var(--gray-800);
}

.hero-support {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-points {
  display: grid;
  gap: 12px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.check-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 91, 214, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-photo-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.hero-glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 50% 40%, rgba(30, 91, 214, 0.12) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(15, 36, 71, 0.12));
}

/* ─── ABOUT ─── */
/* ─── ABOUT ─── */
.about {
  padding: 80px 0 96px;
  background: var(--white);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 28px;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-text {
  display: grid;
  gap: 20px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.about-text-top {
  max-width: 720px;
}

.about-text-bottom {
  max-width: 820px;
  margin-bottom: 56px;
}

/* About Photo */
.about-photo {
  display: flex;
  justify-content: center;
  align-self: start;
  position: sticky;
  top: 100px;
}

.about-photo-wrap {
  max-width: 300px;
  width: 100%;
}

.about-photo-img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(15, 36, 71, 0.08));
}

/* About Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.about-card:hover {
  border-color: rgba(30, 91, 214, 0.4);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(30, 91, 214, 0.1);
  border: 1px solid rgba(30, 91, 214, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
  transition: var(--transition);
  flex: 0 0 48px;
}

.about-card:hover .card-icon {
  background: rgba(30, 91, 214, 0.15);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card-icon--lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  margin: 0 auto 20px;
}

.card-icon--lg svg {
  width: 26px;
  height: 26px;
}

.about-card h4 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.about-card p {
  color: var(--gray-600);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

/* TABLET */
@media (max-width: 980px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 20px;
  }

  .about-photo {
    position: static;
    justify-content: flex-start;
  }

  .about-photo-wrap {
    max-width: 240px;
  }

  .about-text-bottom {
    margin-bottom: 44px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* MOBILE: title + first paragraph next to photo, rest below */
@media (max-width: 640px) {
  .about {
    padding: 56px 0 72px;
  }

  .about-intro-grid {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
  }

  .about-copy h2 {
    margin-bottom: 14px;
  }

  .about-text-top p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .about-text-bottom {
    display: grid;
    gap: 14px;
    margin-bottom: 32px;
  }

  .about-text-bottom p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .about-photo {
    position: static;
    justify-content: flex-end;
    align-self: start;
    margin-top: 2px;
  }

  .about-photo-wrap {
    max-width: 132px;
  }

  .about-photo-img {
    filter: drop-shadow(0 6px 18px rgba(15, 36, 71, 0.06));
  }

  .about-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .about-card {
    padding: 22px;
  }

  .about-card h4 {
    font-size: 1.02rem;
    margin-bottom: 10px;
  }

  .about-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* SMALL MOBILE */
@media (max-width: 390px) {
  .about-intro-grid {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 12px;
  }

  .about-photo-wrap {
    max-width: 118px;
  }

  .about-text-top p {
    font-size: 0.86rem;
  }

  .about-text-bottom p {
    font-size: 0.9rem;
  }
}
/* ─── SERVICES ─── */
.services {
  padding: 80px 0 96px;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30, 91, 214, 0.4);
  box-shadow: var(--shadow-lg);
}

.service-card:hover .card-icon--lg {
  background: rgba(30, 91, 214, 0.15);
}

.service-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ─── CASES ─── */
.cases {
  padding: 80px 0 96px;
  background: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-card:hover {
  transform: translateY(-6px);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 36, 71, 0.95) 0%, rgba(15, 36, 71, 0.3) 50%, transparent 100%);
  z-index: 1;
}

.case-content {
  position: relative;
  z-index: 2;
}

.case-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}

.case-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 12px;
}

.case-impact {
  display: block;
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.88rem;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 4px;
}

/* ─── FRAMEWORK ─── */
.framework {
  padding: 80px 0 96px;
  background: linear-gradient(180deg, #f0f4f9 0%, #e8eef5 100%);
}

.framework-card {
  background: var(--navy);
  color: #d9e3f0;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(15, 36, 71, 0.2);
}

.framework-title {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 12px;
}

.framework-sub {
  text-align: center;
  color: #b9c7db;
  font-size: 1rem;
  margin-bottom: 40px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.check-icon {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.check-row span:last-child {
  color: #eaf2ff;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ─── FAQ ─── */
.faq {
  padding: 80px 0 96px;
  background: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-btn {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  gap: 16px;
}

.faq-q {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-950);
  transition: color 0.2s;
}

.faq-btn:hover .faq-q {
  color: var(--blue);
}

.faq-chevron {
  font-size: 1.3rem;
  color: var(--gray-500);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
}

.faq-item.active .faq-panel {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-panel p {
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  color: #d0d8e4;
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #d0d8e4;
}

.footer-nav a:hover {
  color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ─── Tablet (max 1024px) ─── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-lead,
  .hero-support {
    max-width: 100%;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-points {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
  }

  /* About — mantém lado a lado */
  .about-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .about-photo-wrap {
    max-width: 100%;
  }

  .about-photo-img {
    width: 100%;
  }

  .about-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Framework */
  .framework-card {
    padding: 40px 32px;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }

  /* Burger Menu */
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    transition: right 0.3s ease;
    z-index: 1050;
    gap: 4px;
  }

  .nav a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius);
  }

  .nav .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
  }

  .nav-toggle:checked ~ .nav {
    right: 0;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1040;
  }

  .nav-toggle:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Burger X animation */
  .nav-toggle:checked + .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ─── Mobile (max 640px) ─── */
@media (max-width: 640px) {
  .hero {
    padding: 40px 0 56px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-support {
    display: none;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-group .btn {
    width: 100%;
  }

  .hero-photo-wrap {
    max-width: 220px;
  }

  .about, .services, .cases, .faq {
    padding: 60px 0 72px;
  }

  .about-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .about-photo {
    position: static;
  }

  .about-photo-wrap {
    max-width: 100%;
  }

  .about-photo-img {
    width: 100%;
  }

  .about-text {
    gap: 12px;
  }

  .about-text p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .about-copy h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .kicker {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    height: 320px;
    padding: 24px;
  }

  .framework {
    padding: 60px 0;
  }

  .framework-card {
    padding: 32px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}

/* ─── Small phones (max 390px) ─── */
@media (max-width: 390px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-photo-wrap {
    max-width: 180px;
  }

  .faq-q {
    font-size: 0.95rem;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
}