:root {
    --dr-blue: #0038a8;
    --dr-red: #ce1126;
    --dr-ink: #10244c;
    --dr-light: #f5f8ff;
    --dr-line: #d6e0f3;
    --dr-white: #fefeff;
    --shadow-soft: 0 20px 40px rgba(12, 34, 78, 0.12);
    --shadow-glow: 0 24px 44px rgba(16, 38, 90, 0.14);
    --nav-height: 76px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    color: #22325a;
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 56, 168, 0.07), transparent 36%),
        radial-gradient(circle at 90% 14%, rgba(206, 17, 38, 0.09), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    line-height: 1.65;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dr-ink);
    letter-spacing: 0.02em;
}

.navbar {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 56, 168, 0.09);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-top {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.navbar:not(.navbar-top) {
    box-shadow: 0 12px 24px rgba(12, 34, 78, 0.1);
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(120deg, var(--dr-blue) 0 52%, var(--dr-red) 52% 100%);
    display: inline-block;
    margin-right: 10px;
}

.brand-stack {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 0.12rem;
}

.brand-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--dr-red);
    margin-left: 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    z-index: 0;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -120px;
    background: linear-gradient(145deg, rgba(0, 56, 168, 0.23), rgba(255, 255, 255, 0));
}

.hero::after {
    width: 360px;
    height: 360px;
    left: -130px;
    bottom: -160px;
    background: linear-gradient(145deg, rgba(206, 17, 38, 0.2), rgba(255, 255, 255, 0));
}

.hero .container {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 1rem);
    padding-bottom: 1.75rem;
}

.hero .row {
    width: 100%;
}

.hero-motion-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(0.3px);
    opacity: 0.6;
}

.orb-blue {
    width: clamp(180px, 26vw, 360px);
    height: clamp(180px, 26vw, 360px);
    left: clamp(-40px, 4vw, 70px);
    top: clamp(80px, 18vh, 180px);
    background: radial-gradient(circle at 35% 35%, rgba(33, 97, 230, 0.42), rgba(33, 97, 230, 0));
}

.orb-red {
    width: clamp(220px, 30vw, 410px);
    height: clamp(220px, 30vw, 410px);
    right: clamp(-50px, 0vw, 50px);
    top: clamp(80px, 11vh, 140px);
    background: radial-gradient(circle at 30% 30%, rgba(206, 17, 38, 0.34), rgba(206, 17, 38, 0));
}

.orb-white {
    width: clamp(190px, 24vw, 340px);
    height: clamp(190px, 24vw, 340px);
    right: clamp(20px, 8vw, 180px);
    bottom: clamp(-70px, -4vh, -30px);
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
}

.hero-kicker {
    color: var(--dr-blue);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.08;
    margin: 0.75rem 0 1.25rem;
}

.letter-animate .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(26px);
}

.hero-subtitle {
    max-width: 560px;
    color: #3f4e74;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-role {
    display: inline-block;
    margin: -0.35rem 0 1.1rem;
    padding: 0.22rem 0.68rem;
    border-radius: 999px;
    background: rgba(206, 17, 38, 0.12);
    border: 1px solid rgba(206, 17, 38, 0.26);
    color: #9e0f22;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-brand {
    background: var(--dr-red);
    border: none;
    color: var(--dr-white);
    font-weight: 600;
    padding: 0.8rem 1.35rem;
    border-radius: 0.65rem;
    box-shadow: 0 8px 18px rgba(206, 17, 38, 0.24);
}

.btn-brand:hover {
    background: #b90f22;
    color: var(--dr-white);
}

.outline-brand {
    border: 1.5px solid var(--dr-blue);
    color: var(--dr-blue);
    font-weight: 600;
    padding: 0.8rem 1.25rem;
    border-radius: 0.65rem;
}

.outline-brand:hover {
    color: #fff;
    background: var(--dr-blue);
}

.hero-panel {
    border: 1px solid var(--dr-line);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-glow);
    padding: 1.5rem;
    transform-style: preserve-3d;
}

.hero-panel .metric {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--dr-blue);
    line-height: 1;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.55rem, 3.2vw, 2.65rem);
    margin-bottom: 0.75rem;
}

.section-lead {
    color: #42567f;
    max-width: 660px;
}

.profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 56, 168, 0.08);
    color: var(--dr-ink);
    border: 1px solid rgba(0, 56, 168, 0.16);
    font-size: 0.88rem;
    font-weight: 600;
}

.value-block {
    border: 1px solid var(--dr-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 16px 34px rgba(10, 40, 95, 0.1);
}

.service-layout {
    border: 1px solid #dbe5f7;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    padding: 1.15rem;
    margin-top: 1.25rem;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0.65rem;
    border-bottom: 1px solid #e0e8f8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 24px rgba(12, 34, 78, 0.08);
    border-radius: 0.7rem;
}

.service-num {
    min-width: 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(12, 34, 78, 0.16);
}

.service-num.blue {
    background: var(--dr-blue);
}

.service-num.red {
    background: var(--dr-red);
}

.testimonial-quote {
    position: relative;
    border-left: 6px solid transparent;
    border-image: linear-gradient(180deg, var(--dr-blue), var(--dr-red)) 1;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border-radius: 0.8rem;
}

.testimonial-inline {
    padding: 0.9rem 0.1rem;
    color: #2c4273;
    font-style: italic;
}

.contact-row-bg {
    background:
        linear-gradient(120deg, rgba(0, 56, 168, 0.1), rgba(255, 255, 255, 0)),
        linear-gradient(300deg, rgba(206, 17, 38, 0.12), rgba(255, 255, 255, 0));
    border: 1px solid var(--dr-line);
    border-radius: 1.2rem;
    padding: 1.4rem;
    box-shadow: var(--shadow-glow);
    margin: 0;
}

.contact-form-shell {
    border-top: 3px solid #d6223b;
    background: rgba(255, 255, 255, 0.74);
    border-radius: 0.8rem;
    padding: 1.25rem;
    box-shadow: 0 18px 32px rgba(13, 34, 81, 0.12);
}

.contact-meta {
    display: grid;
    gap: 0.85rem;
}

.meta-item {
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--dr-blue), var(--dr-red)) 1;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 0.65rem;
    padding: 0.9rem 0.95rem;
    box-shadow: 0 14px 24px rgba(16, 39, 87, 0.1);
}

.meta-label {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dr-blue);
    font-weight: 700;
}

.meta-value {
    margin-top: 0.25rem;
    color: #1d3363;
    font-weight: 600;
}

.form-control,
.form-select {
    border-color: #bfd0f1;
    padding: 0.75rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 56, 168, 0.12);
    border-color: var(--dr-blue);
}

.captcha-row {
    background: #f6f9ff;
    border: 1px dashed #9fb4df;
    border-radius: 0.7rem;
    padding: 0.75rem 0.9rem;
    font-weight: 600;
    color: var(--dr-ink);
}

.footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(206, 17, 38, 0.28), transparent 34%),
        radial-gradient(circle at 82% 22%, rgba(0, 56, 168, 0.34), transparent 36%),
        linear-gradient(145deg, #08162f 0%, #0d2552 50%, #0a1b3f 100%);
    color: #d8e3fa;
    padding: 3.6rem 0;
}

.footer::before,
.footer::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.footer::before {
    width: clamp(220px, 34vw, 460px);
    height: clamp(220px, 34vw, 460px);
    left: -120px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.footer::after {
    width: clamp(180px, 28vw, 360px);
    height: clamp(180px, 28vw, 360px);
    right: -100px;
    top: -120px;
    background: radial-gradient(circle, rgba(206, 17, 38, 0.22), rgba(206, 17, 38, 0));
}

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

.footer-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #b9cffa;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.15;
    color: #f4f8ff;
}

.footer-copy,
.footer-note {
    color: #d7e4ff;
}

.footer-note {
    max-width: 32ch;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.footer-contact-item {
    border: 1px solid rgba(184, 206, 247, 0.24);
    border-radius: 0.8rem;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.06);
}

.footer-contact-item-full {
    grid-column: 1 / -1;
}

.footer-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b7ccf7;
    font-weight: 700;
}

.footer-value {
    color: #f0f5ff;
    font-weight: 600;
}

.footer strong {
    color: #ffffff;
}

@media (max-width: 991px) {
    .hero {
        min-height: 100svh;
    }

    .hero .container {
        padding-top: calc(var(--nav-height) + 0.9rem);
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 575px) {
    .hero-panel {
        margin-top: 2rem;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
    }
}
