/* ===== WAC Care — Women & Children Speciality Hospitals ===== */
/* Modern & vibrant design system */

:root {
  /* Clean flat palette — steel blue, tuscan sun, onyx (NO gradients) */
  --pink: #0582ca;        /* accent text = steel blue */
  --pink-soft: #eec643;
  --violet: #0582ca;      /* steel blue — primary brand */
  --indigo: #046aa3;
  --teal: #046fae;
  --mint: #9bd0ee;
  --sky: #0582ca;
  --amber: #eec643;       /* tuscan sun — accent */
  --red: #e23b33;         /* emergency / location red (intentional exception) */
  --ink: #141414;         /* onyx text */
  --slate: #494f56;
  --muted: #8a9099;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-soft: #eef0f2;     /* platinum */
  --bg-tint: #e4f1fb;     /* light steel-blue tint */
  --white: #ffffff;
  /* "grad" vars are now SOLID colors — kept as variable names to stay flat */
  --grad-hero: #0582ca;
  --grad-pink: #141414;
  --grad-violet: #0582ca;
  --grad-teal: #141414;
  --grad-amber: #0582ca;
  --grad-gold: #eec643;
  --shadow-sm: 0 1px 3px rgba(20,20,20,.06);
  --shadow: 0 8px 22px rgba(20,20,20,.09);
  --shadow-lg: 0 18px 46px rgba(20,20,20,.13);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --font: 'Karla', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Baloo 2', 'Karla', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 86px 0; }
.section-tint { background: var(--bg-soft); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pink);
  background: var(--bg-tint); padding: 7px 16px; border-radius: 100px; margin-bottom: 18px;
}
.lead { font-size: 1.12rem; color: var(--slate); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.gradient-text {
  background: var(--grad-hero); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head { margin-bottom: 52px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: none;
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  padding: 14px 28px; border-radius: 100px; transition: .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-gold); color: var(--ink); box-shadow: 0 6px 16px rgba(238,198,67,.34); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(238,198,67,.46); }
.btn-violet { background: var(--grad-violet); color: #fff; box-shadow: 0 6px 16px rgba(5,130,202,.30); }
.btn-violet:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--violet); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.28); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.26rem; }
.brand-logo { height: 44px; width: auto; display: block; transition: height .3s ease; }
.header.scrolled .brand-logo { height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--ink); letter-spacing: -.01em; }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
@media (max-width: 520px) { .brand-text { display: none; } }
.brand-foot { display: block; margin-bottom: 14px; }
.brand-logo-foot { width: 230px; max-width: 100%; height: auto; display: block; }
.brand .logo {
  width: 44px; height: 44px; border-radius: 13px; background: var(--grad-hero);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.brand small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 100px; font-weight: 600; font-size: .96rem;
  color: var(--slate); transition: .2s;
}
.nav-links a:hover { color: var(--violet); background: var(--bg-tint); }
.nav-links a.active { color: var(--violet); background: var(--bg-tint); }
.nav-cta { margin-left: 10px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 24px 26px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: .35s ease; z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; }
  .nav-cta { margin: 8px 0 0; }
  .burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); color: #fff; overflow: hidden; padding: 96px 0 120px; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
}
.hero::before { width: 460px; height: 460px; background: rgba(255,255,255,.07); top: -180px; right: -140px; }
.hero::after { width: 240px; height: 240px; background: var(--amber); opacity: .9; bottom: -120px; left: -70px; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero .eyebrow { background: rgba(255,255,255,.2); color: #fff; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.92); margin: 20px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 2rem; font-weight: 800; }
.hero-stats .stat span { font-size: .9rem; color: rgba(255,255,255,.82); }
.hero-card {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-lg);
  backdrop-filter: blur(12px); padding: 30px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; margin-bottom: 6px; }
.hero-card p { color: rgba(255,255,255,.85); font-size: .94rem; margin-bottom: 20px; }
.mini-field { background: rgba(255,255,255,.92); border-radius: 13px; padding: 12px 16px; margin-bottom: 12px; }
.mini-field label { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mini-field select, .mini-field input {
  width: 100%; border: none; background: none; font-family: var(--font); font-size: .98rem;
  font-weight: 600; color: var(--ink); outline: none; padding-top: 2px;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 64px 0 84px; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.ico.pink { background: #fbf3d6; }
.ico.violet { background: #e4f1fb; }
.ico.teal { background: #e9edf1; }
.ico.amber { background: #fbf3d6; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .96rem; }

/* specialty tile */
.tile { position: relative; border-radius: var(--radius-lg); padding: 32px 30px; color: #fff; overflow: hidden; min-height: 248px; display: flex; flex-direction: column; justify-content: flex-end; transition: .28s; box-shadow: var(--shadow-sm); }
.tile::after { content:''; position:absolute; right:-40px; top:-40px; width:150px; height:150px; border-radius:50%; background:rgba(255,255,255,.10); }
.tile > * { position: relative; z-index: 1; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile .emoji { font-size: 2rem; margin-bottom: auto; }
.tile h3 { color: #fff; margin: 20px 0 8px; font-size: 1.28rem; }
.tile p { color: rgba(255,255,255,.92); font-size: .92rem; line-height: 1.5; }
.tile-more { margin-top: 16px; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.tile-more span { transition: .25s; }
.tile:hover .tile-more span { transform: translateX(5px); }

/* ---------- Branch cards ---------- */
.branch-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.branch-banner { height: 120px; background: var(--grad-violet); position: relative; display: grid; place-items: center; color: #fff; }
.branch-banner .badge { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); padding: 5px 13px; border-radius: 100px; font-size: .74rem; font-weight: 700; }
.branch-banner .emoji { font-size: 2.6rem; }
.branch-body { padding: 24px 26px 26px; }
.branch-body h3 { margin-bottom: 4px; }
.branch-loc { color: var(--pink); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.branch-meta { display: flex; flex-direction: column; gap: 9px; font-size: .92rem; color: var(--slate); margin-bottom: 18px; }
.branch-meta .row { display: flex; gap: 10px; align-items: flex-start; }
.branch-meta .row b { color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); color: var(--slate); padding: 5px 12px; border-radius: 100px; font-size: .78rem; font-weight: 600; }
.chip-solid { background: var(--bg-tint); color: var(--pink); border-color: transparent; }

/* ---------- Doctor cards ---------- */
.doc-card { text-align: center; padding: 30px 24px; }
.doc-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800; color: #fff;
}
.doc-card h3 { font-size: 1.18rem; margin-bottom: 2px; }
.doc-spec { color: var(--violet); font-weight: 700; font-size: .9rem; }
.doc-branch { color: var(--muted); font-size: .85rem; margin: 6px 0 12px; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.doc-meta { display: flex; justify-content: center; gap: 18px; font-size: .82rem; color: var(--slate); margin-bottom: 18px; }
.doc-meta b { color: var(--ink); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 34px; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.select, .input, .textarea {
  font-family: var(--font); font-size: .96rem; font-weight: 500; color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; outline: none; transition: .2s;
}
.select:focus, .input:focus, .textarea:focus { border-color: var(--violet); }
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box .input { width: 100%; padding-left: 42px; }
.search-box::before { content: ''; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: url(../assets/ui-icons/onyx/search.svg) center/contain no-repeat; }
.result-count { color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 22px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 10px; }

/* pill toggles */
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.pill {
  cursor: pointer; border: 2px solid var(--line); background: #fff; color: var(--slate);
  padding: 9px 18px; border-radius: 100px; font-weight: 600; font-size: .9rem; font-family: var(--font); transition: .2s;
}
.pill:hover { border-color: var(--pink-soft); }
.pill.active { background: var(--grad-pink); color: #fff; border-color: transparent; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .req { color: var(--pink); }
.field .input, .field .select, .field .textarea { width: 100%; }
.field .textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.success-banner {
  display: none; background: var(--grad-teal); color: #fff; border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.success-banner.show { display: block; animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-banner h3 { color: #fff; margin-bottom: 6px; }

/* steps */
.steps { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.step { flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-violet); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step h4 { font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: .88rem; color: var(--slate); }

/* ---------- Articles ---------- */
.article-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; position: relative; }
.article-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.article-card:hover::after { transform: scaleX(1); }
.article-img { height: 168px; display: grid; place-items: center; position: relative; }
.article-cat-pill { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--violet); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.article-read-chip { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34); color: #fff; font-size: .7rem; font-weight: 700; padding: 5px 10px; border-radius: 100px; }
.article-read-chip .ui-img { width: .85em; height: .85em; }
.article-body { padding: 22px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.article-cat { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.article-body h3 { font-size: 1.16rem; margin-bottom: 8px; transition: color .2s ease; }
.article-card:hover .article-body h3 { color: var(--violet); }
.article-body p { font-size: .94rem; color: var(--slate); flex: 1; }
.article-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); margin-top: 16px; }
.article-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.article-date { font-size: .82rem; color: var(--muted); }
.article-read { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font-weight: 700; font-size: .9rem; }
.article-read .arr { transition: transform .25s ease; }
.article-card:hover .article-read .arr, .article-feature:hover .article-read .arr { transform: translateX(5px); }

/* wide featured article */
.article-feature { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; padding: 0; position: relative; }
.article-feature::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.article-feature:hover::after { transform: scaleX(1); }
.article-feature-img { position: relative; display: grid; place-items: center; min-height: 240px; }
.article-feature-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.article-flag { display: inline-block; align-self: flex-start; background: var(--amber); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 100px; margin-bottom: 14px; }
.article-feature-body h3 { font-size: 1.7rem; margin-bottom: 10px; transition: color .2s ease; }
.article-feature:hover .article-feature-body h3 { color: var(--violet); }
.article-feature-body p { color: var(--slate); font-size: 1.02rem; margin-bottom: 4px; }
.article-feature-body .article-foot { font-size: .86rem; color: var(--muted); }
@media (max-width: 720px) { .article-feature { grid-template-columns: 1fr; } .article-feature-img { min-height: 170px; } .article-feature-body { padding: 26px 24px; } .article-feature-body h3 { font-size: 1.35rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-violet); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 14px auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc8e0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p { font-size: .92rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: .92rem; color: #cfc8e0; transition: .2s; }
.footer ul a:hover { color: var(--pink-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: var(--muted); }
.emergency { background: #fdecea; color: var(--ink); border: 1px solid #f3c7c3; border-left: 5px solid var(--red); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.emergency b { color: var(--red); }
.emergency b { font-size: 1.1rem; }

/* page hero (interior pages) */
.page-hero { background: var(--grad-hero); color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content:''; position:absolute; width:300px; height:300px; border-radius:50%; background:rgba(255,255,255,.18); top:-120px; right:-80px; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; margin-top: 12px; }
.crumb { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.crumb a:hover { color: #fff; }

/* ---------- Themed SVG icons ---------- */
.svg-ico { width: 34px; height: 34px; display: block; object-fit: contain; }
/* inline UI icon — alpha mask tinted by the surrounding text color */
.ui-img { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; object-fit: contain; flex-shrink: 0; }
.ui-img.lg { width: 2.6rem; height: 2.6rem; margin: 0 auto 10px; }
/* circular icon chip with a soft white ring (sits on colored backgrounds) */
.ico-badge {
  width: 80px; height: 80px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 0 0 7px rgba(255,255,255,.22), 0 14px 28px rgba(36,29,79,.24);
}
.ico-badge .svg-ico { width: 46px; height: 46px; }
.card .ico { overflow: hidden; }
.card .ico .svg-ico { width: 36px; height: 36px; }
.tile .ico-badge { margin-bottom: auto; }
.branch-banner .ico-badge { width: 78px; height: 78px; box-shadow: 0 0 0 6px rgba(255,255,255,.22), 0 12px 24px rgba(36,29,79,.22); }
.branch-banner .ico-badge .svg-ico { width: 46px; height: 46px; }
.article-img .ico-badge { width: 86px; height: 86px; }
.article-img .ico-badge .svg-ico { width: 50px; height: 50px; }
.art-emoji .ico-badge { width: 94px; height: 94px; }
.art-emoji .ico-badge .svg-ico { width: 56px; height: 56px; }

/* ===== Motion & animation ===== */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; }

  /* staged hero entrance on load */
  .hero .eyebrow, .hero h1, .hero p.lead, .hero-actions, .hero-stats {
    opacity: 0; animation: heroIn .9s cubic-bezier(.16,1,.3,1) forwards;
  }
  .hero .eyebrow   { animation-delay: .05s; }
  .hero h1         { animation-delay: .15s; }
  .hero p.lead     { animation-delay: .32s; }
  .hero-actions    { animation-delay: .48s; }
  .hero-stats      { animation-delay: .62s; }
  .hero-card       { opacity: 0; animation: heroCardIn 1s cubic-bezier(.16,1,.3,1) .38s forwards; }
  @keyframes heroIn     { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes heroCardIn { from { opacity: 0; transform: translateY(34px) scale(.97); } to { opacity: 1; transform: none; } }

  /* gently floating hero accent + page-hero accent */
  .hero::after { animation: floaty 9s ease-in-out infinite; }
  .page-hero::after { animation: floaty 11s ease-in-out infinite; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

  /* count-up pulse when stats land */
  .hero-stats .stat strong { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .eyebrow, .hero h1, .hero p.lead, .hero-actions, .hero-stats, .hero-card { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* header condenses on scroll */
.header { transition: box-shadow .3s ease, background .3s ease; }
.header.scrolled { box-shadow: 0 6px 24px rgba(20,20,20,.08); }
.nav { transition: height .3s ease; }
.header.scrolled .nav { height: 62px; }

/* hover micro-interactions */
.card .ico, .card .svg-ico, .ico-badge { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.card:hover .ico { transform: translateY(-4px) scale(1.08); }
.card:hover .ico-badge { transform: translateY(-4px) scale(1.05); }
.article-card .article-img { transition: transform .55s cubic-bezier(.16,1,.3,1); }
.article-card:hover .article-img { transform: scale(1.05); }
.doc-avatar { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.doc-card:hover .doc-avatar { transform: scale(1.07) rotate(-3deg); }
.chip { transition: transform .25s ease, background .25s ease, color .25s ease; }
.card:hover .chip-solid { background: var(--bg-tint); }
.btn { transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease; }
.btn:active { transform: translateY(0) scale(.97); }
.nav-links a { transition: color .2s ease, background .2s ease; }

/* card personality: accent stripes that draw in on hover */
.doc-card { position: relative; overflow: hidden; }
.doc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.doc-card:hover::before { transform: scaleX(1); }
.doc-avatar { box-shadow: 0 0 0 6px var(--bg-soft); }
.branch-card { position: relative; }
.branch-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); z-index: 2; }
.branch-card:hover::after { transform: scaleX(1); }
.tile .ico-badge { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.tile:hover .ico-badge { transform: scale(1.07) translateY(-3px); }
.tile h3, .tile p { transition: transform .35s cubic-bezier(.16,1,.3,1); }
