/* Typography */
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: "Playfair Display", serif;
        }

        /* Custom Navigation Styles */
        .navbar-custom {
            background-color: #ffffff 2px 4px rgba(0, 0, 0, 0.1);
        }

        .navbar-brand img {
            height: 100px;
            width: auto;
        }

        .navbar-nav {
            align-items: flex-end;
            height: 100px;
        }

        .nav-menu-wrapper {
            display: flex;
            align-items: flex-end;
            height: 50px;
        }

        .navbar-nav .nav-link {
            color: #333333;
            font-weight: 500;
            padding: 0.5rem 1rem;
            transition: color 0.3s ease;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus {
            color: #004763;
            text-decoration: underline;
        }

        /* Client Login Button */
        .btn-client-login {
            background-color: #004763;
            color: #ffffff;
            border: 2px solid #004763;
            padding: 0.5rem 1.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-client-login:hover,
        .btn-client-login:focus {
            background-color: #003552;
            border-color: #003552;
            color: #ffffff;
            text-decoration: underline;
        }

        .btn-client-login:focus-visible {
            outline: 3px solid #FFA500;
            outline-offset: 2px;
        }

        /* Dropdown Menu Styles */
        .dropdown-menu {
            border: 1px solid #dee2e6;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .dropdown-item {
            color: #333333;
            padding: 0.5rem 1.5rem;
        }

        .dropdown-item:hover,
        .dropdown-item:focus {
            background-color: #004763;
            color: #f8f9fa;
        }

        /* Focus visible styles for accessibility */
        .nav-link:focus-visible,
        .dropdown-item:focus-visible {
            outline: 3px solid #FFA500;
            outline-offset: 2px;
        }

        /* Mobile responsive adjustments */
        @media (max-width: 991px) {
            .navbar-brand img {
                height: 60px;
            }

            .navbar-nav {
                height: auto;
                align-items: flex-start;
            }

            .nav-menu-wrapper {
                height: auto;
                flex-direction: column;
                align-items: flex-start;
                width: 100%;
            }

            .btn-client-login {
                margin-top: 1rem;
                width: 100%;
            }
        }

/* Hero Section with Video */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #004763; /* Fallback color */
}

/* Hero Video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Dark overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 71, 99, 0.5); /* Semi-transparent overlay using brand color */
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    
    .hero-section {
        background-image: url('https://via.placeholder.com/1920x600/004763/ffffff?text=Hero+Background');
        background-size: cover;
        background-position: center;
    }
}

        /* Introduction Section Styles */
        .intro-section {
            padding: 80px 0;
            background-color: #f8f9fa;
        }

        .intro-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .intro-heading {
            color: #004763;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            line-height: 1.3;
        }

        .intro-text {
            color: #333333;
            font-size: 1.75rem;
            font-weight: 600;
            line-height: 1.6;
            margin-bottom: 0;
            font-style: italic;
        }

        /* Tablet Responsive */
        @media (max-width: 991px) {
            .intro-section {
                padding: 60px 0;
            }

            .intro-heading {
                font-size: 2rem;
            }

            .intro-text {
                font-size: 1.125rem;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 767px) {
            .intro-section {
                padding: 40px 0;
            }

            .intro-heading {
                font-size: 1.5rem;
                margin-bottom: 1rem;
            }

            .intro-text {
                font-size: 1rem;
            }
        }

        /* High Contrast Mode */
        @media (prefers-contrast: high) {
            .intro-heading {
                color: #003552;
            }

            .intro-text {
                color: #000000;
            }
        }

        /* Who We Serve Section Styles */
        .who-we-serve-section {
            padding: 80px 0;
            background-color: #ffffff;
        }

        .section-heading {
            color: #004763;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 3rem;
        }

        /* Flip Card Container */
        .flip-card {
            background-color: transparent;
            width: 100%;
            height: 400px;
            perspective: 1000px;
            cursor: pointer;
        }

        .flip-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            transform-origin: center center;
        }

        .flip-card:hover .flip-card-inner,
        .flip-card:focus-within .flip-card-inner {
            transform: rotateY(180deg);
        }

        .flip-card-front,
        .flip-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        /*card-front*/
        .flip-card-front {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: absolute;
            z-index: 2;
            transform: rotateY(0deg);
        }

        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.4);
            border-radius: 8px;
            z-index: 1;
        }

        .card-title {
            color: #ffffff;
            font-size: 1.75rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            z-index: 2;
            position: relative;
            padding: 0 20px;
            line-height: 1.3;
        }

        /* Back of Card */
        .flip-card-back {
            background-color: #004763;
            color: #ffffff;
            transform: rotateY(180deg);
            padding: 30px;
            z-index: 1;
        }

        .card-back-content {
            display: flex;
            flex-direction: column;
            justify-content: start;
            height: 100%;
        }

        .card-back-title {
            color: #ffffff;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            position: relative;
    padding-bottom: 1em;
        }
        .card-back-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-bottom: 1px dashed #fff;
}
        .card-back-text {
            color: #ffffff;
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* Tablet Responsive */
        @media (max-width: 991px) {
            .who-we-serve-section {
                padding: 60px 0;
            }

            .section-heading {
                font-size: 2rem;
                margin-bottom: 2.5rem;
            }

            .flip-card {
                height: 350px;
            }

            .card-title {
                font-size: 1.5rem;
            }

            .card-back-title {
                font-size: 1.25rem;
            }

            .card-back-text {
                font-size: 0.95rem;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 767px) {
            .who-we-serve-section {
                padding: 40px 0;
            }

            .section-heading {
                font-size: 1.75rem;
                margin-bottom: 2rem;
            }

            .flip-card {
                height: 300px;
            }

            .card-title {
                font-size: 1.25rem;
            }

            .card-back-title {
                font-size: 1.125rem;
            }

            .card-back-text {
                font-size: 0.9rem;
            }

            .flip-card-back {
                padding: 20px;
            }
        }

        /* Accessibility: Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            .flip-card-inner {
                transition: none;
            }

            .flip-card:hover .flip-card-inner,
            .flip-card:focus-within .flip-card-inner {
                transform: none;
            }

            /* Show back content on hover without animation */
            .flip-card:hover .flip-card-front,
            .flip-card:focus-within .flip-card-front {
                display: none;
            }

            .flip-card:hover .flip-card-back,
            .flip-card:focus-within .flip-card-back {
                transform: none;
                display: flex;
            }

            .flip-card-back {
                display: none;
            }
        }

        /* Focus styles for keyboard navigation */
        .flip-card:focus-within {
            outline: 3px solid #FFA500;
            outline-offset: 4px;
            border-radius: 8px;
        }

        /* High Contrast Mode */
        @media (prefers-contrast: high) {
            .card-overlay {
                background-color: rgba(0, 0, 0, 0.6);
            }

            .flip-card-back {
                background-color: #003552;
            }
        }

        /* Touch device support */
        @media (hover: none) and (pointer: coarse) {
            .flip-card:active .flip-card-inner {
                transform: rotateY(180deg);
            }
        }

        /* Financial Planning Process Section Styles */
        .planning-process-section {
            padding: 80px 0;
            background-color: #f8f9fa;
        }

        .section-heading {
            color: #004763;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 3rem;
        }

        /* Tab Navigation Wrapper */
        .process-tabs-wrapper {
            margin-bottom: 3rem;
        }

        .tab-row {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
        }

        /* Process Tab Buttons */
        .process-tab {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            position: relative;
            transition: transform 0.3s ease;
        }

        .process-tab:hover {
            transform: scale(1.1);
        }

        .process-tab:focus-visible {
            outline: 3px solid #FFA500;
            outline-offset: 8px;
            border-radius: 50%;
        }

        .tab-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 75px;
            height: 75px;
            border-radius: 50%;
            background-color: #ffffff;
            border: 3px solid #cea97a;
            color: #004763;
            font-size: 1.5rem;
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .process-tab.active .tab-number,
        .process-tab:hover .tab-number {
            background-color: #cea97a;
            color: #000;
        }

        /* Tab Connector Lines */
        .tab-connector {
            width: 80px;
            height: 3px;
            background-color: #cea97a;
            margin: 0;
        }

        /* Tab Content */
        .tab-content-wrapper {
            background-color: #ffffff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            min-height: 250px;
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
            text-align: center;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tab-content-title {
            color: #004763;
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .tab-content-text {
            color: #333333;
            font-size: 1.125rem;
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* Tablet Responsive */
        @media (max-width: 991px) {
            .planning-process-section {
                padding: 60px 0;
            }

            .section-heading {
                font-size: 2rem;
                margin-bottom: 2.5rem;
            }

            .tab-number {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
            }

            .tab-connector {
                width: 60px;
            }

            .tab-content-wrapper {
                padding: 30px;
                min-height: 200px;
            }

            .tab-content-title {
                font-size: 1.5rem;
            }

            .tab-content-text {
                font-size: 1rem;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 767px) {
            .planning-process-section {
                padding: 40px 0;
            }

            .section-heading {
                font-size: 1.75rem;
                margin-bottom: 2rem;
            }

            .tab-row {
                flex-wrap: wrap;
                margin-bottom: 1.5rem;
            }

            .process-tab {
                margin: 10px;
            }

            .tab-connector {
                display: none;
            }

            .tab-number {
                width: 45px;
                height: 45px;
                font-size: 1.125rem;
            }

            .tab-content-wrapper {
                padding: 20px;
                min-height: 180px;
            }

            .tab-content-title {
                font-size: 1.25rem;
            }

            .tab-content-text {
                font-size: 0.95rem;
            }
        }

        /* Accessibility: Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {

            .process-tab,
            .tab-number {
                transition: none;
            }

            .tab-content {
                animation: none;
            }

            .process-tab:hover {
                transform: none;
            }
        }

        /* High Contrast Mode */
        @media (prefers-contrast: high) {
            .tab-number {
                border-width: 4px;
            }

            .tab-connector {
                height: 4px;
            }
        }

        /* What You Can Expect Section Styles */
        .expectations-section {
            padding: 80px 0;
            background-color: #ffffff;
        }

        .section-heading {
            color: #004763;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .section-subtitle {
            color: #333333;
            font-size: 1.25rem;
            font-weight: 400;
            margin-bottom: 3rem;
        }

        /* Expectation Card */
        .expectation-card {
            background-color: #cea97a;
            border-radius: 8px;
            padding: 40px;
            margin: 0 auto 2rem auto;
            display: flex;
            align-items: center;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            max-width: 30em;
        }

        .expectation-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        /* Icon Wrapper */
        .card-icon-wrapper {
            position: relative;
            margin-left: -100px;
            z-index: 2;
            flex-shrink: 0;
        }

        .icon-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: #004763;
            border: 4px solid #cea97a;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            color: #ffffff;
        }

        /* Card Content */
        .card-content {
            flex: 1;
            padding-left: 60px;
        }

        .card-heading {
            color: #004763;
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }

        .card-text {
            color: #004763;
            font-size: 1.125rem;
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* Tablet Responsive */
        @media (max-width: 991px) {
            .expectations-section {
                padding: 60px 0;
            }

            .section-heading {
                font-size: 2rem;
            }

            .section-subtitle {
                font-size: 1.125rem;
                margin-bottom: 2.5rem;
            }

            .expectation-card {
                padding: 30px;
            }

            .icon-circle {
                width: 100px;
                height: 100px;
            }

            .card-icon {
                width: 50px;
                height: 50px;
            }

            .card-content {
                padding-left: 50px;
            }

            .card-heading {
                font-size: 1.5rem;
            }

            .card-text {
                font-size: 1rem;
            }
        }

        /* Mobile Responsive - Vertical Layout */
        @media (max-width: 767px) {
            .expectations-section {
                padding: 40px 0;
            }

            .section-heading {
                font-size: 1.75rem;
            }

            .section-subtitle {
                font-size: 1rem;
                margin-bottom: 2rem;
            }

            .expectation-card {
                flex-direction: column;
                padding: 20px;
                padding-top: 80px;
            }

            .card-icon-wrapper {
                position: absolute;
                top: -40px;
                left: 50%;
                transform: translateX(-50%);
                margin-right: 0;
            }

            .icon-circle {
                width: 90px;
                height: 90px;
            }

            .card-icon {
                width: 45px;
                height: 45px;
            }

            .card-content {
                padding-left: 0;
                text-align: center;
            }

            .card-heading {
                font-size: 1.25rem;
                margin-bottom: 0.5rem;
            }

            .card-text {
                font-size: 0.95rem;
            }
        }

        /* Accessibility: Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            .expectation-card {
                transition: none;
            }

            .expectation-card:hover {
                transform: none;
            }
        }

        /* Focus styles for accessibility */
        .expectation-card:focus-within {
            outline: 3px solid #FFA500;
            outline-offset: 4px;
        }

        /* High Contrast Mode */
        @media (prefers-contrast: high) {
            .icon-circle {
                border-width: 5px;
            }

            .card-heading,
            .card-text {
                color: #003552;
            }
        }

        /* Meet the Team Section Styles */
        .meet-team-section {
            padding: 80px 0;
            background-color: #f8f9fa;
        }

        .section-heading {
            color: #004763;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 3rem;
        }

        /* Team Image Wrapper */
        .team {
            position: relative;
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .team-image {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        /* Team Button Wrapper */
        .team-button-wrapper {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
        }

        .btn-team {
            background-color: #cea97a;
            color: #004763;
            border: 2px solid #cea97a;
            padding: 0.75rem 2rem;
            font-size: 1.125rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 4px;
            display: inline-block;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .btn-team:hover,
        .btn-team:focus {
            background-color: #b89968;
            border-color: #b89968;
            color: #003552;
            text-decoration: none;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }

        .btn-team:focus-visible {
            outline: 3px solid #FFA500;
            outline-offset: 4px;
        }

        /* Tablet Responsive */
        @media (max-width: 991px) {
            .meet-team-section {
                padding: 60px 0;
            }

            .section-heading {
                font-size: 2rem;
                margin-bottom: 2.5rem;
            }

            .team-button-wrapper {
                bottom: 30px;
            }

            .btn-team {
                padding: 0.65rem 1.75rem;
                font-size: 1rem;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 767px) {
            .meet-team-section {
                padding: 40px 0;
            }

            .section-heading {
                font-size: 1.75rem;
                margin-bottom: 2rem;
            }

            .team-button-wrapper {
                bottom: 20px;
            }

            .btn-team {
                padding: 0.6rem 1.5rem;
                font-size: 0.95rem;
            }
        }

        /* Accessibility: Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            .btn-team {
                transition: none;
            }

            .btn-team:hover {
                transform: none;
            }
        }

        /* High Contrast Mode */
        @media (prefers-contrast: high) {
            .btn-team {
                border-width: 3px;
            }

            .btn-team:hover,
            .btn-team:focus {
                background-color: #a88858;
                border-color: #a88858;
            }
        }

        /* Get In Touch Hero Section Styles */
        .get-in-touch-hero {
            position: relative;
            width: 100%;
            height: 500px;
            background-image: url('Photo for Get in Touch graphic.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        /* Dark overlay for better text/button readability */
        .get-in-touch-hero .hero-overlay {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 1;
        }

        .hero-cta-content {
            position: relative;
            z-index: 2;
            text-align: center;
            padding: 2rem;
        }

        /* Hero CTA Button */
        .btn-hero-cta {
            background-color: #cea97a;
            color: #004763;
            border: 2px solid #cea97a;
            padding: 1rem 3rem;
            font-size: 1.5rem;
            font-weight: 700;
            text-decoration: none;
            border-radius: 4px;
            display: inline-block;
            transition: all 0.3s ease;
            box-shadow: 4px 12px rgba(0, 0, 0, 0.3);
            margin-bottom: 1.5rem;
        }

        .btn-hero-cta:hover,
        .btn-hero-cta:focus {
            background-color: #b89968;
            border-color: #b89968;
            color: #003552;
            text-decoration: none;
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }

        .btn-hero-cta:focus-visible {
            outline: 3px solid #FFA500;
            outline-offset: 4px;
        }

        /* Hero CTA Text */
        .hero-cta-text {
            color: #ffffff;
            font-size: 1.5rem;
            font-weight: 400;
            line-height: 1.5;
            margin-bottom: 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        /* Tablet Responsive */
        @media (max-width: 991px) {
            .get-in-touch-hero {
                height: 400px;
            }

            .btn-hero-cta {
                padding: 0.875rem 2.5rem;
                font-size: 1.25rem;
                margin-bottom: 1.25rem;
            }

            .hero-cta-text {
                font-size: 1.25rem;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 767px) {
            .get-in-touch-hero {
                height: 350px;
            }

            .hero-cta-content {
                padding: 1rem;
            }

            .btn-hero-cta {
                padding: 0.75rem 2rem;
                font-size: 1.125rem;
                margin-bottom: 1rem;
            }

            .hero-cta-text {
                font-size: 1.125rem;
            }
        }

        /* Accessibility: Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            .btn-hero-cta {
                transition: none;
            }

            .btn-hero-cta:hover {
                transform: none;
            }
        }

        /* Ensure sufficient color contrast for WCAG compliance */
        @media (prefers-contrast: high) {
            .get-in-touch-hero .hero-overlay {
                background-color: rgba(0, 0, 0, 0.6);
            }

            .btn-hero-cta {
                border-width: 3px;
            }
        }

        /* High contrast text for better readability */
        .hero-cta-text {
            font-weight: 500;
        }