/* ===========================
   RESET & BASE STYLES
   =========================== */

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

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #fafbfc;
    --color-text: #1a1a1a;
    --color-text-light: #6b7280;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-border: #e5e7eb;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --max-width: 1100px;
    --section-spacing: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.hidden {
    display: none;
}

.section-padding {
    padding: 100px 0;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: var(--color-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.0625rem;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9375rem;
}

.btn-text {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-text:hover {
    color: var(--color-primary);
}

/* ===========================
   HEADER
   =========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: 0 2px 12px var(--color-shadow);
    border-bottom-color: var(--color-border);
}

.header.scrolled .header-content {
    padding: 16px 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    transition: padding 0.3s ease;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.9375rem;
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px var(--color-shadow);
    padding: 24px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 12px 0;
    color: var(--color-text-light);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

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

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

.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.01) 2px, rgba(0,0,0,.01) 4px);
    pointer-events: none;
    opacity: 0.5;
}

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

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-headline .highlight {
    font-weight: 800;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-pill {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.headshot-card {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
}

.headshot {
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 12px;
    display: block;
    margin-bottom: 20px;
    filter: saturate(0.85) brightness(1.02);
}

.headshot-caption {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

.headshot-caption span {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ===========================
   SECTION TRANSITIONS
   =========================== */

.hero + .about {
    position: relative;
}

.hero + .about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border) 50%, transparent 100%);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
    background-color: var(--color-bg);
    padding-top: calc(100px + 60px);
}

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

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.credential-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.credential-card {
    background: var(--color-bg-alt);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.credential-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--color-shadow);
    border-color: rgba(37, 99, 235, 0.2);
}

.credential-card h4 {
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.credential-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

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

.how-it-works {
    background: var(--color-bg-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step {
    background-color: var(--color-bg);
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services {
    background-color: var(--color-bg-alt);
}

.services-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.service-card {
    background: var(--color-bg-alt);
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--color-shadow);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-title {
    color: var(--color-text);
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.service-description {
    color: var(--color-text);
    font-size: 1.0625rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.service-examples {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.services-note {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    font-style: italic;
}

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

.testimonials {
    background: var(--color-bg-alt);
}

.testimonials-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background-color: var(--color-bg);
    padding: 36px 32px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: rgba(37, 99, 235, 0.15);
    font-family: Georgia, serif;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
    margin: 0;
}

/* ===========================
   RESOURCES SECTION
   =========================== */

.resources {
    background-color: var(--color-bg);
}

.resources-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 0 auto 48px;
    max-width: 700px;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.resource-cards .resource-card:nth-child(4),
.resource-cards .resource-card:nth-child(5) {
    grid-column: span 1;
}

.resource-cards .resource-card:nth-child(4) {
    grid-column: 1 / 2;
}

.resource-cards .resource-card:nth-child(5) {
    grid-column: 3 / 4;
}

.resource-card {
    background: var(--color-bg-alt);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: block;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--color-shadow);
    border-color: var(--color-primary);
}

.resource-card h4 {
    color: var(--color-text);
    margin-bottom: 12px;
}

.resource-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.resource-link {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

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

.contact {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
}

.contact-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-bg);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--color-shadow);
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--color-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 24px;
    text-align: center;
}

.form-success {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-bg);
    padding: 60px 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--color-shadow);
    border: 1px solid var(--color-border);
    text-align: center;
}

.form-success.active {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.form-success h3 {
    color: var(--color-text);
    margin-bottom: 16px;
}

.form-success p {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin: 0;
}

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

.footer {
    background-color: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}

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

.footer-info h3 {
    color: var(--color-bg);
    margin-bottom: 16px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.footer-broker {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-info a:hover {
    color: var(--color-bg);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

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

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 968px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav {
        display: none;
    }

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

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

    .hero-image-container {
        order: -1;
    }

    .headshot-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .credential-cards {
        grid-template-columns: 1fr;
    }

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

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

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

    .resource-cards {
        grid-template-columns: 1fr;
    }

    .resource-cards .resource-card:nth-child(4),
    .resource-cards .resource-card:nth-child(5) {
        grid-column: auto;
    }

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

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.0625rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step,
    .service-card,
    .testimonial-card {
        padding: 32px 24px;
    }

    .trust-pills {
        gap: 8px;
    }

    .trust-pill {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }

    .widget-card {
        width: calc(100vw - 48px);
        max-width: 280px;
    }
}

/* ===========================
   CORNER WIDGET
   =========================== */

.corner-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
}

.widget-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.widget-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.widget-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.widget-card {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: none;
}

.widget-card.active {
    display: block;
}

.widget-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.widget-close:hover {
    color: var(--color-text);
}

.widget-insight {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0 0 16px 0;
    padding-right: 20px;
}

.widget-link {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .header,
    .mobile-menu,
    .hero-cta,
    .contact,
    .footer,
    .corner-widget {
        display: none;
    }
}
