/* ============================================
   DekaBridge — AI Transformation Consulting
   AI-Native Services Delivery Model
   Brand Colors & Design System
   ============================================ */

:root {
  /* Brand palette */
  --dark: #0D0E0E;
  --blue-logo: #003E7C;
  --blue-mid: #0063C6;
  --purple: #1600A7;
  --orange: #FF6B3D;
  --green: #109887;

  /* Background tints (15% opacity equivalents on white) */
  --blue-bg: #E3EEF8;
  --purple-bg: #E8E5F3;
  --green-bg: #E3F2F0;

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #F8F7F4;
  --muted: #5A6170;
  --border: #E2E0DC;

  /* Typography */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 6rem);
  --container-max: 1200px;
  --nav-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 65ch;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-mid);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--blue-mid);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--blue-logo);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 62, 124, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-logo);
  border: 2px solid var(--blue-logo);
}

.btn-secondary:hover {
  background: var(--blue-logo);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-logo);
}

.btn-white:hover {
  background: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--blue-logo);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-logo);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ── HERO SECTION ── */
.hero {
  padding-top: calc(var(--nav-height) + var(--section-pad));
  padding-bottom: var(--section-pad);
  background: linear-gradient(135deg, #001A3A 0%, #003E7C 40%, #0063C6 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 99, 198, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 155, 89, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--orange);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── PROBLEM STRIP ── */
.problem-strip {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
}

.problem-strip .container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.problem-strip .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.2rem;
  flex-shrink: 0;
}

.problem-strip p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  max-width: none;
}

/* ── SERVICES / WHAT WE DO ── */
.services {
  padding: var(--section-pad) 0;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-header h2 {
  margin-bottom: 1rem;
}

.services-header p {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ── TIMELINE ── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--blue-mid);
  opacity: 0.3;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.timeline-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 8px 32px rgba(0, 62, 124, 0.08);
  transform: translateY(-2px);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.service-card .icon.blue { background: var(--blue-bg); color: var(--blue-mid); }
.service-card .icon.purple { background: var(--purple-bg); color: var(--purple); }
.service-card .icon.green { background: var(--green-bg); color: var(--green); }
.service-card .icon.orange { background: #FFF0E5; color: var(--orange); }

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
}

/* ── OUTCOMES / IMPACT ── */
.outcomes {
  padding: var(--section-pad) 0;
  background: var(--paper);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.outcome-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.outcome-item .metric {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-logo);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.outcome-item h4 {
  margin-bottom: 0.5rem;
}

.outcome-item p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* ── APPROACH / HOW WE WORK ── */
.approach {
  padding: var(--section-pad) 0;
}

.approach-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.approach-steps {
  counter-reset: step;
}

.approach-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.approach-step .step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.approach-step h4 {
  margin-bottom: 0.25rem;
}

.approach-step p {
  font-size: 0.9rem;
}

.approach-deliverables {
  background: var(--paper);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.approach-deliverables h3 {
  margin-bottom: 1.25rem;
}

.deliverable-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deliverable-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.deliverable-list li::before {
  content: '→';
  color: var(--blue-mid);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── CREDIBILITY / ABOUT SECTION ── */
.credibility {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, #001A3A 0%, #003E7C 100%);
  color: var(--white);
}

.credibility-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  min-width: 0;
}

.credibility-content > * {
  min-width: 0;
}

.credibility-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.credibility-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credibility .section-label {
  color: var(--orange);
}

.credibility .section-label::before {
  background: var(--orange);
}

.credibility h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.credibility p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  max-width: none;
}

.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.credential-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── CTA SECTION ── */
.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin: 0 auto 2rem;
}

/* ── CONTACT FORM ── */
.contact {
  padding: var(--section-pad) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-bg);
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--paper);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(0, 99, 198, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── ABOUT PAGE ── */
.page-header {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: var(--paper);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
}

.bio-section {
  padding: var(--section-pad) 0;
}

.bio-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue-bg);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-text h2 {
  margin-bottom: 0.5rem;
}

.bio-text .title {
  color: var(--blue-mid);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.bio-text p {
  margin-bottom: 1rem;
}

/* ── SERVICES PAGE ── */
.services-detail {
  padding: var(--section-pad) 0;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.service-detail-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-detail-card:nth-child(even) {
  direction: rtl;
}

.service-detail-card:nth-child(even) > * {
  direction: ltr;
}

.service-visual {
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.service-visual .big-icon {
  font-size: 4rem;
}

/* ── FRAMEWORK SECTION (Judgment vs. Intelligence) ── */
.framework {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.framework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.framework-card {
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.framework-card.intelligence {
  background: var(--blue-bg);
  border-color: rgba(0, 99, 198, 0.15);
}

.framework-card.judgment {
  background: #FFF6EF;
  border-color: rgba(255, 155, 89, 0.2);
}

.framework-card .card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.framework-card.intelligence .card-label {
  color: var(--blue-mid);
}

.framework-card.judgment .card-label {
  color: #D97B3D;
}

.framework-card h3 {
  margin-bottom: 0.75rem;
}

.framework-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.framework-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.framework-card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.framework-card.intelligence ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--blue-mid);
  font-weight: 700;
  font-family: monospace;
}

.framework-card.judgment ul li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: #D97B3D;
  font-weight: 700;
  font-family: monospace;
}

.framework-summary {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.framework-summary p {
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 500;
}

/* ── COMPOUNDING ADVANTAGE ── */
.compounding {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.compounding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.compounding-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.compounding-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.compounding-card h4 {
  margin-bottom: 0.5rem;
}

.compounding-card p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-cta {
    display: none;
  }

  .problem-strip .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0;
  }

  .timeline-number {
    margin-bottom: 0;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .approach-content {
    grid-template-columns: 1fr;
  }

  .credibility-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    max-width: 250px;
    margin: 0 auto;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .service-detail-card:nth-child(even) {
    direction: ltr;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }

  .compounding-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
