/* ============================================================
   SHA Infotech — design system
   Deliberately distinct from SHA Career Hub (navy/amber/ivory serif):
   - Graphite & slate : engineering seriousness, enterprise credibility
   - Electric teal    : precision, modern infrastructure (accent only)
   - Crisp white      : clean, technical, B2B
   Type: Space Grotesk (geometric, technical) + IBM Plex Sans (clear, engineered)
   ============================================================ */

:root {
  --g-950: #0B0F14;
  --g-900: #121A24;
  --g-800: #1B2633;
  --g-700: #263445;
  --g-100: #D7DEE7;
  --ink:   #0F1419;
  --muted: #5B6572;
  --faint: #8C96A3;

  --teal:        #0F9E8E;
  --teal-strong: #0B7C70;
  --teal-soft:   #E3F5F2;
  --teal-grad:   linear-gradient(120deg, #2DD4BF 0%, #0D9488 100%);

  --bg:        #FFFFFF;
  --surface:   #F5F7F9;
  --line:      #E1E6EC;
  --line-soft: #ECF0F4;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, .05), 0 1px 6px rgba(15, 20, 25, .04);
  --shadow-md: 0 4px 12px rgba(15, 20, 25, .07), 0 12px 32px rgba(15, 20, 25, .06);
  --shadow-lg: 0 8px 24px rgba(15, 20, 25, .12), 0 24px 64px rgba(15, 20, 25, .12);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--g-900); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: var(--teal-strong); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--g-900); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--g-100); }

/* technical grid texture for dark bands */
.grid-bg { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-strong); margin-bottom: 14px; }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--teal); border-radius: 2px; }
.section--dark .kicker { color: #2DD4BF; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--g-100); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: var(--radius); border: 0; cursor: pointer; font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .01em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal-grad); color: var(--g-950); box-shadow: 0 4px 14px rgba(13, 148, 136, .3); }
.btn--primary:hover { box-shadow: 0 6px 20px rgba(13, 148, 136, .4); }
.btn--dark { background: var(--g-900); color: #fff; }
.btn--dark:hover { background: var(--g-800); }
.btn--ghost { background: transparent; color: var(--g-900); border: 1.5px solid var(--g-900); }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
@media (max-width: 640px) { .btn { white-space: normal; line-height: 1.3; } .btn--lg { padding: 14px 22px; font-size: 1rem; } }

/* ---------- Announcement ---------- */
.announce { background: var(--g-950); color: var(--g-100); font-size: .86rem; text-align: center; padding: 9px 18px; }
.announce a { color: #2DD4BF; font-weight: 600; margin-left: 8px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .93rem; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:hover, .nav a.active { color: var(--teal-strong); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--teal); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-size: .88rem; font-weight: 600; color: var(--g-700); white-space: nowrap; font-family: var(--font-display); }
@media (max-width: 1180px) { .header__phone { display: none; } }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--g-900); margin: 5px 0; }
@media (max-width: 960px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #fff; padding: 18px 24px 26px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; z-index: 190; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-toggle { display: block; }
  .header__phone { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--g-900); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 420px at 90% -10%, rgba(45, 212, 191, .16), transparent 60%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: auto, 40px 40px, 40px 40px; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding-top: 92px; padding-bottom: 96px; }
.hero h1 { color: #fff; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: #2DD4BF; }
.hero__sub { font-size: 1.12rem; color: var(--g-100); max-width: 560px; margin-bottom: 32px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 7px 14px; font-size: .82rem; color: var(--g-100); font-family: var(--font-display); letter-spacing: .04em; }
.hero__badge strong { color: #2DD4BF; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: .85rem; color: var(--faint); }
.hero__panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 26px; }
.hero__panel h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .06em; text-transform: uppercase; }
.hero__stat { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero__stat:last-child { border-bottom: 0; }
.hero__stat strong { font-family: var(--font-display); font-size: 1.5rem; color: #2DD4BF; text-align: right; line-height: 1.2; }
.hero__stat strong.sm { font-size: 1.05rem; }
.hero__stat span { font-size: .88rem; color: var(--g-100); flex: none; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; } }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line-soft); }
.trustbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.trust-item strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--g-900); display: block; line-height: 1.1; }
.trust-item span { font-size: .82rem; color: var(--muted); }
.stars { color: #F59E0B; letter-spacing: 2px; font-size: .95rem; }

.logo-strip { text-align: center; }
.logo-strip__label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 22px; font-family: var(--font-display); }
.logo-strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.logo-strip__row span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--faint); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CFE9E5; }

.course-card { display: flex; flex-direction: column; position: relative; }
.course-card__flag { position: absolute; top: 18px; right: 18px; background: var(--teal-soft); color: var(--teal-strong); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; font-family: var(--font-display); }
.course-card__icon { width: 50px; height: 50px; border-radius: var(--radius); background: var(--g-900); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #2DD4BF; }
.course-card__icon svg { width: 25px; height: 25px; }
.course-card h3 { margin-bottom: 8px; font-size: 1.15rem; padding-right: 70px; }
.course-card__tag { color: var(--muted); font-size: .93rem; flex: 1; }
.course-card__meta { display: flex; gap: 14px; margin: 18px 0; font-size: .8rem; color: var(--faint); flex-wrap: wrap; font-family: var(--font-display); }
.course-card__link { font-weight: 600; color: var(--teal-strong); font-size: .93rem; font-family: var(--font-display); }
.course-card__link:hover { text-decoration: underline; }
.course-card .course-card__link::after { content: ""; position: absolute; inset: 0; }
.course-card:has(.course-card__link) { cursor: pointer; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon { flex: none; width: 46px; height: 46px; border-radius: var(--radius); background: var(--teal-soft); color: var(--teal-strong); display: flex; align-items: center; justify-content: center; }
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* numbered process */
.journey { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .journey { grid-template-columns: 1fr; } }
.journey__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.journey__item::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--line); position: absolute; top: 16px; right: 20px; line-height: 1; }
.journey__item h3 { font-size: 1.05rem; margin-bottom: 8px; padding-right: 52px; }
.journey__item p { color: var(--muted); font-size: .92rem; }

/* case studies */
.case { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.case__head { grid-column: 1 / -1; padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.case__head h3 { font-size: 1.15rem; }
.case__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case__col { padding: 22px 26px; border-right: 1px solid var(--line); }
.case__col:last-child { border-right: 0; }
.case__col h4 { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-strong); margin-bottom: 8px; }
.case__col p { font-size: .93rem; color: var(--ink); }
.case__foot { grid-column: 1 / -1; padding: 12px 26px; background: var(--surface); font-size: .8rem; color: var(--faint); border-top: 1px solid var(--line); }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; } .case__col { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; font-weight: 600; font-size: .98rem; color: var(--g-900); font-family: var(--font-display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); transition: transform .2s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--g-900); font-family: var(--font-display); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font-family: var(--font-body); font-size: .96rem; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 158, 142, .16); }
.field .error { color: #B4232A; font-size: .8rem; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.alert-success { background: var(--teal-soft); border: 1px solid #B9E4DD; color: var(--teal-strong); border-radius: var(--radius); padding: 18px 22px; font-weight: 500; }

/* ---------- CTA band & stats ---------- */
.cta-band { background: var(--g-900); border-radius: var(--radius-lg); padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 300px at 90% 0%, rgba(45,212,191,.18), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--g-100); max-width: 540px; }
@media (max-width: 820px) { .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat strong { font-family: var(--font-display); font-size: 2.3rem; color: #2DD4BF; display: block; line-height: 1.1; }
.stat span { color: var(--g-100); font-size: .9rem; }

/* ---------- Page hero / detail ---------- */
.page-hero { background: var(--g-900); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 380px at 88% -20%, rgba(45,212,191,.14), transparent 60%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: auto, 40px 40px, 40px 40px; }
.page-hero > .container { position: relative; }
.page-hero h1 { color: #fff; margin: 12px 0 14px; }
.page-hero p { color: var(--g-100); max-width: 660px; font-size: 1.05rem; }
.breadcrumb { font-size: .82rem; color: var(--faint); font-family: var(--font-display); }
.breadcrumb a { color: var(--g-100); }
.page-hero__meta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.page-hero__meta div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 10px 16px; font-size: .9rem; }
.page-hero__meta strong { color: #2DD4BF; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-display); }

.check-list li { position: relative; display: block; padding-left: 34px; margin-bottom: 12px; color: var(--ink); font-size: .96rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 4px; background: var(--teal-soft); color: var(--teal-strong); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font-size: .82rem; color: var(--g-700); font-weight: 500; font-family: var(--font-display); }
.sticky-aside { position: sticky; top: 100px; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } .sticky-aside { position: static; } }

/* ---------- Footer ---------- */
.footer { background: var(--g-950); color: var(--g-100); padding: 64px 0 32px; }
.footer a { color: var(--g-100); font-size: .92rem; }
.footer a:hover { color: #2DD4BF; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .8rem; margin-bottom: 16px; letter-spacing: .12em; text-transform: uppercase; }
.footer ul li { margin-bottom: 10px; }
.footer__about { font-size: .92rem; margin-top: 14px; max-width: 320px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: .85rem; color: var(--faint); flex-wrap: wrap; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { display: flex; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18); align-items: center; justify-content: center; }
.footer__social svg { width: 16px; height: 16px; fill: var(--g-100); }
.footer__social a:hover svg { fill: #2DD4BF; }

/* ---------- Chat widget ---------- */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 400; width: 58px; height: 58px; border-radius: var(--radius-lg); border: 0; cursor: pointer; background: var(--teal-grad); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.chat-fab:hover { transform: scale(1.05); }
.chat-fab svg { width: 26px; height: 26px; stroke: var(--g-950); }
.chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 400; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px)); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel.open { display: flex; }
.chat-panel__head { background: var(--g-900); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-panel__avatar { width: 38px; height: 38px; border-radius: var(--radius); background: var(--teal-grad); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--g-950); font-family: var(--font-display); }
.chat-panel__head strong { display: block; font-size: .95rem; font-family: var(--font-display); }
.chat-panel__head span { font-size: .76rem; color: var(--g-100); }
.chat-panel__close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: .8; }
.chat-panel__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.chat-msg { max-width: 85%; padding: 11px 15px; border-radius: var(--radius-lg); font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg--user { background: var(--g-800); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg--typing { color: var(--faint); font-style: italic; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-suggest button { background: #fff; border: 1px solid var(--teal); color: var(--teal-strong); border-radius: var(--radius); padding: 6px 12px; font-size: .8rem; cursor: pointer; font-family: var(--font-body); }
.chat-suggest button:hover { background: var(--teal-soft); }
.chat-panel__input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-panel__input input { flex: 1; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 15px; font-size: .92rem; font-family: var(--font-body); }
.chat-panel__input input:focus { outline: none; border-color: var(--teal); }
.chat-panel__input button { border: 0; border-radius: var(--radius); width: 44px; height: 44px; background: var(--teal-grad); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.chat-panel__input button svg { width: 19px; height: 19px; stroke: var(--g-950); }
@media (max-width: 640px) { .chat-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; } .chat-fab svg { width: 22px; height: 22px; } .chat-panel { right: 12px; bottom: 74px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Admin ---------- */
.admin-body { background: #EEF1F4; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: var(--g-950); padding: 26px 0; }
.admin-nav__brand { color: #fff; font-family: var(--font-display); font-size: 1.05rem; padding: 0 22px 22px; display: block; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; }
.admin-nav a { display: block; padding: 11px 22px; color: var(--g-100); font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.07); color: #2DD4BF; }
.admin-main { padding: 34px 40px; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 24px; }
.admin-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid #E1E6EC; padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #E1E6EC; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--font-display); }
.admin-table td { padding: 12px; border-bottom: 1px solid #ECF0F4; vertical-align: top; }
.admin-table tr:hover td { background: #F7F9FB; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .74rem; font-weight: 600; font-family: var(--font-display); }
.badge--green { background: var(--teal-soft); color: var(--teal-strong); }
.badge--gray { background: #ECF0F4; color: var(--muted); }
.badge--amber { background: #FEF3C7; color: #92400E; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { display: flex; overflow-x: auto; padding: 10px; align-items: center; } .admin-nav__brand { border: 0; padding: 10px; margin: 0; } .admin-nav a { white-space: nowrap; } .admin-main { padding: 22px; } }

.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--muted); } .text-center { text-align: center; }

/* ===== Admin: page heads, tabs, sections, field hints (shared pattern on both sites) ===== */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin: 0; }
.admin-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; max-width: 60ch; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid #E3E7EE; margin-bottom: 22px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 16px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: inherit; }
.tabs button.active { color: inherit; border-bottom-color: currentColor; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.admin-section { margin-bottom: 26px; }
.admin-section:last-child { margin-bottom: 0; }
.admin-section__head { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #EEF1F5; }
.admin-section__head h3 { margin: 0; font-size: 1.05rem; }
.admin-section__head p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); max-width: 70ch; }
.field .hint { font-size: .78rem; line-height: 1.5; color: var(--muted); }
.field .hint b { font-weight: 600; color: inherit; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; border-radius: 5px; box-shadow: none; accent-color: var(--lead-accent, #0C1D38); cursor: pointer; }
.field--check label { cursor: pointer; }
.field--check label { font-weight: 600; }
.field--check .hint { display: block; font-weight: 400; margin-top: 2px; }
.admin-actions--end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #EEF1F5; }
.admin-actions--end .status { margin-right: auto; font-size: .9rem; color: #166534; }
.alert-error { background: #FDECEC; color: #9F1D24; border: 1px solid #F5C2C2; border-radius: 10px; padding: 12px 16px; font-size: .92rem; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .admin-card { padding: 18px; }
  .tabs button { padding: 10px 12px; font-size: .88rem; }
}

/* ===== Admin: leads as cards instead of a nine-column table ===== */
.lead-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lead-filters button { border: 1px solid #E3E7EE; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.lead-filters button.active { background: var(--lead-accent, #0C1D38); border-color: transparent; color: #fff; }
.lead-list { display: flex; flex-direction: column; gap: 12px; }
.lead { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid #E3E7EE; border-left-width: 4px; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.lead--new { border-left-color: var(--lead-new, #E39A2D); }
.lead__main { flex: 1; min-width: 0; }
.lead__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lead__name { font-size: 1.04rem; }
.lead__when { font-size: .82rem; color: var(--muted); }
.lead__contact { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: .92rem; }
.lead__contact a { font-weight: 600; }
.lead__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-block; background: #F3F5F8; border-radius: 8px; padding: 4px 10px; font-size: .8rem; color: var(--muted); }
.chip b { font-weight: 600; }
.lead__msg { margin-top: 10px; font-size: .92rem; line-height: 1.55; white-space: pre-line; }
.lead__actions { flex: none; }
@media (max-width: 720px) {
  .lead { flex-direction: column; gap: 14px; padding: 16px; }
  .lead__actions, .lead__actions .btn { width: 100%; }
}

:root { --lead-accent: var(--g-900); --lead-new: var(--teal); }
/* Any checkbox inside an admin field: fixed square, never the text-input padding or 100% width */
.field input[type="checkbox"] { width: 20px; height: 20px; flex: none; padding: 0; margin: 0; border-radius: 5px; box-shadow: none; accent-color: var(--lead-accent, #0C1D38); cursor: pointer; vertical-align: middle; }
