/**
 * Impact Lending Team — main stylesheet.
 *
 * 1. Self-hosted fonts
 * 2. Design system (ported from impact-lending-team/assets/styles.css;
 *    only change: `nav`/`footer` element selectors scoped to
 *    `.site-nav`/`.site-footer` so post content and menus aren't affected)
 * 3. WordPress integration (menus, mobile nav, a11y, inner pages)
 */

/* ==========================================================================
   1. Fonts (variable woff2, latin + latin-ext)
   ========================================================================== */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url('../fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Design system
   ========================================================================== */
:root {
    --navy: #1a3a52;
    --navy-dark: #0f2437;
    --gold: #b8956a;
    --gold-light: #e8dcc8;
    --tan: #f5f1ed;
    --text: #2d3e50;
    --text-light: #6b7280;
    --white: #ffffff;
    --accent: #c17a5c;
    --divider: #d4af78;
}

/* Dark mode disabled for now: it inverts the palette (e.g. --white becomes
   dark grey) and breaks the design. Uncomment to restore.

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --navy: #2d5a7b;
        --navy-dark: #1a3a52;
        --gold: #d4af78;
        --gold-light: #3a3025;
        --tan: #1f2937;
        --text: #e5e7eb;
        --text-light: #9ca3af;
        --white: #1f2937;
        --accent: #e8a892;
        --divider: #b8956a;
    }
}

:root[data-theme="dark"] {
    --navy: #2d5a7b;
    --navy-dark: #1a3a52;
    --gold: #d4af78;
    --gold-light: #3a3025;
    --tan: #1f2937;
    --text: #e5e7eb;
    --text-light: #9ca3af;
    --white: #1f2937;
    --accent: #e8a892;
    --divider: #b8956a;
    color-scheme: dark;
}
*/

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

html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: var(--tan);
}

body {
    padding: 0 0;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    line-height: 1.6;
}

/* Navigation */
.site-nav {
    --nav-bg: #c9cfd6;
    --nav-text: #14508a;
    --nav-text-hover: #0b2f52;
    background: var(--nav-bg);
    padding: 0;
    position: sticky;
    top: env(safe-area-inset-top, 0);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
    background: transparent;
    padding: 10px 15px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--nav-text-hover);
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    padding: 0.7rem 1.8rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--gold);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 6rem 16px;
    text-align: center;
/*     max-width: 1200px; */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-artwork {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero h1,
.hero-subtitle,
.hero-tagline,
.divider-line,
.hero-ctas {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.divider-line {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 1.1rem 3rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 2px solid var(--gold);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1.1rem 3rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--white);
    transition: all 0.3s;
    cursor: pointer;
    letter-spacing: 0.5px;
}

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

@media (max-width: 768px) {
    .hero {
        padding: 4rem 16px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Three Pillars */
.pillars {
    background: var(--white);
    padding: 5rem 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.pillars-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.5rem;
}

.pillars-title-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 3rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 0;
}

.pillar {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 0;
    background: var(--tan);
    border-top: 3px solid var(--gold);
}

.pillar-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.pillar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.pillar p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* About Section */
.about {
    background: var(--navy);
    padding: 5rem 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.about h2,
.about h3,
.about p {
	color: #fff !important;
}
.about strong {
	color: var(--gold) !important;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    text-align: center;
}

.section-title-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 2.5rem;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 1rem;
    margin-top: 0;
}

.about-text strong {
    color: var(--navy);
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Team Section */
.team {
    background: var(--tan);
    padding: 5rem 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 1rem;
}

.team-title-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 2.5rem;
}

.team-subtitle {
    color: var(--text-light);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 0;
}

.team-member {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 2.5rem 2rem;
}

.team-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.team-name a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    border-bottom: 2px solid transparent;
}

.team-name a:hover {
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(26, 58, 82, 0.2);
}

.team-name a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.team-title-role {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.team-nmls {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gold-light);
    line-height: 1.6;
}

.team-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.team-contact:hover {
    color: var(--gold);
}

.contact-label {
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    display: block;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 5rem 16px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0;
	margin-top: 80px;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 2rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4rem 16px 1rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section p, .footer-section a {
    color: var(--white);
    opacity: 0.85;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.9;
}

.footer-section a:hover {
    color: var(--gold);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.brand-footer {
    background: var(--gold);
    color: var(--navy);
    padding: 2.5rem 16px;
    text-align: center;
    font-weight: 600;
}

.brand-footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.brand-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.eho-logo {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin: 1rem 0;
}

.disclosure {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--white);
    opacity: 0.9;
}

.disclosure a {
    color: var(--white);
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Products & Solutions Section */
.products {
    background: var(--white);
    padding: 4rem 16px;
}

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

.products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.products-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.products-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.2rem auto 1.5rem;
}

.products-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.solutions-graphic {
    text-align: center;
    margin: 2rem 0 3rem 0;
}

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

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

.solution-item {
    background: var(--tan);
    padding: 1.8rem;
    border-radius: 8px;
    border-top: 4px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(26, 58, 82, 0.12);
}

.solution-icon {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.solution-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.solution-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.deals-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gold-light);
}

.deals-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2rem;
    text-align: center;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.deal-card {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(26, 58, 82, 0.25);
}

.deal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.deal-example-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
}

.deal-status {
    background: var(--gold);
    color: var(--navy);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.deal-scenario {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
}

.deal-scenario-title {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.deal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.detail-item {
    font-size: 0.9rem;
}

.detail-label {
    color: var(--gold-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.detail-value {
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}

.deal-outcome {
    background: rgba(184, 149, 106, 0.2);
    padding: 0.8rem;
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.deal-closed {
    text-align: center;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    padding: 0.8rem;
    background: rgba(184, 149, 106, 0.1);
    border-radius: 4px;
}

.cta-banner {
    background: linear-gradient(135deg, var(--gold) 0%, #c17a5c 100%);
    color: var(--navy);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.cta-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

@media (max-width: 768px) {
    .products {
        padding: 2.5rem 16px;
    }

    .products-title {
        font-size: 2rem;
    }

    .deals-title {
        font-size: 1.5rem;
    }

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

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

    .deal-details {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 1.5rem;
    }

    .cta-banner h3 {
        font-size: 1.4rem;
    }

    .cta-banner-buttons {
        flex-direction: column;
    }
}

/* Reviews Section */
.reviews {
    background: var(--white);
    padding: 4rem 16px;
}

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

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.reviews-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.2rem auto 1.5rem;
}

.reviews-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.reviews-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--gold);
    margin-top: 0.8rem;
    font-weight: 600;
}

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

.review-card {
    background: var(--tan);
    padding: 1.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(26, 58, 82, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
}

.review-role {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.review-stars {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .reviews {
        padding: 2.5rem 16px;
    }

    .reviews-title {
        font-size: 2rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-card {
        padding: 1.5rem;
    }
}

/* Mortgage Calculator */
.calculator {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 4rem 16px;
}

.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.calculator-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    color: var(--gold-light);
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calculator-inputs {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.input-group {
    margin-bottom: 1.8rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.calculator-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gold-light);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.calculator-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.1);
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: var(--text-light);
    font-weight: 500;
    pointer-events: none;
}

.input-wrapper.percent .calculator-input {
    padding-right: 2.5rem;
}

.input-wrapper.years .calculator-input {
    padding-right: 2.5rem;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-container {
    margin-top: 1rem;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gold-light);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(184, 149, 106, 0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(184, 149, 106, 0.3);
}

.slider-value {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.calculator-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.calculator-button:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 149, 106, 0.3);
}

.calculator-results {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.results-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-light);
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.result-item:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 2px solid var(--gold-light);
    margin-top: 1.5rem;
}

.breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gold-light);
}

.breakdown-item {
    text-align: center;
}

.breakdown-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.breakdown-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.calculator-note {
    background: var(--tan);
    padding: 1rem;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .calculator {
        padding: 2.5rem 16px;
    }

    .calculator-title {
        font-size: 2rem;
    }

    .calculator-inputs,
    .calculator-results {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

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

/* ==========================================================================
   3. WordPress integration
   ========================================================================== */

/* Accessibility helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background: var(--gold);
    color: var(--navy);
    clip: auto !important;
    clip-path: none;
    display: block;
    font-weight: 700;
    height: auto;
    left: 8px;
    padding: 0.8rem 1.4rem;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

/* Smooth in-page scrolling for nav anchor links */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Keep anchored sections clear of the sticky nav, with a small gap above
   the title. Each section's own top padding already pushes its title down,
   so the offset here is tuned per section (header height minus that
   padding, plus a small visible gap) rather than one flat value — a flat
   100px was stacking on top of the 64-80px section padding and landing
   titles far below the header. */
main [id] {
    scroll-margin-top: 10px;
}

#home {
    scroll-margin-top: 10px;
}

#about,
#team,
#contact {
    scroll-margin-top: 10px;
}

#products,
#reviews,
#calculator {
    scroll-margin-top: 10px;
}

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

/* Primary navigation (wp_nav_menu output) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--nav-text);
    border-radius: 3px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--nav-text);
    transition: transform 0.3s, background 0.3s;
}

.menu-toggle-bars {
    position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-bars::before {
    top: -6px;
}

.menu-toggle-bars::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links a:focus-visible {
    color: var(--nav-text-hover);
}

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

    .site-nav.is-open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 0.5rem 16px 1rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .site-nav.is-open .nav-links a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(20, 80, 138, 0.2);
    }

    .site-nav.is-open .nav-links li:last-child a {
        border-bottom: 0;
    }
}

@media (max-width: 380px) {
    .logo img {
        height: 40px;
    }

    .nav-container {
        gap: 0.5rem;
    }
}

/* Hero artwork rendered as an <img> */
img.hero-artwork {
    object-fit: cover;
}

/* Headings promoted for a correct outline; visually match the source h4/div */
.solution-item .solution-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
}

.solution-item .solution-item-icon {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.team-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.team-bio p + p {
    margin-top: 0.8rem;
}

.team-contact + .team-contact {
    margin-top: 1rem;
}

.reviews-rating a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.result-value--total {
    font-size: 1.5rem;
    color: var(--navy);
}

.calculator-input:invalid {
    border-color: var(--accent);
}

/* Footer */
.footer-menu {
    list-style: none;
}

.footer-menu li + li {
    margin-top: calc(0.95rem * 1.9);
}

.footer-section p + p {
    margin-top: calc(0.95rem * 1.9);
}

.footer-social-image {
    display: block;
    width: auto;
    max-width: 100%;
    margin-top: 1rem;
    filter: brightness(0) invert(1);
}

.brand-footer-img {
    height: 120px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 1rem;
    display: block;
}

.brand-footer-apply a {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 600;
}

.footer-disclaimer-trigger {
    margin-top: calc(0.95rem * 1.9);
}

.footer-link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--white);
    opacity: 0.85;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}

.footer-link-button:hover {
    color: var(--gold);
    opacity: 1;
}

/* Disclaimer popup */
body.disclaimer-modal-open {
    overflow: hidden;
}

.disclaimer-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 36, 55, 0.75);
}

.disclaimer-modal-dialog {
    position: relative;
    background: var(--white);
    color: var(--text);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.disclaimer-modal[hidden] {
    display: none;
}

.disclaimer-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.disclaimer-modal-dialog h2 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.disclaimer-modal-content p + p {
    margin-top: 1rem;
}

.disclaimer-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
}

.disclaimer-modal-close:hover {
    color: var(--navy);
}

@media (max-width: 768px) {
    .disclaimer-modal-dialog {
        padding: 2rem 1.5rem;
    }
}

/* Inner pages (page.php, single.php, index.php, 404.php) */
.site-main--content {
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 16px;
}

.site-main--content .entry-title,
.site-main--content .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.site-main--content article + article {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gold-light);
}

.entry-content > * + *,
.page-content > * + * {
    margin-top: 1rem;
}

.entry-content h2,
.entry-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-top: 2rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

.site-main--content a {
    color: var(--navy);
}

.entry-meta,
.entry-footer {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .site-main--content {
        padding: 2.5rem 16px;
    }

    .site-main--content .entry-title,
    .site-main--content .page-title {
        font-size: 2rem;
    }
	.site-nav {
		padding-right: 10px;
    }
}
