/* public/assets/css/style.css */

:root {
  --primary-purple: #302756;
  --secondary-orange: #CE6B1E;
  --secondary-orange-hover: #b55d17;
  --bg-light: #F8F9FC;
  --white: #FFFFFF;
  --text-dark: #222222;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 10px rgba(48, 39, 86, 0.06);
  --shadow-lg: 0 10px 25px rgba(48, 39, 86, 0.08);

  /* Compatibility variables for other subpage headers */
  --primary-dark-blue: #302756;
  --secondary-blue: #211A3D;
  --accent-gold: #CE6B1E;
  --transition: all 0.2s ease-in-out;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-purple);
  margin-top: 0;
}

/* Custom Text and Background Classes matching branding */
.text-primary-purple { color: var(--primary-purple) !important; }
.text-accent-orange { color: var(--secondary-orange) !important; }
.text-accent-gold { color: var(--secondary-orange) !important; }
.bg-primary-purple { background-color: var(--primary-purple) !important; }
.bg-accent-orange { background-color: var(--secondary-orange) !important; }
.bg-accent-gold { background-color: var(--secondary-orange) !important; }
.bg-soft-purple { background-color: rgba(48, 39, 86, 0.05) !important; }
.bg-soft-orange { background-color: rgba(206, 107, 30, 0.08) !important; }

/* Service Page Icon Styles */
.icon-wrapper {
  background-color: rgba(48, 39, 86, 0.08);
  color: var(--primary-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-icon {
  font-size: 32px;
}

.service-card:hover .icon-wrapper {
  background-color: var(--secondary-orange);
  color: var(--white);
  transform: scale(1.05);
}

/* Navbar - Clean, flat white */
.navbar {
  background-color: var(--white);
  border-bottom: 2px solid var(--border-color);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
}

.nav-link {
  color: var(--primary-purple) !important;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
}

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

/* Buttons - Clean, rectangular with slight rounding for credibility */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  padding: 10px 24px;
  transition: all 0.2s ease-in-out;
}

.btn-primary-custom {
  background-color: var(--primary-purple);
  color: var(--white);
  border: 1px solid var(--primary-purple);
}

.btn-primary-custom:hover {
  background-color: #211a3d;
  border-color: #211a3d;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent-custom {
  background-color: var(--secondary-orange);
  color: var(--white);
  border: 1px solid var(--secondary-orange);
}

.btn-accent-custom:hover {
  background-color: var(--secondary-orange-hover);
  border-color: var(--secondary-orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn-outline-primary-custom:hover {
  background-color: var(--primary-purple);
  color: var(--white);
}

/* Cards - Solid white with subtle shadows, clean borders */
.card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Service Cards specific style */
.service-card {
  padding: 30px;
  text-align: left;
}

.service-card .icon-box {
  width: 60px;
  height: 60px;
  background-color: rgba(48, 39, 86, 0.08);
  color: var(--primary-purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-card:hover .icon-box {
  background-color: var(--secondary-orange);
  color: var(--white);
}

/* Trust Badges styling */
.trust-badge-item {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
}

/* Timeline Process Section */
.process-timeline {
  position: relative;
  padding-left: 30px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--border-color);
}

.process-step-item {
  position: relative;
  margin-bottom: 40px;
}

.process-step-item:last-child {
  margin-bottom: 0;
}

.process-step-circle {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 22px;
  height: 22px;
  background-color: var(--white);
  border: 3px solid var(--primary-purple);
  border-radius: 50%;
  z-index: 2;
}

.process-step-item.active .process-step-circle {
  border-color: var(--secondary-orange);
}

/* Footer - Established brand appearance */
.footer {
  background-color: var(--primary-purple);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px 0;
}

.footer h5 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-orange);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

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

/* Float CTA Elements for established business trust */
.float-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.float-whatsapp:hover {
  transform: scale(1.05);
  color: var(--white);
}

/* Office Gallery Image Frame style */
.gallery-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  padding: 10px;
  transition: transform 0.2s ease;
}

.gallery-frame img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-frame:hover {
  transform: scale(1.02);
}

/* FAQ Accordion Styling */
.accordion-button:not(.collapsed) {
  background-color: var(--bg-light);
  color: var(--primary-purple);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--border-color);
}

/* Mobile & Tablet Responsiveness Overrides */
@media (max-width: 991.98px) {
  /* Mobile Navbar Menu styling */
  .navbar-collapse {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Full-width Stacked Buttons in mobile nav */
  .navbar-collapse .d-flex {
    flex-direction: column;
    width: 100%;
    gap: 12px !important;
  }
  
  .navbar-collapse .btn, 
  .navbar-collapse .nav-link.fw-bold {
    width: 100%;
    text-align: center;
    padding: 12px 20px !important;
    display: block;
  }
  
  /* Mobile Toggler */
  .navbar-toggler {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    padding: 6px 10px;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(48, 39, 86, 0.15);
  }
  
  /* Hero layout adjustments */
  h1 {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  /* Hero styling on mobile */
  h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  /* Padding adjustments */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .card, .service-card {
    padding: 20px !important;
  }
  
  /* RTO Icon details on mobile */
  .service-card .icon-box {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  /* Timeline spacing on mobile */
  .process-timeline {
    padding-left: 20px;
  }
  
  .process-timeline::before {
    left: 5px;
  }
  
  .process-step-circle {
    left: -20px;
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  
  /* Floating elements adjustments on small screens */
  .float-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 80px !important; /* Move WhatsApp float button up so it doesn't overlap bottom navbar */
    right: 20px;
    font-size: 26px;
  }
  
  body {
    padding-bottom: 75px !important; /* Ensure content isn't cut off by bottom navbar */
  }
}

/* Mobile Bottom Navbar Styles */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background-color: var(--primary-purple);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-bottom-nav-container {
  display: flex;
  height: 100%;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease-in-out;
}

.mobile-bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
  color: var(--secondary-orange) !important;
}

.mobile-bottom-nav-item.active i {
  transform: scale(1.1);
}

/* Elevated Center Apply Button */
.mobile-bottom-nav-item-apply {
  position: relative;
  height: 100%;
}

.apply-icon-circle {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(206, 107, 30, 0.4);
  margin-top: -25px; /* Elevate above navbar */
  border: 4px solid var(--primary-purple);
  transition: all 0.2s ease;
}

.mobile-bottom-nav-item-apply:hover .apply-icon-circle,
.mobile-bottom-nav-item-apply.active .apply-icon-circle {
  background-color: var(--secondary-orange-hover);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 12px rgba(206, 107, 30, 0.6);
}

.mobile-bottom-nav-item-apply span {
  margin-top: 2px;
}

/* Hero Video Container (16:9 Landscape aspect ratio) */
.hero-video-container {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #000;
}

/* Floating Quick Solution Side Tab (Desktop) / Pill Button (Mobile) */
.float-quick-solution {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left bottom;
  background-color: var(--secondary-orange);
  color: var(--white) !important;
  padding: 10px 20px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  z-index: 1040;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  margin-left: -2px; /* Pull slightly closer to the edge */
}

.float-quick-solution i {
  font-size: 1.1rem;
}

.float-quick-solution:hover {
  background-color: var(--secondary-orange-hover);
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .float-quick-solution {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: unset !important;
    top: auto !important;
    bottom: 80px !important; /* sits symmetrically with WhatsApp and above bottom navbar */
    left: 20px !important;
    border-radius: 50px !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    gap: 5px !important;
    box-shadow: 0 4px 10px rgba(206, 107, 30, 0.3);
  }
  
  .float-quick-solution i {
    transform: none !important;
  }
}

/* Compact Spacing for Sections & Cards (All Pages) */
section.py-5 {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

section.py-5 .container.py-4,
section.py-5 .container.py-5 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

section.py-5 .mb-5 {
  margin-bottom: 1.5rem !important;
}

.service-card {
  padding: 24px !important;
}

.card {
  box-shadow: 0 2px 8px rgba(48, 39, 86, 0.04) !important;
}

/* Compact Forms & Authentication Pages */
.py-5.bg-light,
.col-lg-6.py-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.bg-white.p-5 {
  padding: 2.25rem 2rem !important; /* Reduce from 3rem (48px) to 2.25rem vertical, 2rem horizontal */
}

.bg-white.p-5 .mb-5 {
  margin-bottom: 1.5rem !important;
}

.bg-white.p-5 .mb-4 {
  margin-bottom: 1rem !important;
}

.bg-white.p-5 .icon-wrapper.mb-4 {
  margin-bottom: 0.75rem !important;
}


