/* --- HEADER / HERO section (unchanged) --- */
.navbar-home-one {
    background: var(--light-off-white);
    box-shadow: 0 4px 14px var(--black-dark-color);
    padding: 0.8rem 0;
}

.brand-home-one {
    font-weight: 700;
    color: var(--primary-navy) !important;
    letter-spacing: -0.4px;
}

.nav-link-home-one {
  color: var(--text-medium) !important;
  font-weight: 500;
  padding: 0.5rem 0.8rem !important; /* Adjust horizontal padding */
}

.nav-link-home-one:hover {
    color: var(--primary-navy) !important;
}

.btn-primary-home {
    background-color: var(--primary-navy);
    color: var(--white-color);
    border-radius: 40px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    border: none;
}

.btn-primary-home:hover {
    background-color: var(--light-navy);
    color: var(--white-color);
}

.btn-outline-home {
    background: transparent;
    border: 1.5px solid var(--primary-navy);
    color: var(--primary-navy);
    border-radius: 40px;
    padding: 0.6rem 2rem;
    font-weight: 600;
}

.btn-outline-home:hover {
    background: var(--off-white-color);
}

.btn-large-home {
    padding: 0.8rem 2.5rem;
    font-size: 1.25rem;
}

.badge-mel-home {
    background: var(--light-cream);
    color: var(--primary-navy);
    border-radius: 40px;
    padding: 0.3rem 1.5rem;
    font-weight: 500;
    border: 1px solid var(--grey-border);
    display: inline-block;
    margin-bottom: 1.2rem;
}

.hero-home {
    padding: 2rem 0 3rem;
    background: linear-gradient(145deg, var(--grey-soft), var(--light-off-white));
}

.hero-headline-home {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-navy);
}

.hero-subhead-home {
    font-size: 1.2rem;
    color: var(--text-medium);
}

.hero-graphic-home {
    background: transparent;
    border-radius: 60px 60px 30px 30px;
    padding: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-icon-large {
    font-size: 5rem;
    opacity: 0.3;
}

.hero-icon-medium {
    font-size: 3rem;
    opacity: 0.3;
}

/* --- About section (exactly as provided) --- */
.about-section-home {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.about-card-home {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -12px var(--dark-color-black);
}

.about-content-home {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-highlight-card-home {
    background: var(--cream);
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--sky);
}

.highlight-item-home {
    padding: 1rem 0;
    border-bottom: 1px solid var(--sky);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-item-home:last-child {
    border-bottom: 0;
}

.highlight-icon-home {
    color: var(--primary-navy);
    font-size: 1.5rem;
    width: 2.5rem;
    flex-shrink: 0;
}

.bg-soft-grey-home {
    background: var(--white-cream);
}

.section-title-home {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.text-medium-home {
    color: var(--accent-slate);
}

.text-navy-home {
    color: var(--primary-navy);
}
/* === CORE SERVICES === */
.services-wrapper-home {
    background: var(--off-white);
    padding: 2rem 0;
}

/* unique classes for four service cards */
.service-card-core-one,
.service-card-core-two,
.service-card-core-three,
.service-card-core-four {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 1.1rem 1.5rem;
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 30px -12px var(--background-black);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-core-one::before,
.service-card-core-two::before,
.service-card-core-three::before,
.service-card-core-four::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-navy);
    transition: height 0.3s ease;
}

.service-icon-home {
    background: var(--of-white);
    width: 71px;
    height: 69px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.service-card-core-one:hover .service-icon-home,
.service-card-core-two:hover .service-icon-home,
.service-card-core-three:hover .service-icon-home,
.service-card-core-four:hover .service-icon-home {
    background: var(--primary-navy);
    color: var(--white-color);
}

.service-card-core-one h4,
.service-card-core-two h4,
.service-card-core-three h4,
.service-card-core-four h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.service-card-core-one .text-medium-home.small,
.service-card-core-two .text-medium-home.small,
.service-card-core-three .text-medium-home.small,
.service-card-core-four .text-medium-home.small {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.service-card-core-one .small.text-medium-home,
.service-card-core-two .small.text-medium-home,
.service-card-core-three .small.text-medium-home,
.service-card-core-four .small.text-medium-home {
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.service-list-home {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.service-list-home li {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-list-home i {
    color: var(--primary-navy);
    font-size: 0.9rem;
    margin-top: 0.15rem;
    width: 1.1rem;
    flex-shrink: 0;
}

/* === MODULE 1: END-TO-END FINANCE FUNCTION - unique classes for cards === */
.module-endtoend-wrapper {
    padding: 2rem 0;
    background: var(--white-color);
}

.module-endtoend-card {
    background: var(--white-color);
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid var(--grey-border);
    box-shadow: 0 25px 50px -20px var(--card-black);
    margin: 0 auto;
}

.module-endtoend-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.module-endtoend-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.module-endtoend-icon {
    width: 40px;
    height: 40px;
    background: var(--dark-brown);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 1rem;
    flex-shrink: 0;
}

.module-endtoend-feature div {
    line-height: 1.5;
    font-size: 1rem;
}

.module-endtoend-highlight {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: var(--white-color);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 0;
}

/* === MODULE 2: BACK-OFFICE FINANCE SUPPORT - unique classes for inner cards === */
.module-backoffice-wrapper {
    padding: 2rem 0;
    background: linear-gradient(145deg, var(--bg-blue-soft) 0%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
}

.module-backoffice-wrapper::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--blackish-brown) 0%, transparent 70%);
    pointer-events: none;
}

.module-backoffice-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.module-backoffice-content {
    background: var(--white-color);
    border-radius: 40px;
    padding: 3rem;
    box-shadow: 0 30px 60px -30px var(--primary-navy);
    border: 1px solid var(--lg-brown-grey);
    position: relative;
}

/* unique classes for two inner cards in backoffice */
.backoffice-card-left,
.backoffice-card-right {
    background: var(--white-cream);
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--border-color);
}

.backoffice-card-left h5,
.backoffice-card-right h5 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: var(--primary-navy);
}

.backoffice-card-left ul,
.backoffice-card-right ul {
    margin-bottom: 0;
}

.backoffice-card-left li,
.backoffice-card-right li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.backoffice-card-left li:last-child,
.backoffice-card-right li:last-child {
    margin-bottom: 0;
}

.backoffice-card-left .text-navy-home,
.backoffice-card-right .text-navy-home {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.module-backoffice-quote {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: var(--white-color);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

/* === OTHER SECTIONS - unique card classes === */
.content-block-alt-enhanced {
    background: var(--white-cream);
    padding: 3rem 0;
    position: relative;
}

.feature-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* unique classes for the four elegant cards in why choose */
.card-elegant-one,
.card-elegant-two,
.card-elegant-three,
.card-elegant-four {
    background: var(--white-color);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px var(--background-black);
    height: 100%;
}

.card-elegant-one h5,
.card-elegant-two h5,
.card-elegant-three h5,
.card-elegant-four h5 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    color: var(--primary-navy);
}

.card-elegant-one ul,
.card-elegant-two ul,
.card-elegant-three ul,
.card-elegant-four ul {
    margin-bottom: 0;
}

.card-elegant-one li,
.card-elegant-two li,
.card-elegant-three li,
.card-elegant-four li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-elegant-one li:last-child,
.card-elegant-two li:last-child,
.card-elegant-three li:last-child,
.card-elegant-four li:last-child {
    margin-bottom: 0;
}

/* unique class for the bottom card in why choose (full width) */
.card-elegant-five {
    background: var(--white-color);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px var(--background-black);
}

/* who we help card */
.card-who-help {
    background: var(--white-color);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px var(--background-black);
}

/* technology card */
.card-tech-support {
    background: var(--white-color);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px var(--background-black);
}

/* client trust card */
.card-client-trust {
    background: var(--white-color);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px var(--background-black);
}

.list-enhanced {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.list-enhanced li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.5;
}

.list-enhanced li:last-child {
    margin-bottom: 0;
}

.list-enhanced i {
    color: var(--primary-navy);
    font-size: 1.1rem;
    width: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.highlight-box-enhanced {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: var(--white-color);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0 0;
    position: relative;
    overflow: hidden;
}

.faq-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.faq-item-enhanced {
    background: var(--white-color);
    border-radius: 22px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px -8px var(--dark-black-brown);
    height: 100%;
}

.cta-enhanced {
    background-color: var(--primary-navy);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-title-enhanced {
    color: var(--white-color);
    font-weight: 700;
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.cta-text-enhanced {
    color: var(--white-color);
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-cta-primary {
    background: var(--white-color);
    color: var(--primary-navy);
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border: none;
}

.btn-cta-outline {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
}

.footer-home {
    background-color: var(--normal-navy);
    color: var(--light-sky-grey);
    padding: 4rem 0;
}

@media (max-width:992px) {
    .module-endtoend-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid-enhanced {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    .hero-headline-home {
        font-size: 2rem;
    }

    .faq-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .section-title-home {
        font-size: 1.8rem;
    }

    .module-endtoend-card {
        padding: 2rem;
    }

    .module-backoffice-content {
        padding: 2rem;
    }
    
    .service-card-core-one,
    .service-card-core-two,
    .service-card-core-three,
    .service-card-core-four {
        padding: 1.75rem;
    }
}

/* Override the existing grid to prevent empty left column */
.module-backoffice-grid {
    display: block !important;
}

/* Hide the old left column completely */
.module-backoffice-grid>div:first-child {
    display: none !important;
}

/* Make content take full width */
.module-backoffice-content {
    max-width: 100% !important;
}

/* Center the content container */
.module-backoffice-container {
    max-width: 1200px;
}

.hero-graphic-home {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== UNIFIED DROPDOWN STYLES FOR ALL MENUS ========== */

/* Remove default Bootstrap dropdown arrows */
.dropdown-toggle::after {
  display: none !important;
}

/* Add custom arrows for main nav items ONLY */
.nav-link.dropdown-toggle {
  position: relative;
  padding-right: 1.5rem !important;
}

.nav-link.dropdown-toggle::before {
  content: "▼";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--text-medium);
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-link.dropdown-toggle:hover::before {
  color: var(--primary-navy);
  opacity: 1;
}

/* Rotate arrow when dropdown is open */
.nav-link.dropdown-toggle.show::before {
  transform: translateY(-50%) rotate(180deg);
}
.navbar-nav .nav-item {
  margin: 0 0.1rem;
}

.dropdown-menu li {
  list-style: none !important;
}

/* Dropdown headers */
.dropdown-header {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.2rem;
}

/* Divider */
.dropdown-divider {
  margin: 0.3rem 0;
  border-top: 1px solid var(--grey-border);
}

/* ========== SERVICES MULTI-LEVEL DROPDOWN ========== */

/* Services specific menu */
.services-menu {
  min-width: 280px;
  padding: 0.5rem 0 !important;
}

/* Style for the top-level submenu items (For Businesses, For Accounting Firms) */
.services-menu > li.dropdown-submenu > .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  color: var(--primary-navy);
  background: transparent;
}

/* Submenu arrow using >> - ONLY for top-level items */
.services-menu > li.dropdown-submenu > .dropdown-item .submenu-arrow {
  color: var(--primary-navy);
  font-size: 0.9rem;
  margin-left: 0.5rem;
  opacity: 0.7;
  display: inline-block;
}

.services-menu > li.dropdown-submenu:hover > .dropdown-item .submenu-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Submenu dropdown positioning */
li.dropdown-submenu {
  position: relative;
  list-style: none !important;
}

.submenu-dropdown {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0.2rem;
  min-width: 240px;
  background: var(--white-color);
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px var(--black);
  padding: 0.5rem 0;
  display: none;
  z-index: 1001;
}

/* Show submenu on hover */
li.dropdown-submenu:hover > .submenu-dropdown {
  display: block;
}

/* Submenu items - NO ARROWS */
.submenu-dropdown .dropdown-item {
  padding: 0.6rem 1.5rem;
  color: var(--text-medium);
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.submenu-dropdown .dropdown-item:hover {
  background: var(--of-white);
  color: var(--primary-navy);
  padding-left: 2rem;
}

/* Ensure submenu items NEVER have arrows */
.submenu-dropdown .dropdown-item .submenu-arrow,
.submenu-dropdown .dropdown-item::after,
.submenu-dropdown .dropdown-item::before {
  display: none !important;
  content: none !important;
}

/* Remove all bullets from all dropdowns */
.dropdown-menu,
.dropdown-menu ul,
.dropdown-menu li,
.submenu-dropdown,
.submenu-dropdown ul,
.submenu-dropdown li {
  list-style: none !important;
  list-style-type: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Animation */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  animation: dropdownFade 0.2s ease-out;
}

/* Mobile responsive */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem !important;
  }
  
  .submenu-dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid var(--grey-border);
    background: var(--grey-soft);
    margin-left: 1rem;
    margin-top: 0.5rem;
    width: calc(100% - 1rem);
  }
  
  .submenu-arrow {
    display: none;
  }
  
  /* Remove custom arrows on mobile */
  .nav-link.dropdown-toggle::before {
    display: none;
  }
}
/* add separator lines between dropdown items */
/* ========== CLEAN DROPDOWN SEPARATOR STYLES ========== */

/* Add borders between dropdown items */
.dropdown-menu .dropdown-item:not(:last-child) {
  border-bottom: 1px solid var(--grey-border) !important;
}

.dropdown-menu .dropdown-item:last-child {
  border-bottom: none !important;
}

/* Dashed lines for submenu items */
.submenu-dropdown .dropdown-item:not(:last-child) {
  border-bottom: 1px dashed var(--grey-border) !important;
}

.submenu-dropdown .dropdown-item:last-child {
  border-bottom: none !important;
}

/* Services top items */
.services-menu > li.dropdown-submenu > .dropdown-item {
  border-bottom: 1px solid var(--grey-border) !important;
}

.services-menu > li.dropdown-submenu:last-child > .dropdown-item {
  border-bottom: none !important;
}
/* ========== BEAUTIFUL DROPDOWN STYLING FOR ALL MENUS ========== */

/* Apply the beautiful Services menu styling to ALL dropdowns */
.dropdown-menu {
  min-width: 260px !important;
  border: 1px solid var(--grey-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px -12px var(--black) !important;
  padding: 0.5rem 0 !important;
  background: var(--white-color) !important;
  border: none !important;
}

/* Style all dropdown items like the Services menu */
.dropdown-menu .dropdown-item {
  padding: 0.8rem 1.5rem !important;
  color: var(--text-medium) !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  font-size: 0.95rem !important;
}

/* Hover effect - matching Services menu */
.dropdown-menu .dropdown-item:hover {
  background: var(--of-white) !important;
  color: var(--primary-navy) !important;
  padding-left: 2rem !important;
}

/* Make first-level items in Company/Resources have nice styling */
.dropdown-menu > .dropdown-item {
  font-weight: 500 !important;
}

/* Add separator lines between items (like Services menu) */
.dropdown-menu .dropdown-item:not(:last-child) {
  border-bottom: 1px solid var(--grey-border) !important;
}

.dropdown-menu .dropdown-item:last-child {
  border-bottom: none !important;
}

/* Ensure Company and Resources have the same elegant look */
.nav-item.dropdown .dropdown-menu {
  min-width: 240px !important;
}

/* Optional: Add a subtle animation */
.dropdown-menu {
  animation: dropdownFade 0.2s ease-out !important;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========== IMPROVED NAVBAR STYLES ========== */

/* Navbar Base */
.navbar-sapphire {
  background: var(--bg-color);
  box-shadow: 0 4px 20px var(--dark-black-brown);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.navbar-sapphire .container {
  max-width: 1400px;
}

/* Brand */
.brand-sapphire {
  color: var(--primary-navy) !important;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  font-weight: 700;
  position: relative;
  padding: 0.5rem 0;
}

.brand-sapphire i {
  color: var(--primary-navy);
  font-size: 1.4rem;
  opacity: 0.9;
}

.text-medium {
  color: var(--text-medium);
  font-weight: 400;
}

/* Navigation Links */
.nav-link-sapphire {
  color: var(--text-medium) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.7rem 1rem !important;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link-sapphire:hover {
  color: var(--primary-navy) !important;
}

/* Dropdown Arrow - Only for dropdown items */
.dropdown-toggle.nav-link-sapphire {
  position: relative;
  padding-right: 1.8rem !important;
}

.dropdown-toggle.nav-link-sapphire::after {
  content: "▼";
  font-size: 0.6rem;
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: currentColor;
  opacity: 0.6;
  border: none;
  vertical-align: middle;
}

/* Regular dropdown menus (Company, Resources) */
.dropdown-menu-sapphire {
  min-width: 240px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 40px -12px var(--darkest-navy);
  padding: 0.5rem 0;
  background: var(--white-color);
  animation: dropdownFade 0.2s ease-out;
  margin-top: 0.5rem;
}

.dropdown-menu-sapphire .dropdown-item {
  padding: 0.7rem 1.5rem;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--of-white);
}

.dropdown-menu-sapphire .dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-menu-sapphire .dropdown-item:hover {
  background: var(--of-white);
  color: var(--primary-navy);
  padding-left: 2rem;
}


/* ========== NAVBAR ADJUSTMENTS - MOVE BRAND AND NAVIGATION MORE TO THE RIGHT ========== */

/* Increase left padding on container to shift everything right */
.navbar-sapphire .container {
  padding-left: 100px !important;
}

/* Additional push for brand */
.brand-sapphire {
  margin-right: 34px !important;
}

/* Push navigation items further right */
@media (min-width: 992px) {
  .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 40px !important;
  }
}

/* Optional: Add even more spacing between nav items if needed */
.navbar-nav .nav-item {
  margin: 0 0.2rem;
}

/* Hide any remaining button styles */
.btn-outline-sapphire,
.btn-primary-sapphire,
.nav-cta {
  display: none;
}

/* ========== COMPLETE MOBILE RESPONSIVE FIXES ========== */

@media (max-width: 991px) {
  /* Reset container padding for mobile */
  .navbar-sapphire .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Reset brand margin for mobile */
  .brand-sapphire {
    margin-right: 0 !important;
  }
  
  /* Make navbar collapse background white */
  .navbar-collapse {
    background: var(--white-color);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--navbar-black);
    margin-top: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Style mobile nav items */
  .nav-item {
    margin: 0.25rem 0 !important;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  /* Mobile nav links */
  .nav-link-sapphire {
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Fix dropdown arrows on mobile */
  .dropdown-toggle.nav-link-sapphire::after {
    position: static !important;
    transform: none !important;
    margin-left: 0.5rem;
    display: inline-block !important;
  }
  
  /* Mobile dropdown menus */
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--grey-soft) !important;
    padding: 0.5rem !important;
    margin: 0.5rem 0 0.5rem 1rem !important;
    border-radius: 12px !important;
    width: auto !important;
    min-width: auto !important;
    animation: none !important;
    display: none;
  }
  
  /* Show dropdown when parent has show class */
  .dropdown.show > .dropdown-menu,
  .dropdown-menu.show {
    display: block !important;
  }
  
  /* Mobile dropdown items */
  .dropdown-menu .dropdown-item {
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word;
    border-bottom: 1px solid var(--sky) !important;
  }
  
  .dropdown-menu .dropdown-item:last-child {
    border-bottom: none !important;
  }
  
  /* Mobile submenu styles */
  .dropdown-submenu {
    position: relative;
  }
  
  /* Style the submenu parent items */
  .services-menu > li.dropdown-submenu > .dropdown-item {
    padding: 0.8rem 1rem !important;
    font-weight: 600;
    border-bottom: 1px solid var(--sky) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Submenu arrow on mobile */
  .services-menu > li.dropdown-submenu > .dropdown-item .submenu-arrow {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
  }
  
  /* Rotate arrow when submenu is open */
  .dropdown-submenu.show > .dropdown-item .submenu-arrow {
    transform: rotate(270deg);
  }
  
  /* Mobile submenu dropdown */
  .submenu-dropdown {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid var(--sky) !important;
    background: var(--white-color) !important;
    margin: 0.5rem 0 0.5rem 1rem !important;
    padding: 0.5rem !important;
    border-radius: 10px !important;
    width: auto !important;
    display: none !important;
  }
  
  /* Show submenu when parent has show class */
  .dropdown-submenu.show > .submenu-dropdown {
    display: block !important;
  }
  
  /* Mobile submenu items */
  .submenu-dropdown .dropdown-item {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem;
    white-space: normal !important;
    word-wrap: break-word;
    border-bottom: 1px dashed var(--sky) !important;
    background: var(--white-color);
  }
  
  .submenu-dropdown .dropdown-item:last-child {
    border-bottom: none !important;
  }
  
  .submenu-dropdown .dropdown-item:hover {
    background: var(--of-white) !important;
    padding-left: 1.5rem !important;
  }
  
  /* Long text wrapping for all dropdown items */
  .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word;
    line-height: 1.4;
  }
  
  /* Fix for very long text in For Businesses section */
  .submenu-dropdown .dropdown-item {
    white-space: normal !important;
    word-break: break-word;
    padding-right: 0.5rem !important;
  }
  
  /* Ensure all dropdowns have proper width on mobile */
  .dropdown-menu,
  .submenu-dropdown,
  .services-menu {
    min-width: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Remove hover effects on mobile */
  .dropdown-menu .dropdown-item:hover {
    background: var(--of-white) !important;
    padding-left: 1rem !important;
  }
  
  /* Better spacing for service lists */
  .services-menu {
    padding: 0 !important;
  }
  
  /* Fix for Bootstrap dropdown toggle on mobile */
  .dropdown-toggle::after {
    display: none !important;
  }
  
  /* Ensure clickable area is big enough */
  .nav-link, 
  .dropdown-item {
    cursor: pointer;
  }
  
  /* Make the Services menu parent clickable on mobile */
  .dropdown-services .dropdown-toggle {
    pointer-events: auto;
  }
  
  /* Improve readability of long service names */
  .submenu-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding: 0.8rem 1rem !important;
    line-height: 1.3;
  }
  
  /* Add visual feedback for clickable items */
  .dropdown-submenu > .dropdown-item {
    background: var(--grey-soft);
    border-radius: 8px;
    margin: 2px 0;
  }
  
  .dropdown-submenu > .dropdown-item:active {
    background: var(--sky);
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .navbar-sapphire .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .brand-sapphire {
    font-size: 1.4rem;
  }
  
  .navbar-collapse {
    padding: 0.75rem;
  }
  
  .dropdown-menu .dropdown-item,
  .submenu-dropdown .dropdown-item {
    font-size: 0.85rem;
    padding: 0.7rem 0.75rem !important;
  }
  
  /* Further indent nested menus */
  .dropdown-menu {
    margin-left: 0.5rem !important;
  }
  
  .submenu-dropdown {
    margin-left: 0.75rem !important;
  }
}

/* Ensure Bootstrap's collapse works properly */
.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* Fix for Bootstrap dropdowns on mobile */
.dropdown-menu {
  transition: none;
}
/* Logo styling */
.navbar-brand img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* Adjust brand padding/margin if needed */
.brand-sapphire {
  padding: 0.25rem 0 !important;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 35px;
  }
}
.cta-text-enhanced{
  font-size: 1rem;
  line-height: 1.6;
}

.hero-subhead-home{
    max-width: 600px;
    line-height: 1.7;
}

.about-content-home{
    max-width: 620px;
    line-height: 1.7;
}

/* ===== GLOBAL ICON + TEXT ALIGNMENT FIX ===== */

.list-enhanced li,
.service-list-home li,
.module-endtoend-feature,
.backoffice-card-left li,
.backoffice-card-right li,
.card-elegant-one li,
.card-elegant-two li,
.card-elegant-three li,
.card-elegant-four li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* fixed icon column */
.list-enhanced li i,
.service-list-home li i,
.module-endtoend-icon,
.backoffice-card-left li i,
.backoffice-card-right li i,
.card-elegant-one li i,
.card-elegant-two li i,
.card-elegant-three li i,
.card-elegant-four li i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    margin-top: 3px;
}

/* better text wrapping */
.list-enhanced li,
.service-list-home li,
.module-endtoend-feature div,
.backoffice-card-left li,
.backoffice-card-right li {
    line-height: 1.6;
}
/* ========== NAVBAR BUTTON STYLES ========== */

/* Button container */
.navbar-buttons {
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Primary button (Contact Us) */
.btn-primary-navbar {
    background: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-primary-navbar i {
    font-size: 0.9rem;
}

.btn-primary-navbar:hover {
    background: #1e3a5f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 41, 75, 0.3);
}

/* Outline button (Client Portal) */
.btn-outline-navbar {
    background: transparent;
    color: var(--primary-navy);
    border: 1.5px solid var(--primary-navy);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-outline-navbar i {
    font-size: 0.9rem;
}

.btn-outline-navbar:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 41, 75, 0.2);
}

/* Mobile responsive */
@media (max-width: 991px) {
    .navbar-buttons {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .btn-primary-navbar,
    .btn-outline-navbar {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
}
/* ========== PREMIUM FOOTER STYLES - WHITE BACKGROUND WITH VARIABLES ========== */

.footer-premium {
    padding: 4rem 0 1.5rem;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.footer-white {
    background: var(--bg-color);
    color: var(--text-dark);
    border-top: 1px solid var(--grey-border);
}

/* .footer-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--accent-slate), var(--primary-navy));
    opacity: 0.5;
} */

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Brand Column */
.footer-col-brand {
    max-width: 350px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-navy);
    opacity: 0.9;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--accent-slate);
    margin-bottom: 1.8rem;
}

/* Contact Items */
.footer-contact {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--accent-slate);
    line-height: 1.5;
}

.contact-item i {
    color: var(--primary-navy);
    width: 20px;
    margin-top: 0.2rem;
    font-size: 1rem;
}

/* Badges */
.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.abn-badge {
    background: var(--grey-soft);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-navy);
    display: inline-block;
    width: fit-content;
    border: 1px solid var(--grey-border);
}

.cpa-image-container {
    display: inline-block;
    width: fit-content;
}

.cpa-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Column Titles */
.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-navy), var(--accent-slate));
    opacity: 0.5;
}

/* Footer Links - Default (for Company) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--accent-slate);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-navy);
    transform: translateX(3px);
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--primary-navy);
    font-size: 1.2rem;
    line-height: 1;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -12px;
}

/* Service Links - with accent slate color */
.service-links a {
    color: var(--accent-slate);
}

.service-links a:hover {
    color: var(--primary-navy);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-border);
    font-size: 0.85rem;
    color: var(--accent-slate);
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-navy);
}

.separator {
    color: var(--grey-border);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-col-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .footer-title::after {
        left: 0;
        transform: none;
    }
}

@media (max-width: 576px) {
    .footer-premium {
        padding: 3rem 0 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .cpa-image {
        height: 40px;
    }
}
/* ========== LET'S STAY IN TOUCH - CLEAN REDESIGN ========== */

.newsletter-redesign {
    padding: 4rem 0;
    background: var(--bg-color);
    position: relative;
}

.newsletter-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
    align-items: center;
    background: var(--white-color);
    border-radius: 40px;
    padding: 3.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--grey-border);
}

/* Left Column */
.newsletter-left {
    max-width: 550px;
}

.newsletter-tag {
    display: inline-block;
    color: var(--primary-navy);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.newsletter-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.newsletter-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 450px;
}

/* Form */
.newsletter-form {
    width: 100%;
}

.email-field {
    margin-bottom: 1.5rem;
}

.email-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.email-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.email-input-row input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--grey-border);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--white-color);
}

.email-input-row input:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px var(--primary-navy-soft);
}

.email-input-row button {
    background: var(--primary-navy);
    color: var(--white-color);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.email-input-row button:hover {
    background: var(--primary-navy-light);
}

/* Consent */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--primary-navy);
    flex-shrink: 0;
}

.consent-row label {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.8rem;
    color: var(--text-medium);
    opacity: 0.7;
    line-height: 1.5;
}

.disclaimer a {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 500;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Right Column - Decorative */
.newsletter-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.decorative-element {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-navy-soft), var(--grey-soft));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 4rem;
    border: 1px solid var(--grey-border);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 992px) {
    .newsletter-container {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
    
    .newsletter-left {
        max-width: 100%;
    }
    
    .newsletter-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .newsletter-redesign {
        padding: 3rem 0;
    }
    
    .newsletter-container {
        padding: 2rem;
    }
    
    .newsletter-heading {
        font-size: 2rem;
    }
    
    .email-input-row {
        flex-direction: column;
    }
    
    .email-input-row button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-heading {
        font-size: 1.8rem;
    }
}
/* ========== SOCIAL ICONS ABOVE BORDER LINE ========== */

.footer-social-above {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--grey-soft);
    border: 1px solid var(--grey-border);
    border-radius: 50%;
    color: var(--primary-navy);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-navy);
    color: var(--white-color);
    transform: translateY(-3px);
    border-color: var(--primary-navy);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-border);
    font-size: 0.85rem;
    color: var(--accent-slate);
    opacity: 0.8;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-navy);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-social-above {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}