/* ============================================
   NEWKLINE — Design system
   ============================================ */

:root {
  --navy: #1E2530;
  --navy-light: #2C3646;
  --teal: #0E8C7F;
  --teal-dark: #0B6E64;
  --teal-light: #E6F4F2;
  --bg: #FAFAF9;
  --white: #FFFFFF;
  --text: #1E2530;
  --text-muted: #5B6470;
  --border: #E4E6E8;
  --shadow: 0 4px 20px rgba(30, 37, 48, 0.08);
  --shadow-hover: 0 12px 32px rgba(30, 37, 48, 0.14);
  --radius: 14px;
  --max-width: 1140px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

section { padding: 88px 0; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(14, 140, 127, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14, 140, 127, 0.36); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.logo-link { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); flex-shrink: 0; }
.logo-link img { height: 44px; width: auto; display: block; }
@media (max-width: 980px) {
  .logo-link img { height: 38px; }
}
@media (max-width: 480px) {
  .logo-link img { height: 32px; }
}

nav.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.main-nav a {
  padding: 9px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--navy); background: var(--teal-light); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.header-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.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: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  nav.main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform var(--transition);
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav a { padding: 14px; text-align: center; }
  .nav-toggle { display: block; }
  .header-phone span.phone-text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 55%, var(--teal) 100%);
  color: var(--white);
  padding: 110px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero h1 .gradient-word {
  background: linear-gradient(90deg, #ffffff, #B9EDE6, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Trust bar (reassurance badges) ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.trust-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.page-hero .trust-bar { margin-top: 22px; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 70%);
  pointer-events: none;
}
.hero-orb.o1 { width: 260px; height: 260px; top: -80px; right: -60px; }
.hero-orb.o2 { width: 180px; height: 180px; bottom: -60px; left: -40px; }

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  color: var(--white);
  padding: 80px 0 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: currentColor; flex-shrink: 0; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats-section {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
}
.stats-section .section-header p,
.stats-section .eyebrow { color: rgba(255,255,255,0.85); }
.stats-section .eyebrow { background: rgba(255,255,255,0.12); color: #B9EDE6; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 10px; }
.stat-label { font-weight: 600; color: rgba(255,255,255,0.85); }

/* ---------- Story / values ---------- */
.story-layout { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .story-layout { grid-template-columns: 1fr; } }
.story-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4.5rem;
  font-weight: 800;
}
.story-content p { font-size: 1.03rem; }
.story-content strong { color: var(--navy); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  text-align: center;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--teal-light);
}
.value-card .icon-badge { margin: 0 auto 16px; }

/* ---------- Process ---------- */
.process-section { background: var(--white); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 0 12px; }
.process-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.88); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
.field .required { color: var(--teal); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.field-file {
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 18px;
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.field-file:hover { border-color: var(--teal); }
.field-file input[type="file"] { display: none; }
.field-file .file-hint { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; font-size: 0.88rem; color: var(--text-muted); }
.consent input { margin-top: 3px; }
.consent a { color: var(--teal); font-weight: 600; }
.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--teal-light);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 18px;
}

/* ---------- Contact info blocks ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-item .icon-badge { flex-shrink: 0; margin-bottom: 0; width: 44px; height: 44px; font-size: 1rem; }
.contact-item h3 { margin-bottom: 4px; font-size: 1rem; }
.contact-item p { margin-bottom: 0; }

/* ---------- Testimonials (hidden until real content exists) ---------- */
.testimonials-section[hidden] { display: none; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--white); margin-bottom: 14px; font-size: 1.1rem; }
.footer-brand img { height: 38px; width: auto; display: block; }
footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { margin-left: 16px; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; font-size: 1.3rem; }
.legal-content dl { display: grid; grid-template-columns: 240px 1fr; gap: 8px 16px; }
.legal-content dt { font-weight: 700; color: var(--navy); }
.legal-content dd { margin: 0; color: var(--text-muted); }
.placeholder-flag { color: #B45309; background: #FEF3C7; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 0.85em; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero h1 .gradient-word { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.two-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .two-paths { grid-template-columns: 1fr; } }
.path-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.path-card .emoji-badge { font-size: 2.2rem; margin-bottom: 14px; }
