/* ═══════════════════════════════════════════════════════════════
   North Peak Care — Marketing Website
   Shared Stylesheet
   Brand colors match the NPC portal exactly.
   ═══════════════════════════════════════════════════════════════ */

/* ── Brand Colors ── */
:root {
  --npc-blue:       #1C75BC;
  --npc-navy:       #262262;
  --npc-deep-blue:  #2B3990;
  --npc-teal:       #0097B2;
  --npc-cyan:       #27AAE1;
  --npc-charcoal:   #231F20;

  --tint-blue:      #EAF4FB;
  --tint-teal:      #E8F9FB;
  --card-blue:      #D0E8F5;   /* light blue for feature cards */
  --story-teal:     #3A9BAF;   /* teal banner bg (Our Story, etc.) */

  --border-soft:    #E3E7ED;
  --text-muted:     #6C7280;
  --white:          #FFFFFF;
  --off-white:      #F8FAFB;
  --radius:         12px;
  --radius-lg:      20px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --npc-orange:     #E8922F;
  --npc-orange-hover: #d67d1a;
  --text-dark:      #555;
  --text-body:      #444;
  --error-red:      #d9534f;
  --radius-pill:    999px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 70px; }
body {
  font-family: var(--font);
  color: var(--npc-charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo { height: 40px; width: auto; }
.nav-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--npc-charcoal);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--npc-charcoal);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--npc-teal);
  background: var(--tint-teal);
}
.nav-links .nav-cta {
  background: var(--npc-teal);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  background: var(--npc-blue);
  color: var(--white);
}
.nav-links a[href*="portal"] {
  background: var(--npc-orange);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links a[href*="portal"]:hover {
  background: var(--npc-orange-hover);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--npc-charcoal);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--npc-charcoal);
  padding: 12px 8px;
  border-radius: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active,
.nav-mobile a:hover { color: var(--npc-teal); }
.nav-mobile a[href*="portal"] {
  background: var(--npc-orange);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-mobile a[href*="portal"]:hover {
  background: var(--npc-orange-hover);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--npc-teal);
  color: var(--white);
  border-color: var(--npc-teal);
}
.btn-primary:hover {
  background: var(--npc-blue);
  border-color: var(--npc-blue);
}

/* ── Focus States (Accessibility) ── */
.btn:focus-visible,
.btn-primary:focus-visible,
.nav-cta:focus-visible,
.form-submit-btn:focus-visible {
  outline: 2px solid var(--npc-teal);
  outline-offset: 2px;
}
.nav-links a:focus-visible {
  outline: 2px solid var(--npc-teal);
  outline-offset: 2px;
  border-radius: 8px;
}
.nav-hamburger:focus-visible {
  outline: 2px solid var(--npc-teal);
  outline-offset: 2px;
}
.faq-question:focus-visible {
  outline: 2px solid var(--npc-teal);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--npc-teal);
  outline-offset: 2px;
}

.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ══════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════ */
.hero {
  display: flex;
  align-items: center;
  min-height: 580px;
  padding: 64px 80px;
  gap: 60px;
  background: var(--white);
  overflow: hidden;
}
.hero-content { flex: 1; max-width: 520px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--npc-teal);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--npc-charcoal);
  margin-bottom: 20px;
}
.hero-image {
  flex: 1;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ══════════════════════════════════════════
   SECTION WRAPPERS
══════════════════════════════════════════ */
.section { padding: 80px 80px; }
.section-center { text-align: center; }
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--npc-charcoal);
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════
   FEATURE CARDS (3-up grid)
══════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: var(--card-blue);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,151,178,0.12);
}
.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--npc-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   TEAL BANNER SECTION (Our Story, How It Works, etc.)
══════════════════════════════════════════ */
.banner-teal {
  background: var(--story-teal);
  color: var(--white);
  padding: 72px 80px;
}
.banner-teal .section-title { color: var(--white); }
.banner-navy {
  background: var(--npc-navy);
  color: var(--white);
  padding: 72px 80px;
}
.banner-navy .section-title { color: var(--white); }

.banner-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.banner-two-col p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

/* ══════════════════════════════════════════
   REQUIREMENTS LIST
══════════════════════════════════════════ */
.req-section {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 72px 80px;
}
.req-image {
  flex: 1;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.req-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.req-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.req-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--npc-charcoal);
}
.req-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--tint-teal);
  color: var(--npc-teal);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════ */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--border-soft);
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--npc-charcoal);
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--npc-teal); }
.faq-answer {
  display: none;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 16px 20px 20px;
  margin-bottom: 16px;
}
.faq-answer ul {
  margin-top: 10px;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-item.open .faq-answer { display: block; }

/* ══════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════ */
.npc-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--npc-charcoal);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--npc-charcoal);
  background: var(--white);
  transition: border-color 0.15s;
  outline: 2px solid transparent;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--npc-teal);
  box-shadow: 0 0 0 3px rgba(0,151,178,0.1);
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--npc-teal);
  outline-offset: 1px;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--npc-orange);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 8px;
}
.form-submit-btn:hover { background: var(--npc-orange-hover); }
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--npc-teal);
  font-weight: 600;
  font-size: 16px;
}
.form-error-msg {
  display: none;
  color: var(--error-red);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */
.founder-section {
  padding: 80px 80px 20px 80px;
  display: flex;
  gap: 72px;
  align-items: flex-start;
}
.founder-left { text-align: center; flex-shrink: 0; }
.founder-photo {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid var(--card-blue);
  margin: 0 auto 16px;
}
.founder-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--npc-teal);
}
.founder-right { flex: 1; }
.founder-right h2,
.founder-name {
  font-size: 36px;
  font-weight: 800;
  color: var(--npc-charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.founder-creds {
  font-size: 15px;
  color: var(--npc-teal);
  font-weight: 600;
  margin-bottom: 24px;
}
.founder-bio {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.75;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--npc-charcoal);
  color: rgba(255,255,255,0.9);
  padding: 24px 80px 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 20px;
}
.footer-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  max-width: 260px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--npc-cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}
.footer-bottom a {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--npc-cyan); }
.footer-legal { display: flex; gap: 20px; }

/* ══════════════════════════════════════════
   LEGAL PAGES (Privacy / Terms)
══════════════════════════════════════════ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--npc-charcoal);
  margin-bottom: 8px;
}
.legal-page .effective-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--npc-navy);
  margin: 36px 0 12px;
}
.legal-page p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-page ul {
  margin: 12px 0 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-page ul li {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}
.legal-page a { color: var(--npc-teal); text-decoration: underline; }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { padding: 48px 40px; gap: 40px; }
  .section { padding: 64px 40px; }
  .banner-teal, .banner-navy { padding: 56px 40px; }
  .req-section { padding: 56px 40px; }
  .founder-section { padding: 64px 40px; }
  .footer { padding: 48px 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { width: 100%; overflow-x: hidden; margin: 0; padding: 0; }

  /* Navigation */
  .nav {
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .nav-brand {
    gap: 0 !important;
    flex: 1;
  }
  .nav-logo {
    height: 36px !important;
    width: auto !important;
  }
  .nav-brand-name {
    display: none !important;
  }
  .nav-links {
    display: none !important;
  }
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px !important;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--npc-charcoal);
    border-radius: 2px;
  }

  /* Mobile Menu */
  .nav-mobile {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 16px 0;
    z-index: 999;
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile a {
    padding: 12px 16px;
    color: var(--npc-navy);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-mobile a:hover {
    background: var(--off-white);
    color: var(--npc-teal);
  }

  /* Hero Sections */
  .hero {
    flex-direction: column;
    padding: 28px 16px 32px;
    min-height: auto !important;
    gap: 20px;
    grid-template-columns: 1fr !important;
    display: flex !important;
  }
  .hero-content { max-width: 100%; }
  .hero-image { max-width: 100%; width: 100%; margin: 0; height: auto !important; flex: none !important; }
  .hero-image img { height: auto !important; width: 100%; object-fit: contain; display: block; max-height: none; }
  h1 { font-size: clamp(20px, 6vw, 32px) !important; }
  h2 { font-size: clamp(18px, 5vw, 28px) !important; }
  h3 { font-size: clamp(16px, 4.5vw, 24px) !important; }
  p { font-size: 15px !important; }

  /* Sections */
  .section { padding: 32px 16px; }
  .section-center { padding: 32px 16px !important; }
  .banner-teal, .banner-navy { padding: 32px 16px; }
  .req-section { padding: 32px 16px; }
  .founder-section { padding: 32px 16px; }

  /* Grids */
  .cards-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .banner-two-col { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .showcase-content { grid-template-columns: 1fr !important; }
  .partner-grid { grid-template-columns: 1fr; }

  /* Forms */
  .npc-form { padding: 20px 16px; }
  .form-group { margin-bottom: 14px; }
  input, textarea, select { font-size: 16px !important; padding: 10px 12px; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px !important; }

  /* Requirements Section */
  .req-section { flex-direction: column; gap: 24px; }
  .req-image { max-width: 100%; }

  /* Founder Section */
  .founder-section { flex-direction: column; gap: 24px; align-items: center; }
  .founder-photo { max-width: 160px; height: auto; width: 160px; }
  .founder-right { text-align: center; }

  /* Footer */
  .footer { padding: 28px 16px 20px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
  .footer-brand { display: none; }
  .footer-col { text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; padding-top: 12px; }
  .footer-col h4 { font-size: 11px; margin-bottom: 8px; }
  .footer-col ul { gap: 4px; }
  .footer-col ul li a { display: block; padding: 6px 0; min-height: 44px; line-height: 32px; }
  .footer-legal a { padding: 8px 12px; }

  /* Cards */
  .card { padding: 24px 16px; }

  /* Legal Pages */
  .legal-page { padding: 32px 16px 48px; }

  /* Demo Banner */
  .demo-banner { padding: 12px; margin-bottom: 16px; }
  .demo-banner p { font-size: 14px; }
  .demo-btn { padding: 10px 16px; font-size: 14px; }

  /* Prevent horizontal overflow on all elements */
  img, video, iframe, embed, object { max-width: 100% !important; }
  .browser-content { height: auto !important; min-height: 200px; }
  .browser-carousel { width: 100% !important; }
  .carousel-slide img { height: auto !important; }
  .quote-image img { height: auto !important; }

  /* Prevent any element from exceeding viewport */
  section, div, main, footer, header, nav {
    max-width: 100vw;
  }
}

/* ── Skip Navigation ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1100;
  padding: 8px 16px;
  background: var(--npc-navy);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
