/* NSO Research: site stylesheet */

:root {
  --blue: #2E70CE;
  --blue-dark: #1F5AAE;
  --blue-text: #3D79B5;
  --navy: #1D2366;
  --green: #2ECC71;
  --green-dark: #25B562;
  --light: #E9EFF9;
  --header-bg: #EBF6FF;
  --border: #DCDCEA;
  --muted: #6B6B76;
  --white: #FFFFFF;
  --max: 1140px;
  --radius-blob-a: 140px 100px 260px 48px;
  --radius-blob-b: 220px 90px 90px 90px;
  --radius-blob-c: 90px 90px 220px 90px;
  --shadow: 0 18px 40px rgba(29, 35, 102, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--blue-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }

h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.2; color: var(--navy); }
h1, h2 { font-weight: 300; font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); }
h4 { font-weight: 600; font-size: 19px; }
p { margin: 0 0 16px; }

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

.kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(46, 204, 113, 0.3);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(46, 204, 113, 0.38); }
.btn-white { background: var(--white); color: var(--blue); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
.btn-white:hover { background: var(--white); color: var(--blue-dark); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  box-shadow: 0 4px 18px rgba(29, 35, 102, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.logo img { width: 210px; }
.logo { flex-shrink: 0; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-dark); }
.header-cta { display: none; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: inline; }

/* Waves */
.wave { display: block; width: 100%; height: 70px; }
.wave-top { margin-bottom: -1px; }
.wave-bottom { margin-top: -1px; }

/* Sections */
.section { padding: 90px 0; }
.section-light { background: linear-gradient(40deg, var(--white) 50%, var(--light) 95%); }
.section-tint { background: var(--light); }

.blue {
  background-color: var(--blue);
  background-image: url("../img/pattern.png");
  background-blend-mode: multiply;
  color: var(--white);
}
.blue h1, .blue h2, .blue h3, .blue h4 { color: var(--white); }
.blue p { color: rgba(255, 255, 255, 0.92); }

.split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split-wide-left { grid-template-columns: 1.15fr 0.85fr; }

/* Blob images */
.blob { overflow: hidden; box-shadow: var(--shadow); }
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob-a { border-radius: var(--radius-blob-a); }
.blob-b { border-radius: var(--radius-blob-b); }
.blob-c { border-radius: var(--radius-blob-c); }
.blob.tall { aspect-ratio: 2 / 3; max-width: 440px; justify-self: center; }

/* Hero */
.hero { padding: 40px 0 30px; }
.hero h1 { font-weight: 600; font-size: clamp(34px, 4.4vw, 54px); }
.hero .blob { aspect-ratio: 1 / 1; max-width: 520px; }
.hero-text { text-align: center; }

.page-hero { padding: 50px 0 20px; }
.page-hero h1 { font-weight: 600; }
.page-hero .blob { aspect-ratio: 4 / 3; }

/* Image pair (home) */
.image-pair { position: relative; min-height: 460px; }
.image-pair .blob:first-child { position: absolute; top: 0; right: 0; width: 46%; aspect-ratio: 1 / 1; }
.image-pair .blob:last-child { position: absolute; bottom: 0; left: 0; width: 72%; aspect-ratio: 3 / 2; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  padding: 34px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(29, 35, 102, 0.06);
}
.card-icon { width: 72px; height: 72px; margin-bottom: 18px; object-fit: contain; }
.card-center { text-align: center; }
.card-center .card-icon { margin-left: auto; margin-right: auto; }

/* Checklist */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; margin-bottom: 10px; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checklist-cols { columns: 3; column-gap: 40px; }
.checklist-cols li { break-inside: avoid; }

.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin-bottom: 6px; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.staff {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.staff img { width: 130px; height: 170px; object-fit: cover; border-radius: 60px 20px 60px 20px; }
.staff h4 { margin-bottom: 8px; }
.staff details summary {
  display: inline-block;
  margin-top: 4px;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.staff details summary::-webkit-details-marker { display: none; }
.staff details[open] summary { margin-bottom: 12px; }
.staff details[open] .more-label, .staff details:not([open]) .less-label { display: none; }

/* Studies */
.study { display: flex; flex-direction: column; }
.study-media { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: 22px; }
.study-media img { max-height: 150px; width: auto; border-radius: 18px; }
.study h4 { min-height: 46px; }

/* Info blocks */
.info h4 { margin-bottom: 6px; color: var(--blue); text-transform: uppercase; font-size: 15px; letter-spacing: 1px; }
.map { width: 100%; height: 420px; border: 0; border-radius: 24px; display: block; }

/* Forms */
.form-card {
  padding: 40px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.nso-form { display: flex; flex-direction: column; gap: 14px; }
.nso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nso-row > *, .nso-form label { min-width: 0; }
.nso-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 15px; }
.nso-form input[type="text"],
.nso-form input[type="email"],
.nso-form input[type="tel"],
.nso-form select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  color: #222;
  background-color: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
}
.nso-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.nso-form select:invalid { color: #9A9AA5; }
.nso-form input:focus, .nso-form select:focus { outline: none; border-color: var(--blue); }
.nso-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nso-form .btn { margin-top: 6px; }
.nso-error { margin: 0; color: #C0392B; font-size: 14px; }
.nso-thanks { padding: 32px 24px; text-align: center; border: 2px solid var(--border); border-radius: 16px; }
.nso-thanks h3 { margin-bottom: 8px; color: var(--blue); }
.nso-thanks p { margin: 0; color: #444; }

/* Call to action band */
.cta { padding: 70px 0; text-align: center; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin-bottom: 26px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 14px; }

/* Legal pages */
.legal { max-width: 860px; }
.legal h1 { text-align: center; font-weight: 600; margin-bottom: 30px; }
.legal h2 { font-size: 26px; font-weight: 600; margin-top: 34px; }
.legal h3 { font-size: 20px; font-weight: 600; margin-top: 24px; }
.legal p, .legal li { color: #4A5568; }

/* 404 */
.not-found { padding: 120px 0; text-align: center; }
.not-found .code { font-size: clamp(80px, 14vw, 140px); font-weight: 700; line-height: 1; color: var(--light); -webkit-text-stroke: 2px var(--blue); }

/* Footer */
.site-footer { padding: 30px 0; background: var(--white); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--navy); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* Tablet and mobile */
@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: inline-block; margin-left: auto; }
  .logo img { width: 190px; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    background: var(--white);
    box-shadow: 0 16px 30px rgba(29, 35, 102, 0.12);
  }
  .menu-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--light); font-size: 15px; }

  .section { padding: 70px 0; }
  .split, .split-wide-left { grid-template-columns: 1fr; gap: 44px; }
  .split .blob { max-width: 560px; margin: 0 auto; width: 100%; }
  .order-first-mobile { order: -1; }
  .hero-text, .split-text { text-align: center; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .checklist-cols { columns: 2; }
  .image-pair { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero .blob { max-width: 440px; }
  .split-text { max-width: 680px; margin: 0 auto; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .header-inner { height: 72px; gap: 12px; }
  .logo img { width: 150px; }
  .header-cta { padding: 9px 14px; font-size: 11px; }
  .wave { height: 40px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .checklist-cols { columns: 1; }
  .image-pair { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
  .image-pair .blob:first-child, .image-pair .blob:last-child { position: static; width: 100%; }
  .staff { grid-template-columns: 1fr; text-align: center; }
  .staff img { margin: 0 auto; }
  .form-card { padding: 26px 20px; }
  .nso-row { grid-template-columns: 1fr; }
  .map { height: 320px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .header-cta { display: none; }
}
