/* ===================================
   Ataxus B.V. - Custom Styles
   Modern Bootstrap 5 Theme
   =================================== */

/* CSS Variables - Scheveningen Beach Inspired */
:root {
  --primary: #0077b6;
  --primary-dark: #023e8a;
  --primary-light: #00b4d8;
  --secondary: #f4a261;
  --secondary-dark: #e76f51;
  --accent: #2a9d8f;
  --sand: #fefae0;
  --sand-dark: #dda15e;
  --ocean-deep: #03045e;
  --dark: #1a1f2e;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #6c757d;
  --gray-300: #dee2e6;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-hero: linear-gradient(135deg, var(--ocean-deep) 0%, var(--primary-dark) 40%, var(--primary) 70%, var(--primary-light) 100%);
  --gradient-sunset: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Prevent scroll on focus for mobile */
@media (max-width: 991.98px) {
  input, select, textarea, button {
    scroll-margin-top: 100px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-light-custom { background-color: var(--gray-100) !important; }

.section-padding {
  padding: 100px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

/* Section Titles */
.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-title.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
}

.section-title.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  min-height: 70px;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

/* Logo styling */
.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: var(--transition);
  background: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
}

.navbar.scrolled .navbar-brand img {
  height: 45px;
}

/* Nav links - white on transparent (hero), dark when scrolled */
.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  position: relative;
  transition: var(--transition);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar.scrolled .navbar-nav .nav-link {
  color: var(--dark);
  text-shadow: none;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary);
}

.navbar.scrolled .navbar-nav .nav-link:hover,
.navbar.scrolled .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 30px;
}

/* CTA button in navbar */
.navbar .btn-primary {
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.navbar .btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.5);
}

.navbar.scrolled .btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.navbar.scrolled .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

/* Mobile menu toggle - white on hero */
.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.scrolled .navbar-toggler {
  border-color: var(--dark) !important;
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 31, 46, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-light .navbar-toggler:focus {
  box-shadow: none;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(3, 4, 94, 0.85) 0%, rgba(2, 62, 138, 0.8) 40%, rgba(0, 119, 182, 0.75) 100%),
              url('../assets/images/home-5.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Wave pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,128L48,138.7C96,149,192,171,288,165.3C384,160,480,128,576,128C672,128,768,160,864,170.7C960,181,1056,171,1152,149.3C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  z-index: 2;
}

/* Subtle texture */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero h1 span {
  color: var(--secondary);
  display: inline-block;
}

.hero .lead {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.hero .btn-secondary {
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(244, 162, 97, 0.4);
}

.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 25px rgba(255,255,255,0.3);
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.hero-location i {
  color: var(--secondary);
}

.hero-shape {
  position: absolute;
  right: -10%;
  bottom: 10%;
  width: 55%;
  height: 110%;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  z-index: 1;
}

.hero-shape-2 {
  position: absolute;
  right: 10%;
  top: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-shape-3 {
  position: absolute;
  left: -5%;
  top: 30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* Page Hero (for subpages) */
.page-hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, rgba(3, 4, 94, 0.9) 0%, rgba(2, 62, 138, 0.85) 100%),
              url('../assets/images/architecture.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Different backgrounds for different pages */
.page-hero.hero-about {
  background: linear-gradient(135deg, rgba(3, 4, 94, 0.88) 0%, rgba(0, 119, 182, 0.85) 100%),
              url('../assets/images/slide-2.jpg') center center / cover no-repeat;
}

.page-hero.hero-services {
  background: linear-gradient(135deg, rgba(2, 62, 138, 0.9) 0%, rgba(0, 119, 182, 0.85) 100%),
              url('../assets/images/architecture.jpg') center center / cover no-repeat;
}

.page-hero.hero-contact {
  background: linear-gradient(135deg, rgba(3, 4, 94, 0.85) 0%, rgba(42, 157, 143, 0.8) 100%),
              url('../assets/images/home-5.jpg') center 30% / cover no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  position: relative;
}

.page-hero.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb */
.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
  position: relative;
}

.breadcrumb-custom .breadcrumb-item {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-custom .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-custom .breadcrumb-item a:hover {
  color: var(--white);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--secondary);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ===================================
   Cards
   =================================== */
.card-custom {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-custom .card-body {
  padding: 2rem;
}

.card-custom .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-custom .card-text {
  color: var(--gray-500);
}

/* Service Cards */
.service-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.service-card .icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.service-card .icon-box i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.service-card .btn-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card .btn-link:hover {
  color: var(--secondary);
  gap: 0.75rem;
}

/* Feature Cards */
.feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card .icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card .icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray-500);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Team Cards */
.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.team-card .team-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 4px;
  overflow: hidden;
}

.team-card .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}

.team-card .team-img .placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .team-img .placeholder-img i {
  font-size: 4rem;
  color: var(--gray-300);
}

.team-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.team-card .role {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.team-card .team-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 1rem;
}

.team-card .team-email:hover {
  color: var(--secondary);
}

/* ===================================
   About Section
   =================================== */
.about-section .about-content {
  padding-right: 3rem;
}

.about-section .about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-section .about-content h2 span {
  color: var(--secondary);
}

.about-section .lead {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

/* About features list - general styles */
.about-features {
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.about-feature .check-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature .check-icon i {
  color: var(--white);
  font-size: 0.8rem;
}

.about-feature p {
  margin-bottom: 0;
  color: var(--gray-700);
  line-height: 1.5;
}

.about-feature p strong {
  color: var(--dark);
}

/* Override for about-section context (simpler style) */
.about-section .about-feature {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.about-section .about-feature:hover {
  box-shadow: none;
  transform: none;
}

.about-section .about-feature .check-icon {
  margin-top: 2px;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-image-accent {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 200px;
  height: 200px;
  background: var(--secondary);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.3;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
  background: var(--gradient-primary);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1rem;
  opacity: 0.85;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
  background: var(--dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.1;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-info-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* Only apply height: 100% when card is sole child in a grid column */
.row > [class*="col-"] > .contact-info-card:only-child {
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item .icon i {
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  margin-bottom: 0;
  color: var(--gray-500);
}

.contact-info-item a {
  color: var(--gray-700);
}

.contact-info-item a:hover {
  color: var(--primary);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-control, .form-select {
  padding: 14px 18px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 77, 124, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 50px;
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white) !important;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand span {
  color: var(--secondary);
}

.footer-brand img {
  background: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
}

.footer p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact li i {
  color: var(--secondary);
  margin-top: 4px;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

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

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  margin-top: 60px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 140px 0 80px;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .about-section .about-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
  }

  /* Force dark text in mobile menu regardless of scroll state */
  .navbar-collapse .nav-link {
    color: var(--dark) !important;
    text-shadow: none !important;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    color: var(--primary) !important;
  }

  /* Fix mobile menu alignment */
  .navbar-collapse .navbar-nav {
    margin-left: 0 !important;
    width: 100%;
  }

  .navbar-collapse .btn {
    margin-left: 0 !important;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  /* Add padding to container for hamburger menu */
  .navbar > .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Disable navbar transition on mobile to prevent scroll glitches */
  .navbar {
    transition: none;
    top: 0 !important;
    position: fixed !important;
  }

  .navbar.scrolled {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .stat-item {
    margin-bottom: 2rem;
  }

  .stat-item .stat-number {
    font-size: 2.5rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Service Page Specific */
.service-detail {
  padding: 2rem;
}

.service-detail .icon-lg {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-detail .icon-lg i {
  font-size: 2.5rem;
  color: var(--white);
}

.service-detail h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-detail ul {
  padding-left: 0;
  list-style: none;
}

.service-detail ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

/* Map */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
  min-height: 450px;
  background: var(--gray-100);
}

.map-container iframe {
  display: block;
  pointer-events: auto;
}

/* Fix for iOS iframe scrolling issues */
@supports (-webkit-touch-callout: none) {
  .map-container {
    position: relative;
    z-index: 1;
  }
}
