/* === DESIGN SYSTEM SHAPER === */

:root {
  /* === CORES === */

  /* Marca */
  --primary: #0C0145;          /* Shaper Indigo — assinatura da marca */
  --primary-soft: #1A0F5C;     /* hover states sobre primary */
  --primary-glow: #2E1F8C;     /* focus rings de acessibilidade */
  --on-primary: #FFFFFF;

  /* Surfaces — modo escuro (protagonista) */
  --surface: #0A0A0A;          /* fundo principal — Obsidian */
  --surface-elevated: #141414; /* footer, faixas de logo — Onyx */
  --surface-card: #1A1A1A;     /* cards de serviço, testimonials — Graphite */

  /* Surfaces — modo claro (hero de abertura) */
  --surface-light: #F5F4F1;    /* fundo do hero — Bone, off-white quente */
  --surface-light-elevated: #FFFFFF;

  /* Texto sobre fundo escuro */
  --on-surface: #FFFFFF;
  --on-surface-muted: #9CA3AF;  /* texto secundário, descrições */
  --on-surface-subtle: #6B7280; /* metadados, datas */

  /* Texto sobre fundo claro */
  --on-surface-light: #0A0A0A;
  --on-surface-light-muted: #4B5563;

  /* Divisores e contornos */
  --divider-dark: #262626;
  --divider-light: #E5E5E5;
  --outline: #FFFFFF1A;         /* borda fantasma em fundo escuro (10% branco) */
  --outline-light: #0A0A0A14;   /* borda em fundo claro (8% preto) */

  /* Semânticas — apenas para feedback funcional */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* === TIPOGRAFIA === */
  --font-display: 'Inter Tight', sans-serif;  /* headlines */
  --font-body: 'Inter', sans-serif;           /* corpo, labels, nav */
  --font-brand: 'Tahu', cursive;              /* EXCLUSIVO para logo Shaper */

  /* === ESCALA TIPOGRÁFICA === */
  --text-display: 88px;   /* headline-display */
  --text-headline-lg: 64px; /* headline-lg */
  --text-headline-md: 44px; /* headline-md */
  --text-headline-sm: 28px; /* headline-sm */
  --text-body-lg: 18px;   /* body-lg */
  --text-body-md: 15px;   /* body-md */
  --text-body-sm: 13px;   /* body-sm */
  --text-label-md: 14px;  /* botões, navegação — Inter 500 */
  --text-label-sm: 12px;  /* labels secundários — Inter 500 */
  --text-label-caps: 11px; /* section markers em CAPS — Inter 500, tracking 0.18em */
  --text-metadata: 11px;  /* datas, IDs de seção — Inter 400, tracking 0.04em */

  /* === ESPAÇAMENTO === */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 64px;
  --space-xxxl: 96px;
  --space-section: 128px;  /* entre seções macro */
  --space-gutter: 24px;
  --space-margin: 80px;    /* margens laterais desktop */

  /* === BORDER RADIUS === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* === MOTION === */
  --duration-instant: 100ms;
  --duration-fast: 150ms;
  --duration-md: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);

  /* === CONTAINER === */
  --container-max: 1280px;
  --container-padding: var(--space-margin); /* 80px desktop */
}

/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-text {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h1, .display-text {
  letter-spacing: -0.03em;
}

h3 {
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* === NAVEGAÇÃO E HEADER === */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 244, 241, 0.95); /* surface-light com transparência */
  backdrop-filter: blur(10px);
  padding: 18px 0;
  border-bottom: 1px solid var(--divider-light);
  display: flex;
  align-items: center;
}

.nav-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-shaper img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-label-md);
  font-weight: 500;
  color: var(--on-surface-light-muted);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--on-surface-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--duration-md) var(--easing-standard);
}

.nav-link:hover::after {
  width: 100%;
}

/* Menu Mobile (Hambúrguer) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--on-surface-light);
  transition: transform var(--duration-md), opacity var(--duration-md);
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--surface-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xxxl) var(--space-xl);
    transition: right var(--duration-slow) var(--easing-emphasized);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    text-align: center;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .nav-header .btn-primary-light {
    display: none;
  }
}

/* === COMPONENTES E LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--space-section) 0;
}

.asymmetric-split {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr;
  gap: var(--space-xxxl);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .asymmetric-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .section-marker {
    justify-content: center;
  }
  .card-service {
    text-align: center;
  }
}

/* Section Marker */
.section-marker {
  font-family: var(--font-body);
  font-size: var(--text-label-caps);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-light-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.section-marker::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  transform: rotate(45deg);
}

.section-marker.on-dark {
  color: var(--on-surface-muted);
}

.section-marker.on-dark::before {
  background: var(--on-surface); /* Diamante branco em blocos escuros para contraste */
}

/* Ajuste de links/botões em blocos escuros */
.on-dark a.nav-link {
  color: var(--on-surface-muted);
}

.on-dark a.nav-link:hover {
  color: var(--on-surface);
}

.hero-page {
  background-color: var(--surface-light);
  color: var(--on-surface-light);
  min-height: 85vh; 
  display: flex;
  flex-direction: column;
  padding: 60px 0 0; /* Subir mais: reduced padding */
  overflow: hidden;
  position: relative;
}

.hero-page .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-page .asymmetric-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal split to allow both sides to be large */
  gap: var(--space-xxxl);
  align-items: flex-end;
}

.hero-content {
  padding-bottom: 80px; 
  max-width: 720px; 
}

.hero-page h1 {
  font-size: clamp(56px, 7vw, var(--text-display));
  line-height: 0.95;
  margin-bottom: var(--space-xl);
}

.hero-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  justify-content: flex-end;
}

.hero-image img {
  width: 110%; /* Slight bleed effect */
  max-width: 680px; 
  height: auto;
  display: block;
}


/* Badge do Fundador — centralizado na base da imagem */
.founder-badge {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--divider-light);
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  z-index: 10;
}

.founder-badge strong {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--primary);
  margin-bottom: 4px;
}

.founder-badge p {
  font-size: 11px;
  line-height: 1.4;
  color: var(--on-surface-light-muted);
}

@media (max-width: 992px) {
  .hero-page {
    padding-top: 100px;
    min-height: auto;
    text-align: center;
  }
  .hero-page .asymmetric-split {
    grid-template-columns: 1fr !important;
    align-items: center !important;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
  }
  .hero-image {
    justify-content: center;
  }
  .hero-image img {
    max-width: 400px;
  }
  .founder-badge {
    bottom: 5%;
  }
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl);
  }
}

/* Hero Bleed Right */
.hero-bleed-right {
  position: relative;
  width: calc(100% + ((100vw - min(100vw, var(--container-max))) / 2));
  height: 100%;
  min-height: 600px;
}
.hero-bleed-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .hero-bleed-right {
    width: 100vw;
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    min-height: 400px;
    aspect-ratio: 4/5;
  }
}

/* Botões */
.btn-primary-light {
  display: inline-block;
  background: var(--on-surface-light);
  color: var(--surface-light-elevated);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-label-md);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-primary-light:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-accent {
  display: inline-block;
  background: var(--on-surface);
  color: var(--surface);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-label-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--duration-fast);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Card Arrow (links de serviço) */
.card-arrow {
  font-size: var(--text-label-md);
  color: var(--on-surface-muted);
  transition: color var(--duration-fast), transform var(--duration-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-service:hover .card-arrow {
  color: var(--on-surface);
  transform: translateX(4px);
}

/* Link Arrow (inline links estilizados) */
.link-arrow {
  font-size: var(--text-label-md);
  font-weight: 500;
  color: var(--on-surface-muted);
  transition: color var(--duration-fast);
}

.link-arrow:hover {
  color: var(--on-surface);
}

/* Bullet Diamond (marcadores de lista) */
.bullet-diamond {
  color: var(--on-surface-muted);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

/* Logo Bar (faixa de logos de clientes) */
.logo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  opacity: 0.4;
}

.logo-bar span {
  font-family: var(--font-body);
  font-size: var(--text-label-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-surface-muted);
}

/* Testimonial Inline (citação dentro de bloco) */
.testimonial-inline {
  border-left: 2px solid var(--divider-dark);
  padding-left: var(--space-lg);
}

.testimonial-inline p {
  font-size: var(--text-body-lg);
  font-style: italic;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.testimonial-inline footer {
  background: none;
  border: none;
  padding: 0;
}

.testimonial-inline footer strong {
  display: block;
  font-size: var(--text-body-md);
  font-weight: 500;
  color: var(--on-surface);
}

.testimonial-inline footer span {
  font-size: var(--text-body-sm);
  color: var(--on-surface-muted);
}

/* Cards */
.card-service {
  background: var(--surface-card);
  border: 1px solid var(--outline);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  transition: all var(--duration-md);
  display: block;
}

.card-service:hover {
  background-color: #1F1F1F;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.card-testimonial {
  background: var(--surface-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  color: var(--on-surface);
  border: 1px solid var(--outline);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-testimonial p {
  font-style: italic;
  margin-bottom: var(--space-lg);
  color: var(--on-surface);
}

.card-testimonial cite {
  display: block;
  font-style: normal;
  font-size: var(--text-body-sm);
}

.card-testimonial cite span {
  display: block;
  color: var(--on-surface-muted);
  font-size: 11px;
}

/* Bloco O Método - Bleed e Mobile Image */
.method-section {
  position: relative;
}

.method-layout {
  display: flex;
  align-items: center;
}

.method-text {
  width: 45%;
  padding-right: var(--space-xl);
  position: relative;
  z-index: 2;
}

.method-image-mobile {
  display: none;
}

.method-image-bleed {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 55vw;
  z-index: 1;
}

.method-image-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

@media (max-width: 992px) {
  .method-text {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }
  
  .method-image-bleed {
    display: none;
  }
  
  .method-image-mobile {
    display: block;
    margin: var(--space-xl) 0;
  }
}

/* FOOTER */
footer {
  background: var(--surface-elevated);
  padding: var(--space-xxxl) 0 var(--space-lg);
  border-top: 1px solid var(--divider-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: var(--space-xxxl);
  margin-bottom: var(--space-xxl);
}

.footer-bottom {
  border-top: 1px solid var(--divider-dark);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-metadata);
  color: var(--on-surface-subtle);
}

/* ANIMAÇÕES */
.reveal, .reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--easing-emphasized),
              transform var(--duration-slow) var(--easing-emphasized);
}

.reveal.active, .reveal-child.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  :root {
    --container-padding: 24px;
    --text-display: 48px;
    --text-headline-lg: 36px;
    --text-headline-md: 28px;
  }

  section {
    padding: 80px 0;
  }

  /* Cards de serviço empilham no mobile */
  .card-service[style*="flex"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-md) !important;
    text-align: center;
  }

  .card-service[style*="flex"] > div {
    flex-direction: column !important;
    align-items: center !important;
  }

  .card-arrow {
    align-self: flex-end;
  }

  /* Logo bar wrap no mobile */
  .logo-bar {
    gap: var(--space-md);
  }

  /* Testimonial no mobile */
  .testimonial-inline {
    margin-top: var(--space-lg);
  }
  
  /* Grids de cards empilham no mobile */
  .cards-grid {
    grid-template-columns: 1fr !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 100ms !important;
    transition-duration: 100ms !important;
    transform: none !important;
  }
}

/* === DROPDOWN MENU === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--surface-light);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--divider-light);
  border-radius: var(--radius-md);
  padding: var(--space-xs) 0;
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-md), transform var(--duration-md);
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--on-surface-light-muted);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-label-sm);
  font-weight: 500;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.dropdown-content a:hover {
  background-color: rgba(0,0,0,0.03);
  color: var(--on-surface-light);
}

@media (max-width: 992px) {
  .dropdown-content {
    position: static;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    transform: none;
    padding: var(--space-xs) 0;
    min-width: 100%;
    align-items: center;
  }
}
