/* Global Styles */
:root {
    --primary-color: #1c2b35; /* Dark blue from logo */
    --secondary-color: #3a4a57; /* Lighter blue */
    --accent-color: #5d6e7a; /* Even lighter blue for accents */
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #444;
    --success-color: #28a745;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('images/new_images/RevolutionWealthGroup3BWFinalCropped.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    color: white;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

/* Lower third overlay */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

/* Color version - uncomment to use */
/* .hero {
    background: url('images/new_images/ReovlutionWealthGroupFinal.jpg');
} */

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Override section title for about section */
.about-content .section-title {
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 20px;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0; /* Remove bottom padding */
}

.about-content .section-title::after {
    display: none; /* Remove decorative line */
}

.about-text {
    opacity: 1 !important;
    transform: none !important;
    margin-top: 0;
    padding-top: 0;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 0;
}

.about-text p:first-child {
    margin-top: 0;
    padding-top: 0;
}

.timeline-section {
    margin-top: 60px;
}

.timeline-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.about-image {
    width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Leadership Section */
.leadership {
    padding: 100px 0;
    background-color: white;
}

.leadership-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.profile {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
    cursor: default; /* Default cursor on desktop */
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #f5f5f5;
}

.placeholder-headshot {
    width: 100px;
    height: 100px;
    background-color: #d0d0d0;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.placeholder-headshot::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-color: #999;
    border-radius: 50%;
}

.placeholder-headshot::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background-color: #999;
    border-radius: 60px 60px 0 0;
}

.profile-info {
    flex: 1;
}

.profile h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.expand-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.expand-btn i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.expand-btn.active i {
    transform: rotate(180deg);
}

.profile-bio {
    /* Expanded by default on desktop */
    padding: 0 25px 25px;
    max-height: none;
    overflow: visible;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.profile-bio.expanded {
    padding: 0 25px 25px;
    max-height: none;
    overflow: visible;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.bio-close-btn {
    display: none; /* Always hidden on desktop */
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 20px auto 0;
    width: 150px;
    transition: all 0.3s ease;
}

.bio-close-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.profile-bio.expanded .bio-close-btn {
    display: block;
}

.profile-bio p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
    /* Visible by default on desktop */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-bio.expanded p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Approach Section */
.approach {
    padding: 100px 0;
    background-color: var(--light-color);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: white;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Fiduciary Section */
.fiduciary {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: white;
}

.fiduciary h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
}

.comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.comparison-column {
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
}

.comparison-column.highlight {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--box-shadow);
}

.comparison-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-column ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.comparison-column ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-success {
    display: none;
    background-color: var(--success-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.form-success p:first-of-type {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-success p {
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
}

.footer-logo p {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links h3,
.footer-social h3,
.footer-disclosures h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-social h3::after,
.footer-disclosures h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: white;
}

.footer-links ul li,
.footer-disclosures ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-disclosures ul li a {
    color: #ccc;
}

.footer-links ul li a:hover,
.footer-disclosures ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* TimelineJS Custom Styles */
.timeline-section {
    padding: 3rem 0;
    margin-top: 2rem;
}

.timeline-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

#revolution-timeline {
    max-width: 100%;
    height: 600px;
    margin: 0 auto;
}

/* TimelineJS Customization - More specific selectors */
#revolution-timeline.tl-timeline {
    font-family: 'Montserrat', sans-serif !important;
}

#revolution-timeline .tl-headline {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}

#revolution-timeline .tl-timenav {
    background-color: #f5f5f5 !important;
}

#revolution-timeline .tl-slidenav-next, 
#revolution-timeline .tl-slidenav-previous {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

#revolution-timeline .tl-slidenav-next .tl-slidenav-icon,
#revolution-timeline .tl-slidenav-previous .tl-slidenav-icon {
    color: var(--primary-color) !important;
    font-size: 32px !important;
    font-weight: bold !important;
}

#revolution-timeline .tl-slidenav-next:hover .tl-slidenav-icon,
#revolution-timeline .tl-slidenav-previous:hover .tl-slidenav-icon {
    color: #1a365d !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

#revolution-timeline .tl-timegroup .tl-timegroup-message {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

#revolution-timeline .tl-text p {
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.6 !important;
    color: var(--text-color) !important;
}

#revolution-timeline .tl-slide-content .tl-headline-date {
    color: var(--secondary-color) !important;
}

#revolution-timeline .tl-timemarker.tl-timemarker-active .tl-timemarker-content-container {
    background-color: var(--primary-color) !important;
}

#revolution-timeline .tl-timemarker.tl-timemarker-active .tl-timemarker-content-container .tl-timemarker-text .tl-headline {
    color: white !important;
}

#revolution-timeline .tl-timemarker.tl-timemarker-active .tl-timemarker-line-left,
#revolution-timeline .tl-timemarker.tl-timemarker-active .tl-timemarker-line-right {
    border-color: var(--primary-color) !important;
}

#revolution-timeline .tl-menubar {
    background-color: var(--primary-color) !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .leadership-profiles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--box-shadow);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    /* Hero background adjustments for mobile */
    .hero {
        background: url('images/new_images/RevolutionWealthGroup3BWFinalCropped.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        position: relative;
        min-height: 100vh;
    }

    /* Adjust lower third overlay for mobile */
    .hero::after {
        height: 40%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
    }

    .hero .container {
        padding-bottom: 40px;
    }
    
    /* Add subtle pattern overlay for texture */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 35px,
                rgba(255, 255, 255, 0.02) 35px,
                rgba(255, 255, 255, 0.02) 70px
            );
        pointer-events: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    #revolution-timeline {
        height: 500px;
    }
    
    /* Leadership profiles mobile optimization */
    .profile-header {
        padding: 20px;
        cursor: pointer; /* Clickable on mobile */
    }
    
    .profile-image img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        object-position: center;
    }
    
    .placeholder-headshot {
        width: 80px;
        height: 80px;
    }
    
    .placeholder-headshot::before {
        width: 28px;
        height: 28px;
    }
    
    .placeholder-headshot::after {
        width: 48px;
        height: 32px;
    }
    
    .profile h3 {
        font-size: 1.4rem;
    }
    
    .profile h4 {
        font-size: 1rem;
    }
    
    /* Enable expand/collapse on mobile */
    .expand-btn {
        display: inline-flex;
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .profile-bio {
        /* Collapsed by default on mobile */
        padding: 0 25px;
        max-height: 0;
        overflow: hidden;
    }
    
    .profile-bio p {
        /* Hidden by default on mobile */
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .profile-bio.expanded .bio-close-btn {
        display: block;
    }
    
    /* Fix about section on mobile */
    .about {
        padding: 40px 0 60px 0; /* Reduced top padding to 40px */
    }
    
    .about-content {
        margin-bottom: 40px;
    }
    
    .about-content .section-title {
        font-size: 2rem;
        margin-bottom: 20px;
        margin-top: 0; /* Ensure no top margin */
    }
    
    /* Reduce padding for all major sections on mobile */
    .services,
    .leadership,
    .approach,
    .fiduciary,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    /* Further reduce padding on very small screens */
    .about {
        padding: 30px 0 40px 0;
    }
    
    .services,
    .leadership,
    .approach,
    .fiduciary,
    .contact {
        padding: 40px 0;
    }
    
    #revolution-timeline {
        height: 400px;
    }
    
    /* Even more compact leadership profiles */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile h3 {
        font-size: 1.3rem;
    }
    
    .profile h4 {
        font-size: 0.95rem;
    }
    
    .profile-bio {
        padding: 0 15px;
    }
    
    .profile-bio.expanded {
        padding: 0 15px 20px;
    }
}
