
/* ==========================================
   ALEXANDRE RUSSO — HOME
   HOME.CSS — V05
   ========================================== */

/* ==========================================
   SECTION LABELS
   ========================================== */

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #777;
  white-space: nowrap;
}

.label-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.label-line {
  display: block;
  flex-shrink: 0;
  width: 30px;
  height: 1px;
  background: #aaa;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-side-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8a8a8a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

.section {
  position: relative;
  padding-block: 56px 70px;
  scroll-margin-top: 35px;
}

.accent-line {
  width: 53px;
  height: 3px;
  background: var(--accent);
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-block: 10px 44px;
}

.hero-container {
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  position: relative;
}

.hero-copy {
  position: relative;
  padding-left: 12px;
  padding-right: 20px;
  z-index: 2;
  min-width: 0;
}

.hero-label {
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(68px, 7.8vw, 124px);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: -0.095em;
  margin: 0 0 24px;
  color: #000;
}

.hero h2 {
  font-size: clamp(19px, 2.05vw, 29px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.25;
  margin: 0 0 15px;
  white-space: nowrap;
}

.hero-description {
  color: #777;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.65;
  max-width: 390px;
  margin: 20px 0 24px;
}

/* ==========================================
   HERO IMAGE
   ========================================== */

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.hero-image:hover img {
  transform: scale(1.035);
}

.image-caption {
  position: absolute;
  color: #fff;
  font-size: clamp(7px, 0.7vw, 9px);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-shadow: 0 1px 4px #0008;
  pointer-events: none;
}

.image-caption-top {
  top: 6%;
  left: 6%;
}

.image-caption-bottom {
  right: 6%;
  bottom: 6%;
  text-align: left;
}

.text-lime {
  color: var(--accent);
}

/* ==========================================
   HERO TECH CROSS
   ========================================== */

.hero-cross {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 29px;
  height: 29px;
  z-index: 3;
  pointer-events: none;
}

.hero-cross::before,
.hero-cross::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.hero-cross::before {
  width: 100%;
  height: 2px;
  top: 50%;
}

.hero-cross::after {
  width: 2px;
  height: 100%;
  left: 50%;
}

/* ==========================================
   ABOUT
   ========================================== */

.about {
  padding-top: 66px;
  padding-bottom: 78px;
  background: #fdfdfc;
}

.about-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 37% 38% 25%;
  align-items: center;
}

.about-heading {
  padding-right: 26px;
  min-width: 0;
}

.about-heading h2 {
  font-size: clamp(29px, 2.75vw, 43px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 1.12;
  margin: 0;
}

.text-highlight {
  background:
    linear-gradient(
      transparent 74%,
      var(--accent) 74%,
      var(--accent) 92%,
      transparent 92%
    );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about-description {
  min-height: 150px;
  border-left: 1px solid var(--border);
  padding: 15px clamp(20px, 2.6vw, 44px);
  display: flex;
  align-items: center;
  min-width: 0;
}

.about-description p {
  color: #777;
  font-size: 14px;
  line-height: 1.75;
  max-width: 450px;
  margin: 0;
}

.about-values {
  min-height: 150px;
  border-left: 1px solid var(--border);
  padding-left: clamp(25px, 3vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  min-width: 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 24px;
}

.value-item strong {
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.08em;
  min-width: 87px;
}

.value-item .infinity-symbol {
  font-size: 50px;
  font-weight: 400;
}

.value-item span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: #888;
}

/* ==========================================
   SERVICES
   ========================================== */

.services {
  background: #f8f8f7;
  border-top: 1px solid #f1f1f0;
  border-bottom: 1px solid #ededec;
  padding-top: 70px;
  padding-bottom: 105px;
  min-height: 405px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin-left: -22px;
  margin-right: -22px;
}

.service-card {
  position: relative;
  min-width: 0;
  min-height: 235px;
  padding: 12px 25px 24px;
  border-left: 1px solid var(--border);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.service-card:first-child {
  border-left: none;
}

.service-card:hover {
  background: #fff;
  transform: translateY(-5px);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 23px;
}

.service-icon {
  width: 32px;
  height: 32px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card:hover .service-icon {
  color: #85a900;
  transform: translateY(-3px);
}

.service-number {
  color: #d8d8d8;
  font-size: clamp(35px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 1;
}

.service-card h3 {
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.2;
  margin: 0 0 13px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #777;
  max-width: 245px;
  margin: 0;
}

/* ==========================================
   PROCESS
   ========================================== */

.process {
  background: #fdfdfc;
  padding-top: 75px;
  padding-bottom: 105px;
  min-height: 405px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px;
}

.process-step {
  min-width: 0;
}

.process-step-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.process-number {
  color: #d4d4d4;
  font-size: clamp(40px, 4vw, 58px);
  letter-spacing: -0.09em;
  line-height: 1;
  font-weight: 400;
}

.process-dot {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.process-line {
  flex: 1;
  height: 1px;
  background: #d4d4d4;
  position: relative;
  margin-right: 8px;
}

.process-line::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-right: 1px solid #ccc;
  border-top: 1px solid #ccc;
  transform: rotate(45deg);
  right: 0;
  top: -2.5px;
}

.process-step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 0 0 13px;
}

.process-step p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  max-width: 255px;
  margin: 0;
}

/* ==========================================
   CONTACT CTA
   ========================================== */

.contact-section {
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
  min-height: 260px;
  padding-block: 36px 48px;
}

/* Technical dots */

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(#888 0.8px, transparent 0.8px);
  background-size: 13px 13px;
  mask-image:
    linear-gradient(
      to right,
      transparent 60%,
      #000 100%
    );
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42% 43% 15%;
  align-items: end;
  gap: 0;
}

.section-label-light {
  color: #bbb;
  margin-bottom: 20px;
}

.section-label-light .label-line {
  background: #777;
}

.contact-title {
  min-width: 0;
}

.contact-title h2 {
  font-size: clamp(41px, 4.6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.98;
  margin: 0 20px 15px 0;
}

.contact-details {
  align-self: end;
  padding-left: 25px;
  padding-right: 20px;
  padding-bottom: 8px;
  min-width: 0;
}

.contact-details p {
  font-size: 14px;
  line-height: 1.65;
  color: #aaa;
  max-width: 370px;
  margin: 0 0 18px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  max-width: 100%;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.045em;
  transition: color 0.25s ease;
}

.contact-email > span:first-child {
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-arrow {
  font-size: 35px;
  line-height: 0.7;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-email:hover .contact-arrow {
  transform: translateX(6px);
}

.contact-decoration {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 15px;
}

.contact-decoration span {
  color: #ccc;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.6;
}

/* ==========================================
   RESPONSIVE — LAPTOP
   ========================================== */

@media (max-width: 1200px) {

  .hero h1 {
    font-size: clamp(62px, 7.5vw, 95px);
  }

  .hero h2 {
    font-size: clamp(17px, 2vw, 23px);
  }

  .about-grid {
    grid-template-columns: 36% 39% 25%;
  }

  .about-heading h2 {
    font-size: 32px;
  }

  .about-description {
    padding-inline: 25px;
  }

  .about-values {
    padding-left: 25px;
  }

  .value-item {
    gap: 12px;
  }

  .value-item strong {
    min-width: 65px;
  }

  .service-card {
    padding-inline: 19px;
  }

  .services-grid {
    margin-inline: -15px;
  }

  .contact-grid {
    grid-template-columns: 40% 45% 15%;
  }

  .contact-details {
    padding-left: 15px;
  }

  .contact-email {
    font-size: 19px;
  }

}

/* ==========================================
   RESPONSIVE — TABLET
   ========================================== */

@media (max-width: 900px) {

  .hero {
    min-height: 440px;
  }

  .hero-container {
    grid-template-columns: 48% 52%;
  }

  .hero h1 {
    font-size: clamp(55px, 7.8vw, 76px);
  }

  .hero-description {
    font-size: 12px;
  }

  .hero h2 {
    white-space: normal;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }

  .about-heading h2 {
    font-size: 34px;
  }

  .about-values {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 25px 0 0;
    min-height: auto;
    gap: 50px;
  }

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

  .service-card:nth-child(3) {
    border-left: none;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .contact-decoration {
    display: none;
  }

  .contact-details {
    padding-left: 0;
  }

}

/* ==========================================
   RESPONSIVE — MOBILE
   ========================================== */

@media (max-width: 650px) {

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

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 45px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-label {
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(64px, 13.4vw, 92px);
    margin-bottom: 22px;
  }

  .hero h2 {
    font-size: clamp(17px, 4.5vw, 23px);
    white-space: normal;
  }

  .hero-description {
    font-size: 14px;
    max-width: 380px;
    margin-block: 20px 25px;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
  }

  /* SECTIONS */

  .section {
    padding-block: 60px 75px;
  }

  .section-heading-row {
    align-items: flex-start;
    margin-bottom: 35px;
  }

  .section-side-label {
    display: none;
  }

  /* ABOUT */

  .about {
    padding-block: 55px 75px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-heading h2 {
    font-size: clamp(32px, 8vw, 43px);
  }

  .about-description {
    border-left: 1px solid var(--border);
    padding: 5px 0 5px 20px;
    min-height: auto;
  }

  .about-description p {
    font-size: 14px;
  }

  .about-values {
    grid-column: auto;
    gap: 30px;
  }

  .value-item strong {
    font-size: 29px;
    min-width: auto;
  }

  .value-item .infinity-symbol {
    font-size: 39px;
  }

  .value-item span {
    font-size: 8px;
  }

  /* SERVICES */

  .services {
    min-height: auto;
    padding-block: 75px 85px;
  }

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

  .service-card {
    min-height: auto;
    padding: 24px 10px 30px 20px;
    border-left: 1px solid var(--border) !important;
    border-bottom: 1px solid #e8e8e8;
  }

  .service-card-top {
    margin-bottom: 19px;
  }

  .service-card h3 {
    font-size: 21px;
  }

  .service-card p {
    max-width: 380px;
  }

  /* PROCESS */

  .process {
    min-height: auto;
    padding-block: 75px 100px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-step-top {
    margin-bottom: 16px;
  }

  .process-step p {
    max-width: 380px;
  }

  /* CONTACT */

  .contact-section {
    padding-block: 50px 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-title h2 {
    font-size: clamp(42px, 10vw, 58px);
  }

  .contact-details {
    padding: 0;
  }

  .contact-details p {
    font-size: 13px;
  }

  .contact-email {
    font-size: clamp(18px, 5vw, 25px);
    gap: 15px;
  }

}

/* ==========================================
   RESPONSIVE — SMALL MOBILE
   ========================================== */

@media (max-width: 380px) {

  .hero h1 {
    font-size: clamp(54px, 13.3vw, 64px);
  }

  .about-heading h2 {
    font-size: 30px;
  }

  .about-values {
    flex-direction: column;
    gap: 18px;
  }

  .contact-email {
    font-size: 16px;
  }

}

/* ==========================================
   GRID OVERFLOW PROTECTION
   ========================================== */

.hero-container > *,
.about-grid > *,
.services-grid > *,
.process-grid > *,
.contact-grid > * {
  min-width: 0;
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  .hero-image img,
  .service-card,
  .service-icon,
  .contact-email,
  .contact-arrow {
    transition: none !important;
  }

  .service-card:hover {
    transform: none;
  }

  .hero-image:hover img {
    transform: none;
  }

}

/* ==========================================
   HERO — TYPEWRITER EFFECT
   ========================================== */

.hero-description.typing-effect::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: -0.12em;
  animation: typingCursor 0.7s step-end infinite;
}

@keyframes typingCursor {
  50% {
    opacity: 0;
  }
}

.hero-description.typing-finished::after {
  animation: typingCursor 1s step-end infinite;
}

/* TYPEWRITER — EVITAR TEXTO ANTES DA ANIMAÇÃO */