/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── Custom Properties ─── */
:root {
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  border-radius: 0.75rem;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.35);
}
.btn-secondary {
  transition: all var(--transition);
}
.btn-white {
  background: #fff;
  color: #0d9488;
  border-radius: 0.75rem;
  transition: all var(--transition);
}
.btn-white:hover {
  background: #f0fdfa;
  box-shadow: 0 12px 40px rgba(255,255,255,0.2);
}

/* ─── Hero ─── */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.55) 50%,
    rgba(13, 148, 136, 0.25) 100%
  );
}

.scroll-indicator {
  display: flex;
  align-items: center;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(6px) translateX(-50%); }
  60% { transform: translateY(3px) translateX(-50%); }
}

/* ─── Section shared ─── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 9999px;
  padding: 0.4em 1em;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #0f172a;
  line-height: 1.15;
}
.section-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
}

/* ─── Service Cards ─── */
.service-card {
  will-change: transform;
}
.service-card:hover .service-icon {
  background: #0d9488;
  border-color: #0d9488;
}
.service-card:hover .service-icon svg {
  color: #fff;
}

/* ─── Area Cards ─── */
.area-card-overlay {
  transition: background var(--transition);
}
.area-card:hover .area-card-overlay {
  background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.4) 60%, transparent 100%);
}
.area-card:hover img {
  transform: scale(1.1);
}

/* ─── Process Steps ─── */
.process-step {
  position: relative;
}
.process-step:hover .step-number {
  color: rgba(45, 212, 191, 0.25);
  transition: color 0.4s ease;
}

/* ─── Contact Form ─── */
.input-field {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.input-field::placeholder { color: #94a3b8; }
.input-field:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.input-field:hover:not(:focus) { border-color: #94a3b8; }

/* ─── Mobile Menu ─── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-link:last-child { border-bottom: none; }

/* ─── Animations ─── */
.hero-eyebrow,
.hero-eyebrow ~ h1,
.hero-eyebrow ~ h1 ~ p,
.hero-eyebrow ~ h1 ~ p ~ div,
.hero-eyebrow ~ h1 ~ p ~ div ~ div {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero-eyebrow ~ h1 { animation-delay: 0.25s; }
.hero-eyebrow ~ h1 ~ p { animation-delay: 0.4s; }
.hero-eyebrow ~ h1 ~ p ~ div { animation-delay: 0.55s; }
.hero-eyebrow ~ h1 ~ p ~ div ~ div { animation-delay: 0.7s; }

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

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
  .hero-eyebrow ~ h1 ~ p ~ div {
    gap: 1rem !important;
  }
  .hero-eyebrow ~ h1 ~ p ~ div > div {
    min-width: 80px;
  }
  .floating-card { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html { scroll-padding-top: 90px; }
}
