/* ========================================
   STYLE.CSS - Studio Bella
   Estética e Beleza em São Paulo
   ======================================== */

/* ---------- VARIÁVEIS CSS (THEMING) ---------- */
:root {
    /* Cores - Modo Claro (padrão) */
    --cor-primaria: #d4a5a5;
    --cor-primaria-hover: #c49090;
    --cor-secundaria: #f9e8e8;
    --cor-fundo: #fff9f9;
    --cor-fundo-card: #ffffff;
    --cor-texto: #2d2d2d;
    --cor-texto-suave: #5a5a5a;
    --cor-borda: #e8d0d0;
    --cor-sombra: rgba(212, 165, 165, 0.25);
    --cor-badge: #ff6b9d;
    --cor-badge-destaque: #9b59b6;

    /* Tipografia */
    --fonte-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --fonte-titulo: 'Playfair Display', Georgia, serif;

    /* Espaçamentos */
    --espacamento-sm: 0.5rem;
    --espacamento-md: 1rem;
    --espacamento-lg: 2rem;
    --espacamento-xl: 4rem;

    /* Bordas */
    --borda-radius-sm: 8px;
    --borda-radius-md: 16px;
    --borda-radius-lg: 24px;
    --borda-radius-full: 9999px;

    /* Transições */
    --transicao-rapida: 0.2s ease;
    --transicao-suave: 0.3s ease;

    /* Sombras */
    --sombra-sm: 0 2px 8px var(--cor-sombra);
    --sombra-md: 0 4px 20px var(--cor-sombra);
    --sombra-lg: 0 8px 40px var(--cor-sombra);
}

/* Modo Escuro */
[data-theme="dark"] {
    --cor-primaria: #c49090;
    --cor-primaria-hover: #d4a5a5;
    --cor-secundaria: #3d2a2a;
    --cor-fundo: #1a1a1a;
    --cor-fundo-card: #252525;
    --cor-texto: #f5f5f5;
    --cor-texto-suave: #b0b0b0;
    --cor-borda: #444;
    --cor-sombra: rgba(0, 0, 0, 0.4);
    --cor-badge: #ff85b3;
    --cor-badge-destaque: #b37fcc;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    transition: background-color var(--transicao-suave), color var(--transicao-suave);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transicao-rapida);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- UTILITÁRIOS ---------- */
.subtitle {
    color: var(--cor-texto-suave);
    font-size: 1.1rem;
    margin-bottom: var(--espacamento-lg);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: var(--espacamento-xl) var(--espacamento-md);
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: var(--fonte-titulo);
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--espacamento-md);
    color: var(--cor-texto);
}

/* Botões */
.btn-agendar,
.btn-secundario,
#hero a,
#cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--borda-radius-full);
    font-weight: 600;
    transition: all var(--transicao-suave);
    white-space: nowrap;
}

.btn-agendar,
#hero a,
#cta a {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria-hover));
    color: white;
    box-shadow: var(--sombra-md);
}

.btn-agendar:hover,
#hero a:hover,
#cta a:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-lg);
    color: white;
}

.btn-secundario {
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    background: transparent;
}

.btn-secundario:hover {
    background: var(--cor-primaria);
    color: white;
}

/* Badge */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--cor-badge);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--borda-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge.destaque {
    background: var(--cor-badge-destaque);
}

/* ---------- HEADER & NAVEGAÇÃO ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cor-borda);
    padding: 1rem var(--espacamento-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transicao-suave), border-color var(--transicao-suave);
}

[data-theme="dark"] header {
    background: rgba(26, 26, 26, 0.95);
}

header h1 {
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--cor-secundaria);
    border-radius: var(--borda-radius-full);
    padding: 3px;
    display: flex;
    align-items: center;
    transition: background var(--transicao-suave);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    left: 3px;
    transition: transform var(--transicao-suave);
    box-shadow: var(--sombra-sm);
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(22px);
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.theme-toggle span {
    position: absolute;
    font-size: 0.9rem;
}

.theme-toggle .icon-sun {
    left: 8px;
}

.theme-toggle .icon-moon {
    right: 8px;
}

/* Hamburger Menu */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--cor-texto);
    border-radius: 2px;
    transition: all var(--transicao-suave);
}

/* Menu Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--espacamento-lg);
    margin-left: var(--espacamento-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--cor-texto);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cor-primaria);
    transition: width var(--transicao-suave);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria-hover));
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--borda-radius-full);
    font-weight: 600;
    box-shadow: var(--sombra-sm);
    transition: all var(--transicao-suave);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-md);
}

/* Menu Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--cor-fundo-card);
        flex-direction: column;
        padding: var(--espacamento-lg);
        gap: var(--espacamento-md);
        border-bottom: 1px solid var(--cor-borda);
        box-shadow: var(--sombra-lg);
        transform: translateY(-150%);
        transition: transform var(--transicao-suave);
    }

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

    .nav-link,
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    /* Animação do Hamburger */
    .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

/* ---------- HERO SECTION ---------- */
#hero {
    text-align: center;
    padding: var(--espacamento-xl) var(--espacamento-md);
    background: linear-gradient(135deg, var(--cor-secundaria) 0%, var(--cor-fundo) 100%);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--espacamento-md);
}

#hero h2 {
    font-family: var(--fonte-titulo);
    font-size: 2.5rem;
    margin-bottom: var(--espacamento-sm);
}

#hero p {
    font-size: 1.2rem;
    color: var(--cor-texto-suave);
    max-width: 500px;
    margin-bottom: var(--espacamento-lg);
}

#hero a {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

@media (max-width: 768px) {
    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }
}

/* ---------- SERVIÇOS ---------- */
#servicos {
    background: var(--cor-fundo);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--espacamento-lg);
    margin-bottom: var(--espacamento-xl);
}


.servico-card {
    background: var(--cor-fundo-card);
    border-radius: var(--borda-radius-md);
    overflow: hidden;
    box-shadow: var(--sombra-sm);
    transition: transform var(--transicao-suave), box-shadow var(--transicao-suave);
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-lg);
}

.card-imagem {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transicao-suave);
}

.servico-card:hover .card-imagem img {
    transform: scale(1.05);
}

.card-conteudo {
    padding: var(--espacamento-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--espacamento-sm);
}

.card-conteudo h3 {
    font-size: 1.2rem;
    margin-bottom: var(--espacamento-sm);
}

.card-conteudo p {
    color: var(--cor-texto-suave);
    font-size: 0.95rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--espacamento-md);
    padding-top: var(--espacamento-md);
    border-top: 1px solid var(--cor-borda);
}

.preco {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.preco small {
    font-size: 0.75rem;
    color: var(--cor-texto-suave);
}

.preco strong {
    font-size: 1.3rem;
    color: var(--cor-primaria);
}

.btn-agendar {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* CTA Serviços */
.servicos-cta {
    text-align: center;
    padding: var(--espacamento-lg);
    background: var(--cor-secundaria);
    border-radius: var(--borda-radius-md);
}

.servicos-cta p {
    margin-bottom: var(--espacamento-md);
    font-weight: 500;
}

/* ---------- RESULTADOS PREMIUM ---------- */
#resultados {
    text-align: center;
}

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: var(--espacamento-lg);
}

/* Card */
.resultado-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--borda-radius-md);
    cursor: pointer;
    box-shadow: var(--sombra-md);
    transition: all 0.3s ease;
}

/* Hover premium */
.resultado-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--sombra-lg);
}

/* Imagem */
.resultado-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom */
.resultado-item:hover img {
    transform: scale(1.1);
}

/* Overlay elegante */
.resultado-item::after {
    content: "Clique para ampliar";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    font-size: 0.9rem;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resultado-item:hover::after {
    opacity: 1;
}

/* ---------- LIGHTBOX ---------- */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- DEPOIMENTOS ---------- */
#depoimentos {
    background: var(--cor-secundaria);
    border-radius: var(--borda-radius-lg);
    margin: var(--espacamento-xl) auto;
}

#depoimentos>div {
    background: var(--cor-fundo-card);
    padding: var(--espacamento-lg);
    border-radius: var(--borda-radius-md);
    margin: var(--espacamento-md) 0;
    box-shadow: var(--sombra-sm);
    text-align: center;
    transition: transform var(--transicao-suave);
}

#depoimentos>div:hover {
    transform: translateY(-4px);
}

#depoimentos p {
    font-style: italic;
    margin-bottom: var(--espacamento-sm);
    font-size: 1.1rem;
}

#depoimentos span {
    font-weight: 600;
    color: var(--cor-primaria);
}

/* ---------- SOBRE ---------- */
#sobre {
    text-align: center;
    max-width: 700px;
}

#sobre p {
    font-size: 1.1rem;
    color: var(--cor-texto-suave);
    line-height: 1.8;
}

/* ---------- CTA FINAL ---------- */
#cta {
    text-align: center;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria-hover));
    border-radius: var(--borda-radius-lg);
    color: white;
    margin: var(--espacamento-xl) auto;
}

#cta h2 {
    color: white;
    margin-bottom: var(--espacamento-lg);
}

#cta a {
    background: white;
    color: var(--cor-primaria) !important;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

#cta a:hover {
    color: var(--cor-primaria-hover) !important;
}

/* ========================================
   FOOTER COMPLETO - Studio Bella
   BEM + Responsivo + Dark Mode + Acessível
   ======================================== */

/* Base do Footer */
.footer {
  background: var(--cor-fundo-card);
  border-top: 1px solid var(--cor-borda);
  padding: 3rem var(--espacamento-md) 1.5rem;
  margin-top: var(--espacamento-xl);
  color: var(--cor-texto);
  font-size: 0.95rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--espacamento-md);
}

/* Grid de colunas */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

/* Colunas */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0; /* Previne overflow em flex/grid */
}

/* Marca */
.footer__brand {
  font-family: var(--fonte-titulo);
  font-size: 1.4rem;
  color: var(--cor-primaria);
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.footer__text {
  color: var(--cor-texto-suave);
  line-height: 1.7;
  margin: 0;
}

/* Redes Sociais */
.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--cor-secundaria);
  border-radius: 50%;
  color: var(--cor-texto);
  text-decoration: none;
  transition: all var(--transicao-suave);
  flex-shrink: 0;
}

.footer__social-link svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transicao-suave);
}

.footer__social-link:hover {
  background: var(--cor-primaria);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--sombra-md);
}

.footer__social-link:hover svg {
  transform: scale(1.1);
}

.footer__social-link:focus-visible {
  outline: 3px solid var(--cor-primaria);
  outline-offset: 2px;
}

/* Títulos das colunas */
.footer__title {
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
  color: var(--cor-texto);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cor-secundaria);
  display: inline-block;
  line-height: 1.3;
}

/* Navegação */
.footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__nav li a {
  color: var(--cor-texto-suave);
  text-decoration: none;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: all var(--transicao-rapida);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer__nav li a::before {
  content: "▹";
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity var(--transicao-rapida), transform var(--transicao-rapida);
  transform: translateX(-5px);
}

.footer__nav li a:hover {
  color: var(--cor-primaria);
  transform: translateX(4px);
}

.footer__nav li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__nav li a:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Contato */
.footer__contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}

.footer__contact p,
.footer__contact a {
  margin: 0;
  color: var(--cor-texto-suave);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.5;
}

.footer__contact a {
  text-decoration: none;
  transition: color var(--transicao-rapida);
  font-size: 0.95rem;
}

.footer__contact a:hover {
  color: var(--cor-primaria);
}

.footer__contact a:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Barra inferior */
.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--cor-borda);
  text-align: center;
}

.footer__bottom p {
  margin: 0;
  color: var(--cor-texto-suave);
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablet: 768px e abaixo */
@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 1rem 1.25rem;
  }

  .footer .container {
    padding: 0 1rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer__col {
    align-items: center;
  }

  .footer__title {
    border-bottom-color: transparent;
    padding-bottom: 0;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__nav {
    align-items: center;
  }

  .footer__nav li a {
    justify-content: center;
  }

  .footer__nav li a:hover {
    transform: none;
  }

  .footer__nav li a:hover::before {
    opacity: 0;
    transform: translateX(-5px);
  }

  .footer__contact {
    align-items: center;
  }

  .footer__contact p,
  .footer__contact a {
    justify-content: center;
  }
}

/* Mobile pequeno: 480px e abaixo */
@media (max-width: 480px) {
  .footer {
    padding: 2rem 0.75rem 1rem;
  }

  .footer__brand {
    font-size: 1.25rem;
    text-align: center;
  }

  .footer__text {
    font-size: 0.9rem;
    text-align: center;
  }

  .footer__title {
    font-size: 1.1rem;
  }

  .footer__nav li a {
    font-size: 0.9rem;
    padding: 0.25rem 0;
  }

  .footer__social-link {
    width: 40px;
    height: 40px;
  }

  .footer__social-link svg {
    width: 20px;
    height: 20px;
  }

  .footer__bottom p {
    font-size: 0.85rem;
  }

  .footer__contact p,
  .footer__contact a {
    font-size: 0.9rem;
  }
}

/* Ajuste para touch: aumenta área de clique */
@media (hover: none) and (pointer: coarse) {
  .footer__social-link,
  .footer__nav a,
  .footer__contact a {
    min-height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
  }

  .footer__nav li a {
    width: 100%;
    justify-content: center;
  }

  .footer__nav li a::before {
    display: none; /* Remove setinha em touch */
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .footer {
    padding: 1.5rem 1rem 1rem;
  }

  .footer__grid {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Telas grandes: otimiza layout */
@media (min-width: 1200px) {
  .footer__grid {
    gap: 3rem 2.5rem;
  }

  .footer {
    padding: 4rem 2rem 2rem;
  }
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme="dark"] .footer__title {
  border-bottom-color: var(--cor-borda);
}

[data-theme="dark"] .footer__social-link {
  background: var(--cor-borda);
}

[data-theme="dark"] .footer__social-link:hover {
  background: var(--cor-primaria);
  color: white;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .footer__social-link,
  .footer__nav a,
  .footer__contact a,
  .footer__social-link svg {
    transition: none !important;
    animation: none !important;
  }
}

.footer__social-link:focus-visible,
.footer__nav a:focus-visible,
.footer__contact a:focus-visible {
  outline: 3px solid var(--cor-primaria);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print */
@media print {
  .footer {
    padding: 2cm 1cm;
    border-top: 1px solid #ccc;
  }

  .footer__social,
  .footer__nav a::before {
    display: none;
  }

  .footer__contact a {
    text-decoration: none;
    color: #000;
  }
}

/* ---------- ACESSIBILIDADE ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
    outline: 3px solid var(--cor-primaria);
    outline-offset: 2px;
}

/* Skip link para acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cor-primaria);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 2000;
    transition: top var(--transicao-rapida);
}

.skip-link:focus {
    top: 0;
}

/* ---------- ANIMAÇÕES ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

section:nth-child(1) {
    animation-delay: 0.1s;
    opacity: 1;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}

section:nth-child(5) {
    animation-delay: 0.5s;
}

section:nth-child(6) {
    animation-delay: 0.6s;
}

/* ---------- RESPONSIVIDADE AVANÇADA ---------- */

/* Tablet: 768px e abaixo */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  header h1 {
    font-size: 1.4rem;
    order: 1;
  }

  .theme-toggle {
    order: 2;
    width: 44px;
    height: 24px;
  }

  .nav-toggle {
    order: 3;
    display: flex;
  }

  /* Menu Mobile */
  .nav-menu {
    order: 4;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--cor-fundo-card);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--cor-borda);
    box-shadow: var(--sombra-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

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

  .nav-link,
  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    display: block;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  /* Hamburger animado */
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  #hero {
    padding: 3rem 1rem;
    min-height: auto;
  }

  #hero h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  #hero p {
    font-size: 1rem;
  }

  /* Seções */
  section {
    padding: 2.5rem 1rem;
  }

  section h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .subtitle {
    font-size: 1rem;
  }

  /* Serviços - Grid */
  .servicos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .servico-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .card-imagem {
    height: 180px;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn-agendar {
    width: 100%;
    justify-content: center;
  }

  /* Resultados */
  #resultados > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #resultados img {
    margin: 0 auto;
  }

  /* Depoimentos */
  #depoimentos > div {
    padding: 1.25rem;
  }

  #depoimentos p {
    font-size: 1rem;
  }

  /* CTA Final */
  #cta {
    margin: 2rem auto;
    padding: 2rem 1rem;
  }

  #cta h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  #cta a {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    width: 100%;
    max-width: 320px;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem;
    text-align: center;
  }

  footer p {
    font-size: 0.95rem;
  }
}

/* Mobile Pequeno: 480px e abaixo */
@media (max-width: 480px) {
  :root {
    --espacamento-sm: 0.4rem;
    --espacamento-md: 0.8rem;
    --espacamento-lg: 1.5rem;
    --espacamento-xl: 2.5rem;
  }

  /* Tipografia fluida extra */
  html {
    font-size: 15px;
  }

  body {
    font-size: 0.95rem;
  }

  /* Header compacto */
  header {
    padding: 0.5rem 0.75rem;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .theme-toggle {
    width: 40px;
    height: 22px;
  }

  .nav-menu {
    top: 52px;
  }

  /* Hero */
  #hero {
    padding: 2.5rem 1rem;
    gap: 1rem;
  }

  #hero h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  #hero p {
    font-size: 0.95rem;
  }

  #hero a {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    width: 100%;
    max-width: 280px;
  }

  /* Seções */
  section {
    padding: 2rem 0.75rem;
  }

  section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Cards de serviço */
  .servico-card {
    border-radius: 12px;
  }

  .card-imagem {
    height: 160px;
  }

  .card-conteudo {
    padding: 1rem;
  }

  .card-conteudo h3 {
    font-size: 1.1rem;
  }

  .card-conteudo p {
    font-size: 0.9rem;
  }

  .preco strong {
    font-size: 1.2rem;
  }

  .btn-agendar {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  /* Badges */
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    top: 8px;
    right: 8px;
  }

  /* Depoimentos */
  #depoimentos > div {
    padding: 1rem;
    margin: 0.75rem 0;
  }

  #depoimentos p {
    font-size: 0.95rem;
  }

  #depoimentos span {
    font-size: 0.9rem;
  }

  /* Sobre */
  #sobre p {
    font-size: 1rem;
  }

  /* CTA */
  #cta {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  #cta h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  #cta a {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }

  /* Footer */
  footer {
    padding: 1.5rem 0.75rem;
  }

  footer h2 {
    font-size: 1.3rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  /* Ajustes de toque */
  a,
  button,
  .btn-agendar,
  .nav-link {
    min-height: 44px; /* Área de toque mínima */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Extra Pequeno: 360px e abaixo */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  #hero h2 {
    font-size: 1.3rem;
  }

  .servico-card {
    margin: 0 0.5rem;
  }

  .card-footer {
    gap: 0.5rem;
  }

  .preco strong {
    font-size: 1.1rem;
  }
}

/* Landscape mobile: ajusta altura */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-menu {
    top: 50px;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
  }

  #hero {
    min-height: auto;
    padding: 1.5rem 1rem;
  }
}

/* Telas grandes: otimiza layout desktop */
@media (min-width: 1200px) {
  section {
    padding: 5rem 2rem;
  }

  .servicos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  #resultados > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  #depoimentos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem 2rem;
  }

  #depoimentos > div {
    margin: 0;
  }
}

/* Ultra-wide: centraliza conteúdo */
@media (min-width: 1600px) {
  body {
    font-size: 1.1rem;
  }

  .servicos-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- TIPGRAFIA FLUIDA GLOBAL ---------- */
/* Ajusta fonte base conforme largura da tela */
@media (min-width: 320px) {
  html {
    font-size: clamp(14px, 0.875rem + 0.5vw, 16px);
  }
}

/* ---------- AJUSTES DE TOQUE E ACESSIBILIDADE MOBILE ---------- */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover em dispositivos touch */
  .servico-card:hover {
    transform: none;
  }

  .nav-link:hover::after {
    width: 0;
  }

  /* Aumenta área de toque */
  a,
  button,
  [role="button"] {
    min-height: 48px;
    min-width: 48px;
    padding: 0.75rem 1rem;
  }

  .theme-toggle {
    width: 52px;
    height: 32px;
  }

  .nav-toggle {
    padding: 12px;
  }
}

/* ---------- PRINT RESPONSIVO ---------- */
@media print {
  .theme-toggle,
  .nav-toggle,
  .nav-cta,
  #cta a,
  .btn-agendar {
    display: none !important;
  }

  body {
    font-size: 12pt;
    background: #fff;
    color: #000;
  }

  header {
    position: static;
    background: none;
    border: none;
    padding: 0;
  }

  section {
    padding: 1cm;
    page-break-inside: avoid;
  }

  .servicos-grid {
    display: block;
  }

  .servico-card {
    break-inside: avoid;
    margin-bottom: 1cm;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}