/* ========================================
   Kristine Bestler - Mortgage Professional
   Classic & Elegant Design System
   ======================================== */

/* CSS Custom Properties */
:root {
    --teal: #2C5F6B;
    --teal-dark: #1E454E;
    --teal-light: #3A7A8A;
    --teal-muted: rgba(44, 95, 107, 0.08);
    --slate: #4A5568;
    --slate-light: #718096;
    --slate-dark: #2D3748;
    --slate-lighter: #A0AEC0;
    --cream: #F7F5F2;
    --cream-dark: #EDE8E0;
    --white: #FFFFFF;
    --gold: #C9A962;
    --gold-light: rgba(201, 169, 98, 0.15);
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    color: var(--slate-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--slate-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

p {
    color: var(--slate);
}

/* Section Label */
.section-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--teal);
    flex-shrink: 0;
}

.section-label span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
}

/* Section Title */
.section-title {
    margin-bottom: var(--space-lg);
}

.title-accent {
    color: var(--teal);
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border: 1px solid var(--teal);
}

.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--teal-muted);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 1px solid var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 95, 107, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--slate-dark);
    line-height: 1.2;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal);
    transition: var(--transition);
}

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

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

.nav-cta {
    padding: 0.625rem 1.5rem;
    background: var(--teal);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--teal-dark);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--slate-dark);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
}

.hero-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-label .label-line {
    width: 30px;
    height: 1px;
    background: var(--teal);
}

.hero-label span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--slate-dark);
}

.title-accent {
    color: var(--teal);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-credentials {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--cream-dark);
}

.credential {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.credential-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--slate-lighter);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.hero-image-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 85%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 45%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.hero-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    background: var(--white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 2;
}

.badge-text {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--teal);
    line-height: 1;
}

.badge-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-light);
    margin-top: var(--space-xs);
}

/* Hero Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, var(--teal-muted) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

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

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 107, 0.1) 0%, transparent 60%);
    border-radius: var(--radius-lg);
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--teal);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-light);
}

.stat-divider {
    width: 1px;
    background: var(--cream-dark);
    align-self: stretch;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-header .label-line {
    margin: 0 auto var(--space-sm);
}

.section-header .section-title {
    margin-bottom: var(--space-md);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-muted);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--teal);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--slate-dark);
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--slate);
}

/* ========================================
   Process Section
   ======================================== */
.process {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.process-content {
    padding: var(--space-xl) 0;
}

.process-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    align-items: start;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--teal);
    line-height: 1;
    padding-top: var(--space-xs);
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--slate-dark);
}

.step-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--slate);
}

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

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--cream-dark);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    color: var(--teal);
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--slate-dark);
}

.author-location {
    font-size: 0.8125rem;
    color: var(--slate-light);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info {
    padding: var(--space-xl) 0;
}

.contact-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-muted);
    border-radius: var(--radius-md);
    color: var(--teal);
    flex-shrink: 0;
}

.contact-text-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-light);
}

.contact-value {
    font-size: 1rem;
    color: var(--slate-dark);
    line-height: 1.6;
}

.contact-link {
    color: var(--teal);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--cream);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate);
}

.form-input,
.form-textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    color: var(--slate-dark);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-muted);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-lighter);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    background: var(--teal-muted);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--teal);
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--teal);
}

.form-success span {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--slate-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--slate-lighter);
    margin-bottom: var(--space-xs);
}

.footer-nmls {
    font-size: 0.75rem;
    color: var(--slate-lighter);
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--slate-lighter);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-contact p {
    font-size: 0.875rem;
    color: var(--slate-lighter);
}

.footer-contact a {
    color: var(--slate-lighter);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--slate-lighter);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--slate-light);
    line-height: 1.6;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-asymmetric {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-visual {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-grid,
    .process-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        padding: 80px var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger {
        width: 24px;
        height: 2px;
        transition: var(--transition);
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--slate-dark);
        transition: var(--transition);
    }
    
    .hamburger::before {
        top: -6px;
    }
    
    .hamburger::after {
        bottom: -6px;
    }
    
    .nav-toggle.active .hamburger {
        background: transparent;
    }
    
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .hero {
        padding-top: 60px;
        min-height: auto;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .hero-badge {
        right: 10px;
        padding: var(--space-md) var(--space-lg);
    }
    
    .badge-text {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}

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

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

.fade-in-up-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.3s;
}
