/* ============================================================
   Workbench Solutions – Custom Styles & Animations
   ============================================================ */

/* ---------- Fonts & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  color: #1a2535;
  background: #ffffff;
  overflow-x: hidden;
}

/* ---------- Page Load Animations ---------- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.load-nav   { animation: fadeDown 0.5s ease 0.1s both; }
.load-hero  { animation: fadeUp  0.7s ease 0.2s both; }
.load-hero2 { animation: fadeUp  0.7s ease 0.35s both; }
.load-hero3 { animation: fadeUp  0.7s ease 0.5s both; }
.load-img   { animation: fadeIn  1s ease 0.3s both; }

/* ---------- Scroll-Trigger Animations ---------- */
.fade-in,
.slide-up,
.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in   { transform: translateY(0); }
.slide-up  { transform: translateY(50px); }
.slide-left  { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }

.animated {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(20, 61, 96, 0.08);
  border-bottom: 1px solid #DDEB9D;
}
#navbar.dark-bg {
  /* used when nav is over dark hero */
  background: transparent;
}
#navbar.dark-bg.scrolled {
  background: rgba(255, 255, 255, 0.96);
}

/* Nav links */
.nav-link {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #A0C878;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #ffffff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #ffffff; }
.nav-link.active::after { width: 100%; }

/* Scrolled state – dark links */
#navbar.scrolled .nav-link { color: rgba(20, 61, 96, 0.7); }
#navbar.scrolled .nav-link:hover { color: #143D60; }
#navbar.scrolled .nav-link.active { color: #143D60; }
#navbar.scrolled .nav-link::after { background: #27677B; }
#navbar.scrolled .nav-logo-text { color: #143D60; }

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

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

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #ffffff;
  background: #27677B;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(39, 103, 123, 0.35);
}
.btn-primary:hover {
  background: #143D60;
  box-shadow: 0 6px 24px rgba(20, 61, 96, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #143D60;
  background: transparent;
  border: 2px solid #143D60;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.btn-secondary:hover {
  background: #143D60;
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-secondary:active { transform: scale(0.97); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #ffffff;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* Ripple effect */
.ripple-btn { overflow: hidden; position: relative; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.65s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d2b42 0%, #143D60 50%, #1a5070 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
  will-change: transform;
}

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: #27677B;
  top: -150px; right: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: #A0C878;
  bottom: -100px; left: -100px;
  animation-delay: 3s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: #DDEB9D;
  top: 40%; left: 30%;
  opacity: 0.1;
  animation-delay: 5s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

/* Dot grid pattern */
.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(160,200,120,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

/* ---------- Section Spacing ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

.headline-display {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.headline-display .accent { color: #A0C878; }

.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A0C878;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #143D60;
}

.section-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4a5568;
  max-width: 580px;
}

/* ---------- Cards ---------- */
.card {
  background: #ffffff;
  border: 1px solid #DDEB9D;
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(20, 61, 96, 0.05);
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 12px 48px rgba(20, 61, 96, 0.12);
  transform: translateY(-4px);
  border-color: #A0C878;
}
.card-dark {
  background: #143D60;
  border: 1px solid rgba(160, 200, 120, 0.2);
  border-radius: 16px;
  padding: 32px;
  color: #ffffff;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(20, 61, 96, 0.15);
}
.card-dark:hover {
  box-shadow: 0 12px 48px rgba(20, 61, 96, 0.3);
  transform: translateY(-4px);
  border-color: rgba(160, 200, 120, 0.5);
}
.card-surface {
  background: #f8faf0;
  border: 1px solid #DDEB9D;
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-surface:hover {
  box-shadow: 0 8px 32px rgba(20, 61, 96, 0.08);
  transform: translateY(-3px);
}

/* 3D Tilt */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Icon Chip ---------- */
.icon-chip {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #edfbac;
  color: #27677B;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.icon-chip-dark {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(160, 200, 120, 0.15);
  color: #A0C878;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* ---------- Tags/Pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #edfbac;
  color: #27677B;
  border-radius: 99px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid > * { grid-column: 1 / -1 !important; }
}

/* ---------- Stats ---------- */
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #143D60;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.5;
}

/* ---------- Team Card ---------- */
.team-card {
  background: #ffffff;
  border: 1px solid #DDEB9D;
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(20, 61, 96, 0.06);
}
.team-card:hover {
  box-shadow: 0 16px 48px rgba(20, 61, 96, 0.14);
  transform: translateY(-6px);
  border-color: #A0C878;
}
.team-card-img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card-img { transform: scale(1.04); }
.team-card-body { padding: 24px; }
.team-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #143D60;
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #27677B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4a5568;
}

/* ---------- Process Stepper ---------- */
.stepper { position: relative; }
.step-item {
  display: flex;
  gap: 32px;
  padding-bottom: 56px;
  position: relative;
}
.step-item:last-child { padding-bottom: 0; }

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #143D60;
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(20, 61, 96, 0.25);
}
.step-item.active .step-number,
.step-item:hover .step-number {
  background: #27677B;
  transform: scale(1.1);
}
.step-line {
  width: 2px;
  flex: 1;
  background: #DDEB9D;
  margin: 6px 0;
  position: relative;
  min-height: 40px;
  overflow: hidden;
}
.step-line-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, #A0C878, #27677B);
  transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}
.step-item.animated .step-line-fill { height: 100%; }

.step-content { padding-top: 12px; }
.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #143D60;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4a5568;
}

/* ---------- Contact Form ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 61, 96, 0.65);
}
.form-input {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  background: #ffffff;
  border: 1.5px solid #DDEB9D;
  border-radius: 10px;
  padding: 12px 16px;
  color: #143D60;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.form-input::placeholder { color: rgba(20, 61, 96, 0.35); }
.form-input:focus {
  border-color: #27677B;
  box-shadow: 0 0 0 3px rgba(39, 103, 123, 0.12);
}
.form-input.error { border-color: #e53e3e; }

/* ---------- Footer ---------- */
.footer {
  background: #0d2b42;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #A0C878; }
.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 40px 0 24px;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  display: none;
  background: rgba(13, 43, 66, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(221,235,157,0.15);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
#mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-link {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: #A0C878; }
.mobile-nav-link.active { color: #A0C878; }

/* Hamburger */
.hamburger {
  width: 28px; height: 20px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none; border: none; padding: 0;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#navbar.scrolled .hamburger span { background: #143D60; }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #143D60 0%, #27677B 100%);
  border-radius: 20px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: #A0C878;
  border-radius: 50%;
  opacity: 0.08;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: #DDEB9D;
  border-radius: 50%;
  opacity: 0.06;
}
@media (max-width: 768px) {
  .cta-banner { padding: 40px 24px; }
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .headline-display {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
  .bento-grid { gap: 16px; }
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* ---------- Subpage Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, #0d2b42 0%, #143D60 60%, #1a5070 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero .dot-pattern { opacity: 0.4; }
.page-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.7;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #A0C878; }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* ---------- Legal Pages ---------- */
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #143D60;
  margin: 40px 0 12px;
}
.legal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #143D60;
  margin: 28px 0 8px;
}
.legal-content p { margin-bottom: 16px; line-height: 1.75; color: #374151; }
.legal-content a { color: #27677B; text-decoration: underline; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 6px; line-height: 1.7; color: #374151; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
