/* 
=========================================
   Expert Tax Consultant - Custom Styles
=========================================
   Colors: Red, Royal Blue, Sky Blue, Charcoal, Off-White
   Fonts: Outfit (Headings), Inter (Body)
=========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-red: #e01a22;
  --primary-red-hover: #b81219;
  --secondary-blue: #113f8c;
  --secondary-blue-hover: #0b2c63;
  --light-blue: #00a2e8;
  --light-blue-trans: rgba(0, 162, 232, 0.1);
  --neutral-dark: #2c2e30;
  --neutral-muted: #6c757d;
  --neutral-light: #f8f9fa;
  --neutral-border: #e9ecef;
  --white: #ffffff;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(17, 63, 140, 0.06);
  --shadow-lg: 0 20px 40px rgba(17, 63, 140, 0.12);
  --shadow-red: 0 8px 24px rgba(224, 26, 34, 0.25);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(44, 46, 48, 0.95);
  --glass-border: rgba(255, 255, 255, 0.5);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
}

/* Global Adjustments */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* offset for sticky navbar */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary-blue);
  font-weight: 700;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--neutral-light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-blue);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Custom Utilities */
.text-red { color: var(--primary-red); }
.text-blue { color: var(--secondary-blue); }
.text-sky { color: var(--light-blue); }
.bg-light-blue-trans { background-color: var(--light-blue-trans); }
.bg-blue-gradient {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #081d40 100%);
}
.bg-light-gradient {
  background: linear-gradient(180deg, var(--neutral-light) 0%, #ffffff 100%);
}
.bg-grey-gradient {
  background: linear-gradient(135deg, #fbfcfd 0%, #f1f3f7 100%);
}

/* Buttons Styling */
.btn-custom-red {
  background-color: var(--primary-red);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.btn-custom-red:hover, .btn-custom-red:focus {
  background-color: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  color: var(--white);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.btn-custom-blue {
  background-color: var(--secondary-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid var(--secondary-blue);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.btn-custom-blue:hover, .btn-custom-blue:focus {
  background-color: var(--secondary-blue-hover);
  border-color: var(--secondary-blue-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 63, 140, 0.25);
}

.btn-custom-outline-blue {
  background-color: transparent;
  color: var(--secondary-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid var(--secondary-blue);
  transition: var(--transition-smooth);
}
.btn-custom-outline-blue:hover, .btn-custom-outline-blue:focus {
  background-color: var(--secondary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 63, 140, 0.25);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid #25d366;
  transition: var(--transition-smooth);
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
  background-color: #128c7e;
  border-color: #128c7e;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* Header / Navbar Styling */
.header-top {
  background-color: var(--neutral-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 6px 0;
  font-family: var(--font-body);
}
.header-top a {
  color: rgba(255, 255, 255, 0.85);
}
.header-top a:hover {
  color: var(--light-blue);
}

.navbar {
  transition: var(--transition-smooth);
  padding: 15px 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1030;
}
.navbar.navbar-sticky {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  transition: var(--transition-smooth);
}
.navbar.navbar-sticky .navbar-brand img {
  height: 44px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-dark) !important;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  position: relative;
  transition: var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 16px;
  background-color: var(--primary-red);
  transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: calc(100% - 32px);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-red) !important;
}

.navbar-toggler {
  border: none;
  outline: none !important;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 63, 140, 0.05) 0%, rgba(0, 162, 232, 0.03) 100%);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 162, 232, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 35%;
  height: 70%;
  background: radial-gradient(circle, rgba(224, 26, 34, 0.05) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

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

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--secondary-blue);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-dark);
  margin-bottom: 30px;
}

.badge-trust-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: 30px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-blue);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.badge-trust i {
  color: var(--primary-red);
}
.badge-trust:hover {
  transform: translateY(-2px);
  border-color: var(--light-blue);
  box-shadow: var(--shadow-md);
}

/* Quick Enquiry Form Card */
.enquiry-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.enquiry-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.enquiry-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-red);
}

.form-control, .form-select {
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--neutral-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--white);
  transition: var(--transition-fast);
}
.form-control:focus, .form-select:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(17, 63, 140, 0.15);
}

/* Tax Calculator Section */
.calculator-section {
  padding: 80px 0;
  background-color: var(--neutral-light);
}

.calculator-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(17, 63, 140, 0.04);
}

.calculator-results {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #0d2b5c 100%);
  color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.result-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.result-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}
.result-value.net-salary {
  font-size: 2.2rem;
  color: #00ff88;
}
.result-value.tax-value {
  color: #ff5252;
}

/* Services Section */
.services-section {
  padding: 80px 0;
}

.section-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-red);
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
}

.section-subtitle {
  color: var(--neutral-muted);
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--secondary-blue);
  transition: var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before {
  height: 100%;
  width: 6px;
  background-color: var(--primary-red);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background-color: rgba(17, 63, 140, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-blue);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon-box {
  background-color: var(--primary-red);
  color: var(--white);
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}
.service-card:hover h3 {
  color: var(--primary-red);
}

.service-card p {
  font-size: 0.925rem;
  color: var(--neutral-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-card .btn-whatsapp-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.4);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  width: fit-content;
  transition: var(--transition-fast);
}
.service-card:hover .btn-whatsapp-compact {
  background-color: #25d366;
  color: var(--white);
  border-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Why Choose Us Section */
.why-us-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--neutral-light) 100%);
  position: relative;
}

.stats-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-border);
  height: 100%;
  transition: var(--transition-smooth);
}
.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--light-blue);
}

.stats-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-blue);
  margin-bottom: 8px;
  line-height: 1;
}

.stats-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neutral-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Process Section */
.process-section {
  padding: 80px 0;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 20px;
  height: 100%;
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 25px auto;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}
.process-step:hover .step-number {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary-red) 0%, #b81219 100%);
  box-shadow: var(--shadow-red);
}

.process-step:not(:last-child)::after {
  content: '\f054'; /* FontAwesome Chevron Right */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 55px;
  right: -15%;
  font-size: 1.25rem;
  color: var(--neutral-border);
  z-index: 1;
}
@media (max-width: 991px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

.process-step h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--secondary-blue);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--neutral-muted);
}

/* Industries Served */
.industries-section {
  padding: 80px 0;
  background-color: var(--neutral-light);
}

.industry-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  height: 100%;
}
.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--light-blue-trans);
}

.industry-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--light-blue-trans);
  color: var(--secondary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.industry-card:hover .industry-icon-box {
  background-color: var(--primary-red);
  color: var(--white);
}

.industry-card span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-dark);
  font-size: 0.95rem;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 80px 0;
}

.accordion-item {
  border: 1px solid var(--neutral-border);
  border-radius: var(--border-radius-md) !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary-blue);
  font-size: 1.05rem;
  padding: 20px;
  background-color: var(--white);
  border: none;
  transition: var(--transition-fast);
}
.accordion-button:not(.collapsed) {
  background-color: rgba(17, 63, 140, 0.02);
  color: var(--primary-red);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.accordion-button::after {
  background-size: 1rem;
  transition: var(--transition-fast);
}

.accordion-body {
  padding: 20px;
  font-size: 0.95rem;
  color: var(--neutral-dark);
  background-color: var(--white);
  border-top: 1px solid var(--neutral-border);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--neutral-light);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  height: auto; /* Natural height to prevent circular flexbox stretching loops */
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-blue-trans);
  color: var(--secondary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-info-text p, .contact-info-text a {
  font-size: 0.925rem;
  color: var(--neutral-muted);
  margin-bottom: 0;
}
.contact-info-text a:hover {
  color: var(--primary-red);
}

.map-placeholder {
  width: 100%;
  height: 250px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition-smooth);
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
  background-color: #128c7e;
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: none;
}
body.js-active .reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
body.js-active .reveal.active {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

body.js-active .reveal-up {
  transform: translateY(40px);
}
body.js-active .reveal-down {
  transform: translateY(-40px);
}
body.js-active .reveal-left {
  transform: translateX(-40px);
}
body.js-active .reveal-right {
  transform: translateX(40px);
}
body.js-active .reveal-fade {
  transform: scale(0.95);
}

/* Footer Section */
.footer {
  background-color: var(--neutral-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 20px 0;
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-logo-container {
  background-color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.footer-logo {
  max-width: 180px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--light-blue);
  transform: translateX(3px);
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}
.footer-contact-info i {
  color: var(--light-blue);
  margin-top: 4px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.footer-social-btn:hover {
  background-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 50px;
}

.footer-disclaimer-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 0;
}

/* Mobile Navigation Collapsed Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-top: 15px;
    border: 1px solid var(--neutral-border);
  }
  .nav-link::after {
    left: 16px;
  }
  .nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 32px);
  }
  .navbar-nav {
    margin-bottom: 15px !important;
  }
}

/* Sticky Mobile CTA Bar Styling */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-blue);
  z-index: 1020;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}
.mobile-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: var(--transition-fast);
  height: 100%;
}
.mobile-cta-item i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.mobile-cta-item:hover, .mobile-cta-item:focus {
  background-color: var(--secondary-blue-hover);
  color: var(--white);
}
.mobile-cta-item.bg-whatsapp-btn {
  background-color: #25d366;
}
.mobile-cta-item.bg-whatsapp-btn:hover {
  background-color: #128c7e;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 60px; /* offset for sticky cta bar */
  }
  .whatsapp-float {
    bottom: 80px; /* float higher to avoid overlap */
  }
}

/* =========================================
   UI FIXES: Header, Contact Card & Footer
   ========================================= */

/* 1. Prevent header menu from wrapping on desktop/laptop views (min-width: 992px) */
@media (min-width: 992px) {
  .navbar .container {
    max-width: 1320px !important;
    width: 100%;
  }
  .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
  }
  .nav-link {
    padding: 8px 10px !important;
    font-size: 0.88rem !important;
    white-space: nowrap;
  }
  .navbar-brand img {
    height: 44px !important;
  }
  .navbar .btn-custom-red {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
  }
  .navbar .d-flex {
    gap: 12px !important;
    align-items: center;
  }
}

/* 2. Specificity fix for blue gradient contact info card */
.contact-info-card.bg-blue-gradient {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #081d40 100%) !important;
  color: var(--white) !important;
}
.contact-info-card.bg-blue-gradient h5 {
  color: var(--white) !important;
}

/* 3. Footer layout hardening */
.footer {
  background-color: var(--neutral-dark) !important;
  position: relative;
  z-index: 10;
  clear: both;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS HARDENING & OVERLAP PREVENTIONS
   ========================================================================== */

/* 1. Global Responsive Grid adjustments & Height fixes */
@media (max-width: 991px) {
  .contact-section .row, 
  .calculator-section .row, 
  .hero-section .row {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .contact-info-card, 
  .contact-form-card, 
  .calculator-card, 
  .calculator-results,
  .enquiry-card {
    height: auto !important; /* Remove fixed heights or h-100 overrides on mobile */
    min-height: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 25px !important;
  }
  
  .contact-form-card {
    margin-bottom: 0 !important; /* Remove bottom margin for the last element in stack */
  }

  /* Prevent translation overflow issues on reveal animation offsets */
  body.js-active .reveal-left, 
  body.js-active .reveal-right {
    transform: translateY(20px) !important; /* Translate vertically instead of horizontally on mobile to prevent overflow-x */
  }
  
  /* Prevent scroll reveal from blocking interaction with invisible layers */
  body.js-active .reveal {
    pointer-events: auto !important; 
  }
}

/* 2. Paddings and Spacing Scaling */
@media (max-width: 767px) {
  section, 
  .py-5, 
  .contact-section, 
  .services-section, 
  .calculator-section, 
  .why-us-section, 
  .process-section, 
  .faq-section {
    padding: 50px 0 !important;
  }
  
  .contact-info-card, 
  .contact-form-card, 
  .enquiry-card, 
  .calculator-card, 
  .calculator-results,
  .stats-card,
  .service-card {
    padding: 24px 16px !important; /* Standardized safe mobile card padding */
  }
  
  .hero-section {
    padding: 120px 0 60px 0 !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
}

/* 3. Header, Logo & Menu Hardening */
@media (max-width: 991px) {
  .navbar {
    padding: 10px 0 !important;
  }
  .navbar-brand img {
    height: 38px !important;
    max-width: 180px !important; /* Prevent logo overflow */
    object-fit: contain;
  }
  .navbar-toggler {
    padding: 4px 8px !important;
  }
  .navbar-collapse {
    max-height: 400px;
    overflow-y: auto; /* Allow scroll in case of narrow viewport heights */
  }
}

/* 4. Floating WhatsApp Button position adjustment (prevent overlapping forms/CTA bar) */
@media (max-width: 991px) {
  .whatsapp-float {
    bottom: 95px !important; /* Align cleanly above the 70px mobile CTA bar */
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 26px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  }
}
@media (max-width: 390px) {
  .whatsapp-float {
    width: 44px !important;
    height: 44px !important;
    font-size: 22px !important;
    bottom: 85px !important;
  }
}

/* 5. Mobile Sticky CTA Bar spacing & body padding offset */
@media (max-width: 991px) {
  body {
    padding-bottom: 90px !important; /* Offset spacing to avoid bottom CTA overlaps */
  }
  
  .mobile-cta-bar {
    height: 70px !important;
    display: flex !important;
    align-items: center;
  }
  
  .mobile-cta-bar .row {
    width: 100%;
    margin: 0;
  }
  
  .mobile-cta-item {
    font-size: 0.72rem !important;
    padding: 8px 2px !important;
  }
}

/* 6. Form control viewport fitting (prevent overflow) */
.form-control, .form-select, textarea {
  max-width: 100% !important;
}

/* =========================================
   7. Services Dropdown & Navbar Hover
   ========================================= */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  padding: 10px 0;
  min-width: 260px;
  background-color: var(--white);
  border-top: 3px solid var(--primary-red);
}

.navbar .dropdown-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--neutral-dark) !important;
  padding: 10px 20px;
  position: relative;
  transition: var(--transition-fast);
}

.navbar .dropdown-item:hover, 
.navbar .dropdown-item.active {
  background-color: var(--neutral-light);
  color: var(--primary-red) !important;
  padding-left: 24px;
}

.navbar .dropdown-toggle::after {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* =========================================
   8. Team Page Custom Styles
   ========================================= */
.team-card {
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(17, 63, 140, 0.08);
}

.team-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 114.28%; /* 480px / 420px = 1.1428 (aspect ratio 7:8) */
  overflow: hidden;
  background-color: var(--neutral-light);
}

.team-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-card:hover .team-image {
  transform: scale(1.04);
}

.team-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-blue);
  margin-bottom: 4px;
}

.team-designation {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.team-credentials {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--light-blue-trans);
  color: var(--secondary-blue);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: inline-block;
  width: fit-content;
}

.team-bio {
  font-size: 0.925rem;
  color: var(--neutral-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.team-info .btn-whatsapp {
  margin-top: auto;
  font-size: 0.9rem;
  padding: 10px 20px;
  width: 100%;
  text-align: center;
}

/* Values Card Custom styling */
.value-card {
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  height: 100%;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--light-blue);
}

.value-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  background-color: var(--light-blue-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--secondary-blue);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

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

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* =========================================
   9. Tax Calculator Contrast and Color Fixes
   ========================================= */
/* Ensure the results table is transparent and uses high-contrast text on dark blue gradient background */
.bg-blue-gradient .table {
  background-color: transparent !important;
  --bs-table-bg: transparent !important;
  --bs-table-color: #ffffff !important;
  --bs-table-border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.bg-blue-gradient .table td {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Ensure labels have high contrast (85% white) on dark blue background */
.bg-blue-gradient .table td.text-white-50 {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Accent highlight values on dark background */
.text-green-highlight {
  color: #00ff88 !important; /* Highly visible vibrant green */
}

.text-red-highlight {
  color: #ff6b6b !important; /* Highly visible vibrant red/coral */
}

/* Support for white card calculator layouts (if backgrounds are overridden to white) */
.bg-white .table,
.bg-white .table td,
.table:not(.text-white) td {
  --bs-table-color: #212529 !important;
  color: #212529 !important;
}

.bg-white .table td.text-white-50,
.table:not(.text-white) td.text-white-50 {
  color: #555555 !important; /* High contrast dark grey label */
}

.bg-white .text-green-highlight,
.table:not(.text-white) .text-green-highlight {
  color: #198754 !important; /* Standard Bootstrap green for light background */
}

.bg-white .text-red-highlight,
.table:not(.text-white) .text-red-highlight {
  color: #dc3545 !important; /* Standard Bootstrap red for light background */
}

/* Ensure borders are visible and clean in all contexts */
.border-white-10 {
  border-color: rgba(255, 255, 255, 0.15) !important;
}



