/* ========== Custom Properties ========== */
:root {
  --color-midnight: #0a2540;
  --color-mint: #2fb377;
  --color-mint-light: #7dd3ac;
  --color-sand: #faf5ed;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

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

body {
  overflow-x: hidden;
}

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

/* ========== Label Text ========== */
.label-text {
  letter-spacing: 0.15em;
}

/* ========== Input Fields ========== */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e8e0d4;
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-midnight);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.input-field:focus {
  border-color: var(--color-mint);
  box-shadow: 0 0 0 3px rgba(47, 179, 119, 0.1);
}

.input-field::placeholder {
  color: #b0a898;
}

/* ========== Primary Button ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-midnight);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(47, 179, 119, 0.3);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translate(4px, -4px);
}

/* ========== CTA Primary ========== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-mint);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 3.5rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 3.5rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.cta-primary:hover::before {
  transform: scaleX(1);
}

.cta-primary span,
.cta-primary .cta-arrow {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.cta-primary:hover span,
.cta-primary:hover .cta-arrow {
  color: var(--color-midnight);
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-primary:hover {
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ========== CTA Secondary ========== */
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 3.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ========== Nav ========== */
.nav-link {
  position: relative;
}

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

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

/* ========== Mobile Menu ========== */
.mobile-link {
  text-decoration: none;
}

/* ========== Scroll Indicator ========== */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ========== Hero Animations ========== */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-headline {
  opacity: 0;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Stat Counter ========== */
.stat-number {
  display: block;
}

/* ========== Service Card ========== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Testimonial Card ========== */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Navbar Scroll State ========== */
.nav-scrolled {
  background: rgba(253, 252, 250, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

.nav-scrolled .nav-link {
  color: var(--color-midnight);
}

.nav-scrolled .mobile-menu-bg {
  background: rgba(253, 252, 250, 0.98) !important;
}

/* ========== Mobile Menu Active ========== */
.mobile-menu-open #mobileMenu {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

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

  .stat-item {
    padding: 1.5rem 1rem !important;
  }

  .stat-number {
    font-size: 2.25rem !important;
  }

  .stat-item p {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.75rem;
  }

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

  .cta-primary, .cta-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}
