:root {
  --teal: #007074;
  --teal-dark: #005a5e;
  --orange: #f58220;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-feature-settings: "cv01", "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-a {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 112, 116, 0.14), transparent 70%);
  top: -100px;
  right: -60px;
}

.hero-orb-b {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 70% 60%, rgba(245, 130, 32, 0.12), transparent 70%);
  bottom: -100px;
  left: -60px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(#007074 1px, transparent 1px),
    linear-gradient(90deg, #007074 1px, transparent 1px);
  background-size: 52px 52px;
}

.text-gradient {
  background: linear-gradient(100deg, #007074 10%, #12888e 45%, #f58220 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--teal);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 9999px;
  background: var(--teal);
  transition: width 0.22s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--teal);
}

.btn-primary {
  background: linear-gradient(110deg, var(--teal), var(--teal-dark));
  box-shadow: 0 18px 34px -20px rgba(0, 112, 116, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px -20px rgba(0, 112, 116, 0.9);
  filter: saturate(1.1);
}

.stat-divider {
  width: 1px;
  height: 2rem;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.4), transparent);
  display: none;
}

@media (min-width: 640px) {
  .stat-divider {
    display: block;
  }
}

.scroll-dot {
  animation: floatDot 1.8s ease-in-out infinite;
}

@keyframes floatDot {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.service-card {
  position: relative;
  border-radius: 2rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 26px 52px -26px rgba(15, 23, 42, 0.45);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 112, 116, 0.07), rgba(245, 130, 32, 0.07));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card>* {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-image: linear-gradient(135deg, var(--tw-gradient-stops));
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  padding: 0.22rem 0.6rem;
  background-image: linear-gradient(100deg, var(--tw-gradient-stops));
}

.feature-pill {
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 1.5rem;
  text-align: center;
  padding: 1.6rem 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 112, 116, 0.3);
}

.stat-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, rgba(0, 112, 116, 0.35), rgba(245, 130, 32, 0.2));
}

.stat-value {
  color: #fff;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.brand-marquee {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.7rem;
  animation: marquee 22s linear infinite;
}

.brand-item {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 0.95rem;
  letter-spacing: 0.01em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: start;
  }
}

.process-line {
  display: none;
}

@media (min-width: 768px) {
  .process-line {
    display: block;
    position: absolute;
    top: 2rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    opacity: 0.18;
    z-index: 0;
    border-radius: 2px;
  }
}

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

.process-step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, var(--tw-gradient-stops));
  box-shadow: 0 10px 28px -12px rgba(0, 112, 116, 0.55);
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
}

.process-step-num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.4rem;
  opacity: 0.65;
  text-transform: uppercase;
}

.process-step-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.process-step-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 20ch;
}

.form-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #fff;
  padding: 0.75rem 1rem;
  transition: outline 0.2s ease, border-color 0.2s ease;
  outline: 2px solid transparent;
}

.form-input:focus {
  outline-color: rgba(0, 112, 116, 0.3);
  border-color: var(--teal);
}

.form-success {
  border: none;
  background: linear-gradient(130deg, #007074, #005a5e);
  color: #fff;
  text-align: center;
  padding: 2.8rem 2rem;
  animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-link {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  color: #fff;
  background: rgba(0, 112, 116, 0.2);
  border-color: rgba(0, 112, 116, 0.4);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 {
  transition-delay: 100ms;
}

.reveal-delay-200 {
  transition-delay: 200ms;
}

.reveal-delay-300 {
  transition-delay: 300ms;
}

.reveal-delay-400 {
  transition-delay: 400ms;
}

.reveal-delay-500 {
  transition-delay: 500ms;
}

/* Form alert styles */
.form-alert {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.form-alert-success {
  background: rgba(0, 112, 116, 0.1);
  border: 1px solid rgba(0, 112, 116, 0.3);
  color: #007074;
}

.form-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.form-popup {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.form-popup-overlay.active .form-popup {
  transform: scale(1) translateY(0);
}

.form-popup-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: popupPulse 0.6s ease-out;
}

.form-popup-icon i {
  font-size: 2rem;
  color: #fff;
}

.form-popup h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0c2d48;
  margin-bottom: 8px;
}

.form-popup p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.form-popup-timer {
  width: 100%;
  height: 4px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.form-popup-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #01929e, #f15a24);
  border-radius: 4px;
  width: 100%;
  animation: popupTimer 5s linear forwards;
}

@keyframes popupPulse {
  0% {
    transform: scale(0)
  }

  50% {
    transform: scale(1.15)
  }

  100% {
    transform: scale(1)
  }
}

@keyframes popupTimer {
  from {
    width: 100%
  }

  to {
    width: 0%
  }
}

.form-popup-overlay.error .form-popup-icon {
  background: linear-gradient(135deg, #e74c5e, #c0392b);
}

form.form-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   Multipage additions - built only from the tokens above.
   ------------------------------------------------------------------ */

/* Current page in the nav: same teal + underline as the hover state */
.nav-link.is-active {
  color: var(--teal);
}

.nav-link.is-active::after {
  width: 100%;
}

.mobile-link.is-active {
  color: var(--teal);
}

/* Services dropdown (desktop hover / keyboard focus) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 21rem;
  padding-top: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-panel {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(2, 8, 23, 0.35);
}

.nav-dropdown-list {
  padding: 0.375rem;
}

/* One row per service: outlined icon, title, one-line description */
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  transition: background 0.2s ease;
}

/* Hover gets the background; the current page is marked by teal text/icon only,
   so two rows never look selected at once. */
.nav-dropdown-item:hover {
  background: #f8fafc;
}

.nav-dropdown-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  color: #64748b;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon,
.nav-dropdown-item.is-active .nav-dropdown-icon {
  border-color: rgba(0, 112, 116, 0.25);
  background: rgba(0, 112, 116, 0.06);
  color: var(--teal);
}

.nav-dropdown-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: #0f172a;
  transition: color 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-title,
.nav-dropdown-item.is-active .nav-dropdown-title {
  color: var(--teal);
}

.nav-dropdown-desc {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #64748b;
}

.nav-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-chevron,
.mobile-submenu-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* Filter tabs on /work: the chip pill, with the primary teal when active */
.filter-tab {
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-tab:hover {
  color: var(--teal);
  border-color: rgba(0, 112, 116, 0.3);
}

.filter-tab.is-active {
  background: linear-gradient(110deg, var(--teal), var(--teal-dark));
  border-color: transparent;
  color: #fff;
}
