/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f2c44;
  --navy-light: #1a4a6e;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --accent: #38bdf8;
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(15, 44, 68, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 44, 68, 0.12);
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.nav-bar nav { display: flex; gap: 28px; align-items: center; }
.nav-bar nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-bar nav a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue);
  padding: 8px 18px;
  border-radius: 6px;
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--blue-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 16px;
  color: rgba(255,255,255,0.9);
}
.hero-tag {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 32px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}
.card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 16px; }
.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card ul li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.card-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
}

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
}
.project-item h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.project-item p { font-size: 0.92rem; color: var(--text-light); }

/* ===== Advice Layout ===== */
.advice-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.advice-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.advice-list ul li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
}
.advice-list ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.advice-list h4 { font-size: 1.1rem; color: var(--navy); }
.advice-note {
  background: var(--navy);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Proactive Pills ===== */
.proactive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Values Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.value-item {
  text-align: center;
  padding: 24px;
}
.value-item h4 {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 10px;
  font-weight: 700;
}
.value-item p { font-size: 0.95rem; color: var(--text-light); }

.approach-intro {
  text-align: left;
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 1.02rem;
  color: var(--text);
}

/* ===== Who We Work With ===== */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.who-list p { font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.who-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.who-list ul li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
}
.who-list ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.who-note {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ===== Engagement Grid ===== */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.engagement-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.engagement-card h4 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.engagement-card p { font-size: 0.95rem; color: var(--text-light); }

/* ===== Contact Form ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row input { flex: 1; }
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.contact-form button { align-self: center; margin-top: 8px; }

.form-status {
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
  margin-top: 4px;
}
.form-success { color: #16a34a; font-weight: 600; }
.form-error { color: #dc2626; font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-bar nav { display: none; }
  .menu-toggle { display: flex; }
  body.nav-open .nav-bar nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .section-head h2 { font-size: 1.5rem; }
  .advice-layout, .who-grid { grid-template-columns: 1fr; }
  .advice-list ul { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .section { padding: 48px 0; }
}