/* ========================================
   Home Equity Advisors - Premium CSS
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #003d7a;
    --secondary-color: #0052a3;
    --accent-color: #ff6b35;
    --light-gray: #f5f7fa;
    --medium-gray: #e0e6ed;
    --dark-gray: #2c3e50;
    --text-color: #1a1a1a;
    --light-text: #666666;
    --white: #ffffff;
    --success-color: #4caf50;

    --font-sans: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* ========================================
   NAVIGATION - Sticky Header
   ======================================== */

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo a {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: var(--transition);
}

.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    min-width: 200px;
    list-style: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 10px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--light-gray);
}

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

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 25px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.navbar-phone:hover {
    color: var(--accent-color);
}

.phone-icon {
    font-size: 18px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #e55a28;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

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

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #e55a28;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="%23003d7a"/><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subheadline {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-phone-highlight {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

/* ========================================
   TRUST BAR
   ======================================== */

.trust-bar {
    background-color: var(--light-gray);
    padding: 50px 20px;
    text-align: center;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.trust-stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-text {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    margin-top: 20px;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
    padding: 80px 20px;
    background-color: var(--white);
}

.how-it-works h2,
.why-choose-us h2,
.situations h2,
.testimonials h2,
.service-areas h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f6ff 100%);
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid var(--medium-gray);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.8;
}

/* ========================================
   WHY CHOOSE US
   ======================================== */

.why-choose-us {
    padding: 80px 20px;
    background-color: var(--light-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   SITUATIONS
   ======================================== */

.situations {
    padding: 80px 20px;
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.situation-column h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.situation-list {
    list-style: none;
}

.situation-list li {
    padding: 10px 0;
    color: var(--text-color);
    font-size: 15px;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
    padding-left: 0;
}

.situation-list li::before {
    content: '✓ ';
    color: var(--success-color);
    font-weight: 700;
    margin-right: 10px;
}

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

.situation-list li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.testimonial-rating {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

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

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
}

.testimonial-date {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 5px;
}

/* ========================================
   SERVICE AREAS
   ======================================== */

.service-areas {
    padding: 80px 20px;
    background-color: var(--white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.location-item h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location-item ul {
    list-style: none;
}

.location-item li {
    margin-bottom: 12px;
}

.location-item a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.location-item a:before {
    content: '→ ';
    margin-right: 8px;
    color: var(--accent-color);
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.location-item a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.location-item a:hover:before {
    opacity: 1;
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */

.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.form-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 35px;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

.form-notice {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 15px;
    text-align: center;
}

.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-card h3,
.contact-card h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-family: var(--font-display);
    font-size: 18px;
}

.phone-link {
    text-decoration: none;
    display: block;
}

.large-phone {
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.phone-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 10px;
}

.email-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
    transition: var(--transition);
}

.email-link:hover {
    color: var(--accent-color);
}

.benefits-card-small ul {
    list-style: none;
}

.benefits-card-small li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 10px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #1a2e4a;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.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: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '→ ';
    margin-right: 8px;
    color: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

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

.founder-text {
    font-size: 13px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    list-style: none;
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-list,
    .navbar-right {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subheadline {
        font-size: 18px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn,
    .btn-large {
        width: 100%;
    }

    .how-it-works h2,
    .why-choose-us h2,
    .situations h2,
    .testimonials h2,
    .service-areas h2 {
        font-size: 32px;
    }

    .steps-grid,
    .benefits-grid,
    .situations-grid,
    .testimonials-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        order: -1;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .trust-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
        min-height: 500px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subheadline {
        font-size: 16px;
    }

    .how-it-works,
    .why-choose-us,
    .situations,
    .testimonials,
    .service-areas {
        padding: 50px 20px;
    }

    .step-card,
    .benefit-card,
    .testimonial-card,
    .contact-card {
        padding: 25px 20px;
    }

    .trust-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .navbar-container {
        height: 60px;
    }

    .navbar-logo a {
        font-size: 18px;
    }

    .contact-card h3 {
        font-size: 16px;
    }

    .large-phone {
        font-size: 24px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-card {
    animation: fadeInUp 0.6s ease-out;
}

.benefit-card {
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}
