:root {
    /* Theme Colors */
    --primary-color: #6b21a8;
    --secondary-color: #581c87;
    --accent-color: #a855f7;

    /* Typography */
    --heading-font: 'Inter', -apple-system, sans-serif;
    --body-font: 'Inter', -apple-system, sans-serif;
    --heading-weight: 800;
    --body-weight: 400;

    /* Layout Style Variables */
    --border-radius: 0.5rem;

    /* Base Colors */
    --text-color: #1a1a2e;
    --text-muted: #5a5a72;
    --light-gray: #f7f8fc;
    --border-color: #e2e4ed;
    --white: #ffffff;

    /* Computed Colors */
    --primary-light: color-mix(in srgb, var(--primary-color) 10%, white);
    --primary-lighter: color-mix(in srgb, var(--primary-color) 5%, white);
    --accent-light: color-mix(in srgb, var(--accent-color) 12%, white);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: var(--body-font), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: var(--body-weight);
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: var(--heading-weight);
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    transition: all 0.2s ease;
}

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

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

/* ===== Section Labels ===== */
.section-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.5rem;
}

/* ===== Header ===== */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 72px;
}

.logo {
    font-family: var(--heading-font), -apple-system, sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: #6b21a8;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover {
    opacity: 0.85;
}

.main-nav {
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #6b21a8;
    background: var(--primary-light);
}

.phone-link {
    color: var(--white);
    background: #6b21a8;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.phone-link:hover {
    opacity: 0.9;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

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

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

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

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    /* Fallback color/gradient — overridden by inline background-image when hero.jpg exists */
    background: #581c87 no-repeat center / cover;
    color: var(--white);
    text-align: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.375rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust-item {
    font-size: 0.875rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ===== Stats Section ===== */
.stats {
    background: #6b21a8;
    color: #ffffff;
    padding: 64px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.25rem 1rem;
}

.stat-value {
    display: block;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ===== Services Section ===== */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services .section-label,
.services h2,
.services .section-subtitle {
    text-align: center;
}

.services h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: var(--accent-color);
    gap: 0.5rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 80px 0;
    background: var(--light-gray);
}

.testimonials .section-label,
.testimonials h2 {
    text-align: center;
}

.testimonials h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem 2.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.testimonial-card cite {
    display: block;
    font-style: normal;
}

.testimonial-card cite strong {
    display: block;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.testimonial-card cite span {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ===== CTA Section ===== */
.cta {
    background: #581c87;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Page Hero (Subpages) ===== */
.page-hero {
    background: #6b21a8;
    color: var(--white);
    padding: 64px 0 48px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Page Content (Subpages) ===== */
.page-content {
    padding: 64px 0;
}

.content-wrapper {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.content-wrapper h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.content-wrapper h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.content-wrapper p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.content-wrapper strong {
    color: var(--text-color);
    font-weight: 600;
}

/* ===== About Page ===== */
.about-intro {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.about-headshot {
    width: 220px;
    height: 220px;
    border-radius: 1rem;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-light);
}

.about-text {
    flex: 1;
}

/* ===== Team Section ===== */
.team-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--primary-light);
}

.team-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--white);
    transition: all 0.3s ease;
}

.team-member:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.team-headshot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-light);
}

.team-member h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.team-title {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-headshot {
        width: 180px;
        height: 180px;
    }

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

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-color);
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.footer-col p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1f2937;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 0.75rem;
        gap: 0;
    }

    .main-nav a {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .hero {
        padding: 100px 0 72px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .stats,
    .services,
    .testimonials,
    .cta {
        padding: 56px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-hero {
        padding: 48px 0 36px;
    }

    .page-content {
        padding: 40px 0;
    }
}
