/* ===== VARIABLES ===== */
:root {
  --upwell-blue: #419EC1;
  --upwell-green: #60BCBB;
  --color-dark: #2A5A6E;
  --color-navy: #1E3A4A;
  --color-light: #E8F6F6;
  --color-text: #2C3E50;
  --color-muted: #6B8A99;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #fff; overflow-x: hidden; color: var(--color-text); }

/* ===== SKIP TO CONTENT ===== */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  background: var(--color-navy); color: white; padding: 12px 24px;
  border-radius: 0 0 8px 8px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 60px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(to bottom, rgba(30, 58, 74, 0.95), rgba(30, 58, 74, 0.6), transparent);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(30, 58, 74, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding-top: 10px; padding-bottom: 10px;
}
.logo { height: 40px; text-decoration: none; display: block; flex-shrink: 0; }
.logo img { height: 100%; width: auto; }
.nav-cta {
  background: linear-gradient(135deg, var(--upwell-green), var(--upwell-blue));
  color: white; border: none; padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(96, 188, 187, 0.4); transition: all 0.3s;
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(96, 188, 187, 0.5); }
.nav-actions {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto;
}
.nav-login {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px;
  font-weight: 500; padding: 10px 18px; border-radius: 8px; white-space: nowrap;
  transition: color 0.2s, background 0.2s; font-family: 'Plus Jakarta Sans', sans-serif;
  border: 1px solid rgba(255,255,255,0.2);
}
.nav-login:hover { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); }

/* ===== NAV DROPDOWNS ===== */
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; color: rgba(255,255,255,0.85);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 500;
  padding: 8px 14px; cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color 0.2s, background 0.2s; border-radius: 6px; white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger { color: #fff; background: rgba(255,255,255,0.1); }
.nav-dropdown-trigger svg {
  width: 10px; height: 10px; stroke: currentColor; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; fill: none;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

/* Dropdown panels */
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  background: #fff; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(6px);
  padding: 8px; min-width: 260px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu.wide { min-width: 380px; }
.nav-dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--color-light); }
.nav-dropdown-menu a .dropdown-label {
  font-size: 13px; font-weight: 600; color: var(--color-dark);
  margin-bottom: 2px; line-height: 1.3;
}
.nav-dropdown-menu a .dropdown-desc {
  font-size: 12px; color: var(--color-muted); line-height: 1.4;
}

/* Hover bridge — invisible area between trigger and dropdown to prevent close on mouse travel */
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: -16px; right: -16px;
  height: 16px; display: none;
}
.nav-dropdown:hover::after { display: block; }

/* Hamburger for mobile */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: white; margin-left: auto; flex-shrink: 0;
}
.nav-hamburger svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }

/* Mobile nav overlay */
.nav-mobile-overlay {
  position: fixed; inset: 0; background: rgba(30,58,74,0.98);
  z-index: 200; flex-direction: column; padding: 80px 32px 40px;
  overflow-y: auto;
  display: flex; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-mobile-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-mobile-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: white; cursor: pointer; padding: 8px;
}
.nav-mobile-close svg { width: 28px; height: 28px; stroke: currentColor; fill: none; }
.nav-mobile-overlay .mobile-nav-group { margin-bottom: 32px; }
.nav-mobile-overlay .mobile-nav-heading {
  color: var(--upwell-green); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px;
}
.nav-mobile-overlay .mobile-nav-link {
  display: block; color: rgba(255,255,255,0.9); text-decoration: none;
  font-size: 17px; font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.nav-mobile-overlay .mobile-nav-link:hover { color: #fff; }
.nav-mobile-overlay .mobile-nav-link:last-child { border-bottom: none; }
.nav-mobile-overlay .mobile-nav-cta {
  margin-top: auto;
  background: linear-gradient(135deg, var(--upwell-green), var(--upwell-blue));
  color: white; border: none; padding: 16px 28px; border-radius: 10px;
  font-weight: 600; font-size: 16px; cursor: pointer; text-align: center;
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
  display: block; box-shadow: 0 4px 20px rgba(96, 188, 187, 0.3);
}

/* ===== NAV RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-actions { display: none; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--upwell-green), var(--upwell-blue));
  color: white; border: none; padding: 16px 36px; border-radius: 8px;
  font-weight: 600; font-size: 16px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(96, 188, 187, 0.45);
  transition: all 0.3s; font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(96, 188, 187, 0.55); }
.btn-secondary {
  background: rgba(255,255,255,0.12); color: white;
  border: 1px solid rgba(255,255,255,0.3); padding: 15px 32px; border-radius: 8px;
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: all 0.3s; backdrop-filter: blur(10px);
  font-family: 'Plus Jakarta Sans', sans-serif; text-decoration: none; display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.btn-outline {
  background: transparent; color: var(--upwell-blue);
  border: 2px solid var(--upwell-blue); padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: all 0.3s; font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: var(--upwell-blue); color: white; }

/* ===== SCROLL ENTRANCE ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ===== COMMON SECTION STYLES ===== */
.section { padding: 100px 60px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  color: var(--upwell-green); font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: 'DM Sans', sans-serif; color: var(--color-dark);
  font-size: clamp(28px, 4vw, 48px); font-weight: 500; margin-bottom: 16px;
}
.section-subtitle {
  color: var(--color-muted); font-size: 18px; max-width: 700px; margin: 0 auto; line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer { background: var(--color-navy); padding: 60px 60px 40px; }
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 32px; margin-bottom: 40px;
}
.footer-brand-logo { height: 36px; margin-bottom: 12px; }
.footer-brand-logo img { height: 100%; width: auto; }
.footer-brand p {
  color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6;
  max-width: 300px;
}
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--upwell-green); }
.footer-social svg { width: 22px; height: 22px; fill: white; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a {
  color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px;
  transition: color 0.3s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ===== SHARED RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 10px 24px; }
  .footer { padding: 48px 24px 30px; }
  .footer-content { flex-direction: column; align-items: flex-start; }
  .footer-bottom { justify-content: center; text-align: center; }
  .section { padding: 70px 24px; }
}
