/* ============================================
   SECTIONS.CSS — Hero, Nav, Footer, Testimonials, Stats
   ============================================ */

/* ---- Top Bar ---- */
.top-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark-secondary);
  padding: 6px 0;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 5px 0;
  }
  .top-bar .container {
    gap: 8px;
  }
  .top-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
  }
  .top-bar a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.top-bar a {
  color: var(--text-on-dark-secondary);
  font-weight: 600;
}

.top-bar a:hover {
  color: var(--text-on-dark);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---- Navigation ---- */
.main-nav {
  background: var(--bg-white);
  padding: 0;
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 36px;
    max-width: 180px;
  }
}

.nav-logo-text {
  gap: 10px;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
  fill: var(--brand);
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
  z-index: 9999;
}

.nav-caret {
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.55;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 12px 0;
  min-width: 240px;
  display: none;
  z-index: 99999;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.875rem;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-off-white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-brand);
  color: var(--text-on-dark) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(30, 95, 168, 0.3);
}

.nav-cta:hover {
  background: var(--brand-dark);
  color: var(--text-on-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 95, 168, 0.4);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ---- Mobile Nav Drawer ---- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-white);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  padding: 24px;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 16px;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links a:hover {
  color: var(--brand);
}

.mobile-nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px;
  background: var(--brand);
  color: var(--text-on-dark) !important;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
}

.mobile-nav-phone svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 35, 0.92) 0%,
    rgba(15, 40, 70, 0.78) 40%,
    rgba(30, 95, 168, 0.65) 70%,
    rgba(10, 20, 35, 0.88) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
  padding: 60px 0;
}

.hero-eyebrow {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero h1 {
  color: var(--text-on-dark);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 700px;
}

.hero p {
  color: var(--text-on-dark-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-dark-secondary);
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  z-index: 0;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 25, 35, 0.88) 0%,
    rgba(15, 25, 35, 0.75) 100%
  );
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.page-hero-text {
  flex: 1;
  min-width: 0;
}

.page-hero-eyebrow {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.page-hero h1 {
  color: var(--text-on-dark);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.page-hero p {
  color: var(--text-on-dark-secondary);
  font-size: 1.125rem;
  max-width: 640px;
}

/* Hero CTA Box */
.hero-cta-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  min-width: 340px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  text-align: center;
  flex-shrink: 0;
}

.hero-cta-box h3 {
  color: #1a1a2e;
  font-size: 1.35rem;
  margin-bottom: 16px;
  line-height: 1.3;
  text-shadow: none;
}

.hero-cta-checks {
  display: flex;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #111;
  font-weight: 500;
}

.hero-cta-checks span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #111;
}

.hero-cta-checks .check-icon {
  color: var(--green, #4caf50);
  font-weight: bold;
}

.hero-cta-box .btn-cta-call {
  display: inline-block;
  background: var(--accent, #1e5fa8);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.hero-cta-box .btn-cta-call:hover {
  opacity: 0.9;
}

.hero-cta-sub {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 16px;
}

.hero-cta-avail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #444;
  margin-bottom: 12px;
}

.hero-cta-avail .avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76,175,80,0.6);
}

.hero-cta-stars {
  font-size: 0.85rem;
  color: #555;
}

.hero-cta-stars .stars {
  color: #f5a623;
  letter-spacing: 1px;
}

@media (min-width: 1600px) {
  .page-hero {
    padding: 90px 0;
  }
}

@media (max-width: 768px) {
  .page-hero-inner {
    flex-direction: column;
    gap: 24px;
  }
  .hero-cta-box {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

.breadcrumb-bar {
  background: var(--bg-alt, #f5f7fa);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent, #1e5fa8);
}

.breadcrumb-sep {
  color: #ccc;
  font-size: 0.7rem;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--gradient-brand);
  color: var(--text-on-dark);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stats-bar::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-on-dark);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-dark-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ---- Testimonials ---- */
.testimonials-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-padding) 0;
}

.testimonials-section .section-label {
  color: var(--accent);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg-dark-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.testimonial-card p {
  color: var(--text-on-dark-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-on-dark);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-on-dark) !important;
}

.testimonial-location {
  font-size: 0.8125rem;
  color: var(--text-on-dark-secondary) !important;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Mid-page CTA ---- */
.mid-cta {
  background: var(--gradient-brand);
  color: var(--text-on-dark);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mid-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.mid-cta h2 {
  color: var(--text-on-dark);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 0.75rem;
}

.mid-cta p {
  color: var(--text-on-dark-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* CTA Banner (full-width image bg) */
.cta-banner {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 80px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.85);
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--text-on-dark);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cta-banner p {
  color: var(--text-on-dark-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ---- Footer ---- */
footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-on-dark) !important;
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  color: var(--text-on-dark-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

footer h4 {
  color: var(--text-on-dark) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-on-dark-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

aside .footer-links {
  gap: 16px;
}

aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

aside .footer-links a {
  color: #222;
  font-weight: 500;
}

aside .footer-links a:hover {
  color: var(--accent, #1e5fa8);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-on-dark-secondary);
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-on-dark-secondary);
}

.footer-bottom a {
  color: var(--text-on-dark-secondary);
}

.footer-bottom a:hover {
  color: var(--text-on-dark);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---- Mobile CTA Bar ---- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-brand);
  z-index: 1000;
  padding: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
}

.mobile-cta-bar svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mobile-cta-micro {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-on-dark-secondary);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
}
