/* ============================================
   ABBA CENTRO CLÍNICO — Main Stylesheet
   Visual: Clean / Acolhedor / Minimalista
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-primary: #FAF5F3;
  --bg-secondary: #FFFFFF;

  /* Brand */
  --primary: #C77769;
  --primary-dark: #B7695A;
  --primary-light: #D2A59B;
  --accent: #C68679;

  /* Text */
  --text: #2E2E2E;
  --text-light: #6F6F6F;
  --text-muted: #A49E9B;

  /* Borders */
  --border: #E7D9D4;
  --border-light: rgba(199, 119, 105, 0.12);
  --border-medium: rgba(199, 119, 105, 0.25);

  /* Cards */
  --card: #FFFFFF;
  --card-hover: #FFF7F5;

  /* Shadow */
  --shadow: rgba(199, 119, 105, 0.15);
  --shadow-sm: 0 2px 8px rgba(199, 119, 105, 0.08);
  --shadow-md: 0 4px 20px rgba(199, 119, 105, 0.12);
  --shadow-lg: 0 8px 40px rgba(199, 119, 105, 0.15);
  --shadow-xl: 0 16px 60px rgba(199, 119, 105, 0.18);
  --shadow-soft: 0 12px 30px rgba(199, 119, 105, 0.15);

  /* Tipografia */
  --font: 'Poppins', sans-serif;

  /* Tamanhos de Fonte */
  --fs-hero: clamp(2.5rem, 6vw, 3rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 1.875rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.875rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Espaçamento */
  --section-padding: clamp(4rem, 8vw, 6rem);
  --container-max: 1200px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --gutter: clamp(1rem, 3vw, 24px);
  --gap-grid: 24px;

  /* Transições */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;

  /* Gradiente */
  --gradient: linear-gradient(135deg, #FAF5F3 0%, #F8ECE8 45%, #D2A59B 100%);

  /* Z-Index */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-whatsapp: 50;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-primary);
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll but allow fixed positioning */
html {
  overflow-x: hidden;
}

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

svg {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  font-size: var(--fs-small);
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: var(--fs-h2);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 1rem auto 0;
  border-radius: 1px;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-medium) 20%,
    var(--primary-light) 50%,
    var(--border-medium) 80%,
    transparent
  );
  margin: 0;
}

/* --- Grid Utilities --- */
.grid {
  display: grid;
  gap: var(--gutter);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Flex Utilities --- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* --- Selection --- */
::selection {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Focus Styles (Acessibilidade) --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Skip Link (Acessibilidade) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  z-index: var(--z-modal);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
