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

:root {
  --midnight-950: #020814;
  --midnight-900: #0B1D3A;
  --mint-400: #5EEAD4;
  --mint-500: #34D3B6;
  --mint-300: #9EF5E2;
  --mint-50: #F0FBF7;
  --white: #ffffff;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== Navigation ===== */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(240, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 29, 58, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 30px rgba(2, 8, 20, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--mint-500);
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-logo {
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(11, 29, 58, 0.06);
}

.nav-toggle svg {
  color: var(--midnight-950);
}

/* Mobile Menu */
.nav-mobile {
  border-top: 1px solid rgba(11, 29, 58, 0.06);
  background: rgba(240, 251, 247, 0.98);
  backdrop-filter: blur(12px);
}

.nav-mobile-link {
  border-bottom: 1px solid rgba(11, 29, 58, 0.06);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-mobile-link:hover {
  color: var(--midnight-950);
  padding-left: 8px;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--midnight-950);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: var(--midnight-900);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(2, 8, 20, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--midnight-950);
  padding: 14px 28px;
  border-radius: 4px;
  border: 1.5px solid rgba(11, 29, 58, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--midnight-950);
  background: rgba(11, 29, 58, 0.03);
  transform: translateY(-1px);
}

/* ===== Eyebrow Labels ===== */
.eyebrow-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--midnight-950);
  opacity: 0.5;
  position: relative;
  padding-left: 32px;
}

.eyebrow-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: var(--mint-500);
}

/* ===== Hero ===== */
.hero-section {
  background: var(--mint-50);
  position: relative;
  overflow: hidden;
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-image {
  transition: transform 0.8s var(--ease-out-expo);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(2, 8, 20, 0.08));
  pointer-events: none;
}

.hero-headline {
  position: relative;
}

.hero-headline::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--mint-400);
  margin-top: 24px;
}

.hero-subtitle {
  font-size: 1.0625rem;
}

.hero-actions .btn-primary {
  background: var(--midnight-950);
}

.hero-actions .btn-outline {
  border-color: rgba(11, 29, 58, 0.2);
}

/* ===== Service Cards ===== */
.service-card {
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(2, 8, 20, 0.1);
}

.service-card-img {
  overflow: hidden;
}

.service-card-img img {
  transition: transform 0.6s var(--ease-out-expo);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  border: 1px solid rgba(11, 29, 58, 0.08);
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: var(--white);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mint-50);
}

/* ===== Approach Items ===== */
.approach-item {
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.approach-item:hover {
  transform: translateX(4px);
}

/* ===== FAQ ===== */
.faq-item {
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(2, 8, 20, 0.06);
}

.faq-toggle {
  width: 100%;
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.4s var(--ease-out-expo);
}

.faq-content.open {
  max-height: 200px;
  padding-top: 0;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* ===== Contact Form ===== */
.contact-form {
  border: 1px solid rgba(11, 29, 58, 0.08);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
}

.contact-form button[type="submit"] {
  background: var(--midnight-950);
  color: var(--white);
}

.contact-form button[type="submit"]:hover {
  background: var(--midnight-900);
}

.contact-success {
  animation: fadeIn 0.4s var(--ease-out-expo);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

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

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .hero-headline {
    font-size: 2.75rem;
  }

  .hero-headline::after {
    width: 48px;
    margin-top: 16px;
  }

  .eyebrow-label {
    font-size: 0.65rem;
    padding-left: 0;
  }

  .eyebrow-label::before {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .service-card-body {
    border: 1px solid rgba(11, 29, 58, 0.08);
    border-radius: 4px;
  }

  .service-card-img {
    border-radius: 4px 4px 0 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mint-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Selection ===== */
::selection {
  background: var(--mint-400);
  color: var(--midnight-950);
}
