/* ===== Base & Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ===== Custom Properties ===== */
:root {
  --mint-200: #a8e6cf;
  --mint-500: #2db880;
  --mint-600: #1fa86e;
  --midnight-500: #0a2540;
  --midnight-100: #c5d5e8;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }
p, li, a, span, input, select, textarea { font-family: 'Inter', system-ui, sans-serif; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #a8e6cf 0%, #52c49a 100%);
  color: #0a2540;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 230, 207, 0.4);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 230, 207, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 60px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ===== Form Inputs ===== */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2eaf3;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #0a2540;
  background: #fff;
  transition: all 0.25s ease;
  outline: none;
}
.input-field::placeholder { color: #9fb8d8; }
.input-field:hover { border-color: #a8e6cf; }
.input-field:focus { border-color: #52c49a; box-shadow: 0 0 0 3px rgba(82, 196, 154, 0.15); }

/* ===== Scroll Indicator ===== */
.scroll-indicator { opacity: 0.7; transition: opacity 0.3s; }
.scroll-indicator:hover { opacity: 1; }

/* ===== Nav Link Underline ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #52c49a;
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }

/* ===== Mobile Menu ===== */
.menu-line { transition: all 0.3s ease; }
#menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
#menu-btn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 5px; }
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
.mobile-nav-link { transition: opacity 0.2s; }

/* ===== Hero Animations ===== */
.hero-anim { transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-anim.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ===== Reveal Animations ===== */
.reveal { transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1 !important; transform: translateY(0) translateX(0) !important; }

/* ===== Service Cards ===== */
.service-card { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ===== Navbar Scrolled ===== */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}
#navbar.scrolled .nav-link { color: #0a2540; }
#navbar.scrolled .font-display { color: #0a2540; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 0.88rem; }
}

/* ===== Selection ===== */
::selection { background: #a8e6cf; color: #0a2540; }

/* ===== Focus Visible ===== */
:focus-visible { outline: 2px solid #52c49a; outline-offset: 2px; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .hero-anim, .service-card { opacity: 1 !important; transform: none !important; }
}
