/* Organic — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
/* latin-ext */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Caprasimo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Caprasimo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.washed{filter:saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* — rounded frame: everything softens, small controls go pill — */
.card, .dialog { border-radius: calc(var(--radius-lg) * 1.15); }
.btn, .tag, .seg, .input { border-radius: 999px; }
.input { padding-inline: 14px; }



/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Figtree-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Figtree-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Fraunces-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Fraunces-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Fraunces-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Fraunces-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Fraunces-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Fraunces-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



  :root { --font-heading: 'Fraunces', Georgia, serif; }
  body { margin: 0; background: #EDE2CE; color: #201E1D; font-family: 'Figtree', system-ui, sans-serif; font-variation-settings: 'SOFT' 60, 'WONK' 1; }
  a { color: #A9483C; text-decoration: none; }
  a:hover { color: #0E3F58; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Button & Link interactive states */
.btn-cta {
  background: #21894C !important;
  color: #FFFFFF !important;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-cta:hover {
  background: #186B3B !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 137, 76, 0.25);
}
.btn-cta:active {
  transform: translateY(0);
}

.btn-trilhas {
  border: 2px solid #614499 !important;
  color: #4B357A !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-trilhas:hover {
  background: #614499 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.btn-trilhas:active {
  transform: translateY(0);
}

/* Card hover animation */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(32, 30, 29, 0.12) !important;
}

/* Fix mobile overflows and spacing */
@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch !important;
  }
  .hero-buttons a {
    text-align: center;
  }
}

/* ==========================================================================
   Diretório da Rede de Profissionais
   ========================================================================== */
.rede-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #DCCDB4;
  background: #FFFFFF;
  color: #5A534E;
  white-space: nowrap;
  user-select: none;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(32, 30, 29, 0.05);
}
.rede-chip:hover {
  background: #FAF5EE;
  color: #0E3F58;
  border-color: #0E3F58;
  transform: translateY(-1px);
}
.rede-chip.active {
  background: #0E3F58;
  color: #FFFFFF;
  border-color: #0E3F58;
  box-shadow: 0 3px 10px rgba(14, 63, 88, 0.28);
}
.rede-chip[data-cat="Luto Gestacional e Perinatal"].active {
  background: #2C86B0;
  border-color: #2C86B0;
  box-shadow: 0 3px 10px rgba(44, 134, 176, 0.3);
}
.rede-chip[data-cat="Psicologia e Psiquiatria Perinatal"].active {
  background: #614499;
  border-color: #614499;
  box-shadow: 0 3px 10px rgba(97, 68, 153, 0.3);
}
.rede-chip[data-cat="Obstetrícia e Doulas"].active {
  background: #0E3F58;
  border-color: #0E3F58;
  box-shadow: 0 3px 10px rgba(14, 63, 88, 0.3);
}
.rede-chip[data-cat="Desenvolvimento Infantil"].active {
  background: #21894C;
  border-color: #21894C;
  box-shadow: 0 3px 10px rgba(33, 137, 76, 0.3);
}
.rede-chip[data-cat="Amamentação e Desmame"].active {
  background: #D06B5E;
  border-color: #D06B5E;
  box-shadow: 0 3px 10px rgba(208, 107, 94, 0.3);
}
.rede-chip-modality.active {
  background: #614499 !important;
  color: #FFFFFF !important;
  border-color: #614499 !important;
  box-shadow: 0 3px 10px rgba(97, 68, 153, 0.28) !important;
}

/* Header & Menu de Tópicos Unificado */
.rede-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1.5px solid #E0D3EA;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(32, 30, 29, 0.04);
  width: 100%;
  box-sizing: border-box;
}
.rede-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rede-nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rede-menu-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #4A4441;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.rede-menu-link:hover {
  color: #0E3F58;
  background: #F0F7FB;
}
.rede-menu-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  background: #614499;
  border: 1.5px solid #614499;
  box-shadow: 0 2px 8px rgba(97, 68, 153, 0.22);
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: 4px;
}
.rede-menu-link-cta:hover {
  background: #4B357A;
  border-color: #4B357A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(97, 68, 153, 0.32);
}
.rede-menu-link-back {
  font-size: 13px;
  font-weight: 600;
  color: #0E3F58 !important;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #DCCDB4;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: 2px;
}
.rede-menu-link-back:hover {
  background: #FAF5EE;
  border-color: #0E3F58;
  transform: translateY(-1px);
}

/* Botão do Menu Sanduíche (Móvel) */
.rede-mobile-toggle-btn {
  display: none;
  background: #FFFFFF;
  border: 1.5px solid #D9CBBA;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  color: #0E3F58;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(32, 30, 29, 0.04);
}
.rede-mobile-toggle-btn:hover {
  background: #F0F7FB;
  border-color: #0E3F58;
}

/* Drawer / Dropdown do Menu Móvel */
.rede-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 2px solid #E0D3EA;
  box-shadow: 0 16px 36px rgba(32, 30, 29, 0.12);
  padding: 16px 20px 24px;
  box-sizing: border-box;
  animation: slideDownMenu 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}
@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.rede-mobile-drawer.open {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}
.rede-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #201E1D;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.rede-mobile-link:hover, .rede-mobile-link:active {
  background: #F0F7FB;
  color: #0E3F58;
}
.rede-mobile-link-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #614499;
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(97, 68, 153, 0.25);
  margin-top: 4px;
}
.rede-mobile-link-back {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #FAF7F2;
  border: 1.5px solid #DCCDB4;
  color: #0E3F58 !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

@media (max-width: 920px) {
  .rede-nav-desktop {
    display: none !important;
  }
  .rede-mobile-toggle-btn {
    display: inline-flex !important;
  }
}

.rede-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px rgba(32, 30, 29, 0.05);
  border: 1px solid #EAE0D2;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.rede-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(14, 63, 88, 0.11);
  border-color: #CCDCE4;
}
.rede-search-box {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 999px;
  border: 1.5px solid #D9CBBA;
  font-size: 16px;
  background: #FFFFFF;
  color: #201E1D;
  outline: none;
  box-shadow: 0 3px 12px rgba(14, 63, 88, 0.06);
  transition: all 0.2s ease;
}
.rede-search-box:focus {
  border-color: #0E3F58;
  box-shadow: 0 0 0 4px rgba(14, 63, 88, 0.15);
}
.rede-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #21894C;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(33, 137, 76, 0.22);
}
.rede-btn-whatsapp:hover {
  background: #196D3C;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(33, 137, 76, 0.32);
}

/* PSI Enhancements: Tags Interativas, Dicas e Suporte a Crise */
.rede-tag-clickable {
  cursor: pointer;
  transition: all 0.18s ease;
}
.rede-tag-clickable:hover {
  background: #0E3F58 !important;
  color: #FFFFFF !important;
  border-color: #0E3F58 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(14, 63, 88, 0.2);
}
.rede-state-select {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #D9CBBA;
  background: #FFFFFF;
  color: #201E1D;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(32, 30, 29, 0.04);
}
.rede-state-select:focus {
  border-color: #0E3F58;
  box-shadow: 0 0 0 3px rgba(14, 63, 88, 0.15);
}
.rede-quick-tips {
  background: #FFFFFF;
  border: 1px solid #EAE0D2;
  border-left: 4px solid #2C86B0;
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 2px 10px rgba(32, 30, 29, 0.04);
  transition: all 0.25s ease;
}
.rede-crisis-box {
  background: #FFF6EF;
  border: 1.5px solid #F4A59B;
  border-left: 6px solid #D06B5E;
  border-radius: 22px;
  padding: 22px 28px;
  box-shadow: 0 4px 16px rgba(208, 107, 94, 0.08);
}

.rede-card {
  animation: fadeInCard 0.25s ease-out;
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInFilter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rede-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1.5px solid #D9CBBA;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #0E3F58;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(32, 30, 29, 0.04);
}
.rede-filter-toggle-btn:hover {
  background: #F0F7FB;
  border-color: #0E3F58;
  transform: translateY(-1px);
}
.rede-filter-toggle-btn.active {
  background: #0E3F58;
  color: #FFFFFF;
  border-color: #0E3F58;
}

.rede-step-card {
  background: #FFFFFF;
  border: 1.5px solid #EAE0D2;
  border-radius: 22px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 3px 12px rgba(32, 30, 29, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rede-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 63, 88, 0.08);
  border-color: #CDE5F1;
}

.rede-faq-item {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #EAE0D2;
  box-shadow: 0 2px 8px rgba(32, 30, 29, 0.03);
  overflow: hidden;
  transition: all 0.2s ease;
}
.rede-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: #201E1D;
  user-select: none;
  gap: 12px;
  transition: background 0.15s ease;
}
.rede-faq-question:hover {
  background: #FAF7F2;
}
.rede-faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #5A534E;
  border-top: 1px solid #F3EDE3;
  padding-top: 14px;
}
.rede-faq-item.open .rede-faq-answer {
  display: block;
}
.rede-faq-arrow {
  transition: transform 0.25s ease;
  font-size: 12px;
  color: #8A8079;
  flex-shrink: 0;
}
.rede-faq-item.open .rede-faq-arrow {
  transform: rotate(180deg);
  color: #0E3F58;
}

/* Avatar de Rosto Ampliado e Responsivo */
.rede-avatar {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(14, 63, 88, 0.12);
  background: #FAF7F2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rede-card:hover .rede-avatar {
  transform: scale(1.03);
  box-shadow: 0 6px 22px rgba(14, 63, 88, 0.18);
}
.rede-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.rede-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(32, 30, 29, 0.05);
}

@media (max-width: 480px) {
  .rede-avatar {
    width: 78px;
    height: 78px;
  }
  .rede-avatar-initials {
    font-size: 23px;
  }
}

/* Botão Flutuante: Voltar ao Topo */
.rede-back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0E3F58;
  border: 1.5px solid #D9CBBA;
  box-shadow: 0 4px 18px rgba(14, 63, 88, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.rede-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.rede-back-to-top:hover {
  background: #0E3F58;
  border-color: #0E3F58;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 63, 88, 0.28);
}
.rede-back-to-top:active {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .rede-back-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}
