/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:    #2563eb;
  --blue-lt: #eff6ff;
  --text:    #1f2937;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --bg:      #ffffff;
  --bg-alt:  #f9fafb;
  --bg-grad-start: #f5f9ff;
  --bg-grad-mid:   #f8fcff;
  --bg-grad-end:   #fdfdff;
  --card-bg: #f8fbff;
  --card-border: #dbe7f6;
  --card-hover-border: #bfd4f5;
  --radius:  10px;
  --shadow:  0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(150deg, var(--bg-grad-start) 0%, var(--bg-grad-mid) 48%, var(--bg-grad-end) 100%);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 1.5rem;
  min-height: 60px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.logo span { color: var(--blue); }

/* hamburger button – hidden on desktop */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

header.nav-open #nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open #nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open #nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav { margin-left: auto; }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
}

nav ul li a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.62rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

nav ul li a:hover { color: var(--text); background: var(--bg-alt); }
nav ul li a.active { color: var(--blue); background: var(--blue-lt); }

@media (max-width: 1100px) {
  header {
    align-items: flex-start;
    padding: 0.65rem 1rem;
  }

  nav {
    margin-left: 0;
    width: 100%;
  }

  nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  #nav-toggle {
    display: flex;
    margin-left: auto;
  }

  header {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.65rem 1rem;
  }

  nav {
    display: none;
    width: 100%;
    margin-left: 0;
    order: 3;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  header.nav-open nav {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li a {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* ── HERO BANNER (image) ── */
.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 480px);
  overflow: hidden;
  display: block;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,50,0.72) 40%, rgba(10,20,50,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  padding-top: 4rem;
}

.hero-overlay .label {
  color: #93c5fd;
  margin-bottom: 0.6rem;
}

.hero-overlay h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.hero-overlay h1 span { color: #60a5fa; }

.hero-overlay p {
  color: #cbd5e1;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  max-width: min(420px, 100%);
}

@media (max-width: 600px) {
  .hero-overlay {
    padding: 1.25rem;
    padding-top: 2rem;
  }

  .hero-banner {
    height: clamp(220px, 55vw, 320px);
  }
}

/* ── HERO (old, kept for other pages fallback) ── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: var(--bg);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--blue); }

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { background: #1d4ed8; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover { background: var(--blue-lt); transform: translateY(-1px); }

/* ── SECTIONS ── */
.section {
  padding: 4rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-alt { background: var(--bg-alt); }
.section-alt .section { /* wrapper */ }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
  line-height: 1.7;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.cards-2up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-3up,
.what-we-do-cards,
.featured-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .cards-3up,
  .what-we-do-cards,
  .featured-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-2up,
  .cards-3up,
  .what-we-do-cards,
  .featured-cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--card-hover-border);
  background: #f5f9ff;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.12), 0 8px 20px rgba(37,99,235,0.08);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.benefit-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem 1.25rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.cta-panel {
  background: var(--blue-lt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.cta-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.cta-panel p {
  margin-top: 0.7rem;
  color: var(--muted);
}

/* ── PAGE BANNER ── */
.page-banner {
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.page-banner p {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.contact-info p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.contact-info strong { color: var(--text); }

.form-group { margin-bottom: 1rem; }

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

form input, form textarea, form select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

form textarea { resize: vertical; min-height: 120px; }
form .btn { width: 100%; margin-top: 0.25rem; font-size: 0.95rem; }

.form-success {
  display: none;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-error {
  display: none;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-hidden-field {
  display: none !important;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-lt);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
}

.team-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.team-card p { font-size: 0.8rem; color: var(--muted); }

/* ── FOOTER ── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4rem;
}

footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.5rem; }
  .logo { font-size: 1.1rem; }

  .section {
    padding: 2.5rem 1.25rem;
  }

  .page-banner {
    padding: 2rem 1.25rem 1.75rem;
  }

  .cta-panel {
    padding: 1.5rem 1.25rem;
  }

  footer {
    padding: 1.25rem 1rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.35rem; }
  .hero-overlay h1 { font-size: 1.4rem; }

  .section {
    padding: 2rem 1rem;
  }
}
