/* W. Beauty — Dr. Luciano · Otoplastia
   Design System: Chiaroscuro premium (off-black + off-white + champagne sutil)
   Tipografia: Instrument Serif (display) + Inter (body, tech) */

:root {
  /* Brand — apenas preto e branco */
  --primary: #FFFFFF;
  --primary-dark: #E5E5E5;
  --primary-light: #F2F2F2;
  --primary-50: #F8F8F8;

  /* Neutros (chiaroscuro) */
  --ink:        #0A0A0C;       /* near-black para texto principal */
  --ink-2:      #46474A;       /* secundário */
  --muted:      #8A8B8E;       /* terciário */
  --line:       #E6E4DE;       /* off-line creme */
  --line-strong:#BFBDB6;
  --bg:         #F5F4F1;       /* off-white quente (claro) */
  --bg-soft:    #ECEAE4;       /* creme cinza levemente mais escuro */
  --bg-card:    #FFFFFF;

  /* Inversa (dark) */
  --ink-inv:    #F5F4F1;
  --bg-inv:     #0E0E10;       /* off-black premium */
  --bg-inv-soft:#16161A;
  --line-inv:   rgba(255,255,255,.10);
  --line-inv-strong: rgba(255,255,255,.22);

  /* Acento extra */
  --accent:       #1A1A1D;     /* preto contraste */
  --accent-light: #2C2C30;

  /* Aliases utilitários */
  --warn:    #C9624A;
  --success: #5C7060;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,10,12,.04), 0 1px 3px rgba(10,10,12,.06);
  --shadow-md: 0 6px 18px -8px rgba(10,10,12,.14), 0 2px 6px rgba(10,10,12,.06);
  --shadow-lg: 0 24px 48px -16px rgba(10,10,12,.22), 0 4px 12px rgba(10,10,12,.08);
  --shadow-blue: 0 12px 32px -8px rgba(255,255,255,.30);

  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', 'Manrope', system-ui, sans-serif;

  --container: 1240px;
  --section-pad: 112px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: var(--ink);
  transition: width .1s ease-out;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 5.8vw, 84px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.012em; line-height: 1.25; font-family: var(--font-body); }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; font-family: var(--font-body); }
em { font-style: italic; color: inherit; }

p { color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.section { padding: var(--section-pad) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink p { color: rgba(255,255,255,.78); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--ink-inv);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--white {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--white:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--lg { height: 62px; padding: 0 36px; font-size: 13px; }

/* Section header */
.s-head {
  text-align: center; max-width: 760px; margin: 0 auto 64px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.s-head p { font-size: 18px; color: var(--muted); }

/* Section header — split (esq/dir) */
.s-head--split {
  text-align: left; max-width: 1040px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end;
}
.s-head--split h2 { text-align: left; }
.s-head--split p { text-align: left; max-width: none; }
@media (max-width: 880px) {
  .s-head--split { grid-template-columns: 1fr; gap: 18px; }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

/* Density */
body[data-density="compact"] { --section-pad: 64px; }
body[data-density="comfy"] { --section-pad: 128px; }

body[data-typo="modern"] {
  --font-display: 'DM Serif Display', Georgia, serif;
}
body[data-typo="clean"] {
  --font-display: 'Manrope', system-ui, sans-serif;
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; --gutter: 20px; }
  .s-head { margin-bottom: 40px; }
}
