/* PMCEI — styles. Brand colours carried over from the previous site (green #2db38e, charcoal #383b40). */
:root {
  --green: #2db38e;
  --green-deep: #167a5f;      /* green for text on light backgrounds (AA contrast) */
  --green-soft: #e8f6f1;
  --ink: #161c2d;
  --charcoal: #383b40;
  --charcoal-deep: #2b2e32;
  --muted: #566176;
  --line: #e3e8ee;
  --paper: #ffffff;
  --mist: #f4f6f6;
  --mint: #f6fbf9;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 28, 45, .08);
  --shadow-sm: 0 2px 10px rgba(22, 28, 45, .07);
  --font: "Mulish", "Hind", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul { margin-top: 0; }
a { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- language blocks ---------- */
.lang[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--charcoal); color: #fff;
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: "Work Sans", var(--font); font-weight: 700; font-size: 1.45rem; letter-spacing: .14em; color: #fff; }
.brand-sub { font-size: .7rem; line-height: 1.2; color: #c9ced6; max-width: 17em; }
.nav-desktop { display: none; margin-left: auto; align-items: center; gap: 6px; }
.nav-desktop a {
  color: #e8ecf0; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-desktop a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-desktop a.nav-cta { background: var(--green); color: #0d2a22; }
.nav-desktop a.nav-cta:hover { background: #4cc7a4; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-switch {
  display: none; align-items: center; justify-content: center; min-width: 46px; height: 36px; padding: 0 14px;
  font: inherit; font-weight: 800; font-size: .9rem; letter-spacing: .1em; color: #fff; background: transparent;
  border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.lang-switch:hover { background: var(--green); border-color: var(--green); color: #0d2a22; }
.can-switch .lang-switch { display: inline-flex; }

.burger {
  width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
}
.burger-box { position: relative; width: 28px; height: 20px; }
.burger-box i, .burger-box::before, .burger-box::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px; background: var(--green);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger-box::before { top: 0; }
.burger-box i { top: 8.5px; }
.burger-box::after { top: 17px; }
.menu-open .burger-box::before { top: 8.5px; transform: rotate(45deg); }
.menu-open .burger-box::after { top: 8.5px; transform: rotate(-45deg); }
.menu-open .burger-box i { opacity: 0; }

.nav-mobile {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; background: var(--charcoal-deep);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  transform: translateY(-110%); visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s;
}
.menu-open .nav-mobile { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s 0s; }
.menu-open { overflow: hidden; }
.nav-mobile a {
  color: var(--green); font-size: 1.9rem; font-weight: 300; text-decoration: none; padding: 10px 18px;
  border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.nav-mobile a:hover, .nav-mobile a:focus-visible { color: #fff; border-color: var(--green); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .burger, .nav-mobile { display: none; }
  .header-tools { margin-left: 8px; }
}

@media (min-width: 640px) { .brand-sub { font-size: .8rem; max-width: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #0d2a22; box-shadow: 0 8px 20px rgba(45, 179, 142, .35); }
.btn-primary:hover { background: #46c4a0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 56px; background: radial-gradient(900px 400px at 85% 20%, var(--green-soft), transparent 70%), var(--paper); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-art { will-change: transform; order: 2; }
.hero-text { order: 1; }
.hero-art img { width: 100%; max-width: 340px; margin: 4px auto 0; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin-bottom: 18px; }
.hero-line { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 300; margin-bottom: 8px; min-height: 3.4em; }
.hero-line .typed { color: var(--green-deep); font-weight: 700; }
.hero-line .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--green-deep); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-text { text-align: center; }
.hero-actions { justify-content: center; }
@media (min-width: 600px) { .hero-art img { max-width: 460px; } }
@media (min-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero-text { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-art { order: 0; }
  .hero-art img { margin: 0; max-width: 540px; }
}

/* tagline under the hero headline */
.tagline { font-size: clamp(1.35rem, 2.8vw, 1.9rem); font-weight: 300; color: var(--muted); margin: 0 0 14px; letter-spacing: -.01em; }

/* acronym decoder strip */
.decoder { background: var(--charcoal); color: #fff; padding: 30px 0 32px; text-align: center; }
.decoder-label { margin: 0 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #aab2bd; }
.decoder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; }
.decoder-list li { font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 600; letter-spacing: .01em; }
.decoder-list b { color: var(--green); font-size: 1.45em; font-weight: 800; line-height: 1; margin-right: 1px; }
.decoder-gloss { margin: 14px 0 0; color: #c9ced6; font-size: 1rem; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2, .about h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.text-green { color: var(--green-deep); }

/* services */
.services-grid { display: grid; gap: 22px; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green); }
.service img { height: 64px; width: auto; margin: 0 auto 18px; }
.service .tag { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.service ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.service li { position: relative; padding: 9px 0 9px 26px; color: #3b455a; font-size: 1rem; line-height: 1.5; border-top: 1px solid var(--line); }
.service li:first-child { border-top: 0; }
.service li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
@media (min-width: 820px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* about */
.about { background: var(--mist); }
.about-grid { display: grid; gap: 36px; align-items: center; }
.about p { color: var(--muted); font-size: 1.15rem; }
.about p.lead { color: #2f394d; }
.about-art img { width: 100%; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .about-art { order: 2; } }

/* approach cards */
.approach { background: var(--mint); }
.cards { display: grid; gap: 26px; }
.card {
  display: grid; gap: 8px; align-items: center; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid #e6efec;
}
.card-art { padding: 26px 26px 0; }
.card-art img { max-height: 230px; width: auto; margin: 0 auto; }
.card-body { padding: 26px 28px 32px; }
.card-body h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.card-body .card-lead { font-size: 1.1rem; color: #2f394d; margin-bottom: 12px; }
.card-body ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.card-body li { padding: 3px 0; }
.card-body li::marker { color: var(--green); }
@media (min-width: 820px) {
  .card { grid-template-columns: 1fr 1.6fr; gap: 0; }
  .card-art { padding: 28px; }
  .card-body { padding: 36px 40px; }
  .card.flip { grid-template-columns: 1.6fr 1fr; }
  .card.flip .card-art { order: 2; }
}

/* ---------- contact ---------- */
.contact { background: var(--charcoal); color: #eef1f4; }
.contact h2 { color: var(--green); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: 14px; }
.contact-grid { display: grid; gap: 40px; }
.contact-lead { font-size: 1.15rem; color: #d6dbe2; max-width: 520px; }
.contact-lead strong { color: #fff; }
.contact-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.contact-list small { display: block; color: #aab2bd; font-size: .9rem; margin-bottom: 4px; }
.reveal-email {
  font: inherit; font-weight: 700; color: #fff; background: transparent; cursor: pointer;
  border: 2px solid var(--green); border-radius: 999px; padding: 9px 20px; transition: background .2s, color .2s;
}
.reveal-email:hover { background: var(--green); color: #0d2a22; }
.reveal-email.is-revealed { border-color: transparent; padding: 9px 0; text-decoration: underline; text-underline-offset: 4px; color: #fff; }
.reveal-email.is-revealed:hover { background: transparent; color: var(--green); }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: #2f394d; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #f7f9fa; border: 2px solid var(--line);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: var(--green-soft); color: #0e5e49; }
.form-status.err { display: block; background: #fdecee; color: #a02335; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }

.site-footer { background: var(--charcoal-deep); color: #aab2bd; padding: 22px 0; text-align: center; font-size: .93rem; }
.site-footer p { margin: 0; }
.site-footer .footer-name { margin-bottom: 6px; color: #c9ced6; }

/* ---------- scroll reveal (replaces AOS) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js [data-reveal="up"] { transform: translateY(36px); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.notfound img { max-width: 420px; margin: 0 auto 24px; }
.notfound h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print { .site-header, .nav-mobile, .form, .hero-actions { display: none !important; } .js [data-reveal] { opacity: 1; transform: none; } }
