/*
Theme Name: Haven Fiduciary Theme
Theme URI: https://havenfiduciary.com/
Author: Clutch City AI
Author URI: https://clutchcity.ai/
Description: Custom theme for Haven Fiduciary Services - Expert wealth management and fiduciary services for individuals and families who value trust, privacy, and peace of mind.
Version: 1.0
License: Proprietary
Text Domain: haven-fiduciary
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1A2947;
    --gold: #C9A14A;
    --charcoal: #333333;
    --light-gray: #f8f8f8;
    --white: #ffffff;
    --silver: #e5e5e5;
    --text-dark: #2c2c2c;
    --text-light: #666666;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.sans-serif {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 400;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 161, 74, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
}

.hero-image {
    position: relative;
    animation: fadeIn 1.5s ease;
}

.hero-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--charcoal) 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-image-placeholder::after {
    content: 'Elegant Office Space';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(201, 161, 74, 0.3);
}

.btn-primary:hover {
    background-color: #b8924a;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(201, 161, 74, 0.4);
}

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

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

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Problem Section */
.problem-section {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.problem-card {
    padding: 40px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.problem-card:hover::before {
    transform: scaleY(1);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

/* Guide Section */
.guide-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.guide-image {
    width: 100%;
    height: 400px;
    background: var(--primary-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.guide-image::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.trust-badges {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Plan Section */
.plan-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

.plan-step {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.plan-step:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

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

/* Stakes Section */
.stakes-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.stakes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.stakes-column {
    padding: 40px;
    border-radius: 8px;
}

.failure-column {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 1px solid #ffcccc;
}

.success-column {
    background: linear-gradient(135deg, #f5fff5 0%, #e5ffe5 100%);
    border: 1px solid #ccffcc;
}

.stakes-list {
    list-style: none;
    margin-top: 20px;
}

.stakes-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stakes-list li:last-child {
    border-bottom: none;
}

.stakes-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.failure-column .stakes-icon {
    background: #ffcccc;
    color: #cc0000;
}

.success-column .stakes-icon {
    background: #ccffcc;
    color: #00cc00;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    padding: 40px;
    background: var(--light-gray);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--gold);
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.author-info {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.author-name {
    font-weight: 600;
    color: var(--primary-blue);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--charcoal) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 161, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Resources Section */
.resources-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.resource-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.resource-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary-blue) 100%);
    position: relative;
}

.resource-content {
    padding: 30px;
}

.resource-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Scroll animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-placeholder {
        height: 300px;
    }

    .guide-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stakes-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero, .problem-section, .guide-section, 
    .plan-section, .stakes-section, .testimonials-section, 
    .cta-section, .resources-section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .plan-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--silver);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Bottom Links - Add this to your style.css */
.footer-bottom p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.footer-bottom a:hover {
    color: #C9A14A !important;
    text-decoration: none !important;
}

.footer-bottom a:visited {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer Legal Links Styling */
.footer-bottom .separator {
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 5px !important;
}

.footer-bottom .footer-legal-link,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.footer-bottom .footer-legal-link:hover,
.footer-bottom a:hover {
    color: #C9A14A !important;
    text-decoration: none !important;
}

.footer-bottom .footer-legal-link:visited,
.footer-bottom a:visited {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Fix for WordPress menu items in footer */
.footer-bottom .menu-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

.footer-bottom .menu-item a:hover {
    color: #C9A14A !important;
}

/* Footer Styles - Consistent Across All Pages */
footer#contact {
    background-color: #1A2947 !important;
    color: #ffffff !important;
    padding: 60px 0 30px !important;
}

footer .footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    margin-bottom: 40px !important;
}

footer .footer-column h4 {
    color: #C9A14A !important;
    margin-bottom: 20px !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
}

footer .footer-column p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.8 !important;
    font-size: 0.95rem !important;
}

footer .footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer .footer-links li {
    margin-bottom: 12px !important;
    padding: 0 !important;
}

footer .footer-links a,
footer .footer-column a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

footer .footer-links a:hover,
footer .footer-column a:hover {
    color: #C9A14A !important;
    text-decoration: none !important;
}

/* Footer Bottom Specific Styles */
footer .footer-bottom {
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

footer .footer-bottom a:hover {
    color: #C9A14A !important;
    text-decoration: none !important;
}

footer .footer-bottom a:visited {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* WordPress Menu Specific Overrides */
footer .menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer .menu li {
    margin-bottom: 12px !important;
    display: inline !important;
}

footer .menu a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

footer .menu a:hover {
    color: #C9A14A !important;
}
