/* ==========================================================
   style.css
   One shared stylesheet for every page. Keeping CSS in its own
   file (instead of inline <style> on each page) means:
   - The browser caches it once and reuses it across pages (faster).
   - We only have one place to update the look of the whole site.
   ========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6fb;
  --color-navy: #0f172a;
  --color-navy-light: #1e293b;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --radius: 12px;
  --max-width: 1160px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  /* The logo artwork was designed on a dark background (white sub-text
     becomes invisible on white), so we give it a small navy "badge" to
     sit on instead of dropping it straight onto the white header. */
  background: var(--color-navy);
  padding: 10px 16px;
  border-radius: 10px;
}

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

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
}

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

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 12px;
  line-height: 1.15;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  color: #cbd5e1;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #d97f06;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  margin-left: 12px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat h2 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--color-accent);
}

.stat p {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header .kicker {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 8px 0 12px;
  color: var(--color-navy);
}

.section-header p {
  color: var(--color-text-muted);
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin: 12px 0 8px;
  color: var(--color-navy);
}

.card p {
  color: var(--color-text-muted);
  margin: 0;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial p.quote {
  font-style: italic;
  color: var(--color-text);
}

.testimonial .author {
  margin-top: 16px;
  font-weight: 700;
  color: var(--color-navy);
}

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

.testimonial .client-logo {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.testimonial .client-logo img {
  max-height: 56px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

/* ---------- Forms ---------- */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  font-weight: 600;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #cbd5e1;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
