:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --secondary: #f59e0b;
  --accent: #d69e2e;
  --dark: #0f1923;
  --light: #fafafa;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-500: #4a5568;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --white: #ffffff;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: var(--font-base);
  color: var(--dark);
  overflow-x: hidden;
  padding-top: 67px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.7;
  color: var(--gray-700);
}

/* Override p color in dark overlay sections for proper contrast */
.bg-overlay p,
.bg-overlay .container.text-white p,
.hero-section p {
  color: var(--gray-200) !important;
}

/* But preserve explicit text color classes on p inside cards within bg-overlay */
.bg-overlay .container.text-white .bg-white p.text-primary,
.bg-overlay .container.text-white .bg-white p.text-dark,
.bg-overlay .container.text-white .bg-white p.text-muted,
.bg-overlay .container.text-white .bundle-card p.text-primary,
.bg-overlay .container.text-white .bundle-card p.text-dark,
.bg-overlay .container.text-white .bundle-card p.text-muted {
  color: inherit !important;
}

/* Ensure text-primary inside white cards in bg-overlay sections uses the primary color */
.bg-overlay .container.text-white .bg-white p.text-primary,
.bg-overlay .container.text-white .bundle-card.bg-white p.text-primary {
  color: var(--primary) !important;
}

/* Ensure text-muted inside white cards uses the muted color */
.bg-overlay .container.text-white .bg-white p.text-muted,
.bg-overlay .container.text-white .bundle-card.bg-white p.text-muted {
  color: var(--gray-500) !important;
}

/* Ensure h4/h5 headings inside bundle cards are displayed properly */
.bg-overlay .container.text-white .bundle-card h4.h5,
.bg-overlay .container.text-white .bundle-card h4.h5.text-white,
.bg-overlay .container.text-white .bundle-card .list-unstyled li.text-white {
  color: #ffffff !important;
}

.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #0f1923;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,25,35,0.85) 0%, rgba(26,54,93,0.7) 100%);
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#inject-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15,25,35,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.navbar-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.nav-link {
  color: var(--gray-200) !important;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--secondary) !important;
}

.navbar-toggler {
  border: none;
  color: var(--white);
  font-size: 1.5rem;
}

.navbar .contact-info {
  color: var(--gray-200);
  font-size: 0.9rem;
}

.navbar .contact-info i {
  color: var(--secondary);
  margin-right: 0.4rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: #4a5568;
}

.service-card, .blog-card, .team-card, .pricing-card {
  border: none;
  background: var(--white);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}

.service-card:hover, .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.service-card .card-body, .blog-card .card-body {
  padding: 2rem;
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.pricing-card {
  border: 2px solid var(--gray-200);
}

.pricing-card.featured {
  border-color: var(--secondary);
  transform: scale(1.02);
}

.pricing-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem;
}

.pricing-card .price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
}

.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,54,93,0.3);
}

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.form-control {
  border: 2px solid var(--gray-300);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.15);
}

#inject-footer {
  background: var(--dark);
  color: var(--gray-200);
  padding: 4rem 0 2rem;
}

#inject-footer a {
  color: var(--gray-300);
  transition: var(--transition);
}

#inject-footer a:hover {
  color: var(--secondary);
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 2rem;
  background: var(--dark);
  color: var(--white);
  z-index: 9999;
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-200);
}

.cookie-banner .btn {
  background: var(--secondary);
  color: var(--dark);
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.cookie-banner .btn:hover {
  background: var(--accent);
}

.cookie-banner .btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cookie-banner .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.custom-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 100000;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  max-width: 400px;
}

.custom-notification.show {
  transform: translateX(0);
}

.custom-notification.success {
  background: #276749;
}

.custom-notification.error {
  background: #c53030;
}

@media (max-width: 768px) {
  body {
    padding-top: 67px;
  }

  .hero-section {
    min-height: 70vh;
    background-attachment: scroll;
  }

  section {
    padding: 3rem 0;
  }

  .pricing-card.featured {
    transform: none;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

.bg-overlay {
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #0f1923;
}

.bg-overlay > .container {
  position: relative;
  z-index: 1;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  z-index: 0;
}

.text-accent {
  color: var(--secondary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 1rem;
}

[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

.text-muted {
  color: #4a5568 !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.75) !important;
}
