/* === CLÍNICA SÃO MARCOS — DESIGN TOKENS === */

:root {
  /* Brand — refined from official asset */
  --turquesa: #14a89e;          /* logo accent · ação primária */
  --turquesa-700: #0e7c75;
  --turquesa-50: #e3f4f1;
  --verde-nevoa: #a8d3cb;       /* mint sólido — triângulo claro do hero */
  --verde-nevoa-50: #ecf6f1;
  --azul: #1c4a52;              /* teal profundo (headers, deep sections, body display) */
  --azul-700: #103339;
  --azul-50: #e6eff0;
  --azul-soft: #2b6e6c;         /* meio-termo — triângulo médio do hero */

  /* Neutrals */
  --ink:    #0f2a30;
  --ink-2:  #475c63;
  --ink-3:  #7a8e94;
  --ink-4:  #b3c1c4;
  --line:   #dde6e7;
  --line-2: #ebf1f1;
  --paper:  #ffffff;
  --paper-alt: #f3f7f6;
  --paper-warm: #fbfaf6;

  /* Status */
  --ok: #2a8f5a;
  --warn: #b6792b;

  /* Type */
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Open Sans", system-ui, sans-serif;
  --f-ui: "Roboto", system-ui, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — keyed to the brand teal */
  --shadow-sm: 0 1px 2px rgba(28,74,82,.06), 0 0 0 1px rgba(28,74,82,.04);
  --shadow-md: 0 4px 14px rgba(28,74,82,.08), 0 0 0 1px rgba(28,74,82,.05);
  --shadow-lg: 0 18px 40px -10px rgba(28,74,82,.22), 0 6px 14px rgba(28,74,82,.07);
  --shadow-press: 0 1px 0 rgba(28,74,82,.08);

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--turquesa); color: white; }

/* ── Material Symbols (css2 endpoint requires us to declare the class) ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  /* Hide raw text until the font loads so we never flash icon-name text */
  font-display: block;
}

/* ── Typography utilities ── */

.h1, .h2, .h3, .h4, .h5 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.18; }
.h4 { font-size: 20px; line-height: 1.3; }
.h5 { font-size: 16px; line-height: 1.35; font-weight: 600; }

.eyebrow {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquesa-700);
}
.lede { font-size: 18px; color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }
.tiny { font-family: var(--f-ui); font-size: 12px; color: var(--ink-3); }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid transparent;
  background: var(--paper);
  color: var(--ink);
  transition: transform .12s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn .material-symbols-outlined { font-size: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--turquesa);
  color: #fff;
  border-color: var(--turquesa);
  box-shadow: 0 6px 16px -4px rgba(20,168,158,.45);
}
.btn-primary:hover { background: var(--turquesa-700); border-color: var(--turquesa-700); }

.btn-secondary {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}
.btn-secondary:hover { background: var(--azul-700); border-color: var(--azul-700); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  height: 40px;
  padding: 0 14px;
}
.btn-ghost:hover { background: var(--paper-alt); }

.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

.btn.full { width: 100%; }

/* ── Containers / sections ── */

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
section.sec {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
section.sec.tight {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
section.sec-alt { background: var(--paper-alt); }
section.sec-dark { background: var(--azul); color: #fff; }
section.sec-dark .h1,
section.sec-dark .h2,
section.sec-dark .h3,
section.sec-dark .h4,
section.sec-dark .h5 { color: #fff; }
section.sec-dark .lede { color: rgba(255,255,255,.78); }
section.sec-dark .eyebrow { color: var(--verde-nevoa); }
section.sec-dark .muted { color: rgba(255,255,255,.7); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .label { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }

/* ── Cards ── */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card.hover:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.card-flush { padding: 0; overflow: hidden; }

/* ── Pills / chips / badges ── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--paper-alt);
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .12s;
}
.chip:hover { background: white; border-color: var(--line); color: var(--ink); }
.chip.on { background: var(--azul); color: #fff; }
.chip.accent { background: var(--turquesa-50); color: var(--turquesa-700); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--verde-nevoa-50);
  color: var(--turquesa-700);
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Icon plate ── */

.icon-plate {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--turquesa-50);
  color: var(--turquesa);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}
.icon-plate .material-symbols-outlined { font-size: 24px; }
.icon-plate.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-plate.lg .material-symbols-outlined { font-size: 32px; }
.icon-plate.azul { background: var(--azul-50); color: var(--azul); }
.icon-plate.verde { background: var(--verde-nevoa-50); color: var(--turquesa-700); }

/* ── Image placeholder — branded gradient with monospace caption ── */

.imgph {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--turquesa-50), var(--azul-50));
  border-radius: var(--r-md);
}
.imgph::before {
  content: "";
  position: absolute; inset: 0;

}
.imgph::after {
  content: attr(data-caption);
  position: absolute; left: 12px; top: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(15,26,46,.55);
  background: rgba(255,255,255,.75);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.imgph.dark {
  background: linear-gradient(135deg, var(--azul), var(--azul-700));
}
.imgph.dark::before {
  background-image:
    radial-gradient(circle at 25% 30%, rgba(20,168,158,.4), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(168,211,203,.28), transparent 50%);
}
.imgph.dark::after { color: rgba(255,255,255,.7); background: rgba(0,0,0,.25); }
.imgph.warm {
  background: linear-gradient(135deg, #e0eef0, #f4e9d9);
}
.imgph.warm::before {
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,170,90,.25), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(19,176,170,.18), transparent 50%);
}

/* ── Form controls ── */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.textarea { height: 120px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--turquesa);
  box-shadow: 0 0 0 4px rgba(20,168,158,.18);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

/* ── Breadcrumb ── */

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ink-3);
  padding: 56px 0 20px;
}
.crumb .material-symbols-outlined { font-size: 16px; opacity: .6; }
.crumb .here { color: var(--ink); }

/* ── Star rating ── */

.stars {
  display: inline-flex;
  gap: 1px;
  color: #f5b400;
}
.stars .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}

/* ── Page transition (very subtle) ── */

.page-enter {
  animation: pageEnter .35s ease both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hide scrollbar utilities ── */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
