/* SDE Tech — static site styles
   Palette: deep blue #1E3A8A, slate #475569, light gray section #F1F5F9
   Type: Inter (Google Fonts), 400 + 600
   Base: 4px spacing scale, 16px body, 1.6 line-height                       */

:root {
  --blue: #1E3A8A;
  --blue-hover: #1E40AF;
  --slate: #475569;
  --slate-dark: #0F172A;
  --slate-muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F1F5F9;
  --border: #E2E8F0;
  --max-width: 1200px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--blue-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-dark);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; margin-top: 40px; }
h3 { font-size: 20px; margin-top: 32px; }
h4 { font-size: 18px; }

p { margin: 0 0 16px 0; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 16px 0; padding-left: 24px; }
li { margin-bottom: 8px; }

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

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

.muted { color: var(--slate-muted); }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand img {
  height: 40px;
  width: auto;
}
.brand { display: inline-block; line-height: 0; }

.nav-toggle, .nav-toggle-label { display: none; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.primary-nav a {
  color: var(--slate-dark);
  font-weight: 600;
  font-size: 15px;
}
.primary-nav a:hover { color: var(--blue); text-decoration: none; }
.primary-nav a.active { color: var(--blue); }

/* Mobile nav (CSS-only checkbox hack) */
@media (max-width: 880px) {
  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
  }
  .nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-dark);
    border-radius: 2px;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    align-items: stretch;
  }
  .primary-nav li { margin: 0; border-bottom: 1px solid var(--border); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a {
    display: block;
    padding: 14px 0;
  }
  .nav-toggle:checked ~ .primary-nav { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: #ffffff;
  padding: 96px 0 80px;
}
.hero h1 {
  color: #ffffff;
  font-size: 48px;
  max-width: 880px;
  margin-bottom: 20px;
}
.hero p.lead {
  color: #DBEAFE;
  font-size: 19px;
  max-width: 720px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  background: #ffffff;
  color: var(--blue);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: #F1F5F9; color: var(--blue-hover); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--blue-hover); color: #ffffff; }

/* ---------- Page title (non-home) ---------- */

.page-title {
  background: var(--bg-alt);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-title h1 { margin-bottom: 8px; }
.page-title .breadcrumbs {
  font-size: 14px;
  color: var(--slate-muted);
}
.page-title .breadcrumbs a { color: var(--slate-muted); }
.page-title .breadcrumbs a:hover { color: var(--blue); }

/* ---------- Generic content section ---------- */

.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section h2:first-child { margin-top: 0; }

article.prose {
  max-width: 760px;
  margin: 0 auto;
}
article.prose ul li { margin-bottom: 6px; }

/* ---------- Service tiles (homepage) ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; }
}
.tile {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--slate-dark);
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.tile:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
  text-decoration: none;
}
.tile .icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 16px;
}
.tile h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}
.tile p {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
}

/* ---------- Service-page two-column lists ---------- */

.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}
@media (max-width: 880px) {
  .col-grid { grid-template-columns: 1fr; }
}
.col-grid .col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.col-grid .col h3 {
  margin-top: 0;
  font-size: 18px;
  color: var(--blue);
}
.col-grid .col ul { margin-bottom: 0; }

/* ---------- Two-column ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Process steps (software-development) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step .step-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step h3 { margin-top: 0; font-size: 20px; }

/* ---------- About teaser / CTA blocks ---------- */

.cta-band {
  background: var(--blue);
  color: #ffffff;
  padding: 56px 0;
}
.cta-band h2 { color: #ffffff; margin-top: 0; }
.cta-band p { color: #DBEAFE; max-width: 640px; }

.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) { .about-teaser { grid-template-columns: 1fr; } }
.about-teaser .teaser-card {
  background: var(--bg-alt);
  padding: 32px;
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
}

/* ---------- Team grid ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.team-card .photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-muted);
  font-size: 12px;
  margin-bottom: 16px;
}
.team-card h3 { margin: 0 0 4px 0; }
.team-card .role {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { margin-top: 0; }
.info-card .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.info-card .value { margin-bottom: 16px; }

form.contact-form .field { margin-bottom: 16px; }
form.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--slate-dark);
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
  color: var(--slate-dark);
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form .help {
  font-size: 13px;
  color: var(--slate-muted);
  margin-top: 6px;
}

iframe.map {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate-dark);
  color: #CBD5E1;
  padding: 56px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #ffffff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}
.site-footer p { margin: 0 0 8px 0; line-height: 1.5; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }

.partner-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.partner-badges a { display: inline-block; line-height: 0; }
.partner-badges img {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 8px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 40px;
  padding-top: 24px;
  font-size: 14px;
  color: #94A3B8;
}

/* ---------- Compliance pages (long-form text) ---------- */

.legal { padding: 56px 0 80px; }
.legal article { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal .updated {
  color: var(--slate-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ---------- Skip link (a11y) ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 1000;
}
