@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Logo-aligned Steel Blue & Sage Teal Palette */
  --primary-navy: #16324f;
  --primary-navy-hover: #1e4268;
  --hero-slate: #2c5e8a;
  --logo-teal: #5c8184;
  --accent-amber: #d97706;
  --accent-amber-bright: #f59e0b;
  --accent-amber-soft: #fef3c7;
  --bg-white: #ffffff;
  --bg-soft: #f4f7fa;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --radius: 0.875rem;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(22, 50, 79, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(22, 50, 79, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Top Contact Bar */
.top-bar {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.75rem;
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--accent-amber-bright);
}

/* Main Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--hero-slate);
  border-bottom-color: var(--hero-slate);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--primary-navy);
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 50, 79, 0.2);
}

.btn-amber {
  background-color: var(--accent-amber-bright);
  color: var(--primary-navy);
}

.btn-amber:hover {
  background-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--hero-slate);
  color: var(--hero-slate);
  background-color: var(--bg-soft);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--hero-slate) 65%, var(--logo-teal) 100%);
  color: white;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Page Header (Subpages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--hero-slate) 100%);
  color: white;
  padding: 3.75rem 0;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-soft {
  background-color: var(--bg-soft);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-slate);
  background-color: rgba(44, 94, 138, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: var(--primary-navy);
  letter-spacing: -0.02em;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--hero-slate);
  color: var(--hero-slate);
}

.filter-pill.active {
  background-color: var(--hero-slate);
  color: white;
  border-color: var(--hero-slate);
}

/* Cards Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(44, 94, 138, 0.3);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--hero-slate);
}

.badge-amber {
  background: var(--accent-amber-soft);
  color: #b45309;
}

.job-title {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.job-company {
  font-weight: 600;
  color: var(--logo-teal);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.job-details {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.job-detail-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.job-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-list li::before {
  content: "✓";
  color: var(--hero-slate);
  font-weight: 800;
  background: rgba(44, 94, 138, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(90deg, var(--primary-navy) 0%, var(--hero-slate) 100%);
  color: white;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent-amber-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Founder Section */
.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 5px solid white;
}

/* Testimonials */
.testimonial-quote {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--primary-navy);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--hero-slate);
  box-shadow: 0 0 0 3px rgba(44, 94, 138, 0.12);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a:hover {
  color: var(--accent-amber-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 50, 79, 0.65);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: white;
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Live Editor Toolbar & Editable Highlights */
.editor-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 950;
  background: var(--accent-amber-bright);
  color: var(--primary-navy);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-toolbar {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 950;
  background: var(--primary-navy);
  color: white;
  border-radius: var(--radius);
  padding: 1rem;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}

.editor-toolbar.open {
  display: flex;
}

.editor-toolbar h4 {
  font-size: 0.95rem;
  color: var(--accent-amber-bright);
  margin-bottom: 0.25rem;
}

.editor-toolbar p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.editor-btn-sm {
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}

.editor-btn-sm:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.edit-mode [data-edit] {
  outline: 2px dashed var(--accent-amber-bright);
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
}

body.edit-mode [data-edit]:focus {
  outline: 2px solid #22c55e;
  background: rgba(245, 158, 11, 0.08);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
  }

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

  .mobile-menu-btn {
    display: block;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }
}
