/* ============================================================
   Northwind Consulting — styles.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #1a2744;
  --navy-dark:  #111c36;
  --slate:      #4a5568;
  --teal:       #5a9fc2;
  --teal-light: #6aaccc;
  --bg:         #f7f8fa;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --text:       #2d3748;
  --text-light: #718096;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12);

  --radius:     10px;
  --radius-lg:  16px;

  --max-w:      1140px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--teal-light); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-icon img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -.2px;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-logo:hover { opacity: .88; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--slate);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--bg);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
}
.nav-cta:hover {
  background: var(--teal-light) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a5f 100%);
  color: var(--white);
  padding: 100px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(58,140,140,.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section Wrapper ---------- */
.section {
  padding: 88px 0;
}
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-header p {
  margin-top: 12px;
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  background: rgba(58,140,140,.12);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ---------- Service Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(58,140,140,.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(90,159,194,.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--teal); }

.card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.card p {
  font-size: .93rem;
  line-height: 1.65;
}

/* ---------- Why Northwind ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pillar-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(58,140,140,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.pillar-icon svg { width: 22px; height: 22px; stroke: var(--teal); }
.pillar-text h3 { margin-bottom: 6px; font-size: 1rem; }
.pillar-text p  { font-size: .9rem; }

/* ---------- Outcomes ---------- */
.outcomes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.outcome-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.outcome-item .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
  margin-top: 2px;
}

.outcome-item p { font-size: .95rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,.75); margin-bottom: 36px; font-size: 1.05rem; }

/* ---------- Services Page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }

.service-label {
  position: sticky;
  top: 88px;
}

.service-label .service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.service-label h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.service-outcomes {
  margin-top: 20px;
}

.service-outcomes h4 {
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}

.service-outcomes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-outcomes li {
  font-size: .9rem;
  color: var(--slate);
  padding-left: 18px;
  position: relative;
}
.service-outcomes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
}

.service-detail p {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* ---------- About Page ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-intro h2 { margin-bottom: 20px; }
.about-intro p  { margin-bottom: 16px; }

.about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.about-visual h3 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
}

.stat-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.philosophy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.philosophy-card:hover { box-shadow: var(--shadow-md); }
.philosophy-card .icon { font-size: 2rem; margin-bottom: 14px; }
.philosophy-card h3 { margin-bottom: 8px; font-size: 1rem; }
.philosophy-card p { font-size: .9rem; }

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.tech-tag:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tech-tag .icon { font-size: 1.1rem; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 28px; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item .ci-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(58,140,140,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: .85rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.contact-item p { font-size: .92rem; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(58,140,140,.12);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: .82rem;
  color: var(--text-light);
  margin-top: -12px;
  margin-bottom: 20px;
}

.form-success {
  display: none;
  background: rgba(58,140,140,.1);
  border: 1px solid rgba(58,140,140,.3);
  color: var(--teal);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .95rem;
  text-align: center;
  margin-top: 16px;
}
.form-success.visible { display: block; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 72px 0 68px;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-hero p {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  display: inline-flex;
  margin-bottom: 14px;
}
.footer-brand .logo-icon {
  background: rgba(255,255,255,.92);
  border-radius: 10px;
  padding: 6px;
}
.footer-brand .logo-icon img {
  height: 48px;
}
.footer-brand .nav-logo-text {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  max-width: 260px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: .78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}

/* ---------- Tools Strip ---------- */
.tools-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.tools-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tools-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-badge {
  display: inline-block;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .1px;
}

/* ---------- Who We Help ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.help-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.help-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(90,159,194,.3);
}

.help-icon {
  width: 48px;
  height: 48px;
  background: rgba(90,159,194,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.help-icon svg { width: 22px; height: 22px; stroke: var(--teal); }

.help-card h3 { font-size: 1rem; margin-bottom: 14px; }

.help-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.help-list li {
  font-size: .88rem;
  color: var(--slate);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.help-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Case Studies ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  padding: 28px 32px;
}

.case-label {
  display: inline-block;
  background: rgba(90,159,194,.25);
  color: var(--teal-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.case-header h3 {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.4;
}

.case-body {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-section h4 {
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
}
.case-section p { font-size: .92rem; line-height: 1.65; }

.case-metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: auto;
}

.case-metric {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.case-metric:last-child { border-right: none; }

.metric-num {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-label {
  display: block;
  font-size: .72rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* ---------- Contact: What Happens Next ---------- */
.next-steps {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.steps-heading {
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 18px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 1px;
}
.steps-list strong {
  display: block;
  font-size: .92rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
}
.steps-list p {
  font-size: .85rem;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-label { position: static; }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 11px 14px; }

  .nav-toggle { display: flex; }

  .section { padding: 64px 0; }
  .hero    { padding: 72px 0 68px; }

  .cards-grid        { grid-template-columns: 1fr; }
  .pillars-grid      { grid-template-columns: 1fr; }
  .outcomes-list     { grid-template-columns: 1fr; }
  .philosophy-grid   { grid-template-columns: 1fr; }
  .help-grid         { grid-template-columns: 1fr; }
  .case-grid         { grid-template-columns: 1fr; }
  .tools-strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .case-metrics      { flex-wrap: wrap; }
  .case-metric       { min-width: 33%; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-card { padding: 28px 22px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
