/* ════════════════════════════════════════════════════════════
   ENTAPPS — COMPONENT STYLES
   Header, Navigation, Mega Menu, Footer, Cards, Forms
   ════════════════════════════════════════════════════════════ */

/* ─── Announcement Bar ───────────────────────────────────── */
.announcement-bar {
  background: var(--gradient-brand);
  color: #fff;
  padding: 10px 0;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  position: relative;
  z-index: var(--z-sticky);
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.announcement-bar.hidden {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.announcement-link {
  color: rgba(255,255,255,0.90);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announcement-link:hover { color: #fff; }

.announcement-close {
  color: rgba(255,255,255,0.70);
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.announcement-close:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* ─── Site Header ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.98);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar { padding: 0; min-height: 72px; }

.navbar-brand {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  margin-right: var(--space-8);
}

.logo-light { display: block; }
.logo-dark  { display: none;  }

/* ─── Nav Links ──────────────────────────────────────────── */
.navbar-nav .nav-link,
.navbar-nav .nav-link[aria-expanded] {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-brand-teal);
  background: rgba(0,124,168,0.07);
}

.nav-chevron {
  font-size: 0.7rem;
  transition: transform var(--transition-base);
}
.mega-trigger[aria-expanded="true"] .nav-chevron,
.has-dropdown button[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--color-brand-teal); }

/* ─── Mega Menu ──────────────────────────────────────────── */
.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  padding: var(--space-8) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Position mega menu relative to header */
.site-header { position: sticky; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 220px;
  gap: var(--space-8);
  padding: var(--space-4) 0;
}

.mega-col { padding: 0; }

.mega-col-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.mega-col-header strong {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  display: block;
  line-height: 1.3;
}
.mega-col-header span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
}

.mega-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,184,107,0.12), rgba(0,124,168,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-teal);
  font-size: 1rem;
  flex-shrink: 0;
}

.mega-col ul { display: flex; flex-direction: column; gap: 2px; }

.mega-col a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.mega-col a:hover {
  background: var(--color-bg-muted);
  color: var(--color-brand-teal);
}
.mega-col a i {
  color: var(--color-brand-teal);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.mega-col a strong {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  line-height: 1.3;
  transition: color var(--transition-fast);
}
.mega-col a:hover strong { color: var(--color-brand-teal); }
.mega-col a em {
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  line-height: 1.4;
}

/* Mega Promo Panel */
.mega-promo { border-left: 1px solid var(--color-border); padding-left: var(--space-6); }

.mega-promo-card {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.mega-promo-card i {
  font-size: 1.5rem;
  color: var(--color-brand-teal);
  margin-bottom: var(--space-2);
  display: block;
}
.mega-promo-card strong {
  display: block;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.mega-promo-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

/* Mega Overlay */
.mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  z-index: calc(var(--z-dropdown) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.mega-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─── Dropdown Menu ──────────────────────────────────────── */
.has-dropdown { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 240px;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown button[aria-expanded="true"] + .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem 0.875rem;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
}
.nav-dropdown .dropdown-item i {
  color: var(--color-brand-teal);
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
}
.nav-dropdown .dropdown-item:hover {
  background: var(--color-bg-muted);
  color: var(--color-brand-teal);
}

/* ─── Mobile Navigation (Offcanvas) ──────────────────────── */
.mobile-nav { width: min(360px, 100vw); }

.mobile-nav .offcanvas-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav .offcanvas-body { padding: 0; overflow-y: auto; }

.mobile-nav-list {
  padding: var(--space-4) 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--color-brand-teal); background: var(--color-bg-muted); }

.mobile-accordion-content {
  display: none;
  padding: var(--space-3) var(--space-6) var(--space-4);
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
}
.mobile-accordion-content.open { display: block; }

.mobile-nav-group-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--color-text-muted);
  margin: var(--space-4) 0 var(--space-2);
}
.mobile-nav-group-label:first-child { margin-top: 0; }

.mobile-nav-sub {
  display: block;
  padding: 0.45rem 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--fw-medium);
  transition: color var(--transition-fast);
}
.mobile-nav-sub:hover { color: var(--color-brand-teal); }

.mobile-nav-ctas {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
  position: sticky;
  bottom: 0;
  background: #fff;
}

/* ─── Navbar Toggler ─────────────────────────────────────── */
.navbar-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
}
.navbar-toggler:focus-visible { outline: 2px solid var(--color-brand-teal); }

.toggler-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ─── WhatsApp FAB ───────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.40);
  z-index: var(--z-modal);
  transition: all var(--transition-spring);
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37,211,102,0.50);
  color: #fff;
}

.whatsapp-fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}
.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
  visibility: visible;
}
.whatsapp-fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-text-primary);
}

/* ─── Back To Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.70);
}

/* Footer Newsletter */
.footer-newsletter {
  background: #0f1e38;
  padding: var(--space-16) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-newsletter-headline {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-2);
}

.footer-newsletter-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.newsletter-input-group {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.07);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-sm);
  outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.40); }
.newsletter-input-group:focus-within {
  border-color: var(--color-brand-teal);
  box-shadow: 0 0 0 3px rgba(0,124,168,0.25);
}

.newsletter-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.40);
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Footer Main */
.footer-main { padding: var(--space-16) 0; }

.footer-logo { display: inline-block; margin-bottom: var(--space-5); }

.footer-tagline {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.60);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.footer-address { font-style: normal; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.60);
}
.footer-contact-item i { color: var(--color-brand-teal); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.60); transition: color var(--transition-fast); }
.footer-contact-item a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.10);
}
.social-link:hover { background: var(--color-brand-teal); color: #fff; border-color: var(--color-brand-teal); }
.social-link--whatsapp:hover { background: #25D366; border-color: #25D366; }

.footer-col-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
  line-height: 1.5;
}
.footer-links a:hover { color: #fff; }

/* Footer Partners Grid */
.footer-partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-partner-badge {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Support Hours */
.footer-support-hours { display: flex; flex-direction: column; gap: var(--space-2); }

.support-hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  gap: var(--space-4);
}
.support-hour-row span:first-child { flex-shrink: 0; }
.support-hour-row a { color: var(--color-brand-teal); }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-5) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.40);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.40);
  transition: color var(--transition-fast);
}
.footer-legal-links a:hover { color: #fff; }

/* ─── Form Components ────────────────────────────────────── */
.form-enterprise .form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-enterprise .form-control,
.form-enterprise .form-select {
  font-size: var(--text-sm);
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-enterprise .form-control:focus,
.form-enterprise .form-select:focus {
  border-color: var(--color-brand-teal);
  box-shadow: 0 0 0 3px rgba(0,124,168,0.15);
  outline: none;
}

.form-enterprise .form-control.is-invalid { border-color: var(--color-danger); }
.form-enterprise .invalid-feedback { font-size: var(--text-xs); }

/* ─── Testimonial Cards ──────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: 5rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--color-brand-teal);
  opacity: 0.12;
}

.testimonial-stars { color: #F6AD55; font-size: 0.9rem; margin-bottom: var(--space-4); }

.testimonial-quote {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: var(--space-4); }

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-border);
  background: var(--color-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-brand-teal);
}

.testimonial-name {
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ─── Section Intro Block ────────────────────────────────── */
.section-intro { max-width: 680px; }
.section-intro--center { text-align: center; margin-inline: auto; }
