/* ============================================
   COMPONENTS — Nav, Footer, Buttons, Cards, Badges
   ============================================ */

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--royal);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring), color 0.3s var(--ease-spring), opacity 0.3s var(--ease-spring);
  text-decoration: none;
  min-height: 44px;
}

.btn-primary:hover {
  background: var(--royal-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26, 63, 199, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ivory-warm);
  color: var(--royal);
  border: 1px solid rgba(26, 63, 199, 0.2);
  border-radius: 12px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring), color 0.3s var(--ease-spring), opacity 0.3s var(--ease-spring);
  text-decoration: none;
  min-height: 44px;
}

.btn-secondary:hover {
  background: var(--ivory);
  border-color: rgba(26, 63, 199, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 63, 199, 0.1);
}

.btn-secondary.btn-white {
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.btn-secondary.btn-white:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--volt);
  color: var(--charcoal);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring), color 0.3s var(--ease-spring), opacity 0.3s var(--ease-spring);
  text-decoration: none;
  min-height: 44px;
}

.btn-accent:hover {
  background: var(--volt-muted);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(202, 255, 4, 0.3);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Navigation Bar (Floating Liquid Glass — iOS style) --- */
.navbar {
  position: fixed;
  top: 12px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 250, 0.35);
  backdrop-filter: blur(40px) saturate(2.0) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(2.0) brightness(1.05);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.04),
    0 0.5px 0 rgba(255, 255, 255, 0.5) inset,
    0 -0.5px 0 rgba(0, 0, 0, 0.03) inset;
  transition: background 0.4s var(--ease-spring), transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), border-color 0.4s var(--ease-spring), color 0.4s var(--ease-spring), opacity 0.4s var(--ease-spring);
  padding: 0 8px;
}

.navbar.scrolled {
  background: rgba(255, 255, 250, 0.5);
  backdrop-filter: blur(48px) saturate(2.2) brightness(1.08);
  -webkit-backdrop-filter: blur(48px) saturate(2.2) brightness(1.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 -0.5px 0 rgba(0, 0, 0, 0.04) inset;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--charcoal);
  text-decoration: none;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0);
}

.logo-img-footer {
  height: 32px;
  filter: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--slate);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar-links a:hover {
  color: var(--charcoal);
}

.navbar-links a.active {
  color: var(--royal);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--royal);
  border-radius: 1px;
}

/* --- Navbar Dropdown --- */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-trigger {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--slate);
  background: none;
  border: none;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.3s;
}

.navbar-dropdown-trigger:hover {
  color: var(--charcoal);
}

.navbar-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-spring);
}

.navbar-dropdown.open .navbar-dropdown-trigger svg {
  transform: rotate(180deg);
}

.navbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(255, 255, 250, 0.85);
  backdrop-filter: blur(40px) saturate(2.0) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(2.0) brightness(1.05);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0.5px 0 rgba(255, 255, 255, 0.5) inset;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-spring), transform 0.25s var(--ease-spring);
  z-index: 1002;
}

.navbar-dropdown.open .navbar-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.navbar-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--charcoal) !important;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
}

.navbar-dropdown-menu a:hover {
  background: rgba(26, 63, 199, 0.08);
  color: var(--royal) !important;
}

.navbar-dropdown-menu a svg {
  width: 16px;
  height: 16px;
  color: var(--royal);
  flex-shrink: 0;
}

.navbar-cta {
  padding: 10px 24px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: var(--ivory) !important;
}

.navbar-cta:hover {
  color: var(--ivory) !important;
}

.navbar-cta.active::after {
  display: none;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--charcoal);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 240, 0.95);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-spring);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 28px;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--royal);
}

.mobile-menu .btn-primary {
  width: calc(100% - 48px);
  max-width: 320px;
  text-align: center;
  position: absolute;
  bottom: 48px;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  color: var(--charcoal);
}

/* --- Footer --- */
.footer {
  background: var(--royal-deep);
  color: var(--ivory);
  padding: 80px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ivory);
  transition: background 0.3s;
  min-height: 44px;
  min-width: 44px;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

.footer-column h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--ivory);
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--ivory);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Card Components --- */
.card {
  position: relative;
  background: var(--ivory-warm);
  border: 1px solid var(--ivory-muted);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(26, 63, 199, 0.05);
  overflow: hidden;
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
}

.card:hover {
  border-color: rgba(26, 63, 199, 0.18);
  box-shadow: 0 10px 28px rgba(26, 63, 199, 0.09);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-img-3-2 {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* --- Badge / Tag --- */
.badge {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--royal-light);
  color: var(--royal);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}

.badge-volt {
  background: var(--volt);
  color: var(--charcoal);
}

.badge-glass {
  background: rgba(15, 42, 138, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--volt);
}

/* --- Date Badge (overlay on cards) --- */
.date-badge {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--royal);
  background: var(--ivory);
  border: 1px solid var(--ivory-muted);
  padding: 6px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(26, 63, 199, 0.08);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--ivory-muted);
  border: none;
}

/* --- Icon Feature Block --- */
.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--royal);
  margin-bottom: var(--space-sm);
}

/* --- Link Arrow --- */
.link-arrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--royal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--ease-spring);
  min-height: 44px;
}

.link-arrow:hover {
  gap: 8px;
}

.link-arrow.link-volt {
  color: var(--volt);
}

/* --- Form Inputs --- */
.input-glass {
  background: var(--ivory);
  border: 1px solid var(--ivory-muted);
  border-radius: 12px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.input-glass::placeholder {
  color: var(--slate);
}

.input-glass:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(26, 63, 199, 0.1);
}

.input-group {
  display: flex;
  gap: 12px;
}

.input-group .input-glass {
  flex: 1;
}

.input-group .btn-primary {
  flex-shrink: 0;
}

textarea.input-glass {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

select.input-glass {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5A68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.form-group .hint {
  font-size: 13px;
  color: var(--slate);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--royal);
  cursor: pointer;
}

.form-success-banner {
  background: rgba(202, 255, 4, 0.15);
  border: 1px solid rgba(202, 255, 4, 0.3);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
  color: var(--charcoal);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.5s var(--ease-spring);
}

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

/* Form Banners (JotForm submit feedback) */
.form-banner {
  border-radius: 14px;
  padding: 16px 24px;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.5s var(--ease-spring);
}

.form-banner a {
  color: var(--royal);
  text-decoration: underline;
}

.form-banner-success {
  background: rgba(202, 255, 4, 0.15);
  border: 1px solid rgba(202, 255, 4, 0.3);
  color: var(--charcoal);
}

.form-banner-warning {
  background: rgba(26, 63, 199, 0.08);
  border: 1px solid rgba(26, 63, 199, 0.2);
  color: var(--charcoal);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar {
    top: 8px;
    left: 12px;
    right: 12px;
    height: 56px;
    border-radius: 14px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .navbar-dropdown-menu {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn-primary,
  .btn-group .btn-secondary,
  .btn-group .btn-accent {
    width: 100%;
    justify-content: center;
  }

  .input-group {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Info Popup --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-spring);
  padding: 24px;
}

.popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  padding: 40px;
  text-align: center;
}

.popup-card .popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate);
  padding: 4px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.popup-card .popup-close:hover {
  color: var(--charcoal);
}

.popup-header {
  margin-bottom: 28px;
}

.popup-header .label {
  color: var(--royal);
  margin-bottom: 8px;
  display: block;
}

.popup-header h3 {
  margin-bottom: 8px;
}

.popup-header p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.popup-decline {
  background: none;
  border: none;
  color: var(--slate);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  font-family: var(--font-sans);
  transition: color 0.2s ease;
}

.popup-decline:hover {
  color: var(--charcoal);
}

.popup-success {
  padding: 24px 0;
}

.popup-success i {
  color: var(--royal);
  margin-bottom: 12px;
}

.popup-success h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.popup-success p {
  color: var(--slate);
  font-size: 15px;
}

@media (max-width: 768px) {
  .popup-card {
    padding: 32px 24px;
  }
}
