/* ============================================================
   Amela Consulting - shared design system
   Palette: navy #173952 · blue #0993cc · lime #9ec54d
            olive #4f6428 · orange #e96206 · gray #7e8180
   Type:  Source Serif 4 (display) + Figtree (UI/body)
   ============================================================ */

:root {
  --navy:   #173952;
  --navy-700:#102a3d;
  --navy-900:#0b1e2c;
  --blue:   #0993cc;
  --blue-600:#077bab;
  --lime:   #9ec54d;
  --lime-100:#eef6dc;
  --olive:  #4f6428;
  --orange: #e96206;
  --orange-600:#cc5405;
  --gray:   #6b6e6d;

  --ink:    #16303f;          /* body text, softened navy */
  --ink-soft:#4a5a64;
  --line:   #e3e9ec;
  --bg:     #ffffff;
  --bg-soft:#f5f8fa;          /* airy cool-white */
  --bg-tint:#eef4f7;

  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Figtree", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,42,61,.06), 0 2px 8px rgba(16,42,61,.05);
  --shadow-md: 0 6px 20px rgba(16,42,61,.09), 0 2px 6px rgba(16,42,61,.05);
  --shadow-lg: 0 24px 60px rgba(16,42,61,.16);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { font-family: var(--serif); color: var(--navy); line-height: 1.12; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-600); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #dfeaf1; }
.section-navy h1,.section-navy h2,.section-navy h3 { color: #fff; }

/* eyebrow / kicker */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content:""; width: 26px; height: 2px; background: var(--lime); display:inline-block; }
.kicker.center { justify-content: center; }
.section-navy .kicker { color: var(--lime); }

.lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.6; }
.section-navy .lead { color: #b9cdd9; }
.page-hero .lead { color: #b9cdd9; }
.page-hero .kicker { color: var(--lime); }

.section-head { max-width: 720px; margin: 0 0 52px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color:#fff; box-shadow: 0 8px 22px rgba(233,98,6,.28); }
.btn-primary:hover { background: var(--orange-600); color:#fff; box-shadow: 0 12px 28px rgba(233,98,6,.34); }
.btn-blue { background: var(--blue); color:#fff; box-shadow: 0 8px 22px rgba(9,147,204,.26); }
.btn-blue:hover { background: var(--blue-600); color:#fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: rgba(255,255,255,.06); color:#fff; border-color: rgba(255,255,255,.32); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color:#fff; border-color:#fff; }
.btn-lg { padding: 18px 34px; font-size: 1.06rem; }
.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 82px; }
.nav-logo img { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.nav-item {
  display: block; padding: 10px 15px; border-radius: 8px;
  color: var(--navy); font-weight: 600; font-size: .96rem; letter-spacing: .01em;
}
.nav-links a.nav-item:hover { background: var(--bg-tint); color: var(--blue); }
.nav-links a.nav-item.active { color: var(--blue); }
.has-menu > .nav-item::after { content:"⌄"; margin-left: 6px; font-size: .8em; opacity:.55; position: relative; top:-2px; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-md); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .16s ease;
}
.has-menu:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .93rem; }
.submenu a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background: var(--navy); margin: 5px 0; transition:.2s; }

@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 82px; left: 0; right: 0; background:#fff;
    border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open .submenu { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; padding-left: 12px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb4c2; padding: 70px 0 34px; }
.site-footer h4 { color:#fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid a { color:#9fb4c2; display:block; padding: 5px 0; }
.footer-grid a:hover { color:#fff; }
.footer-brand img { height: 68px; margin-bottom: 18px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.footer-brand p { color:#8aa2b2; font-size:.96rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 24px; display:flex; justify-content: space-between; gap:16px; flex-wrap: wrap; font-size:.86rem; color:#7793a4; }
.social { display:flex; gap:10px; }
.social a { width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#cfe0ea; }
.social a:hover { background: var(--blue); color:#fff; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }

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

.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3e0e7; }
.card .icon-badge { width: 52px; height:52px; border-radius: 14px; display:flex; align-items:center; justify-content:center; margin-bottom: 18px; }

/* pillar accent dots */
.pill-tag { display:inline-flex; align-items:center; gap:7px; font-size:.8rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:5px 12px; border-radius:999px; }

/* image placeholder */
.imgph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #eef4f7 0 14px, #e6eef2 14px 28px);
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; min-height: 240px;
}
.imgph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size:.8rem;
  color: var(--gray); background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 8px;
  letter-spacing:.02em;
}

/* utility */
.center { text-align:center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.eyebrow-dot::before{ content:""; display:inline-block; width:8px;height:8px;border-radius:50%; background:var(--lime); margin-right:8px; }

/* trust logo row */
.trust-row { display:flex; align-items:center; justify-content:center; gap: 48px; flex-wrap: wrap; }
.trust-item { display:flex; flex-direction:column; align-items:center; gap:8px; opacity:.92; }
.trust-item img { height: 60px; width:auto; object-fit: contain; }
.trust-badge-text {
  font-family: var(--serif); font-weight:600; color: var(--navy); font-size: 1.5rem; letter-spacing: .02em;
  padding: 8px 20px; border: 1.5px solid var(--line); border-radius: 12px; background:#fff;
}
.trust-item small { color: var(--gray); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }

/* ---------- Adoption Philosophy equation ---------- */
.eq { display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; margin: 6px 0 4px; }
.eq .term { font-family: var(--serif); font-weight:600; font-size: clamp(1.2rem,2.4vw,1.9rem); color: var(--navy); }
.eq .term.q { color: var(--orange); }
.eq .op { font-family: var(--serif); font-size: clamp(1.2rem,2.4vw,1.9rem); color: var(--gray); font-weight:400; }
.section-navy .eq .term { color:#fff; } .section-navy .eq .op { color:#7fa0b4; } .section-navy .eq .term.q { color: var(--lime); }

.phil-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px; }
@media (max-width:820px){ .phil-grid{ grid-template-columns:1fr; } }
.phil-card { text-align:left; }
.phil-card .glyph { width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:16px; }
.phil-card h3 { font-size:1.25rem; margin:0 0 8px; }
.phil-card p { color: var(--ink-soft); font-size:.96rem; margin:0; }

/* ---------- 3-tier partnership model ---------- */
.ptiers { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset: tier; }
@media (max-width:820px){ .ptiers{ grid-template-columns:1fr; } }
.ptier { position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:32px 28px; box-shadow:var(--shadow-sm); overflow:hidden; }
.ptier::before { content:""; position:absolute; top:0; left:0; right:0; height:5px; }
.ptier.t1::before{ background:var(--blue); } .ptier.t2::before{ background:var(--lime); } .ptier.t3::before{ background:var(--orange); }
.ptier .tn { font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--gray); }
.ptier h3 { font-size:1.4rem; margin:6px 0 12px; }
.ptier p { color:var(--ink-soft); font-size:.96rem; margin:0; }
.ptier .phase { margin-top:18px; display:flex; flex-direction:column; gap:6px; font-size:.85rem; color:var(--ink); }
.ptier .phase b { color:var(--navy); }

/* ---------- metrics band ---------- */
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:28px; text-align:center; }
@media (max-width:760px){ .metrics{ grid-template-columns:1fr 1fr; gap:34px 20px; } }
.metric b { font-family:var(--serif); font-size: clamp(2.4rem,4vw,3.2rem); color:#fff; display:block; line-height:1; }
.metric .lime { color: var(--lime); }
.metric span { color:#9fb9c9; font-size:.92rem; display:block; margin-top:8px; }

/* ---------- case-study card ---------- */
.cs-card { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.cs-card .cs-top { position:relative; height:170px; }
.cs-card .cs-top .imgph { border-radius:0; height:100%; min-height:100%; }
.cs-card .cs-tag { position:absolute; top:14px; left:14px; z-index:3; background:var(--navy); color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.05em; padding:5px 12px; border-radius:999px; }
.cs-card .cs-body { padding:26px; display:flex; flex-direction:column; flex:1; }
.cs-card h3 { font-size:1.28rem; margin:0 0 10px; }
.cs-card p { color:var(--ink-soft); font-size:.95rem; margin:0 0 18px; flex:1; }
.cs-card .cs-metrics { display:flex; gap:22px; border-top:1px solid var(--line); padding-top:16px; margin-bottom:16px; }
.cs-card .cs-metrics b { font-family:var(--serif); font-size:1.5rem; color:var(--navy); display:block; line-height:1; }
.cs-card .cs-metrics span { font-size:.76rem; color:var(--gray); }
.cs-card .go { font-weight:600; color:var(--blue); font-size:.95rem; }

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

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

/* ---------- tablet (≤820px) ---------- */
@media (max-width: 820px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .wrap-narrow { padding: 0 20px; }
  .section-head { margin-bottom: 36px; }
  h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
  .lead { font-size: 1.05rem; }
  .btn-lg { padding: 15px 26px; font-size: 1rem; }
  .hero-actions { flex-wrap: wrap; }
  .trust-row { gap: 28px; }
  .trust-badge-text { font-size: 1.2rem; padding: 6px 14px; }
  .trust-item img { height: 46px; }
  .eq { gap: 10px; }
  .eq .term { font-size: clamp(1rem, 3vw, 1.5rem); }
  .eq .op { font-size: clamp(1rem, 3vw, 1.5rem); }
  .cs-card .cs-top { height: 140px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- phone (≤640px) ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .wrap { padding: 0 16px; }
  .wrap-narrow { padding: 0 16px; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  h3 { font-size: 1.15rem; }
  .lead { font-size: 1rem; }
  .section-head { margin-bottom: 28px; }
  .nav { height: 64px; }
  .nav-logo img { height: 48px; }
  .nav-links.open { top: 64px; }
  .btn { padding: 13px 22px; font-size: .94rem; }
  .btn-lg { padding: 14px 24px; font-size: .96rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .trust-row { gap: 20px; }
  .trust-badge-text { font-size: 1rem; }
  .trust-item img { height: 38px; }
  .phil-grid { gap: 18px; margin-top: 28px; }
  .phil-card .glyph { width: 46px; height: 46px; border-radius: 12px; }
  .ptiers { gap: 18px; }
  .ptier { padding: 24px 20px; }
  .metrics { gap: 24px 16px; }
  .metric b { font-size: clamp(2rem, 8vw, 2.6rem); }
  .metric span { font-size: .84rem; }
  .card { padding: 22px; border-radius: var(--r); }
  .cs-card .cs-body { padding: 20px; }
  .cs-card .cs-metrics { gap: 14px; }
  .cs-card .cs-metrics b { font-size: 1.2rem; }
  .eq { gap: 6px; }
  .eq .term { font-size: 1rem; }
  .eq .op { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-brand img { height: 56px; }
  .site-footer { padding: 48px 0 28px; }
  .footer-bottom { margin-top: 32px; }
  .social { justify-content: center; }
  /* sector tags */
  .sector-tag { font-size: .85rem; padding: 8px 14px; }
  /* testimonial cards */
  .tcard blockquote { font-size: .95rem; }
  /* founder quote */
  .founder { flex-direction: column; text-align: center; }
  .founder .portrait { width: 140px; height: 170px; }
  .founder blockquote { font-size: 1.05rem; }
  /* CERTs-Up inline */
  .certs-inline { flex-direction: column; gap: 28px; }
  /* page hero */
  .page-hero { padding: 48px 0 40px; }
  /* breadcrumb */
  .breadcrumb { font-size: .78rem; }
  /* challenge list */
  .challenge-list li { font-size: .95rem; }
  /* tool grid on resources */
  .tool-grid { grid-template-columns: 1fr !important; }
  /* res-tabs wrap */
  .res-tabs { flex-wrap: wrap; gap: 8px; }
  .res-tabs .btn { padding: 10px 18px; font-size: .88rem; }
  /* acc items */
  .acc-header { font-size: .95rem; padding: 14px 16px; }
  .acc-body { padding: 12px 16px 18px; font-size: .94rem; }
  /* tier cards (course page) */
  .tier-grid { grid-template-columns: 1fr !important; }
}
