/* ============================================
   RedDoor Inc. - Site Styles
   ============================================ */

:root {
    --rd-navy:        #1B3564;
    --rd-navy-dark:   #142650;
    --rd-navy-light:  rgba(27, 53, 100, 0.08);
    --rd-red:         #C0392B;
    --rd-red-dark:    #922B21;
    --rd-red-alpha:   rgba(192, 57, 43, 0.1);
    --rd-white:       #FFFFFF;
    --rd-off-white:   #F7F8FA;
    --rd-gray:        #6c757d;
    --rd-text:        #222;
    --rd-border:      #E3E5E8;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--rd-text);
    background-color: var(--rd-white);
    margin: 0;
}

/* ============================================
   Navbar  —  dark navy
   ============================================ */
.rd-navbar {
    background-color: var(--rd-navy);
    padding: 0.8rem 0;
    transition: box-shadow 0.3s ease;
}

.rd-navbar.rd-scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.rd-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.02em;
}

.rd-brand-icon {
    color: var(--rd-red);
}

.rd-navbar .nav-link {
    color: var(--rd-navy) !important;
    font-weight: 500;
    padding: 0.45rem 0.9rem !important;
    transition: color 0.2s;
}

.rd-navbar .nav-link:hover {
    color: var(--rd-navy-dark) !important;
}

/* Hamburger icon visible on white background */
.rd-navbar .navbar-toggler {
    border-color: rgba(27, 53, 100, 0.4);
}

.rd-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2827%2C 53%2C 100%2C 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.rd-nav-cta {
    background-color: var(--rd-red) !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 0.4rem 1rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s !important;
}

.rd-nav-cta:hover {
    background-color: var(--rd-red-dark) !important;
    color: #fff !important;
}

/* ============================================
   Buttons
   ============================================ */
.btn:focus, .btn:active:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--rd-navy);
}

.rd-btn-primary {
    background-color: var(--rd-red);
    color: #fff;
    border: 2px solid var(--rd-red);
    padding: 0.75rem 1.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.rd-btn-primary:hover {
    background-color: var(--rd-red-dark);
    border-color: var(--rd-red-dark);
    color: #fff;
}

.rd-btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.65);
    padding: 0.75rem 1.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.rd-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* ============================================
   Hero  —  dark navy gradient
   ============================================ */
.rd-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F1E3A 0%, #1B3564 55%, #1E3D74 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 76px;
}

.rd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 45%, rgba(192, 57, 43, 0.14) 0%, transparent 60%);
    pointer-events: none;
}

/* Thin red separator at bottom of hero */
.rd-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rd-red);
}

.rd-hero-deco {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 38%;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 22px
    );
    pointer-events: none;
}

.rd-hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.rd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.rd-hero-badge i {
    color: #e8a09a;
}

.rd-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.rd-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.rd-hero-company {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    color: #e8a09a;
    margin-bottom: 1.25rem;
}

.rd-hero-desc {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 1.5rem;
}

.rd-hero-services-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.5rem;
}

.rd-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.rd-hero-pill {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.28rem 0.85rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
}

.rd-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ============================================
   Section Shared
   ============================================ */
.rd-section {
    padding: 5rem 0;
    background-color: var(--rd-white);
}

/* Alternating off-white for visual separation */
.rd-section-dark {
    background-color: var(--rd-white);
    color: var(--rd-text);
}

.rd-section-dark-alt {
    background-color: var(--rd-off-white);
    color: var(--rd-text);
}

.rd-section-light {
    background-color: var(--rd-off-white);
}

.rd-section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rd-red);
    margin-bottom: 0.6rem;
}

.rd-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--rd-text);
}

.rd-section-subtitle {
    font-size: 1rem;
    color: var(--rd-gray);
    line-height: 1.75;
    max-width: 680px;
}

.rd-divider {
    width: 44px;
    height: 3px;
    background-color: var(--rd-red);
    border: none;
    margin: 0.9rem 0 1.5rem;
    opacity: 1;
}

/* ============================================
   About
   ============================================ */
.rd-about-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.82;
    margin-bottom: 1rem;
}

.rd-why-box {
    background-color: var(--rd-off-white);
    border-left: 4px solid var(--rd-red);
    border-radius: 6px;
    padding: 2rem 2rem 1.5rem;
}

.rd-why-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 1rem;
}

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

.rd-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rd-border);
    font-weight: 500;
    font-size: 0.94rem;
    color: #333;
}

.rd-why-list li:last-child {
    border-bottom: none;
}

.rd-why-list li i {
    color: var(--rd-red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   Service Cards  —  white background context
   ============================================ */
.rd-card {
    background-color: var(--rd-white);
    border: 1px solid var(--rd-border);
    border-radius: 8px;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

/* Cards inside the off-white section get a slight shadow baseline */
.rd-section-dark-alt .rd-card {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.rd-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--rd-navy);
}

.rd-card-cta {
    border-color: rgba(27, 53, 100, 0.25);
    background-color: var(--rd-navy-light);
}

.rd-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--rd-red-alpha);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.rd-card-icon i {
    font-size: 1.4rem;
    color: var(--rd-red);
}

.rd-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 0.65rem;
}

.rd-card-desc {
    font-size: 0.88rem;
    color: var(--rd-gray);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

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

.rd-card-list li {
    font-size: 0.84rem;
    color: #555;
    padding: 0.22rem 0;
    padding-left: 1.1rem;
    position: relative;
}

.rd-card-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--rd-red);
    font-weight: 700;
}

/* ============================================
   Commercial
   ============================================ */
.rd-commercial-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-commercial-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rd-border);
    font-size: 0.98rem;
    font-weight: 500;
    color: #333;
}

.rd-commercial-list li:last-child {
    border-bottom: none;
}

.rd-commercial-list li i {
    color: var(--rd-navy);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rd-commercial-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background-color: var(--rd-navy-light);
    border-left: 3px solid var(--rd-navy);
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.65;
}

/* ============================================
   Process
   ============================================ */
.rd-process-step {
    text-align: center;
    padding: 1.25rem 1rem;
}

.rd-process-num {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: var(--rd-navy);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 16px rgba(27, 53, 100, 0.25);
}

.rd-process-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 0.5rem;
}

.rd-process-desc {
    font-size: 0.88rem;
    color: var(--rd-gray);
    line-height: 1.72;
}

/* ============================================
   Service Areas
   ============================================ */
.rd-area-card {
    background-color: var(--rd-white);
    border: 2px solid var(--rd-border);
    border-radius: 8px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.rd-area-card:hover {
    border-color: var(--rd-navy);
    box-shadow: 0 6px 24px rgba(27, 53, 100, 0.12);
    transform: translateY(-3px);
}

.rd-area-card-icon {
    font-size: 2.5rem;
    color: var(--rd-navy);
    margin-bottom: 0.85rem;
    display: block;
}

.rd-area-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rd-text);
}

.rd-area-note {
    font-size: 0.88rem;
    color: var(--rd-gray);
    margin-top: 2rem;
    margin-bottom: 0;
}

/* ============================================
   CTA Section  —  navy (bookends hero)
   ============================================ */
.rd-cta {
    background: linear-gradient(135deg, #142650 0%, #1B3564 60%, #1E3D74 100%);
    padding: 5.5rem 0;
}

.rd-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.rd-cta-sub {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin: 0 auto 0.5rem;
    line-height: 1.72;
}

.rd-cta-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.58);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.rd-cta-footnote {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.rd-btn-white {
    background-color: #fff;
    color: var(--rd-navy);
    border: 2px solid #fff;
    padding: 0.85rem 2.25rem;
    font-size: 0.97rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s, transform 0.15s;
}

.rd-btn-white:hover {
    background-color: #eef0f4;
    color: var(--rd-navy-dark);
    transform: translateY(-2px);
}

.rd-btn-white-outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.rd-btn-white-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* ============================================
   Footer  —  red
   ============================================ */
.rd-footer {
    background-color: var(--rd-red);
    padding: 4rem 0 2rem;
}

.rd-footer-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.45rem;
}

.rd-footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.rd-footer-badges {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.rd-footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.9rem;
}

.rd-footer-services {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.4rem;
}

.rd-footer-area {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
}

.rd-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.38rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.rd-footer-contact li i {
    color: rgba(255, 255, 255, 0.7);
    width: 16px;
    flex-shrink: 0;
}

.rd-footer-divider {
    border-color: rgba(255, 255, 255, 0.25);
    margin: 2rem 0 1.25rem;
    opacity: 1;
}

.rd-footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.rd-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.rd-footer-link:hover {
    color: #fff;
}

/* ============================================
   Page Hero  —  compact inner-page header
   ============================================ */
.rd-page-hero {
    background: linear-gradient(135deg, #0F1E3A 0%, #1B3564 55%, #1E3D74 100%);
    padding: 8rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.rd-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 75% 50%, rgba(192, 57, 43, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.rd-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rd-red);
}

.rd-page-hero-deco {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 22px
    );
    pointer-events: none;
}

.rd-page-hero-content {
    position: relative;
    z-index: 1;
}

.rd-page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.rd-page-hero-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.48);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.rd-page-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.78;
    max-width: 580px;
    margin-bottom: 0;
}

/* ============================================
   Privacy Promise Cards
   ============================================ */
.rd-promise-card {
    background: var(--rd-white);
    border: 1px solid var(--rd-border);
    border-radius: 10px;
    padding: 2rem 1.75rem;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s;
}

.rd-promise-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.rd-promise-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--rd-navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.3rem;
}

.rd-promise-icon i {
    font-size: 1.75rem;
    color: var(--rd-navy);
}

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

.rd-promise-desc {
    font-size: 0.875rem;
    color: var(--rd-gray);
    line-height: 1.72;
    margin: 0;
}

/* ============================================
   Policy Blocks
   ============================================ */
.rd-policy-block {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 820px;
}

.rd-policy-icon-wrap {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 12px;
    background: var(--rd-red-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-policy-icon-wrap i {
    font-size: 1.5rem;
    color: var(--rd-red);
}

.rd-section-dark-alt .rd-policy-icon-wrap {
    background: var(--rd-navy-light);
}

.rd-section-dark-alt .rd-policy-icon-wrap i {
    color: var(--rd-navy);
}

.rd-policy-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 0.6rem;
}

.rd-policy-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.82;
    margin-bottom: 0.75rem;
}

.rd-policy-text:last-child {
    margin-bottom: 0;
}

.rd-policy-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.rd-policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.65;
}

.rd-policy-list li i {
    color: var(--rd-red);
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 0.82rem;
}

.rd-section-dark-alt .rd-policy-list li i {
    color: var(--rd-navy);
}

@media (max-width: 576px) {
    .rd-policy-block {
        flex-direction: column;
        gap: 1.25rem;
    }

    .rd-page-hero {
        padding: 7rem 0 3.5rem;
    }
}
