/* Base styles and design tokens */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #edf2f8;
  --text: #1b2430;
  --muted: #4d5d6d;
  --primary: #1f4e79;
  --primary-dark: #173a5a;
  --accent: #2f6a9d;
  --border: #d8e0ea;
  --highlight-bg: #e8eef7;
  --shadow: 0 8px 24px rgba(14, 32, 52, 0.08);
  --radius: 14px;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.55rem;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.16rem;
  margin-bottom: 0.7rem;
}

p {
  margin: 0 0 0.95rem;
}

/* Header and nav styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.05rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 1.1rem;
}

/* Hero styles */
.hero {
  padding-top: 5rem;
}

.hero-content {
  max-width: 890px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-support {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 74ch;
  color: var(--muted);
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.68rem 1.05rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(10, 25, 45, 0.15);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--accent);
  color: #fff;
}

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

/* Grids and cards */
.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.capability-card,
.highlight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.capability-card p,
.highlight-card p {
  color: var(--muted);
}

.capability-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.highlights {
  background: var(--highlight-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.highlights h2 {
  margin-bottom: 1rem;
}

.expertise-grid,
.experience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.platform-grid,
.industry-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.industry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-grid li,
.industry-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: center;
  padding: 0.68rem 0.75rem;
  font-weight: 600;
}

/* Contact and footer */
.contact p {
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.contact-list span {
  font-weight: 700;
  margin-right: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  background: var(--surface);
  color: var(--muted);
}

/* Responsive behavior */
@media (max-width: 980px) {
  .expertise-grid,
  .experience-grid,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .section {
    padding: 3.45rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 70px;
    width: min(250px, 90vw);
    padding: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0.55rem;
  }

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

  .hero {
    padding-top: 4.1rem;
  }

  .highlights-grid,
  .expertise-grid,
  .experience-grid,
  .platform-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* About page styles */
.about-hero {
  padding-top: 5rem;
}

.about-intro {
  max-width: 900px;
}

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

.is-active {
  color: var(--primary) !important;
}

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