/* ============================================
   W2C IT Solutions — Enterprise Consulting
   Design System: Dark Enterprise
   Domain: w2citsolutions.com
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0d0f12;
  color: #e6edf3;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: #e6edf3;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }
h4 { font-size: 16px; font-weight: 500; }

p { color: #8b949e; line-height: 1.75; }

a { color: #3fb950; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #58d87a; }

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  background: #1f2428;
  color: #79c0ff;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #21262d;
}

strong { color: #e6edf3; font-weight: 600; }

blockquote {
  border-left: 3px solid #3fb950;
  padding-left: 24px;
  margin: 32px 0;
  font-size: clamp(17px, 2.2vw, 22px);
  font-style: italic;
  color: #e6edf3;
}

blockquote p { color: #e6edf3; }
blockquote .quote-support { font-style: normal; font-size: 15px; color: #8b949e; margin-top: 10px; }

/* === LAYOUT === */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section.section--dark { background: #0d0f12; }
section.section--surface { background: #161b22; }
section.section--border { border-top: 1px solid #21262d; }

/* === EYEBROW LABEL === */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3fb950;
  margin-bottom: 16px;
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #21262d;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: #e6edf3;
  letter-spacing: -0.01em;
}

.nav-logo span { color: #3fb950; }

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

.nav-links a {
  font-size: 14px;
  color: #8b949e;
  font-weight: 400;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active { color: #e6edf3; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #3fb950 !important;
  border: 1px solid #21262d;
  padding: 6px 14px;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

.nav-cta:hover { background: #161b22 !important; border-color: #3fb950 !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #8b949e;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: #161b22;
  border-top: 1px solid #21262d;
  padding: 16px 24px 24px;
  gap: 4px;
}

.nav-mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: #8b949e;
  border-bottom: 1px solid #21262d;
}

.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu.open { display: flex; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: #3fb950;
  color: #0d0f12;
  border-color: #3fb950;
}

.btn-primary:hover { background: #2ea043; border-color: #2ea043; color: #0d0f12; }

.btn-secondary {
  background: transparent;
  color: #e6edf3;
  border-color: #30363d;
}

.btn-secondary:hover { background: #161b22; border-color: #484f58; color: #e6edf3; }

.btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* === HERO === */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(63, 185, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.25);
  color: #3fb950;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #3fb950;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 24px; max-width: 800px; }
.hero h1 span { color: #3fb950; }

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: #8b949e;
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 8px;
}

.hero-support {
  font-size: 14px;
  color: #6e7681;
  max-width: 560px;
  margin-bottom: 0;
}

/* Tech Tags Strip */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #21262d;
}

.tech-tag {
  font-size: 12px;
  font-weight: 500;
  color: #6e7681;
  background: #161b22;
  border: 1px solid #21262d;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* === CARDS === */
.card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #3fb950;
  transform: translateY(-2px);
}

.card-domain {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3fb950;
  margin-bottom: 12px;
  display: block;
}

.card h3 { margin-bottom: 12px; font-size: 18px; }
.card p { font-size: 14px; line-height: 1.65; margin-bottom: 16px; }

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.card-tech span {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: #1f2428;
  color: #79c0ff;
  border: 1px solid #21262d;
  padding: 2px 8px;
  border-radius: 3px;
}

/* Metrics table inside card */
.metrics-mini {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

.metrics-mini td {
  padding: 5px 0;
  border-bottom: 1px solid #21262d;
  color: #8b949e;
}

.metrics-mini td:last-child {
  text-align: right;
  color: #3fb950;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.metrics-mini tr:last-child td { border-bottom: none; }

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: #3fb950;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease;
}

.card-link:hover { gap: 10px; color: #58d87a; }

/* === GRID LAYOUTS === */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

/* === FOCUS AREA CARDS === */
.focus-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 24px;
  border-top: 2px solid #3fb950;
}

.focus-card h3 { font-size: 16px; margin-bottom: 10px; }
.focus-card p { font-size: 14px; }

/* === PHILOSOPHY SECTION === */
.philosophy-section { background: #0d1117; }

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.philosophy-item {
  padding: 40px;
  border: 1px solid #21262d;
  margin: -1px 0 0 -1px;
}

.philosophy-item blockquote {
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 12px 0;
  padding-left: 18px;
  border-left-width: 2px;
}

.philosophy-item p { font-size: 14px; padding-left: 20px; color: #6e7681; margin: 0; }

/* === SECTION HEADER === */
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; font-size: 16px; }

/* === PAGE HERO === */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid #21262d;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 17px; max-width: 600px; }

/* === ABOUT PAGE === */
.about-block { margin-bottom: 40px; }
.about-block h3 { margin-bottom: 12px; color: #e6edf3; }
.about-block p { font-size: 15px; }

.expertise-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.expertise-list li {
  font-size: 14px;
  color: #8b949e;
  padding-left: 16px;
  position: relative;
}

.expertise-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #3fb950;
  font-size: 12px;
}

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 32px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #e6edf3;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #0d0f12;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 10px 14px;
  color: #e6edf3;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #3fb950;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.1);
}

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

.form-group select option { background: #161b22; }

.form-required { color: #3fb950; margin-left: 2px; }

.contact-info h3 { font-size: 18px; margin-bottom: 16px; }
.contact-info p { font-size: 15px; margin-bottom: 24px; }

.contact-list { list-style: none; }
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid #21262d;
  font-size: 14px;
  color: #8b949e;
}
.contact-list li strong { color: #e6edf3; display: block; margin-bottom: 4px; }
.contact-list li:last-child { border-bottom: none; }

/* === PATTERNS PAGE === */
.pattern-block {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 20px;
}

.pattern-block h3 { font-size: 16px; margin-bottom: 4px; }

.pattern-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
}

.pattern-type.anti { background: rgba(248, 81, 73, 0.1); color: #f85149; border: 1px solid rgba(248, 81, 73, 0.25); }
.pattern-type.good { background: rgba(63, 185, 80, 0.1); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.25); }

.pattern-block p { font-size: 14px; }

/* === GOVERNANCE PAGE === */
.phase-list { counter-reset: phases; list-style: none; }
.phase-item {
  counter-increment: phases;
  padding: 24px;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.phase-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #3fb950;
  font-family: 'JetBrains Mono', monospace;
}

.phase-content h4 { margin-bottom: 4px; }
.phase-content p { font-size: 14px; }

/* SLA Table */
.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 24px;
}

.sla-table th {
  text-align: left;
  padding: 12px 16px;
  background: #161b22;
  border: 1px solid #21262d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7681;
}

.sla-table td {
  padding: 12px 16px;
  border: 1px solid #21262d;
  color: #8b949e;
}

.sla-table tr:hover td { background: #161b22; }
.tier-1 { color: #f85149; font-weight: 600; }
.tier-2 { color: #d29922; font-weight: 600; }
.tier-3 { color: #58a6ff; font-weight: 600; }

/* === CTA BLOCK === */
.cta-block {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  margin-top: 64px;
}

.cta-block h2 { margin-bottom: 16px; font-size: 26px; }
.cta-block p { margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-block .btn-group { justify-content: center; }

/* === FOOTER === */
footer {
  background: #0d1117;
  border-top: 1px solid #21262d;
  padding: 48px 0 32px;
}

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

.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 280px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e7681;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #8b949e; }
.footer-col ul li a:hover { color: #e6edf3; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #21262d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 13px; color: #6e7681; margin: 0; }
.footer-bottom a { font-size: 13px; color: #6e7681; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .page-hero { padding: 48px 0 32px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-item { padding: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .expertise-list { grid-template-columns: 1fr; }
  .cta-block { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container, .container--wide { padding: 0 16px; }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* === UTILITY === */
.text-center { text-align: center; }
.text-muted { color: #6e7681 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

/* Active page indicator */
.page-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6e7681;
  margin-bottom: 12px;
}

.page-indicator a { color: #6e7681; }
.page-indicator a:hover { color: #e6edf3; }
.page-indicator span { color: #3fb950; }
