/* ==========================================================================
   Software Consulting LLC — base stylesheet
   Modern tech theme: dark navy/charcoal with a blue/teal accent
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fb;
  --color-ink: #101828;
  --color-ink-muted: #4a5568;
  --color-navy: #0b1f3a;
  --color-navy-dark: #071527;
  --color-accent: #2dd4bf;
  --color-accent-dark: #14b8a6;
  --color-blue: #3b82f6;
  --color-border: #e2e8f0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);

  --container-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--color-navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-ink-muted); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline-dark:hover { background: var(--color-navy); color: #fff; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-navy);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-ink);
  font-weight: 500;
}
.primary-nav a:hover { color: var(--color-blue); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--color-blue); }

.nav-cta {
  background: var(--color-navy);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-blue); }

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

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 80px 24px;
}

.hero h1 { color: #fff; }
.hero .eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 60ch; margin: 0 auto; }

/* Sections ------------------------------------------------------------- */

section { padding: 72px 0; }
.section-alt { background: var(--color-surface); }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--color-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

/* Grids / cards ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.12);
  margin-bottom: 18px;
}
.card-icon .icon { width: 26px; height: 26px; color: var(--color-accent-dark); }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

/* Industries strip --------------------------------------------------------- */

.industry-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--color-navy);
}
.industry-pill .icon { width: 20px; height: 20px; color: var(--color-blue); }

.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Tech stack chips --------------------------------------------------------- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Testimonials / reviews placeholder ------------------------------------ */

.testimonial-card {
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--color-ink-muted);
}
.testimonial-card .stars { color: var(--color-accent-dark); font-size: 1.1rem; margin-bottom: 10px; }
.placeholder-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-surface);
  color: var(--color-ink-muted);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* CTA band ---------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 130%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin: 0 auto 24px; }

/* Process steps ------------------------------------------------------------ */

.step {
  display: flex;
  gap: 18px;
}
.step-number {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 600; color: var(--color-navy); font-size: 0.92rem; }
.form-field input,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--color-ink-muted);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
}

.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-item .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--color-blue); }
.contact-info-item:last-child { margin-bottom: 0; }

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

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  padding: 48px 24px 32px;
  align-items: start;
}

.site-footer .brand-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.site-footer p { color: rgba(255, 255, 255, 0.65); }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-nav a { color: rgba(255, 255, 255, 0.78); }
.footer-nav a:hover { color: #fff; }

.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(255, 255, 255, 0.78); display: flex; }
.footer-social .icon { width: 22px; height: 22px; }
.footer-social a:hover { color: #fff; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; color: rgba(255, 255, 255, 0.55); }

.footer-legal-links { display: flex; gap: 20px; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.link-button:hover { color: #fff; }

/* Modals ------------------------------------------------------------------ */

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 39, 0.6);
}
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink-muted);
}
.modal-close:hover { background: var(--color-surface); }
body.modal-open { overflow: hidden; }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .primary-nav li { border-bottom: 1px solid var(--color-border); }
  .primary-nav a { display: block; padding: 14px 0; }
  .nav-cta { display: inline-block; margin-top: 10px; text-align: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}
