:root {
  --blue: #cbcf78;
  --black: #262626;
  --white: #ebeae8;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --container: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}

.header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--white);
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;

  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}
.logo-text,
.logo-text:visited {
  color: var(--black);
}
.logo-text:hover {
  color: #d27089;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--black);
  padding: 6px 0;
}

.nav-links a:hover {
  color: #d27089;
}

.call-to-action {
  padding: 70px 20px 60px;
  text-align: center;
  margin: 5rem 0;
}
.teste {
  background-image:
    linear-gradient(to right, rgba(30, 30, 30, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 30, 30, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
}
.call-to-action::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  opacity: 0.7;
  z-index: -1;
}
.teste {
  background: var(--white);
}

.teste-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.teste {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(30, 30, 30, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 30, 30, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
}

.teste-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.teste-inner > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(35px, 7vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 32px;
  padding: 18px;
}

.highlight {
  display: inline-block;
  background: #cad183;
  padding: 6px 12px;
  border-radius: 6px;
}

.btn-cto {
  display: inline-block;
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
  background-color: var(--white);
  transition: all 0.2s ease;
  margin-top: 12px;
}

.btn-cto:hover {
  background-color: var(--black);
  color: var(--white);
}

.marca-dagua {
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;

  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;

  font-size: 12px;
  letter-spacing: 0.4px;
}

.separator {
  opacity: 0.6;
}

.servicos {
  padding: 80px 20px;
  text-align: center;
}

.portfolio h2 {
  max-width: 900px;
  margin: 0 auto 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}

.portfolio p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 50px;
  margin-top: 20px;
}

.cards {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: left;
  box-shadow: 0 10px 26px rgba(30, 30, 30, 0.08);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h2 {
  font-size: 80px;
  font-weight: 500;
}

.card h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--black);
}

.card p {
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 10px;
}

.card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 5px 12px;
  line-height: 1.2;
  width: auto !important;
  max-width: fit-content;
  border-radius: var(--radius-pill);

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
  background: var(--blue);
  border: 1px solid #262626;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.card-btn span {
  display: inline-block;
  font-size: 16px;
  margin-left: 4px;

  transform: rotate(0deg);
  transition: transform 0.25s ease;
}
.card-btn:hover span {
  transform: rotate(45deg);
}

.card-btn:hover {
  background: #d27089;
  color: var(--black);
}
.card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgba(30, 30, 30, 0.12);
}

.social {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--black);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social a:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(30, 30, 30, 0.12);
}
.social a:hover i {
  color: var(--white);
}
.social a,
.social a:visited {
  color: var(--black);
}

.sobre {
  background: var(--black);
  padding: 90px 20px;
  display: flex;
}
.sobre-container {
  max-width: var(--container);
  margin: 0 auto;
  color: var(--white);

  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 67px;
  align-items: center;
}

.sobre-container h2 {
  color: #cad183;
}

.sobre-imagem {
  justify-self: end;
  width: 100%;
  max-width: 470px;
}

.sobre-imagem img {
  width: 100%;
  height: auto;

  object-fit: cover;
  object-position: center 20%;

  box-shadow: 0 18px 50px rgba(30, 30, 30, 0.18);
  display: block;
}
.sobre-imagem img {
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
  display: block;
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
  will-change: transform;
}
.sobre-imagem img:hover {
  transform: scale(1.015);
  box-shadow: 0 18px 42px rgba(30, 30, 30, 0.18);
}
.sobre-conteudo h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
}

.sobre-conteudo p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 18px;
  text-align: justify;
}

.portfolio-section {
  padding: 60px 20px;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 36px;
}

.portfolio-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}

.portfolio-header p {
  font-size: 15px;
  opacity: 0.85;
}

.portfolio-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-decoration: none;
  color: var(--black);

  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(30, 30, 30, 0.12);
  background-color: #d27089;
  color: #262626;
}
.project-thumb {
  height: 160px;
  background: var(--white);
  border-radius: var(--radius-md);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-text h3 {
  font-size: 14px;
  font-weight: 700;
}

.project-text span {
  font-size: 15px;
  opacity: 0.7;
}

.project-arrow {
  font-size: 30px;
  opacity: 0.4;
}
.project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.footer {
  padding: 0;
  background: var(--white);
}

.footer-bar {
  height: 6px;
  background: var(--black);
}

.footer-top {
  padding: 24px 20px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: flex-start;
}

.footer-info h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
}

.footer-info p {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0 0 10px;
}

.footer-info a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: 0.3s ease;
}

.footer-social a:hover {
  background: var(--black);
  color: var(--white);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(30, 30, 30, 0.25);
  font-family: "Poppins", sans-serif;
  background: transparent;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: none;
}

.form-row {
  margin-bottom: 10px;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-submit {
  width: 100%;
  padding: 10px 14px;
  background: #cad183;
  color: #262626;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.btn-submit:hover {
  opacity: 0.92;
}

.footer-bottom {
  background: var(--black);
  padding: 16px 12px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--white);
  opacity: 0.95;
}

.footer .social {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* botões */
.footer .social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: 0.3s ease;
}

.footer .social a:hover {
  background: var(--black);
}
.footer-grid {
  align-items: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.call-to-action {
  position: relative;
  overflow: hidden;
}
.call-to-action > * {
  position: relative;
  z-index: 1;
}
.input-error {
  border-color: #e63946 !important;
  background-color: rgba(230, 57, 70, 0.05);
}

.error-text {
  font-size: 12px;
  color: #e63946;
  margin-top: 4px;
  display: none;
}

.error-text.active {
  display: block;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  transition-delay: var(--d, 0ms);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}
.card:hover,
.project-card:hover {
  transition-delay: 0ms !important;
}
.card.reveal.active:hover {
  transform: scale(1.015);
  box-shadow: 0 18px 42px rgba(30, 30, 30, 0.18);
}

.teste {
  position: relative;
  overflow: hidden;
}

.teste-inner {
  position: relative;
  z-index: 1;
}

.decor {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: auto;

  color: #cad183;
  opacity: 0.9;

  z-index: 0;
  pointer-events: none;
  user-select: none;

  transform: translate3d(0, 0, 0);
}
.sobre {
  position: relative;
  overflow: hidden;
}

.decor-sobre-right {
  position: absolute;

  top: 40px;
  right: -80px;

  width: 260px;
  height: auto;

  color: #cad183;
  opacity: 0.9;

  z-index: 0;
  pointer-events: none;
  user-select: none;

  transform: rotate(6deg);
}

.sobre-container {
  position: relative;
  z-index: 1;
}
.sobre {
  position: relative;
  overflow: hidden;
}
.decor-hero-stroke {
  position: absolute;
  left: -100px;
  top: -58px;

  width: 360px;
  height: auto;

  color: #d27089;

  transform: rotate(-8deg);

  z-index: 0;
  pointer-events: none;
}

/*VETOR ROSA CARD*/
.card {
  position: relative;
  overflow: hidden;
}

.card .card-decor {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 70px;
  height: 100px;

  color: #d27089;
  opacity: 0.95;

  pointer-events: none;
  z-index: 0;
}

.card > *:not(.card-decor) {
  position: relative;
  z-index: 1;
}

/*VETOR ROSA CARD*/
/* responsivo */
@media (max-width: 900px) {
  .decor-hero-stroke {
    display: none;
  }
}

@media (max-width: 680px) {
  .decor {
    width: 200px;
    right: -70px;
    bottom: -90px;
    opacity: 0.85;
  }
}
@media (max-width: 900px) {
  .decor-sobre-right {
    width: 180px;
    top: 20px;
    right: -60px;
    opacity: 0.6;
  }
}

@media (max-width: 600px) {
  .decor-sobre-right {
    display: none; /* some no mobile pequeno */
  }
}

@media (max-width: 1100px) {
  :root {
    --container: 960px;
  }

  .nav,
  .cards,
  .sobre-container,
  .portfolio-grid,
  .footer-grid {
    max-width: 100%;
  }

  .cards,
  .portfolio-grid {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 10px 16px;
  }

  .call-to-action {
    padding: 56px 16px 46px;
  }

  .hero h1 {
    padding: 0;
    margin-bottom: 22px;
  }

  .cards,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicos {
    padding: 64px 16px;
  }

  .sobre {
    padding: 64px 16px;
  }

  .sobre-container {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .sobre-imagem {
    justify-self: center;
    max-width: 340px;
  }

  .sobre-conteudo p {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-top {
    padding: 20px 16px;
  }

  .footer-info h2 {
    font-size: 24px;
  }

  .footer .social {
    justify-content: flex-start;
    margin-top: 10px;
  }
}

@media (max-width: 680px) {
  .nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.08;
  }

  .btn-cto {
    font-size: 14px;
    padding: 8px 18px;
  }

  .servicos {
    padding: 56px 16px;
  }

  .sobre {
    padding: 56px 16px;
  }

  .portfolio-section {
    padding: 46px 16px;
  }

  .cards,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .sobre-imagem {
    max-width: 320px;
  }

  .project-thumb {
    height: 150px;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    border-radius: var(--radius-pill);
  }

  .social {
    margin-top: 46px;
  }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: 16px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .social a {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .marca-dagua {
    gap: 18px;
    padding: 10px 12px;
  }
}
@media (max-width: 680px) {
  .marca-dagua {
    padding: 12px 10px;
    gap: 0;
    justify-content: center;
    text-align: center;
  }
  .marca-dagua span {
    display: none;
  }

  .marca-dagua::after {
    content: "Webdesigner - @codedbylarac - Webdeveloper";
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--white);
    opacity: 0.95;
  }
}
@media (max-width: 680px) {
  .card-btn span,
  .project-arrow {
    font-family:
      "Poppins",
      system-ui,
      -apple-system,
      sans-serif;
  }

  .card-btn span::before {
    content: "\2197\FE0E"; /* ↗ forçado como texto */
  }

  .card-btn span {
    font-size: 0; /* esconde o caractere original */
  }

  .card-btn span::before {
    font-size: 16px; /* volta o tamanho só no pseudo */
  }
}
