/* =========================================================
   Real Time Purity - static site styles
   Fonts: Montserrat (headings), Lato (body)
   ========================================================= */

:root {
  --primary: #43638F;      /* brand blue */
  --primary-dark: #35507a;
  --secondary: #5B656F;    /* slate gray */
  --accent: #4CBA76;       /* brand green */
  --accent-dark: #3fa365;
  --blue: #0086F4;
  --blue-light: #4EA6EE;
  --green: #00C371;
  --text: #222222;
  --muted: #5B656F;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-softer: #eef3f8;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 6px 24px rgba(33, 54, 84, 0.08);
  --shadow-lg: 0 14px 40px rgba(33, 54, 84, 0.14);
  --maxw: 1160px;
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--primary); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; letter-spacing: .2px; padding: 13px 26px; border-radius: 40px;
  cursor: pointer; border: 2px solid transparent; transition: all .18s ease; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: #fff; color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.logo img { height: 42px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; transition: .2s; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--secondary);
  padding: 10px 14px; border-radius: 8px; display: inline-block;
}
.main-nav a:hover, .main-nav .current > a { color: var(--primary); background: var(--bg-soft); }

.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; color: var(--accent); }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .18s ease;
}
.submenu li { margin: 0; }
.submenu a { display: block; padding: 9px 12px; color: var(--secondary); }
.submenu .sub-sub { padding-left: 12px; border-left: 2px solid var(--bg-softer); margin-left: 8px; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(4px); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 20px; font-size: .88rem; }
.mobile-only { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: clamp(70px, 12vw, 140px) 0;
  background: linear-gradient(120deg, rgba(41,63,97,.86), rgba(31,49,78,.72)), var(--primary);
  background-size: cover; background-position: center;
}
.hero.hero-image::before { content: ""; position: absolute; inset: 0; background: inherit; }
.hero h1, .hero h2 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 720px; color: rgba(255,255,255,.94); }
.hero .eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px;
  font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-primary { background: var(--primary); color: #fff; }
.section-primary h1, .section-primary h2, .section-primary h3 { color: #fff; }
.section-tight { padding: clamp(38px, 6vw, 64px) 0; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px;
  font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; display: block; }

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); margin-bottom: 1.2em; }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-softer); color: var(--primary); margin-bottom: 18px;
}
.card .card-icon svg { width: 28px; height: 28px; }

/* ---------- Split media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split-body h2 { margin-bottom: .5em; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 1.2em 0; }
.feature-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--text); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Stats / examples ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 24px; box-shadow: var(--shadow);
}
.stat p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 26px; font-size: 1.15rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600;
  color: var(--primary); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); }
.faq-item .faq-body p { margin: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.team-card h3 { margin-bottom: .15em; }
.team-card .role { font-family: var(--font-head); font-weight: 600; color: var(--accent-dark); margin-bottom: 14px; display: block; font-size: .95rem; }
.team-card ul { color: var(--muted); font-size: .96rem; padding-left: 1.1em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: .4em; font-size: 1.2rem; }
.contact-card a { font-weight: 600; }
.contact-card .muted { color: var(--muted); }

/* ---------- Prose (legal / long text) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.2rem; color: var(--secondary); }
.prose p, .prose li { color: #33404f; }

/* ---------- Downloads ---------- */
.download-list { list-style: none; padding: 0; max-width: 640px; margin: 0 auto; }
.download-list li { margin-bottom: 14px; }
.download-list a {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600;
}
.download-list a:hover { border-color: var(--accent); }
.download-list svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

/* ---------- Figure ---------- */
figure { margin: 0 0 1.4em; }
figure img { border-radius: 12px; box-shadow: var(--shadow); }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #dbe6f3; padding: 60px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer img.footer-logo { height: 46px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cddaeb; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-tagline { color: #b9cae0; max-width: 320px; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #aec2da;
}
.footer-bottom a { color: #aec2da; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .stat-grid { grid-template-columns: 1fr 1fr; }
  .split, .team-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .25s ease; max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav a { padding: 12px 8px; border-radius: 6px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--bg-softer); border-radius: 0; margin: 0 0 6px 14px; padding: 0 0 0 8px; min-width: 0;
  }
  .has-sub > a::after { content: ""; }
  .header-cta { display: none; }
  .mobile-only { display: block; }
  .mobile-only a { color: var(--primary) !important; font-weight: 700; }
}
@media (max-width: 520px) {
  .grid-3, .stat-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
