/* Cresça Soluções — Minimal High-End Redesign (Refined) */
:root {
  /* Core Palette - Dark / Editorial */
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --text: #f2f2f2;
  --muted: #888888;
  --brand: #22c55e;
  --brand-glow: rgba(34, 197, 94, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: #22c55e;
  /* Green Hover */
  --surface: #111111;
  --card-bg: #111111;

  /* Typography - Unified Stack: Inter */
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-width: 92%;
  --container-max: 1400px;
}

/* GLOBAL RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 800;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: screen;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  /* Bolder for Inter Display */
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

/* Utilities */
.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.text-center {
  text-align: center;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100dvw;
  z-index: 1000;
  padding: 20px 0;
  mix-blend-mode: normal;
  /* Removed difference to fix logo colors if needed, manually styling text white */
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand__logo {
  width: 30px;
  /* Removed invert filter assuming logo is correct asset */
}

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

.nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.8;
}

.nav__link:hover {
  opacity: 1;
  color: var(--brand);
}

.nav__cta {
  background: var(--brand);
  color: #000;
  padding: 10px 24px;
  border-radius: 6px;
  /* Squarer button */
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--brand);
}

.nav__cta:hover {
  background: #2edc6a;
  border-color: #2edc6a;
  transform: translateY(-2px);
}

/* Hero Section - Institutional / Editorial */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  /* For large abstract shapes */
}



.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.hero__content {
  text-align: left;
  max-width: none;
  z-index: 2;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 24px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 8px 16px;
  border-radius: 100px;

  background: rgba(34, 197, 94, 0.05);
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  /* Slightly smaller, more controlled */
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  line-height: 1.05;
  opacity: 1;
  transform: translateY(50px);
}

.hero__title span {
  display: inline;
  /* Keep on same flow */
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  background: linear-gradient(to right, #fff, #999);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__title em {
  font-style: normal;
  color: var(--brand);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 0 3rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.hero__abstract {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(50px);
}

/* Abstract "System" Visual */
.abstract-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.abstract-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.abstract-card h4 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.abstract-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.abstract-card.highlight {
  border-color: var(--brand);
  background: rgba(34, 197, 94, 0.03);
}

.hero__scroll {
  position: absolute;
  margin-top: 30px;
  bottom: 40px;
  left: 40px;
  /* Align Left */
  transform: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__scroll::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--muted);
}

@media(max-width: 900px) {
  .hero {
    min-height: 85vh;
    /* Reduced from 100 to pull content up */
    padding: 100px 0 60px;
    /* Reduced top padding */
    align-items: flex-start;
    /* Align closer to top */
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    margin: 0 auto;
    text-align: center;
  }

  .hero__title {
    font-size: 2.5rem;
    /* Smaller title on mobile */
    margin-bottom: 1.5rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero__actions {
    justify-content: center;
    opacity: 1;
    /* Force opacity in case animation delays */
    transform: none;
  }

  .hero__abstract {
    display: none;
    /* Hide complex visual on mobile */
  }

  .hero__scroll {
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 20px;
  }
}

/* KPIs */
.kpis {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kpis__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.kpi strong {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--brand);
  /* Green Numbers */
}

.kpi span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

/* Section Headers */
.section__head h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

/* Services */
.services-wrapper {
  padding-bottom: 60px;
  /* Increased padding to clear dots */
  position: relative;
}

.services-track {
  display: flex !important;
}

.service-card {
  min-width: unset;
  height: 600px;
  /* Increased height */
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  user-select: none;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-card:hover {
  border-color: var(--brand);
  transform: translateY(10px);
}

.services-swiper {
  height: 75dvh;
}

/* Pagination Dots (Swiper Standard Override) */
.services-swiper .swiper-pagination {
  bottom: 0px !important;
  /* Positions at bottom of padding area */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.swiper-pagination-bullet {
  background: var(--muted) !important;
  opacity: 0.3 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease;
  margin: 0 !important;
  /* Reset default swiper margin */
}

.swiper-pagination-bullet-active {
  background: var(--brand) !important;
  opacity: 1 !important;
  width: 24px !important;
  /* Elongated active dot */
  border-radius: 4px !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.service-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.list {
  list-style: none;
  padding: 0;
  color: var(--text);
}

.list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 24px;
  font-weight: 500;
}

.list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

/* Tech Stack */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-chip {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.05);
  /* Subtle Green Tint */
  color: #fff;
  transition: all 0.3s;
}

.tech-chip:hover {
  background: var(--brand);
  color: #000;
  border-color: var(--brand);
}

/* Process Timeline (Green Accent) */
.process-step {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  margin-left: 50%;
  padding-left: 60px;
  position: relative;
  opacity: 1;
  /* Dimmed by default to allow highlight */
  transition: opacity 0.5s;
}

.process-step.active {
  padding: 10px 10x 10x 60px;
  opacity: 1;
}

.process-step.active::before {
  background: var(--brand);
  color: #000;
  border-color: var(--brand);
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--muted);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
}

.process-content h3 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--brand);
}

/* Testimonials */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

@media(min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px;
}

@media(min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: var(--surface);
  padding: 40px;
  border: 1px solid var(--border);
  height: 100%;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-weight: 500;
  font-style: normal;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.p-btn {
  /* Imported from portfolio logic */
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.p-btn:hover {
  background: var(--brand) !important;
  color: #000 !important;
  border-color: var(--brand) !important;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Header - Scrolled State */
.header {
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  /* Shrink slightly */
}

/* Process Content - Glass Look */
.process-content {
  padding: 40px;
  border-radius: 12px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(10, 10, 10, 0.4);
  /* Much more subtle default */
  border: 1px solid transparent;
  /* Prepare for hover/active */
  transition: all 0.3s ease;
}

.process-step.active .process-content {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(34, 197, 94, 0.3);
  /* Subtle green border */
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.05);
}

/* Contact Form - Glass Look */
.contact-box {
  background: rgba(17, 17, 17, 0.5);
  /* Semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Darker input bg for contrast */
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
}

/* Fix for options being white on white in some browsers */
select option {
  background-color: #000;
  color: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(34, 197, 94, 0.05);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.btn--full {
  width: 100%;
  background: var(--brand);
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  padding: 18px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--full:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
  background: #2edc6a;
}

/* Footer (Minimal) */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media(min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.footer__nav a {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.footer__nav a:hover {
  color: var(--brand);
}

/* Mobile Adjustments */
/* Nav Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}


/* Sticky Offer Bar */
.offer-bar {
  background: linear-gradient(90deg, #111 0%, #004d25 100%);
  color: #fff;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
  position: relative;
  z-index: 1001;
}

.offer-bar__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  text-align: center;
}

.offer-tag {
  background: var(--brand);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.offer-bar p {
  margin: 0;
  color: #e0e0e0;
}

.offer-bar strong {
  color: #fff;
  font-weight: 600;
}

.offer-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.offer-link:hover {
  border-bottom-color: var(--brand);
}

@media(max-width: 600px) {
  .offer-bar {
    font-size: 0.8rem;
    padding: 12px 0;
  }

  .offer-bar__content {
    gap: 8px;
    flex-direction: column;
  }
}


.nav__toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    /* Deep black for overlay */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 900;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.active {
    transform: translateY(0);
  }

  .nav__link {
    font-size: 1.5rem;
    opacity: 0.7;
  }

  .nav__link:hover {
    opacity: 1;
    color: var(--brand);
  }

  /* Toggle Animation */
  .nav__toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* General Mobile Fixes */
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  /* Contact Fixes */
  .contact-box {
    padding: 30px;
  }

  /* Process Fixes */
  /* Process Fixes (Mobile) */
  /* Process Fixes (Mobile) - Compact Timeline */
  .process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    /* Reset large desktop height */
    height: auto;

    /* Timeline Layout */
    margin-left: 44px;
    /* Left-aligned line */
    padding-left: 30px;
    /* Space for bubble/content */
    padding-bottom: 40px;

    border-left: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
  }

  .process-step::before {
    position: absolute;
    left: -20px;
    /* Center on line */
    top: 0;
    /* Align with top */
    transform: none;
    margin-bottom: 0;
  }

  .process-content {
    padding: 24px;
    width: 100%;
    /* Keep the glass look from desktop, just adjust padding if needed */
  }

  .process-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .service-card {
    min-width: 85vw;
    /* Slider Card */
    width: 85vw;
    height: auto;
    min-height: 450px;
    padding: 30px;
    scroll-snap-align: center;
    margin-right: 0;
  }

  /* Services Slider Container (Restored & Reinforced) */
  .services-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    margin-left: -5vw;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-bottom: 30px;
    display: block !important;
    /* Ensure it's not flex column from parent */
    cursor: grab;
  }

  .services-wrapper.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
    transform: scale(1);
  }

  .services-track {
    display: flex !important;
    flex-direction: row !important;
    /* Force Horizontal */
    gap: 20px;
    width: max-content !important;
    padding-right: 20px;
  }

  .email-btn {
    width: 100% !important;
  }
}

@media (max-width: 768px) {

  /* Ensure container doesn't overflow */
  .container {
    width: 90%;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Contact Redesign */
.email-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 16px 24px;
  border-radius: 12px;
  width: 70%;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.email-btn:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.email-btn .icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.email-btn:hover .icon-box {
  background: var(--brand);
  color: #000;
}