/* ==========================================================================
   INTEGRAR FISIOTERAPIA — BRAND DESIGN SYSTEM
   Baseado no Brandbook Oficial da Marca Integrar Fisioterapia
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..600;1,400..600&family=Montserrat:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  /* Cores Oficiais do Brandbook (Página 09) */
  --brand-cream: #F4EEE2;        /* R:244 G:238 B:226 */
  --brand-cream-rgb: 244, 238, 226;
  
  --brand-sand: #ECE3D2;         /* R:236 G:227 B:210 */
  --brand-sand-rgb: 236, 227, 210;
  
  --brand-warm-tan: #E8D0AE;     /* R:232 G:208 B:174 */
  --brand-warm-tan-rgb: 232, 208, 174;
  
  --brand-sage: #89815A;         /* R:137 G:129 B:90 */
  --brand-sage-rgb: 137, 129, 90;
  
  --brand-deep-olive: #585431;   /* R:88 G:84 B:49 (Hex #585431) */
  --brand-deep-olive-rgb: 88, 84, 49;

  /* Aplicações Semânticas */
  --bg-primary: var(--brand-cream);
  --bg-secondary: var(--brand-sand);
  --bg-tertiary: #E3D9C4;
  --bg-dark: var(--brand-deep-olive);
  --bg-card: #FAF6EF;
  --bg-card-hover: #FFFFFF;

  --text-primary: var(--brand-deep-olive);
  --text-secondary: #6B6645;
  --text-muted: #8E8765;
  --text-light: #FBF8F2;
  --text-light-muted: #D9D2BF;

  --accent-gold: var(--brand-warm-tan);
  --accent-sage: var(--brand-sage);
  --accent-olive: var(--brand-deep-olive);

  --border-subtle: rgba(137, 129, 90, 0.18);
  --border-medium: rgba(137, 129, 90, 0.35);
  --border-light: rgba(244, 238, 226, 0.25);

  /* Sombras Orgânicas e Quentes */
  --shadow-sm: 0 2px 8px rgba(88, 84, 49, 0.04);
  --shadow-md: 0 8px 24px rgba(88, 84, 49, 0.07);
  --shadow-lg: 0 16px 40px rgba(88, 84, 49, 0.09);
  --shadow-hover: 0 20px 48px rgba(88, 84, 49, 0.12);

  /* Tipografia Oficial (Páginas 10 e 11) */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-sub: 'EB Garamond', Garamond, Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Escala de Espaçamento */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Bordas Suaves e Orgânicas */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transições Refinadas */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-breathe: 4s ease-in-out infinite;

  /* Container */
  --container-max: 1240px;
  --container-narrow: 880px;
}

/* Reset e Configuração Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Tipografia de Cabeçalhos e Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
}

h2 {
  font-size: clamp(1.85rem, 3.8vw + 0.3rem, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw + 0.2rem, 2rem);
}

h4 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.text-editorial {
  font-family: var(--font-sub);
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-primary);
}

.text-positioning {
  font-family: var(--font-sub);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--accent-sage);
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Foco Visível para Acessibilidade */
:focus-visible {
  outline: 2px solid var(--brand-sage);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Seleção de Texto Estilizada */
::selection {
  background-color: var(--brand-warm-tan);
  color: var(--brand-deep-olive);
}
