/* ==========================================================================
   Design System & Variáveis (Tema: Clínica de Estética)
   ========================================================================== */
:root {
  --primary: #c98e9a; /* Rosê Gold Suave */
  --primary-hover: #b76e79;
  --bg-light: #faf9f8;
  --bg-white: #ffffff;
  --bg-secondary: #f3ece7;
  --text-main: #333333;
  --text-muted: #666666;
  --border-light: #ebebeb;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
  
  --font-main: 'Outfit', 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Tipografia
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--primary);
  margin: 1rem auto 0;
}

/* ==========================================================================
   Componentes Reutilizáveis
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(201, 142, 154, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Soft Cards */
.soft-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 400;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8)), 
              url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}

.hero-content {
  max-width: 700px;
  text-align: left;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Sobre a Clínica
   ========================================================================== */
.sobre {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.sobre-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   Tratamentos
   ========================================================================== */
.tratamentos {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.tratamentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tratamento-card {
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.tratamento-card:hover {
  transform: translateY(-10px);
}

.tratamento-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.tratamento-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.tratamento-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Contato / CTA
   ========================================================================== */
.contato {
  padding: 6rem 0;
  background-color: var(--bg-white);
  position: relative;
}

.contato-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
footer {
  background-color: var(--bg-light);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Páginas Legais (Termos / Privacidade)
   ========================================================================== */
.legal-page {
  padding: 120px 0 60px;
  background-color: var(--bg-white);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-content p, .legal-content ul {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 500px;
  padding: 1.5rem;
  z-index: 1000;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Animações e Interatividade
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 768px) {
  .sobre-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
  }
}
