/* services.css - estilos avançados para a seção de serviços */
:root {
  --svc-bg-dark: #09090c;
  --svc-overlay: linear-gradient(135deg, #0b0b11 0%, #141420 55%, #1c0f18 100%);
  --svc-accent: #8B4B3C;
  /* Cor mais próxima das letras */
  --svc-accent-rgb: 139 75 60;
  --svc-radius: 26px;
  --svc-radius-sm: 16px;
  --svc-glow: 0 10px 34px -10px rgba(var(--svc-accent-rgb)/.55), 0 4px 16px -4px rgba(var(--svc-accent-rgb)/.35);
  --svc-border: 1px solid rgba(255, 255, 255, .08);
  --svc-grad-card: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  --svc-text-light: #f5f5f7;
  --svc-text-dim: #c8c8ce;
  --svc-shadow-soft: 0 8px 22px -6px rgba(0, 0, 0, .55), 0 4px 12px -2px rgba(0, 0, 0, .4);
  --svc-grid-gap: clamp(1.5rem, 2vw, 2.5rem);
}

.services {
  position: relative;
  padding: 0;
  background: linear-gradient(180deg, #f8f3ed 0%, #f0e6dc 50%, #e8ddd1 100%);
}

.services-hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 8rem);
  background: transparent;
}

.services-overlay {
  display: none;
}

.services .container {
  position: relative;
  z-index: 5;
}

.services-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.services-header .section-title {
  font-size: clamp(2.0rem, 2vw, 3.1rem);
  letter-spacing: .08em;
  font-weight: 700;
  background: linear-gradient(135deg, #8B4B3C, #A0624F, #8B4B3C);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.services-header .section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, #8B4B3C, #A0624F, transparent);
  border-radius: 8px;
}

.services-header .lead {
  color: #7a5a46;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  font-weight: 300;
}

/* Grid dos cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--svc-grid-gap);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === CARD REDESENHADO === */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 2px solid #e8ddd1;
  box-shadow:
    0 2px 8px rgba(122, 90, 70, .08),
    0 8px 24px rgba(122, 90, 70, .12);
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
  isolation: isolate;
  min-height: 420px;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #d4c2a8;
  box-shadow:
    0 8px 16px rgba(122, 90, 70, .14),
    0 16px 48px rgba(122, 90, 70, .18);
}

/* Imagem de fundo do card */
.service-card .card-bg {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--card-photo) center/cover no-repeat;
  overflow: hidden;
}

.service-card .card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(0, 0, 0, .05) 40%,
      rgba(0, 0, 0, .15) 100%);
}

.service-card:hover .card-bg::after {
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(139, 75, 60, .08) 40%,
      rgba(139, 75, 60, .18) 100%);
}

/* Conteúdo do card */
.service-content {
  position: relative;
  padding: 1.8rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  background: #fff;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .05em;
  background: linear-gradient(135deg, #d4c2a8, #c8b5a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.service-desc {
  font-size: .95rem;
  line-height: 1.6;
  color: #7a5a46;
  margin: 0;
  flex: 1;
}

/* Tags */
.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
}

.service-tags li {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .5rem .9rem;
  border-radius: 20px;
  background: #f8f3ed;
  color: #A0624F;
  text-transform: uppercase;
  border: 1px solid #e8ddd1;
  transition: all .3s ease;
}

.service-tags li:hover {
  background: #8B4B3C;
  color: #fff;
  border-color: #8B4B3C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 75, 60, .3);
}

/* Botão com efeitos melhorados */
.service-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  margin-top: auto;
  min-height: 3rem;
  border-radius: 12px;
  border: 2px solid #8B4B3C;
  background: transparent;
  color: #8B4B3C;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
  cursor: pointer;
}

.service-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, #8B4B3C 0%, #A0624F 100%);
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
}

.service-cta::after {
  content: "→";
  font-size: 1rem;
  font-weight: 600;
  transform: translateX(0);
  transition: all .3s ease;
}

.service-cta:hover {
  color: #fff;
  border-color: #8B4B3C;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(139, 75, 60, .4),
    0 4px 12px rgba(139, 75, 60, .25),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.service-cta:hover::before {
  width: 300%;
  height: 300%;
}

.service-cta:hover::after {
  transform: translateX(4px) rotate(15deg);
}

.service-cta:active {
  transform: translateY(-1px) scale(.98);
  box-shadow:
    0 4px 15px rgba(139, 75, 60, .3),
    inset 0 2px 4px rgba(0, 0, 0, .1);
}

.service-cta:focus-visible {
  outline: 3px solid rgba(139, 75, 60, .6);
  outline-offset: 3px;
}

/* === BOTÕES PREMIUM (override) ===
   Substitui o estilo anterior de .service-cta para algo mais sofisticado.
   Mantém o mesmo HTML. Colocar este bloco após o original para sobrescrever. */
.service-cta {
  --btn-grad: linear-gradient(135deg, #8B4B3C 0%, #B87463 50%, #8B4B3C 100%);
  --btn-bg: rgba(255, 255, 255, .35);
  --btn-bg-hover: rgba(255, 255, 255, .55);
  --btn-text: #632f23;
  --btn-radius: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.1rem;
  padding: .95rem 2.35rem .9rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  line-height: 1;
  color: #d4c2a8;
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .08),
    0 6px 18px -4px rgba(139, 75, 60, .35),
    0 0 0 0 rgba(139, 75, 60, .0);
  cursor: pointer;
  text-decoration: none;
  transition:
    box-shadow .5s cubic-bezier(.4, 0, .2, 1),
    transform .5s cubic-bezier(.4, 0, .2, 1),
    color .4s ease,
    background .5s ease,
    letter-spacing .5s ease;
  overflow: hidden;
  isolation: isolate;
}

.service-cta::before,
.service-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

/* Layer de brilho interno suave */
.service-cta::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
  opacity: .55;
  transition: opacity .6s ease;
  z-index: -1;
}

/* Sheen animado ao hover */
.service-cta::after {
  background: linear-gradient(115deg,
      transparent 0%,
      rgba(255, 255, 255, .0) 45%,
      rgba(255, 255, 255, .65) 50%,
      rgba(255, 255, 255, 0) 55%,
      transparent 100%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 1s cubic-bezier(.77, 0, .18, 1);
  z-index: 2;
}

/* Ícone seta substitui o antigo ::after (usamos span pseudo) */
.service-cta>.icon-arrow,
.service-cta::marker {
  display: none;
}

.service-cta span.btn-label {
  position: relative;
  z-index: 3;
  letter-spacing: .18em;
}

/* Mantém compatibilidade com texto direto (sem span) */
.service-cta:not(:has(.btn-label)) {
  letter-spacing: .18em;
}

.service-card:hover .service-cta {
  box-shadow:
    0 4px 14px -4px rgba(139, 75, 60, .32),
    0 10px 32px -6px rgba(139, 75, 60, .40);
}

/* === OVERRIDE: alinhar botão à cor do título (#8B4B3C) === */
.service-cta {
  --btn-base: #8B4B3C;
  --btn-grad: linear-gradient(135deg, var(--btn-base) 0%, var(--btn-base) 100%);
  --btn-text: var(--btn-base);
  color: var(--btn-text);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--btn-grad) border-box;
  border: 2px solid transparent;
  letter-spacing: .14em;
}

.service-cta::before {
  /* brilho mais discreto, mesma paleta */
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%);
  opacity: .5;
}

.service-cta::after {
  /* mantém sheen, mas sem contraste exagerado */
  background: linear-gradient(115deg,
      transparent 0%,
      rgba(255, 255, 255, .0) 45%,
      rgba(255, 255, 255, .55) 50%,
      rgba(255, 255, 255, 0) 55%,
      transparent 100%);
}

.service-cta:hover {
  background:
    linear-gradient(var(--btn-base), var(--btn-base)) padding-box,
    var(--btn-grad) border-box;
  color: #fff;
  letter-spacing: .18em;
}

.service-cta:hover::before {
  opacity: .75;
}

.service-cta:active {
  background:
    linear-gradient(var(--btn-base), var(--btn-base)) padding-box,
    var(--btn-grad) border-box;
  color: #fff;
}

.service-cta:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(139, 75, 60, .55);
}

.service-cta:disabled,
.service-cta[aria-disabled="true"] {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--btn-grad) border-box;
  color: rgba(139, 75, 60, .55);
  opacity: .55;
}

/* Redução de movimento (respeita blocos anteriores) */
@media (prefers-reduced-motion: reduce) {
  .service-cta {
    transition: none !important;
  }
}

/* Responsividade */
@media (min-width: 900px) {
  .service-card {
    min-height: 460px;
  }

/* === TEXTO GRADIENTE SEGURO NO BOTÃO === */
.service-cta { color: #d4c2a8; }
.service-cta .cta-text { 
  background: linear-gradient(135deg, #d4c2a8, #c8b5a0);
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
  display: inline-block;
}
/* Hover mantém legibilidade */
.service-cta:hover .cta-text { filter: brightness(1.05); }
/* Active leve */
.service-cta:active .cta-text { filter: brightness(.92); }
@supports not (-webkit-background-clip: text) {
  .service-cta .cta-text { color: #d4c2a8; -webkit-text-fill-color: initial; background: none; }
}

  .service-content {
    padding: 2rem 2rem 2.2rem;
  }

  .service-title {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #d4c2a8, #c8b5a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .service-desc {
    font-size: 1rem;
  }

  /* Ajuste específico: desce a imagem de fundo do primeiro card no desktop */
  .service-card:nth-child(1) .card-bg {
    background-size: 90%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }

  .service-card:nth-child(2) .card-bg {
    background-size: 90%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }


  .service-card:nth-child(3) .card-bg {
    background-size: 90%;
    background-position: center 25%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }

  
  .service-card:nth-child(4) .card-bg {
    background-size: 90%;
    background-position: center 40%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }


}


@media (max-width: 768px) {

  /* Ajuste específico: desce a imagem de fundo do primeiro card no desktop */
  .service-card:nth-child(1) .card-bg {
    background-size: 100%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }

  .service-card:nth-child(2) .card-bg {
    background-size: 100%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }

  .service-card:nth-child(3) .card-bg {
    background-size: 100%;
    background-position: center 22%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }


}


@media (max-width: 640px) {
  .services-header {
    margin-bottom: 3rem;
  }

  .service-card {
    min-height: 380px;
  }

  .service-card .card-bg {
    height: 200px;
  }

  .service-content {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .primary-cta {
    padding: 1rem 2rem;
  }

  /* Ajuste específico: desce a imagem de fundo do primeiro card no desktop */
  .service-card:nth-child(1) .card-bg {
    background-size: 100%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }

  .service-card:nth-child(2) .card-bg {
    background-size: 100%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }

  .service-card:nth-child(3) .card-bg {
    background-size: 100%;
    background-position: center 18%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }




}

@media (max-width: 400px) {
  .services-grid {
    padding: 0 .75rem;
  }

  .service-card .card-bg {
    height: 180px;
  }

  /* Ajuste específico: desce a imagem de fundo do primeiro card no desktop */
  .service-card:nth-child(1) .card-bg {
    background-size: 100%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }

  .service-card:nth-child(2) .card-bg {
    background-size: 100%;
    background-position: center 13%;
    /* ajuste fino: aumente ou diminua (ex: 55%, 65%) */
  }


}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {

  .service-card,
  .service-card:nth-child(n) {
    animation: none;
  }

  .service-card,
  .service-cta,
  .primary-cta,
  .service-tags li {
    transition: none;
  }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {

  .service-card,
  .service-card:nth-child(n) {
    animation: none;
  }

  .service-card,
  .service-cta,
  .primary-cta,
  .service-tags li {
    transition: none;
  }
}

/* === OVERRIDE FINAL: cor consistente com gradiente nos botões "SAIBA MAIS" === */
.service-cta {
  --btn-base: #d4c2a8;
  color: #d4c2a8 !important;
}

.service-cta span,
.service-cta .btn-label,
.service-cta .cta-text {
  color: #d4c2a8 !important;
}

/* Mantém o efeito de elevação mas não troca para fundo sólido */
.service-cta:hover,
.service-cta:active {
  color: #d4c2a8 !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--btn-grad, linear-gradient(135deg, #d4c2a8, #c8b5a0)) border-box;
  letter-spacing: .18em;
}

.service-cta:focus-visible {
  color: #d4c2a8 !important;
}

.service-cta[data-loading] {
  color: transparent !important;
}

/* Caso exista qualquer estilo que force branco, neutraliza: */
.service-cta:hover::before {
  /* mantém brilho mas não deixa o fundo dominar o texto */
  opacity: .65;
}

/* seletor mais específico para garantir que vença */
.services .services-grid .service-card .service-cta {
  --btn-base: #d4c2a8;
  color: var(--btn-base) !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--btn-base), #c8b5a0) border-box;
  border: 2px solid transparent;
}

.services .services-grid .service-card .service-cta span,
.services .services-grid .service-card .service-cta .btn-label,
.services .services-grid .service-card .service-cta .cta-text {
  color: var(--btn-base) !important;
}

/* Correção para mobile 360px e menores - texto dos títulos menor */
@media (max-width: 360px) {
  .service-title {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    letter-spacing: .03em !important;
  }
  
  /* Ajuste específico para o card "Auto maquiagem" que tem texto mais longo */
  .service-card:nth-child(4) .service-title {
    font-size: .95rem !important;
    line-height: 1.15 !important;
  }
}
