/* ============================================================================
   EMC-CME — public site. Brand: deep teal #0D3B44 + emerald #16B39B, on mint-white.
   Type: Cormorant Garamond (display) + Manrope (UI/body).
   ========================================================================== */

:root {
  --teal:        #0D3B44;
  --teal-700:    #114E5A;
  --teal-600:    #17677A;
  --emerald:     #16B39B;
  --emerald-soft:#4fcbb7;
  --emerald-deep:#0f8f7d;
  --mint:        #F5FAF9;
  --paper:       #ffffff;
  --tint:        #e9f4f1;
  --ink:         #17282c;
  --muted:       #566a6d;
  --line:        #dcebe7;
  --ring:        rgba(22,179,155,.30);

  --radius:      18px;
  --radius-sm:   12px;
  --shadow-sm:   0 2px 10px rgba(13,59,68,.06);
  --shadow-md:   0 14px 40px rgba(13,59,68,.10);
  --shadow-lg:   0 30px 70px rgba(13,59,68,.18);
  --maxw:        1180px;
  --ease:        cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--mint);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; line-height: 1.1; color: var(--teal); margin: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--teal); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: "Manrope", sans-serif; font-weight: 600; font-size: .95rem;
  padding: .72em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { --btn-bg: var(--emerald); --btn-fg: #04312b; box-shadow: 0 8px 22px rgba(22,179,155,.34); }
.btn-accent:hover { --btn-bg: var(--emerald-soft); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { --btn-bg: rgba(255,255,255,.10); }
.btn-lg { font-size: 1rem; padding: .85em 1.8em; }
.btn-block { width: 100%; }

/* ── Eyebrows & section heads ────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--emerald-deep); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--emerald); border-radius: 2px; }
.eyebrow-light { color: var(--emerald-soft); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.section-tint { background: var(--tint); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,250,249,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; color: var(--teal); }
.brand-word em { color: var(--emerald); font-style: normal; }
.brand-sub { font-family: "Manrope", sans-serif; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav > a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: .3em 0; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--emerald); transition: width .25s var(--ease); }
.site-nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal); border-radius: 2px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #e7f2f0;
  background: radial-gradient(120% 120% at 15% 0%, var(--teal-700) 0%, var(--teal) 55%); }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 60% at 82% 18%, rgba(22,179,155,.32) 0%, rgba(22,179,155,0) 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding: clamp(72px, 11vw, 128px) clamp(20px,5vw,48px); }
.hero-copy { max-width: 620px; }
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.2rem); color: #fff; letter-spacing: -.015em; margin-bottom: 1.4rem; }
.hero-title em { color: var(--emerald); font-style: normal; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(231,242,240,.86); max-width: 560px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
.panel-label { font-family: "Manrope", sans-serif; font-weight: 700; font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--emerald-soft); padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.panel-pillars { display: flex; flex-direction: column; gap: 1.3rem; }
.pillar { display: flex; gap: .9rem; align-items: flex-start; }
.pillar-icon { font-size: 1.3rem; width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: rgba(22,179,155,.16); border: 1px solid rgba(79,203,183,.3); border-radius: 12px; }
.pillar-title { font-weight: 700; font-size: 1rem; color: #fff; }
.pillar-text { font-size: .88rem; color: rgba(231,242,240,.72); margin: .2rem 0 0; }

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.trust-bar { background: var(--teal-700); color: #d6e8e4; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.2rem; padding: 1.1rem 0; }
.trust-item { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 500; }
.trust-icon { font-size: 1.1rem; }

/* ── Services (three groups with lists) ──────────────────────────────────── */
.service-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 2.4vw, 28px); align-items: start; }
.service-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.9rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.service-group:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--ring); }
.sg-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.service-icon { width: 54px; height: 54px; flex: none; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 14px; background: linear-gradient(145deg, #e6f7f3, #d2efe8); border: 1px solid var(--line); }
.service-group h3 { font-size: 1.45rem; margin-bottom: .3rem; }
.sg-text { color: var(--muted); font-size: .92rem; margin: 0; }
.sg-list { list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.sg-list li { position: relative; padding-left: 1.5rem; font-size: .94rem; color: var(--ink); }
.sg-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 3px rgba(22,179,155,.16); }

/* ── About ───────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about-para { color: var(--muted); font-size: 1.02rem; }
.about-note { margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--paper); border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.about-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.fact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; box-shadow: var(--shadow-sm); }
.fact-num { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.7rem; color: var(--emerald-deep); line-height: 1.05; }
.fact-label { font-weight: 700; color: var(--teal); margin: .35rem 0 .4rem; }
.fact-text { color: var(--muted); font-size: .92rem; margin: 0; }
.fact-card-accent { background: linear-gradient(150deg, var(--teal-700), var(--teal)); border-color: transparent; color: #e7f2f0; }
.fact-card-accent .fact-num { color: var(--emerald-soft); }
.fact-card-accent .fact-label { color: #fff; }
.fact-card-accent .fact-text { color: rgba(231,242,240,.78); }

/* ── Who we help (tag pills) ─────────────────────────────────────────────── */
.tag-grid { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; max-width: 900px; }
.tag-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.4rem;
  font-weight: 600; font-size: .96rem; color: var(--teal); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s, color .2s; }
.tag-pill:hover { transform: translateY(-3px); border-color: var(--emerald); color: var(--emerald-deep); }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.section-dark { background: radial-gradient(120% 120% at 85% 0%, var(--teal-700) 0%, var(--teal) 60%); color: #e7f2f0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-copy .section-title { color: #fff; }
.contact-intro { color: rgba(231,242,240,.82); font-size: 1.08rem; margin-bottom: 2rem; }
.contact-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-details li { display: flex; align-items: flex-start; gap: .9rem; }
.cd-icon { font-size: 1.2rem; width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.contact-details strong { display: block; color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .1rem; }
.contact-details li > span:last-child { color: rgba(231,242,240,.82); font-size: .96rem; }

.contact-form { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-lg); color: var(--ink); }
.form-heading { font-size: 1.7rem; margin-bottom: 1.4rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 600; font-size: .85rem; color: var(--teal); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: .96rem; color: var(--ink);
  padding: .72em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--mint); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--ring); background: #fff; }
.field textarea { resize: vertical; }
.form-note { text-align: center; color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { text-align: center; font-size: .9rem; font-weight: 600; margin: .9rem 0 0; min-height: 1.2em; }
.form-status.busy { color: var(--muted); }
.form-status.ok { color: var(--emerald-deep); }
.form-status.err { color: #b3372e; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--teal); color: #bcd4d0; padding: clamp(52px, 7vw, 84px) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-sub { color: rgba(188,212,208,.7); }
.footer-blurb { margin-top: 1.2rem; max-width: 380px; color: rgba(188,212,208,.8); font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-family: "Manrope", sans-serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-soft); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: rgba(188,212,208,.85); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--emerald-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; }
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(188,212,208,.7); }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.footer-legal a { color: rgba(188,212,208,.7); font-size: .85rem; transition: color .2s; }
.footer-legal a:hover { color: var(--emerald-soft); }

/* ── Preview banner ──────────────────────────────────────────────────────── */
.preview-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  background: var(--teal); color: #fff; border: 1px solid var(--emerald); padding: .6rem 1.2rem; border-radius: 999px;
  font-size: .85rem; box-shadow: var(--shadow-lg); }

/* ── Maintenance page ────────────────────────────────────────────────────── */
.maint { min-height: 100vh; display: grid; place-items: center; padding: 2rem;
  background: radial-gradient(120% 120% at 50% 0%, var(--teal-700) 0%, var(--teal) 60%); }
.maint-card { max-width: 560px; text-align: center; color: #e7f2f0; }
.maint-mark { width: 64px; height: 64px; margin: 0 auto 1.2rem; }
.maint-word { font-size: 2rem; letter-spacing: .05em; color: #fff; margin-bottom: 1.6rem; }
.maint-heading { font-size: clamp(2rem, 5vw, 3rem); color: #fff; margin-bottom: 1rem; }
.maint-msg { font-size: 1.1rem; color: rgba(231,242,240,.82); }
.maint-contact { margin-top: 1.4rem; color: var(--emerald-soft); font-size: .95rem; }

/* ── Reveal animation ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .about-grid { gap: 2.5rem; }
  .hero-panel { max-width: 480px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mint); border-bottom: 1px solid var(--line); padding: 1rem clamp(20px,5vw,48px) 1.5rem;
    transform: translateY(-120%); transition: transform .3s var(--ease); box-shadow: var(--shadow-md); }
  body.nav-open .site-nav { transform: translateY(0); }
  .site-nav > a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 1rem 0 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
