/* ============================================
   SecureFin Loan Services - Custom Styles
   Premium Finance Company Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0F4C81;
  --primary-dark: #0a3559;
  --primary-light: #1a6bb5;
  --secondary: #F5A623;
  --secondary-dark: #d4890f;
  --bg-light: #F8F9FA;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --white: #ffffff;
  --card-shadow: 0 10px 40px rgba(15, 76, 129, 0.08);
  --card-shadow-hover: 0 20px 60px rgba(15, 76, 129, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Page wrapper — prevents horizontal scroll from child elements */
#page-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 90px 0;
  overflow-x: clip;
  max-width: 100%;
}

/* Prevent Bootstrap grid children from blowing out width */
.row {
  --bs-gutter-x: 1.5rem;
  max-width: 100%;
}

[class*="col-"] {
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ---------- Navbar ---------- */
.navbar {
  padding: 10px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 76, 129, 0.06);
  max-width: 100%;
  overflow-x: clip;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(15, 76, 129, 0.1);
  padding: 6px 0;
}

.navbar-brand {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar-nav {
  gap: 2px;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 11px !important;
  position: relative;
  white-space: nowrap;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

.btn-apply-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white) !important;
  border: none;
  padding: 9px 22px !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 8px;
}

.btn-apply-nav:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.navbar-toggler {
  border: none;
  padding: 8px 10px;
  font-size: 1.25rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-cta-wrap {
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(245, 166, 35, 0.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(15, 76, 129, 0.25);
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-secondary-custom:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(15, 76, 129, 0.3);
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, #e8f4fc 0%, #f4f8fb 35%, var(--bg-light) 65%, #fff9f0 100%);
  padding: 88px 0 0;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 100px;
}

.hero-row {
  min-height: 0;
}

/* Decorative shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-shape.shape-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -8%;
  background: rgba(15, 76, 129, 0.07);
}

.hero-shape.shape-2 {
  width: 350px;
  height: 350px;
  bottom: 10%;
  left: -5%;
  background: rgba(245, 166, 35, 0.1);
}

.hero-shape.shape-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 45%;
  background: rgba(15, 76, 129, 0.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 76, 129, 0.08);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
}

.hero-badge i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--secondary), #e8940a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 500px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 76, 129, 0.08);
}

.hero-stat-item {
  padding: 12px 28px 0 0;
  margin-right: 28px;
  border-right: 1px solid rgba(15, 76, 129, 0.1);
}

.hero-stat-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat-item h4 {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
  line-height: 1.2;
}

.hero-stat-item p {
  font-size: 0.78rem;
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
  overflow: hidden;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  transform: rotate(4deg) scale(0.97);
  opacity: 0.15;
}

.hero-image {
  position: relative;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(15, 76, 129, 0.18);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(15, 76, 129, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3.5s ease-in-out infinite;
  z-index: 3;
}

.hero-float-card.card-1 {
  top: 8%;
  left: -24px;
}

.hero-float-card.card-2 {
  bottom: 12%;
  right: -16px;
  animation-delay: 1.5s;
}

.hero-float-card .icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.hero-float-card h6 {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.hero-float-card p {
  font-size: 0.72rem;
  margin: 0;
  color: var(--text-muted);
}

/* Hero Service Pills Bar */
.hero-services-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 2.5rem;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 76, 129, 0.06);
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(15, 76, 129, 0.06);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(15, 76, 129, 0.08);
  transition: var(--transition);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-service-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-service-pill i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.hero-service-pill:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.2);
}

.hero-service-pill:hover i {
  color: var(--white);
}

/* Wave Divider */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--white);
  padding-top: 40px;
}

.about-image {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  object-fit: cover;
  height: 450px;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.mvv-card {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 24px;
  height: 100%;
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}

.mvv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.mvv-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mvv-card h5 i {
  color: var(--secondary);
}

.mvv-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Services Section ---------- */
.services-section {
  background: var(--bg-light);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid rgba(15, 76, 129, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(245, 166, 35, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: scale(1.05);
}

.service-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card > p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: var(--secondary);
  font-size: 0.75rem;
}

.btn-learn-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-learn-more:hover {
  color: var(--secondary);
  gap: 12px;
}

/* ---------- Why Choose Us ---------- */
.why-section {
  background: var(--white);
}

.why-card {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  border: 1px solid transparent;
}

.why-card:hover {
  background: var(--white);
  border-color: rgba(15, 76, 129, 0.1);
  transform: translateY(-8px);
  box-shadow: var(--card-shadow);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.4rem;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  transform: rotateY(180deg);
}

.why-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.82rem;
  margin: 0;
}

/* ---------- Loan Process Timeline ---------- */
.process-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.process-section::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");
  pointer-events: none;
}

.process-section .section-title,
.process-section .section-subtitle {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.process-section .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 100%;
  overflow-x: clip;
}

.process-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  position: relative;
}

.process-step .step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
  position: relative;
  z-index: 2;
}

.process-step h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin: 0;
}

.process-step .step-content {
  flex: 1;
}

.process-connector {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 20px;
  color: var(--secondary);
  font-size: 1.5rem;
}

/* ---------- EMI Calculator ---------- */
.calculator-section {
  background: var(--bg-light);
}

.calculator-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.calculator-card .form-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.calculator-card .form-control,
.calculator-card .form-select {
  border: 2px solid #e9ecef;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.calculator-card .form-control:focus,
.calculator-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.calculator-card .input-group-text {
  background: var(--bg-light);
  border: 2px solid #e9ecef;
  border-right: none;
  font-weight: 600;
  color: var(--primary);
}

.calculator-card .input-group .form-control {
  border-left: none;
}

.result-cards {
  display: none;
  margin-top: 2rem;
}

.result-cards.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--white);
  height: 100%;
}

.result-card.gold {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.result-card.light {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 2px solid rgba(15, 76, 129, 0.1);
}

.result-card h3 {
  font-size: 1.75rem;
  color: inherit;
  margin-bottom: 0.25rem;
}

.result-card p {
  font-size: 0.85rem;
  margin: 0;
  color: inherit;
  opacity: 0.85;
}

.result-card.light p {
  color: var(--text-muted);
  opacity: 1;
}

.result-card.light h3 {
  color: var(--primary);
}

/* ---------- Statistics Section ---------- */
.stats-section {
  background: var(--white);
  padding: 70px 0;
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(245, 166, 35, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number .suffix {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  background: var(--bg-light);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--card-shadow);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--secondary);
  margin-bottom: 1.25rem;
}

.testimonial-stars {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

/* Controls stay inside carousel on tablet; outside only on large desktop */
@media (min-width: 1400px) {
  .carousel-control-prev {
    left: -60px;
  }

  .carousel-control-next {
    right: -60px;
  }
}

@media (max-width: 1399.98px) {
  .carousel-control-prev {
    left: 8px;
  }

  .carousel-control-next {
    right: 8px;
  }
}

/* Testimonials carousel wrapper - clip overflow */
.testimonials-section .col-lg-8 {
  overflow: hidden;
  padding-left: 8px;
  padding-right: 8px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--secondary);
}

.carousel-indicators {
  margin-bottom: -40px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
}

.carousel-indicators button.active {
  opacity: 1;
  background: var(--secondary);
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background: var(--white);
}

.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(15, 76, 129, 0.05);
}

.accordion-button {
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  padding: 18px 24px;
  font-size: 0.95rem;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  filter: none;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--white);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.92), rgba(10, 53, 89, 0.95)),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=80') center/cover no-repeat;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--bg-light);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-info-item h6 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.contact-info-item p {
  font-size: 0.88rem;
  margin: 0;
}

.contact-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1.5rem;
  height: 200px;
  max-width: 100%;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  max-width: 100%;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
}

.contact-form-card .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 2px solid #e9ecef;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 0;
  overflow-x: clip;
  max-width: 100%;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--secondary);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
  color: var(--secondary);
  margin-top: 4px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 1.25rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-bottom .heart {
  color: var(--secondary);
}

/* ---------- Floating Buttons ---------- */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.floating-buttons .float-btn {
  pointer-events: auto;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}

.float-btn.whatsapp {
  background: #25D366;
}

.float-btn.whatsapp:hover {
  background: #1da851;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.float-btn.call {
  background: var(--primary);
}

.float-btn.call:hover {
  background: var(--secondary);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}

/* ---------- Back To Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
  box-shadow: 0 6px 25px rgba(15, 76, 129, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  transform: translateY(-4px);
}

/* ---------- Responsive ---------- */

/* Tablet & below */
@media (max-width: 991.98px) {
  html, body, #page-wrapper {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    max-width: 100%;
  }

  /* Stop AOS animations causing overflow */
  [data-aos="fade-right"],
  [data-aos="fade-left"],
  [data-aos="fade-right-up"],
  [data-aos="fade-left-up"],
  [data-aos="fade-right-down"],
  [data-aos="fade-left-down"],
  [data-aos="zoom-in"],
  [data-aos="zoom-out"] {
    transform: none !important;
  }

  body {
    touch-action: pan-y;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: clip;
  }

  /* Hide decorative shapes that extend outside viewport */
  .hero-shapes {
    display: none;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-float-card {
    display: none !important;
  }

  /* Mobile Navbar */
  .navbar-collapse {
    background: var(--white);
    margin-top: 12px;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(15, 76, 129, 0.12);
    border: 1px solid rgba(15, 76, 129, 0.06);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
  }

  .navbar-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    margin: 0 !important;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    font-size: 0.88rem;
    padding: 12px 14px !important;
    text-align: center;
    border-radius: 10px;
    background: var(--bg-light);
    white-space: normal;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white) !important;
  }

  .navbar-cta-wrap {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 76, 129, 0.08);
  }

  .btn-apply-nav {
    width: 100%;
    margin-left: 0 !important;
    padding: 14px 24px !important;
    font-size: 0.95rem;
    display: block;
    text-align: center;
  }

  /* Hero */
  .hero-section {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-container {
    padding-top: 28px;
    padding-bottom: 70px;
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    text-align: center;
    padding-right: 0;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-content: center;
    border-top: none;
    width: 100%;
  }

  .hero-stat-item {
    border-right: none;
    margin-right: 0;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(15, 76, 129, 0.06);
  }

  .hero-image-wrapper {
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 4px;
    overflow: hidden;
  }

  .hero-image-bg {
    display: none;
  }

  .hero-image {
    border-radius: 18px;
    aspect-ratio: 16 / 10;
  }

  .hero-services-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-radius: 16px;
    margin-top: 1.75rem;
    padding: 14px;
    width: 100%;
  }

  .hero-service-pill {
    justify-content: center;
    padding: 12px 10px;
    font-size: 0.78rem;
    width: 100%;
  }

  /* Sections */
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 8px;
  }

  .about-image {
    height: 280px;
  }

  .about-content {
    text-align: left;
  }

  .service-card {
    padding: 28px 22px;
  }

  .why-card {
    padding: 20px 14px;
  }

  .why-icon {
    width: 52px;
    height: 52px;
    font-size: 1.15rem;
  }

  .why-card h5 {
    font-size: 0.88rem;
  }

  .why-card p {
    font-size: 0.75rem;
  }

  /* Process Timeline - Vertical */
  .process-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-step {
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 16px 0;
    position: relative;
  }

  .process-step .step-number {
    margin: 0;
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.1rem;
  }

  .process-step > div:not(.step-number) {
    flex: 1;
    padding-top: 4px;
  }

  .process-step .step-content {
    padding-top: 4px;
  }

  .process-connector {
    display: none;
  }

  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 66px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary), rgba(245, 166, 35, 0.2));
  }

  /* Calculator */
  .calculator-card {
    padding: 24px 18px;
  }

  .calculator-card .input-group {
    flex-wrap: nowrap;
  }

  .calculator-card .form-control {
    min-width: 0;
  }

  .result-card h3 {
    font-size: 1.35rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 28px 20px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .carousel-indicators {
    margin-bottom: -30px;
    position: relative;
    margin-top: 20px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  /* FAQ */
  .accordion-button {
    padding: 16px 18px;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .accordion-body {
    padding: 16px 18px;
    font-size: 0.85rem;
  }

  /* CTA */
  .cta-section {
    padding: 70px 0;
  }

  .cta-section h2 {
    font-size: 1.65rem;
    padding: 0 12px;
  }

  .cta-section p {
    font-size: 0.95rem;
    padding: 0 12px;
  }

  /* Contact */
  .contact-info-card,
  .contact-form-card {
    padding: 24px 18px;
  }

  .contact-info-item {
    gap: 12px;
  }

  .contact-map {
    height: 180px;
  }

  /* Footer */
  .footer {
    padding: 50px 0 0;
    text-align: center;
  }

  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact li {
    justify-content: center;
    text-align: left;
  }

  .social-icons {
    justify-content: center;
  }

  /* Floating buttons - stay inside viewport */
  .floating-buttons {
    flex-direction: row;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: max(16px, env(safe-area-inset-right, 16px));
    gap: 10px;
  }

  .back-to-top {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    left: max(16px, env(safe-area-inset-left, 16px));
  }

  /* Bottom spacing so floats don't cover content */
  body {
    padding-bottom: 0;
  }

  .footer-bottom {
    padding-bottom: 80px;
  }
}

@media (max-width: 1399px) {
  .navbar-nav .nav-link {
    font-size: 0.78rem;
    padding: 8px 8px !important;
  }
}

@media (max-width: 1199px) {
  .hero-image-wrapper {
    max-width: 480px;
  }

  .hero-container {
    padding-bottom: 90px;
  }
}

/* Mobile phones */
@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 70px;
  }

  section {
    padding: 50px 0;
    overflow-x: clip;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-section {
    padding-top: 68px;
  }

  .hero-container {
    padding-top: 20px;
    padding-bottom: 55px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 1.5rem;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
  }

  .hero-stat-item h4 {
    font-size: 1.15rem;
  }

  .hero-stat-item p {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .hero-wave svg {
    height: 35px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-badge {
    font-size: 0.68rem;
    padding: 5px 14px;
    letter-spacing: 1.5px;
  }

  .about-section {
    padding-top: 24px;
  }

  .about-image {
    height: 220px;
    border-radius: 12px;
  }

  .mvv-card {
    padding: 18px;
  }

  .service-card h4 {
    font-size: 1.2rem;
  }

  .service-icon {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .stat-card {
    padding: 12px 8px;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .testimonial-avatar {
    width: 72px;
    height: 72px;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-secondary-custom {
    font-size: 0.9rem;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.35rem;
  }

  .navbar-nav {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .navbar-nav .nav-link {
    font-size: 0.8rem;
    padding: 10px 8px !important;
  }

  .hero-services-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }

  .hero-service-pill span {
    font-size: 0.72rem;
  }

  .hero-stat-item {
    padding: 10px 4px;
  }

  .process-step h5 {
    font-size: 0.9rem;
  }

  .process-step p {
    font-size: 0.75rem;
  }

  .result-cards .col-md-4 {
    margin-bottom: 0;
  }

  .result-card {
    padding: 18px 14px;
    margin-bottom: 10px;
  }

  .result-card h3 {
    font-size: 1.2rem;
  }

  .footer-bottom p {
    font-size: 0.78rem;
    line-height: 1.6;
    padding: 0 8px;
  }
}

/* Very small screens */
@media (max-width: 359.98px) {
  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-services-bar {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    grid-template-columns: 1fr;
  }
}

/* Large screens - perfect viewport fit */
@media (min-width: 992px) {
  .navbar-cta-wrap .btn-apply-nav {
    width: auto;
    display: inline-block;
  }
}

@media (min-width: 1200px) and (min-height: 700px) {
  .hero-container {
    padding-top: 16px;
    padding-bottom: 80px;
  }

  .hero-title {
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    margin-bottom: 1.75rem;
  }
}
