/* ==========================================================================
   Walden Ltd - Main Stylesheet
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}

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

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: #0f172a;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: #1e3a5f;
  color: #ffffff;
  border-color: #1e3a5f;
}

.btn-primary:hover {
  background-color: #15294a;
  border-color: #15294a;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: #1e3a5f;
  border-color: #1e3a5f;
}

.btn-secondary:hover {
  background-color: #1e3a5f;
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: #0f172a;
}

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

.nav-links a {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0f172a;
}

.nav-cta {
  padding: 8px 20px;
  background-color: #1e3a5f;
  color: #ffffff !important;
  border-radius: 6px;
}

.nav-cta:hover {
  background-color: #15294a;
  color: #ffffff !important;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0f172a;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding: 160px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #0f172a;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1e3a5f;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* --- Sections --- */
.section {
  padding: 96px 0;
}

.section-alt {
  background-color: #f8fafc;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.section-lead {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

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

.about-text p {
  color: #334155;
  font-size: 1.05rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.highlight-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 4px;
}

.highlight-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* --- Consulting --- */
.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
}

.card h3 {
  color: #1e3a5f;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
}

.consulting-cta {
  text-align: center;
}

/* --- ClearOps --- */
.clearops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.clearops-feature {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
}

.clearops-feature h3 {
  color: #1e3a5f;
}

.clearops-feature p {
  color: #475569;
  font-size: 0.95rem;
}

.clearops-pilot {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 24px 32px;
  text-align: center;
  color: #0c4a6e;
  font-size: 0.95rem;
}

/* --- Approach / IFFAF --- */
.approach-content {
  max-width: 860px;
  margin: 0 auto;
}

.approach-content > p {
  text-align: center;
  color: #475569;
  font-size: 1.05rem;
}

.approach-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.pillar {
  text-align: center;
  padding: 32px 24px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1e3a5f;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pillar h3 {
  color: #1e3a5f;
}

.pillar p {
  color: #475569;
  font-size: 0.9rem;
}

.approach-note {
  text-align: center;
  color: #64748b;
  font-style: italic;
  margin-bottom: 32px;
}

.approach-cta {
  text-align: center;
}

/* --- WaldenAI --- */
.waldenai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.waldenai-feature {
  text-align: center;
  padding: 32px 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.waldenai-feature h3 {
  color: #1e3a5f;
  font-size: 1.1rem;
}

.waldenai-feature p {
  color: #475569;
  font-size: 0.9rem;
}

/* --- Contact --- */
.contact-section {
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-detail {
  color: #334155;
  font-size: 1rem;
}

.contact-detail a {
  color: #1e3a5f;
  font-weight: 500;
}

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

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.footer-logo {
  font-weight: 700;
  color: #0f172a;
}

.footer-divider {
  color: #cbd5e1;
}

.footer-right a {
  color: #64748b;
  font-size: 0.9rem;
}

.footer-right a:hover {
  color: #1e3a5f;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.modal > p {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: #0f172a;
}

/* --- Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1a1a2e;
  transition: border-color 0.2s ease;
  background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

  .about-highlights {
    flex-direction: row;
  }

  .highlight-card {
    flex: 1;
  }

  .waldenai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #ffffff;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

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

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .section {
    padding: 64px 0;
  }

  h2 {
    font-size: 1.65rem;
  }

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

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

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

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

  .about-highlights {
    flex-direction: column;
  }

  .contact-info {
    flex-direction: column;
    gap: 16px;
  }

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

  .footer-left {
    flex-direction: column;
    gap: 4px;
  }

  .footer-divider {
    display: none;
  }

  .modal {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .contact-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
