/* ==========================================================================
   Conceito Estética Avançada — Design System & Landing Page Styles
   Based strictly on DESIGN.md and WIREFRAME.md
   ========================================================================== */

/* --- Custom Properties (Tokens) --- */
:root {
  /* Colors */
  --primary: #991A40;
  --primary-dark: #74122F;
  --brand-rose: #E21F5B;
  --brand-blue: #2B4C9A;
  --brand-cyan: #6EC4D6;
  --ink: #1D2330;
  --text-muted: #4B5563;
  --surface: #FFFFFF;
  --surface-soft: #FCF7F9;
  --surface-blue: #F4F7FC;
  --border: #D9DEE8;
  --border-strong: #AEB7C6;
  --focus: #2B4C9A;
  --success: #246B4A;
  --error: #A32035;

  /* Typography */
  --font-family: 'Poppins', Arial, Helvetica, sans-serif;

  /* Spacing */
  --space-micro: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --content-max: 1200px;
  --text-max: 680px;

  /* Layout Gutters */
  --gutter: 48px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows (Elevation) */
  --elevation-0: none;
  --elevation-1: 0 1px 2px rgba(29, 35, 48, 0.10);
  --elevation-2: 0 6px 16px rgba(29, 35, 48, 0.10);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--ink);
  background-color: var(--surface);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background-color: var(--primary);
  color: var(--surface);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus-visible {
  top: 16px;
}

/* --- Typography Tokens --- */
.text-eyebrow {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.text-display {
  font-family: var(--font-family);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.text-headline-lg {
  font-family: var(--font-family);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-headline-md {
  font-family: var(--font-family);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.text-headline-sm {
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.text-body-lg {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
}

.text-body-md {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
}

.text-body-sm {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- Layout Components --- */
.container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.text-constrained {
  max-width: var(--text-max);
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

/* Identity Stripe (Single exact occurrence on page) */
.identity-stripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #991A40 0%, #E21F5B 35%, #6EC4D6 68%, #2B4C9A 100%);
}

/* --- Buttons & Links --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 52px;
  padding: 0 var(--space-lg);
  background-color: var(--primary);
  color: var(--surface);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--radius-full);
  border: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms ease;
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--primary-dark);
  color: var(--surface);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary svg {
  flex-shrink: 0;
}

.link-brand {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 150ms ease;
}

.link-brand:hover {
  color: var(--primary-dark);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 68px;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-mobile-panel {
  display: none;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) var(--gutter);
}

.nav-mobile-panel.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav-mobile-panel .nav-link {
  display: block;
  font-size: 17px;
  font-weight: 600;
  padding: var(--space-xs) 0;
  color: var(--ink);
  min-height: 44px;
  line-height: 44px;
}

.nav-mobile-panel .btn-primary {
  width: 100%;
  margin-top: var(--space-sm);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface) 55%, var(--surface-blue) 100%);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.hero-eyebrow {
  margin-bottom: var(--space-sm);
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-text {
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.hero-microcopy {
  margin-top: var(--space-xs);
}

.hero-media {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Comece Com Mais Clareza Section --- */
.clareza-section {
  background-color: var(--surface);
}

.clareza-content {
  max-width: var(--text-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.clareza-content .btn-primary {
  align-self: flex-start;
  margin-top: var(--space-md);
}

/* --- A Clínica Section --- */
.clinica-section {
  background-color: var(--surface-blue);
}

.clinica-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
}

.clinica-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.clinica-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.clinica-item {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.clinica-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.clinica-icon {
  flex-shrink: 0;
  color: var(--brand-blue);
  margin-top: 2px;
}

.clinica-item-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-micro);
}

.clinica-item-title {
  color: var(--ink);
}

/* --- Experiências (Depoimentos) Section --- */
.depoimentos-section {
  background-color: var(--surface);
}

.depoimentos-header {
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.depoimentos-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.depoimento-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.depoimento-col .depoimento-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.depoimento-text {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  font-style: normal;
}

.depoimento-author {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Catalog Section Common --- */
.catalog-header-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.catalog-header-grid.facial {
  grid-template-columns: 5fr 7fr;
}

.catalog-header-grid.corporal {
  grid-template-columns: 7fr 5fr;
}

.catalog-header-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.catalog-media {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-list-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-2xl);
  row-gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.catalog-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.catalog-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

.catalog-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

/* Facial Section */
.facial-section {
  background-color: var(--surface-soft);
}

/* Corporal Section */
.corporal-section {
  background-color: var(--surface);
}

/* --- Seu Primeiro Passo Section --- */
.passo-section {
  background-color: var(--surface-blue);
}

.passo-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--space-2xl);
  align-items: center;
}

.passo-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.passo-media {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.passo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Dúvidas Frequentes (FAQ) Section --- */
.faq-section {
  background-color: var(--surface);
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-header {
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

.faq-trigger:hover {
  color: var(--brand-blue);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 150ms ease;
}

.faq-panel {
  padding-bottom: var(--space-lg);
  display: block;
}

.faq-panel.is-hidden {
  display: none;
}

.faq-panel p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* --- CTA Final Section --- */
.cta-final-section {
  background-color: var(--surface);
}

.cta-final-panel {
  background-color: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
}

.cta-final-panel .btn-primary {
  margin-top: var(--space-sm);
}

/* --- Rodapé (Footer) --- */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 15px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--brand-blue);
  margin-top: 3px;
}

/* --- Media Queries (Responsiveness) --- */

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .text-display {
    font-size: 42px;
  }

  .text-headline-lg {
    font-size: 34px;
  }

  .text-headline-md {
    font-size: 26px;
  }

  .nav-desktop {
    display: none;
  }

  .header-btn-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-media {
    box-shadow: none;
    aspect-ratio: 4 / 3;
  }

  .clinica-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .depoimentos-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .catalog-header-grid.facial,
  .catalog-header-grid.corporal {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .passo-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Mobile (320px to 767px) */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .text-display {
    font-size: 34px;
    line-height: 1.15;
  }

  .text-headline-lg {
    font-size: 28px;
  }

  .text-headline-md {
    font-size: 22px;
  }

  .text-headline-sm {
    font-size: 19px;
  }

  .hero-media {
    aspect-ratio: 4 / 5;
  }

  .btn-primary {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .catalog-list-two-col {
    grid-template-columns: 1fr;
  }

  .cta-final-panel {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
