/* =========================================
   CLWork — Folha de Estilos Principal
   CLW Consultoria em TI Ltda ME
   CNPJ 51.897.487/0001-98
   ========================================= */

/* --- Reset & Variáveis --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black:   #0e0e0e;
  --white:   #fafaf8;
  --gray:    #f2f1ee;
  --mid:     #8a8a85;
  --accent:    #1A6FE8;
  --accent-dk: #1455C4;
  --radius:  4px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; }

/* --- Tipografia --- */
h1, h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);   margin-bottom: 1rem; }

h1 em { font-style: italic; color: var(--accent); }

/* --- Componentes globais --- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--mid);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.8; }

.btn-ghost {
  color: var(--black);
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 10px; }
.arrow { font-size: 18px; }

/* =========================================
   NAVEGAÇÃO
   ========================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  transition: padding 0.3s;
}

nav.scrolled {
  padding: 0.9rem 4rem;
  background: rgba(250, 250, 248, 0.96);
}

.logo-mark {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 79px;
  width: 200px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul a {
  color: var(--mid);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
nav ul a:hover { color: var(--black); }

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.8 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -10%; right: -5%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 111, 232, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 12px;
  color: var(--mid);
  font-weight: 400;
  margin-bottom: 2rem;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

/* Animações de entrada */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeUp 0.7s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* =========================================
   SERVIÇOS
   ========================================= */
.services-section {
  padding: 7rem 0 0;
}

.services-header {
  padding: 0 4rem 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(0, 0, 0, 0.08);
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  transition: background 0.3s;
  cursor: default;
}
.service-card:hover { background: var(--black); }
.service-card:hover .svc-num,
.service-card:hover .svc-title,
.service-card:hover .svc-desc { color: var(--white); }

.svc-num {
  font-size: 11px;
  color: var(--mid);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.svc-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.25rem;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}
.service-card:hover .svc-icon { border-color: rgba(255, 255, 255, 0.2); }

.svc-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.svc-desc {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
  transition: color 0.3s;
}

/* =========================================
   SOBRE
   ========================================= */
.about {
  background: var(--gray);
  padding: 7rem 4rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  aspect-ratio: 4 / 5;
  background: var(--black);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-inner {
  width: 180px; height: 180px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-inner2 {
  width: 120px; height: 120px;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-big {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.about-logo-big span { color: var(--accent); }

.about-year {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

.about-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  font-size: 11px;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--black);
}

.value-list li::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* =========================================
   CONTATO
   ========================================= */
.contact {
  background: var(--black);
  padding: 7rem 4rem;
}

.contact .section-eyebrow { color: var(--accent); }
.contact h2              { color: var(--white); }
.contact .section-intro  { color: rgba(255, 255, 255, 0.4); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.ci-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ci-val {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Formulário */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.2); }

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: rgba(255, 255, 255, 0.3); }

.field select option { background: #1a1a1a; }

.field textarea { min-height: 100px; }

.btn-submit {
  background: var(--accent);
  color: var(--white);
  padding: 14px;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover { opacity: 0.85; }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.success-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.success-title {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* =========================================
   RODAPÉ
   ========================================= */
footer {
  padding: 2rem 4rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  background: var(--black);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.6;
}

.footer-legal .sep {
  color: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 1024px) {
  nav             { padding: 1.25rem 2rem; }
  nav.scrolled    { padding: 0.9rem 2rem; }
  .hero           { padding: 8rem 2rem 5rem; }
  .about          { padding: 5rem 2rem; }
  .contact        { padding: 5rem 2rem; }
  footer          { padding: 2rem; }
  .services-header { padding: 0 2rem 3rem; }

  .about-inner    { gap: 3rem; }
  .contact-grid   { gap: 3rem; }
}

@media (max-width: 768px) {
  nav ul          { display: none; }
  .nav-toggle     { display: flex; }

  nav ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
  }

  nav ul.open a   { font-size: 1rem; color: var(--black); }

  .hero-stats     { gap: 1.5rem; flex-wrap: wrap; }

  .services-grid  { grid-template-columns: 1fr; }

  .about-inner    { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual   { aspect-ratio: 16 / 9; }

  .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .form-row       { grid-template-columns: 1fr; }

  .footer-top     { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
  h1              { font-size: 2.4rem; }
  .hero           { padding: 7rem 1.5rem 4rem; }
  .about,
  .contact        { padding: 4rem 1.5rem; }
  footer          { padding: 1.5rem; }
  .services-header { padding: 0 1.5rem 2.5rem; }
  .hero-stats     { gap: 1.25rem; }
  .hero-btns      { flex-direction: column; align-items: flex-start; }
}
