/* =====================================================
   SW Commercial Loan — site styles
   Modern navy/blue professional finance broker theme
   ===================================================== */

:root {
    --navy-900: #0a1f44;
    --navy-800: #0f2a5e;
    --navy-700: #163479;
    --navy-600: #1d3f8f;
    --blue-500: #2257c5;
    --blue-400: #3a73e0;
    --blue-100: #e7eefb;
    --blue-50:  #f4f7fd;

    --gold-500: #b59575;
    --gold-400: #c9ae8d;
    --gold-300: #e0c9ae;

    --ink-900: #0e1726;
    --ink-700: #2a3447;
    --ink-500: #56627a;
    --ink-300: #8a93a6;
    --ink-200: #c2c8d6;
    --ink-100: #e2e6ee;
    --ink-50:  #f4f6fa;
    --white:   #ffffff;

    --success: #1c8c54;
    --danger:  #c2363a;

    --shadow-sm: 0 1px 3px rgba(10, 31, 68, 0.08);
    --shadow-md: 0 6px 24px rgba(10, 31, 68, 0.10);
    --shadow-lg: 0 18px 48px rgba(10, 31, 68, 0.16);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --container: 1200px;

    --ff-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ff-display: 'Playfair Display', Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--ff-body);
    color: var(--ink-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4, h5 {
    font-family: var(--ff-display);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.18;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: .95rem; font-family: var(--ff-body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); }

p  { color: var(--ink-700); }
.lead { font-size: 1.125rem; color: var(--ink-700); max-width: 60ch; }
.muted { color: var(--ink-500); }
.micro { font-size: .8rem; color: var(--ink-500); margin-top: .5rem; }
.accent { color: var(--gold-500); }

/* Layout helpers */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--blue-50); }
.section-dark {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.82); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-head .lead { margin: 1rem auto 0; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--blue-500);
    background: var(--blue-100);
    padding: .35rem .8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.eyebrow.light { background: rgba(255,255,255,.12); color: var(--gold-400); }
.light { color: var(--white) !important; }

/* Top bar */
.topbar {
    background: var(--navy-900);
    color: rgba(255,255,255,0.78);
    font-size: .82rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-left { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-right { display: none; }
@media (min-width: 720px) { .topbar-right { display: block; } }

/* Header / nav */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--ink-100);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255, 255, 255, 0.92);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; line-height: 0; }
.brand-logo {
    height: 52px;
    width: auto;
    max-width: 260px;
    display: block;
    transition: opacity .15s ease;
}
.brand:hover .brand-logo { opacity: .85; }
@media (max-width: 540px) {
    .brand-logo { height: 42px; }
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
    color: var(--ink-700);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: .25rem 0;
}
.nav a:hover, .nav a.active { color: var(--navy-900); }
.nav a.active::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -.4rem;
    height: 2px; background: var(--blue-500); border-radius: 2px;
}
.nav .nav-cta { color: var(--white) !important; }
.nav .nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    background: transparent; border: 0; padding: .5rem; cursor: pointer;
    flex-direction: column; gap: 5px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 980px) {
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 1.5rem;
        gap: .25rem;
        border-bottom: 1px solid var(--ink-100);
        box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden;
        transition: max-height .3s ease, padding .3s ease;
    }
    .nav.open { max-height: 500px; padding: 1rem 1.5rem 1.5rem; }
    .nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--ink-100); }
    .nav a:last-child { border-bottom: 0; }
    .nav .nav-cta { margin-top: .8rem; text-align: center; }
    .nav-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 4px 14px rgba(34,87,197,.3); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34,87,197,.4); }

.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--ink-200); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-ghost:hover { background: var(--blue-100); color: var(--navy-900); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.2); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: var(--white); }

/* Hero */
.hero {
    position: relative;
    background: var(--navy-900);
    color: var(--white);
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(58,115,224,.35), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(199,149,39,.12), transparent 50%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

.hero-content h1 { color: var(--white); margin: .5rem 0 1rem; }
.hero-content .lead { color: rgba(255,255,255,0.85); max-width: 56ch; margin-bottom: 2rem; }
.hero-content .eyebrow { background: rgba(255,255,255,.12); color: var(--gold-400); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.2); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.16); }

.hero-trust { display: flex; gap: 2.5rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--ff-display); font-size: 1.7rem; color: var(--white); }
.trust-item span { font-size: .82rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }

/* Hero quick form card */
.hero-card {
    background: var(--white);
    color: var(--ink-900);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.08);
}
.hero-card h3 { margin-bottom: .25rem; }
.hero-card p { margin-bottom: 1.2rem; }
.quick-form { display: flex; flex-direction: column; gap: .9rem; }
.quick-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-700); }
.quick-form input, .quick-form select {
    padding: .8rem 1rem;
    border: 1.5px solid var(--ink-100);
    border-radius: var(--radius-md);
    font-family: inherit; font-size: .95rem;
    color: var(--ink-900);
    background: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
    font-weight: 400;
}
.quick-form input:focus, .quick-form select:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(34,87,197,.15);
}

/* Lender bar */
.lenders { padding: 2.5rem 0; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); }
.lenders-label { text-align: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-500); margin-bottom: 1.2rem; font-weight: 600; }
.lenders-row {
    display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; align-items: center;
}
.lenders-row span {
    font-family: var(--ff-display);
    font-weight: 700;
    color: var(--ink-300);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    transition: color .15s ease;
}
.lenders-row span:hover { color: var(--navy-700); }

/* Grid systems */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.two-col { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }

.service-card .icon-wrap {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: var(--blue-100);
    color: var(--blue-500);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.service-card h3 { margin-bottom: .6rem; }
.service-card p { margin-bottom: 1.2rem; }

.link-arrow {
    font-weight: 600;
    color: var(--blue-500);
    display: inline-flex; align-items: center;
    transition: gap .15s ease;
}
.link-arrow:hover { color: var(--navy-700); }

/* Process steps */
.process .step { color: var(--white); }
.step-num {
    font-family: var(--ff-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold-400);
    margin-bottom: .8rem;
    line-height: 1;
}
.process h4 { color: var(--white); margin-bottom: .5rem; }
.process p { color: rgba(255,255,255,.78); font-size: .95rem; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li {
    position: relative;
    padding: .5rem 0 .5rem 2rem;
    color: var(--ink-700);
}
.check-list li::before {
    content: '';
    position: absolute; left: 0; top: .85rem;
    width: 18px; height: 18px;
    background: var(--blue-100);
    border-radius: 50%;
}
.check-list li::after {
    content: '';
    position: absolute; left: 5px; top: 1.05rem;
    width: 8px; height: 4px;
    border-left: 2px solid var(--blue-500);
    border-bottom: 2px solid var(--blue-500);
    transform: rotate(-45deg);
}

/* Why us — 4 differentiator grid */
.why-grid { gap: 1.5rem; margin-bottom: 2.5rem; }
.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.why-num {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-500);
    background: rgba(181, 149, 117, 0.12);
    padding: .25rem .7rem;
    border-radius: 999px;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}
.why-card h3 { margin-bottom: .6rem; }
.why-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Advisor referral band */
.advisor-band {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) { .advisor-band { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.advisor-visual {
    display: flex; justify-content: center;
}
.advisor-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 360px;
    position: relative;
}
.advisor-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--gold-500), var(--blue-500));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.advisor-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--white);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.advisor-card h4 { margin-bottom: .6rem; font-size: 1.2rem; }
.advisor-card p { font-size: .95rem; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
    background: var(--blue-50);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--blue-100);
    text-align: center;
}
.stat-card strong {
    font-family: var(--ff-display);
    font-size: 2.2rem;
    color: var(--navy-900);
    display: block;
    line-height: 1;
}
.stat-card span {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-500);
    margin-top: .5rem;
    display: block;
}

/* Testimonial highlight */
.testimonial-strip { background: var(--blue-50); text-align: center; }
.testimonial-strip blockquote { max-width: 800px; margin: 0 auto 2rem; position: relative; padding: 0 1rem; }
.testimonial-strip .quote-mark {
    width: 48px; height: 48px;
    color: var(--blue-100);
    margin: 0 auto 1rem;
    display: block;
}
.testimonial-strip p {
    font-family: var(--ff-display);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-style: italic;
    color: var(--navy-900);
    line-height: 1.5;
}
.testimonial-strip cite {
    display: block; margin-top: 1.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--ink-500);
    font-size: .95rem;
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 90% 50%, rgba(58,115,224,.3), transparent 50%);
}
.cta-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: .25rem; }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.site-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,.78);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid; gap: 2.5rem;
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-grid h5 { margin-bottom: 1rem; color: var(--white); }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { padding: .35rem 0; font-size: .92rem; }
.footer-grid a { color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: var(--white); }
.footer-blurb { font-size: .92rem; max-width: 32ch; margin-top: 1rem; line-height: 1.6; color: rgba(255,255,255,.7); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
    font-size: .82rem;
}
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.78); }

/* ===== About page ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
    text-align: center;
}
.page-hero h1 { color: var(--white); margin: .5rem 0 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.82); margin: 0 auto; }
.page-hero .eyebrow { background: rgba(255,255,255,.12); color: var(--gold-400); }

.image-frame { position: relative; }
.img-placeholder {
    width: 100%; aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
    position: relative;
    overflow: hidden;
}
.img-team {
    background:
        linear-gradient(135deg, rgba(10,31,68,.55), rgba(34,87,197,.4)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 16px);
}
.img-advisor {
    background:
        linear-gradient(135deg, rgba(181, 149, 117, .35), rgba(10, 31, 68, .55)),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 16px);
}
.img-team::after { content: 'SAM WANG'; }
.img-advisor::after { content: 'STRATEGIC PARTNER'; }
.img-placeholder::after {
    position: absolute; bottom: 1.5rem; left: 1.5rem;
    color: rgba(255,255,255,.6);
    font-size: .8rem; letter-spacing: .25em; font-weight: 700;
}

/* Sam profile card */
.sam-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ink-100);
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 720px) { .sam-card { grid-template-columns: 300px 1fr; gap: 0; } }
.sam-photo {
    background:
        linear-gradient(135deg, rgba(10,31,68,.6), rgba(34,87,197,.4)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px);
    min-height: 280px;
    position: relative;
}
.sam-photo::after {
    content: 'SW';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .25);
    font-family: var(--ff-display);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.sam-info { padding: clamp(1.5rem, 3vw, 2.5rem); }
.sam-info h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.sam-info .role {
    color: var(--gold-500); font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    font-size: .82rem; margin-bottom: 1.2rem;
}
.sam-info > p { margin-bottom: 1.5rem; }
.sam-contact { display: flex; gap: .8rem; flex-wrap: wrap; }
.sam-contact .btn { font-size: .9rem; }

.value-card { position: relative; padding-top: 3.5rem; }
.value-num {
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-family: var(--ff-display);
    font-size: 2.5rem;
    color: var(--blue-100);
    font-weight: 700;
    line-height: 1;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-100);
    transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 1 / 1; background: var(--navy-700); }
.team-1 { background: linear-gradient(135deg, #1d3f8f, #2257c5); }
.team-2 { background: linear-gradient(135deg, #163479, #3a73e0); }
.team-3 { background: linear-gradient(135deg, #0f2a5e, #1d3f8f); }
.team-card h3 { padding: 1.5rem 1.5rem 0; }
.team-card p { padding: .25rem 1.5rem 0; }
.team-card p.role { color: var(--blue-500); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .25rem; padding-bottom: 1rem; }
.team-card p:last-child { padding-bottom: 1.5rem; }
.team-contact { font-size: .9rem; color: var(--ink-500); border-top: 1px solid var(--ink-100); margin-top: 1rem; padding-top: 1rem !important; }

/* ===== Services page ===== */
.service-block { padding: 3rem 0; }
.service-block:first-child { padding-top: 1rem; }
.service-block-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.service-tag {
    width: 60px; height: 60px;
    background: var(--navy-900); color: var(--gold-400);
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.service-block-header h2 { margin: 0; }
.service-divider { border: 0; border-top: 1px solid var(--ink-100); margin: 1rem 0; }

.info-box {
    background: var(--blue-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--blue-500);
}
.info-box h4 { margin: 0 0 .5rem; color: var(--navy-900); }
.info-box h4:not(:first-child) { margin-top: 1.5rem; }
.info-box p { color: var(--ink-700); font-size: .95rem; }

/* ===== Calculator page ===== */
.calc-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .calc-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.calc-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-sm);
}
.calc-card h2 { margin-bottom: 2rem; }

.calc-field { margin-bottom: 1.8rem; }
.calc-field label {
    display: block;
    font-weight: 600;
    color: var(--ink-700);
    font-size: .9rem;
    margin-bottom: .6rem;
}

.input-with-prefix, .input-with-suffix {
    display: flex; align-items: stretch;
    border: 1.5px solid var(--ink-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input-with-prefix:focus-within, .input-with-suffix:focus-within {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(34,87,197,.15);
}
.input-with-prefix span, .input-with-suffix span {
    padding: .85rem 1rem;
    background: var(--ink-50);
    color: var(--ink-500);
    font-weight: 600;
    display: inline-flex; align-items: center;
}
.input-with-prefix input, .input-with-suffix input {
    border: 0; outline: none;
    flex: 1;
    padding: .85rem 1rem;
    font-size: 1.05rem; font-family: inherit; font-weight: 600;
    color: var(--navy-900);
    width: 100%;
}

input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%;
    height: 6px;
    background: var(--ink-100);
    border-radius: 3px;
    outline: none;
    margin-top: 1rem;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px;
    background: var(--blue-500);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(34,87,197,.4);
}
input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    background: var(--blue-500);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(34,87,197,.4);
}

.freq-toggle { display: flex; gap: 0; border: 1.5px solid var(--ink-100); border-radius: var(--radius-md); padding: 4px; background: var(--ink-50); }
.freq-toggle .freq {
    flex: 1;
    padding: .65rem 1rem;
    background: transparent; border: 0; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: .9rem;
    color: var(--ink-500);
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.freq-toggle .freq:hover { color: var(--navy-900); }
.freq-toggle .freq.active { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }

.calc-results {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.result-hero { text-align: center; padding: 1rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 2rem; }
.result-label { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: .5rem; }
.result-value {
    display: block;
    font-family: var(--ff-display);
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1;
}
.result-frequency { display: block; color: var(--gold-400); margin-top: .6rem; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.result-item span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: .35rem; }
.result-item strong { font-family: var(--ff-display); font-size: 1.4rem; color: var(--white); display: block; }

.calc-disclaimer {
    background: rgba(255,255,255,.06);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: .82rem;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.calc-disclaimer strong { color: var(--gold-400); }

.calc-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.calc-cta .btn-outline { color: var(--white); border-color: rgba(255,255,255,.3); }
.calc-cta .btn-outline:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* ===== Testimonials page ===== */
.rating-banner {
    display: inline-flex; align-items: center; gap: 1rem;
    margin-top: 1.5rem;
    padding: .85rem 1.5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: rgba(255,255,255,.95);
    font-size: .95rem;
}
.rating-stars { color: var(--gold-400); font-size: 1.1rem; letter-spacing: 2px; }

.testimonial-grid { gap: 1.75rem; }
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.t-stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: .8rem; font-size: .95rem; }
.testimonial-card p {
    color: var(--ink-700);
    font-size: 1rem;
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}
.testimonial-card footer { padding-top: 1rem; border-top: 1px solid var(--ink-100); }
.testimonial-card footer strong { display: block; color: var(--navy-900); font-family: var(--ff-display); font-size: 1.05rem; }
.testimonial-card footer span { color: var(--ink-500); font-size: .85rem; }

.case-study {
    margin-top: 4rem;
    background: var(--blue-50);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--blue-100);
}
.case-study .lead { margin-bottom: 2rem; }
.case-content h4 { margin: 1.5rem 0 .5rem; color: var(--navy-900); }
.case-content h4:first-child { margin-top: 0; }

/* ===== Contact page ===== */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }

.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.contact-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--blue-100);
    color: var(--blue-500);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.contact-item h4 { margin-bottom: .25rem; }
.contact-item p { margin-bottom: .25rem; }
.contact-item a { font-weight: 600; color: var(--navy-900); }
.contact-item a:hover { color: var(--blue-500); }
.contact-item small { color: var(--ink-500); font-size: .85rem; }

.credentials-box {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--ink-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold-500);
}
.credentials-box h5 {
    color: var(--navy-900);
    font-size: .82rem; font-family: var(--ff-body);
    margin-bottom: .6rem;
    letter-spacing: .12em;
}
.credentials-box p { font-size: .85rem; color: var(--ink-700); line-height: 1.7; }

.contact-form-wrap {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form h2 { margin-bottom: .25rem; }
.contact-form p.muted { margin-bottom: 1rem; }
.contact-form label {
    display: flex; flex-direction: column; gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-700);
}
.contact-form input, .contact-form select, .contact-form textarea {
    padding: .85rem 1rem;
    border: 1.5px solid var(--ink-100);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink-900);
    background: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
    font-weight: 400;
    resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(34,87,197,.15);
}
.contact-form input.error, .contact-form select.error, .contact-form textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(194,54,58,.15);
}
.form-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.checkbox { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.checkbox span { font-weight: 400; color: var(--ink-700); font-size: .9rem; line-height: 1.5; }

.form-status {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .92rem;
}
.form-status.success { background: rgba(28,140,84,.1); color: var(--success); border: 1px solid rgba(28,140,84,.25); }
.form-status.error { background: rgba(194,54,58,.1); color: var(--danger); border: 1px solid rgba(194,54,58,.25); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    background: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--ink-100);
    margin-bottom: 1rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details:hover { border-color: var(--blue-100); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy-900);
    font-size: 1.05rem;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    color: var(--blue-500);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 1rem; color: var(--ink-700); line-height: 1.7; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
