/* ==========================================================================
   IDDO — International Due Diligence Organization
   Clean static rebuild. Design system inspired by modern data-cloud aesthetics:
   bright cyan-blue accent, deep midnight navy, Inter typography, airy spacing.
   ========================================================================== */

:root {
  --blue: #29b5e8;
  --blue-dark: #1493c4;
  --blue-tint: #e8f7fd;
  --midnight: #0b2740;
  --navy: #10344f;
  --ink: #1e2a36;
  --muted: #5b6b7b;
  --border: #e3eaf1;
  --bg-soft: #f5f9fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(11, 39, 64, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 39, 64, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  color: var(--midnight);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--midnight); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(135deg, var(--midnight) 0%, #123a5c 100%); color: #d7e6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--blue); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 46em; }
.section--navy .lead { color: #b9cddd; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}
.btn--primary { background: var(--blue); color: var(--midnight); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { border-color: var(--blue); color: var(--blue-dark); background: transparent; }
.btn--outline:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn--light { background: #fff; color: var(--midnight); }
.btn--light:hover { background: var(--blue-tint); color: var(--midnight); }
.btn--ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* Top bar ---------------------------------------------------------------- */
.topbar { background: var(--midnight); color: #cfe2ef; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 26px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #cfe2ef; font-weight: 500; }
.topbar a:hover { color: var(--blue); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand img { width: 190px; height: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 9px 14px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-tint); }
.nav .btn { margin-left: 10px; border-radius: 999px; }
.nav a.btn--primary { color: var(--midnight); background: var(--blue); }
.nav a.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.nav-item { position: relative; }
.nav-item > .submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
}
.nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: block; }
.submenu a { display: block; padding: 9px 12px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  border-radius: 8px; transition: background 0.18s;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--midnight);
  margin: 5px 0; border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease, background 0.18s ease;
}
.nav-toggle:hover { background: var(--blue-tint); }
.nav-toggle:hover span { background: var(--blue-dark); }
.nav-toggle.active span { background: var(--blue-dark); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--midnight);
  color: #fff;
  min-height: 78vh;
  display: flex; align-items: center;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,39,64,0.55) 0%, rgba(11,39,64,0.75) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { color: #d7e6f2; font-size: 1.25rem; margin-bottom: 30px; }

/* Page hero (interior pages) --------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--midnight) 0%, #14486e 70%, #1a6fa0 100%);
  color: #fff; padding: 76px 0 64px;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #cfe2ef; margin-bottom: 0; }

/* Logo strip ------------------------------------------------------------- */
.logo-strip { border-bottom: 1px solid var(--border); background: #fff; }
.logo-strip .container { padding-top: 34px; padding-bottom: 34px; }
.logo-strip p {
  text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.logo-strip__logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 48px;
}
.logo-strip__logos img {
  height: 54px; width: auto; filter: grayscale(1); opacity: 0.65; transition: 0.2s;
}
.logo-strip__logos img:hover { filter: none; opacity: 1; }

/* Split section ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 24px; height: 24px; }

/* Definition blocks ------------------------------------------------------- */
.definition {
  border-left: 4px solid var(--blue);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 26px 30px;
  margin: 0 0 22px;
}
.definition .pos { font-style: italic; color: var(--muted); font-size: 0.95rem; }
.definition h3 { margin-bottom: 4px; }
.definition p:last-child { margin-bottom: 0; }
.definition--old { border-left-color: #c3ced9; opacity: 0.85; }

/* Pricing ---------------------------------------------------------------- */
.price-cards { align-items: stretch; }
.price-card { position: relative; }
.price-card--featured { border-color: var(--blue); border-width: 2px; }
.price-card .tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--blue); color: var(--midnight);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.price { font-size: 2.4rem; font-weight: 800; color: var(--midnight); letter-spacing: -0.02em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.92rem; }
.check-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.check-list li { padding: 7px 0 7px 30px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231493c4' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.card .btn { margin-top: auto; align-self: flex-start; }

table.tiers { width: 100%; border-collapse: collapse; margin: 10px 0 0; font-size: 0.97rem; }
table.tiers th, table.tiers td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.tiers th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
table.tiers td:last-child, table.tiers th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.tiers tr:last-child td { border-bottom: 0; }

/* Team ------------------------------------------------------------------- */
.team-feature { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; margin-bottom: 64px; }
.team-feature img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.team-feature .role { color: var(--blue-dark); font-weight: 600; margin-bottom: 14px; }
.team-links { display: flex; gap: 14px; margin-top: 8px; }
.team-links a { font-weight: 600; font-size: 0.92rem; }

/* FAQ / accordion --------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px;
  align-items: center; padding: 20px 24px; font-weight: 600; color: var(--midnight); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue-dark);
  flex: 0 0 auto; line-height: 1; transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 24px 20px; color: var(--muted); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* Directory ---------------------------------------------------------------- */
.dir-controls { margin: 0 0 34px; }
.dir-controls input {
  width: 100%; max-width: 440px; font: inherit; color: var(--ink);
  padding: 13px 18px; border: 1.5px solid var(--border); border-radius: 999px;
  outline: none; transition: border-color 0.15s;
}
.dir-controls input:focus { border-color: var(--blue); }
.dir-group { margin-bottom: 40px; }
.dir-group h3 {
  border-bottom: 2px solid var(--blue); display: inline-block; padding-bottom: 6px; margin-bottom: 18px;
}
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 26px; }
.member { padding: 8px 12px; border-radius: 8px; background: var(--bg-soft); font-size: 0.95rem; }
.member .id { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; margin-right: 8px; }
.dir-empty { display: none; color: var(--muted); font-style: italic; }

/* Prose (terms etc.) ------------------------------------------------------ */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; }

/* CTA band ----------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band h2 { max-width: 22em; margin-left: auto; margin-right: auto; }
.cta-band .lead { margin: 0 auto 30px; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--midnight); color: #b9cddd; font-size: 0.95rem; }
.site-footer a { color: #d7e6f2; }
.site-footer a:hover { color: var(--blue); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 64px 0 48px;
}
.footer-main img { width: 210px; margin-bottom: 18px; }
.footer-main h4 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px;
}
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 0.85rem; color: #8ba4b8;
}
.footer-bottom ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }

/* 404 ---------------------------------------------------------------------- */
.error-hero { text-align: center; padding: 120px 0; }
.error-hero .code { font-size: 6rem; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.03em; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .team-feature { grid-template-columns: 1fr; }
  .team-feature img { max-width: 320px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .topbar .container { justify-content: center; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
  .nav-item > .submenu {
    position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 18px; min-width: 0;
  }
  .hero { min-height: 65vh; }
}
