/* ============================================================
   THALUX — Design System
   ============================================================ */

/* --- CSS Reset (Modern) --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Focus ring para acessibilidade via teclado */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip Navigation (acessibilidade) */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-nav:focus {
  top: 8px;
}

/* --- Design Tokens --- */
:root {
  /* Paleta de Cores Refinada (Minimalista) */
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAFA; /* Cinza super claro, quase branco */
  --color-bg-dark: #111111;
  --color-text: #4A4A4A;
  --color-text-muted: #6B6B6B; /* Ajustado para WCAG AA (~5.4:1 contraste) */
  --color-text-heading: #111111; /* Preto profundo para títulos */
  --color-text-light: #FFFFFF;
  --color-border: #E5E5E5;

  /* Cores da Marca Thalux (Mais fechadas e elegantes) */
  --color-primary: #003639; /* Um verde/teal bem escuro e denso */
  --color-primary-dark: #001F21;
  --color-gold-light: #D4AF37; /* Ouro Champagne sofisticado */
  --color-gold-dark: #997A00;
  
  --color-success: #2E7D32;
  --color-error: #B71C1C;
  --color-whatsapp: #25D366;
  --color-overlay: rgba(0, 0, 0, 0.6);

  /* Tipografia */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Formas - O segredo do luxo: cantos RETOS */
  --radius: 0px; 
  --radius-sm: 0px;
  --radius-full: 50%;

  /* Sombras mais dramáticas e sutis, apenas para modais */
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);

  /* Medidas */
  --container-max: 1200px;
  --container-narrow: 800px;
  --section-px: 24px;
  --section-py: 48px;
  --topbar-h: 32px;
  --header-h: 70px;
  --nav-h: 48px;
  --header-total: calc(var(--topbar-h) + var(--header-h) + var(--nav-h));
  --gap: 24px;
  --gap-lg: 40px;

  --transition-fast: 0.2s ease;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 26px; }
h3 { font-size: 20px; font-weight: 500; }

p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

::selection {
  background: var(--color-gold-light);
  color: var(--color-primary);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.section--primary h2,
.section--primary h3 {
  color: var(--color-gold-light);
}

.section--primary p,
.section--primary span {
  color: rgba(255, 255, 255, 0.85);
}

.section--primary .divider {
  background: rgba(255, 255, 255, 0.2);
}

/* Botões em seções escuras — brancos com hover sutil */
.section--primary .btn-gold,
.section--primary .btn-ghost,
.hero .btn-gold,
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.section--primary .btn-gold:hover,
.section--primary .btn-ghost:hover,
.hero .btn-gold:hover,
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.section__title {
  text-align: center;
  margin-bottom: 40px;
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 8px;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold-light); }
.text-gold-dark { color: var(--color-gold-dark); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

/* --- Visibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.hide-mobile { display: none; }
.hide-desktop { display: block; }

/* --- Body offset for fixed header --- */
body {
  padding-top: var(--header-total);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE — Desktop (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --section-py: 80px;
    --section-px: 40px;
    --gap: 20px;
    --gap-lg: 32px;
  }

  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  h3 { font-size: 24px; }

  body { font-size: 17px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .hide-mobile { display: block; }
  .hide-desktop { display: none; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
}