/* ============================================================
   KnowingPath.ai — Template Site Styles
   Extends globals.css  |  Zero build step, pure CSS
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --kp-blue:      #5BA3D9;
  --kp-gold:      #D4A843;
  --kp-dark-1:    #050912;
  --kp-dark-2:    #0A0F1E;
  --kp-dark-3:    #0F1729;
  --kp-dark-4:    #141D35;
  --kp-border:    rgba(91, 163, 217, 0.15);
  --kp-border-h:  rgba(91, 163, 217, 0.35);
  --kp-text:      #E2E8F0;
  --kp-muted:     #94A3B8;
  --kp-subtle:    #475569;
  --kp-radius:    12px;
  --kp-radius-lg: 20px;
  --nav-h:        64px;
}

/* ── Base layout ───────────────────────────────────────────── */
main   { padding-top: var(--nav-h); }
.page  { display: none; min-height: calc(100vh - var(--nav-h) - 180px); }
.page.active { display: block; }

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ── Navigation ────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(5, 9, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kp-border);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
}
.logo-text   { color: var(--kp-text); }
.logo-accent { color: var(--kp-blue); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--kp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--kp-text);
  background: rgba(91, 163, 217, 0.08);
}

/* ── Dropdown ──────────────────────────────────────────────── */
.nav-dropdown { position: relative; list-style: none; }

.dropdown-arrow {
  font-size: 0.65rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: rgba(10, 15, 30, 0.97);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius);
  padding: 0.5rem;
  list-style: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6),
              0 0 20px rgba(91,163,217,0.08);
  backdrop-filter: blur(16px);
}
.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--kp-muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.dropdown-menu a:hover {
  color: var(--kp-text);
  background: rgba(91, 163, 217, 0.12);
}

/* ── Mobile hamburger ──────────────────────────────────────── */
.kp-nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.kp-nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--kp-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Mobile slide-down menu ────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(5, 9, 18, 0.97);
  border-bottom: 1px solid var(--kp-border);
  padding: 1rem 2rem 2rem;
  backdrop-filter: blur(16px);
  z-index: 999;
}
.mobile-menu.open { display: block; }

.mobile-menu ul   { list-style: none; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--kp-border); }
.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--kp-muted);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--kp-text); }

.mobile-submenu { display: none; padding-left: 1rem; padding-bottom: 0.5rem; }
.mobile-submenu.open { display: block; }
.mobile-submenu a { font-size: 0.875rem; padding: 0.5rem 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--kp-blue) 0%, #3D7FBF 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--kp-blue);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--kp-blue);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: rgba(91, 163, 217, 0.1); }

.btn-full { width: 100%; text-align: center; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(91, 163, 217, 0.1);
  border: 1px solid var(--kp-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--kp-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.accent-blue { color: var(--kp-blue); }
.accent-gold { color: var(--kp-gold); }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--kp-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Background orb */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(91, 163, 217, 0.06) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Section headings ──────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--kp-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards grid (Home What We Do) ──────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 2rem;
  cursor: pointer;
}
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.65rem; }
.card p  { color: var(--kp-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Solutions sub-nav tabs ────────────────────────────────── */
.solution-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.sol-tab {
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--kp-border);
  border-radius: 8px;
  color: var(--kp-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.sol-tab:hover {
  background: rgba(91, 163, 217, 0.08);
  color: var(--kp-text);
  border-color: var(--kp-border-h);
}
.sol-tab.active {
  background: rgba(91, 163, 217, 0.14);
  color: var(--kp-blue);
  border-color: var(--kp-blue);
}

.solution-panel { display: none; }
.solution-panel.active { display: block; }

.solution-hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.sol-icon { font-size: 3rem; flex-shrink: 0; line-height: 1; }
.solution-hero-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.solution-hero-card > div > p {
  color: var(--kp-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-list li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--kp-muted);
  font-size: 0.9rem;
}
.feature-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--kp-blue);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .solution-hero-card { flex-direction: column; gap: 1rem; }
  .sol-icon { font-size: 2rem; }
}

/* ── Contact page ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info,
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 2rem;
}
.contact-info h3,
.contact-form-wrap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.info-block { display: flex; flex-direction: column; gap: 1.1rem; }
.info-row   { display: flex; flex-direction: column; gap: 0.25rem; }

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kp-blue);
}
.info-value {
  font-size: 0.9rem;
  color: var(--kp-muted);
  line-height: 1.55;
}
.placeholder-val { font-style: italic; color: var(--kp-subtle); }

.contact-link { color: var(--kp-blue); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--kp-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--kp-border);
  border-radius: 8px;
  color: var(--kp-text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--kp-blue);
  background: rgba(91, 163, 217, 0.05);
}
.contact-form select option { background: #0A0F1E; color: var(--kp-text); }

.form-note {
  font-size: 0.74rem;
  color: var(--kp-subtle);
  text-align: center;
  line-height: 1.55;
}

/* ── Placeholder badge ─────────────────────────────────────── */
.placeholder-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--kp-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

/* ── About page ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.about-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 2rem;
}
.about-icon { font-size: 2rem; margin-bottom: 1rem; }
.about-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.about-card p,
.about-card li { color: var(--kp-muted); font-size: 0.9rem; line-height: 1.65; }

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 2rem;
  text-align: center;
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(91, 163, 217, 0.08);
  border: 1px solid var(--kp-border);
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--kp-subtle);
}
.team-card h4  { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.team-role     { font-size: 0.8rem; color: var(--kp-blue); margin-bottom: 0.75rem; }
.team-card > p { color: var(--kp-muted); font-size: 0.85rem; line-height: 1.55; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--kp-border);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-tagline { color: var(--kp-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: var(--kp-muted);
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--kp-text); }
.footer-copy { font-size: 0.75rem; color: var(--kp-subtle); }
