/* --- Global Style Variables & Layout System Overrides --- */
:root {
    --brand-primary-teal: #15b1c5;
    --brand-dark-navy: #0f1c3f;
    --brand-slate-banner: #232d37;
    --text-color-muted: #556270;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-color-muted);
    background-color: #ffffff;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center !important; }

/* --- Top Header Navigation Interface Bar --- */
.navbar {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f4f8;
}
.navbar-brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand-logo-text { font-weight: 800; font-size: 1.8rem; color: var(--brand-dark-navy); letter-spacing: -1px; line-height: 1; }
.brand-sub-text { font-weight: 400; font-size: 1.2rem; color: #718096; margin-left: 12px; letter-spacing: -0.5px; line-height: 1; border-left: 2px solid #e2e8f0; padding-left: 12px; }
.nav-links-container { display: flex; list-style: none; padding: 0; margin: 0; gap: 2.5rem; }
.nav-link { font-weight: 600; color: var(--brand-dark-navy); text-decoration: none; font-size: 0.95rem; }
.nav-link:hover { color: var(--brand-primary-teal); }

/* --- Split View Hero presentation layouts --- */
.hero-section { 
    padding: 4rem 0 8rem 0; /* Creates bottom clearance so the floating card row can tuck up into view smoothly */
    background: #ffffff;
    position: relative;
}

.hero-split-row { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
.col-lg-6 { width: 50%; }
.graphic-column { padding-right: 20px; display: flex; justify-content: center; }
.text-column { padding-left: 50px; }

/* --- Hero Image Handling Parameters --- */
.graphic-image-wrapper {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 28, 63, 0.25);
    background-color: var(--brand-dark-navy);
}

.img-fluid-globe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Hero Typography Layout Rules --- */
.text-dark-blue {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark-navy);
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}
.lead-text { font-size: 1.25rem; line-height: 1.6; color: #4a5568; margin-bottom: 2.5rem; font-weight: 400; }
.btn-teal { background-color: var(--brand-primary-teal); color: #ffffff; text-decoration: none; padding: 1rem 2.5rem; display: inline-block; border-radius: 50px; font-weight: 700; font-size: 1.05rem; box-shadow: 0 8px 25px rgba(21, 177, 197, 0.35); transition: all 0.25s ease; }
.btn-teal:hover { background-color: #1194a5; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(21, 177, 197, 0.5); }
/* --- High-Fidelity Floating Section Structure (Moves Cards Upward) --- */
.floating-services-section {
    position: relative;
    margin-top: -6rem; /* Negative vertical margin pulls the entire block straight up into the hero layout */
    z-index: 10;
    padding-bottom: 0rem;
    background-color: transparent;
}

/* --- Tagline Centerpiece Banner Block --- */
.tagline-strip-card {
    background-color: var(--brand-slate-banner);
    color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 12px 12px 0 0; /* Curves the top edges of the accent bar */
    text-align: center;
}
.tagline-text { font-size: 1.35rem; font-weight: 300; margin: 0; letter-spacing: 0.25px; }

/* --- Speciality Columns Container Setup (Perfect Straight Lines) --- */
.services-row { 
    display: flex; 
    gap: 24px; 
    background-color: #ffffff;
    padding: 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    border-top: none;
}

.service-col { width: 33.333%; }

.card { 
    background: #ffffff; 
    border-radius: 12px; 
    border: 2px solid rgba(21, 177, 197, 0.35); /* Logo turquoise outline accents from mockup */
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { 
    transform: translateY(-4px); 
    border-color: var(--brand-primary-teal); 
    box-shadow: 0 10px 20px rgba(21, 177, 197, 0.1);
}

.card-body { padding: 2rem; text-align: left; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { color: var(--brand-dark-navy); font-size: 1.35rem; margin: 0 0 1rem 0; font-weight: 800; letter-spacing: -0.25px; }
.card-text { font-size: 0.95rem; line-height: 1.5; color: #556270; margin: 0; flex-grow: 1; }
.text-teal-link { color: var(--brand-primary-teal); font-size: 0.85rem; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 1.5rem; letter-spacing: 0.5px; text-transform: uppercase; }
.text-teal-link:hover { color: var(--brand-dark-navy); }

/* --- Who We Serve Styles --- */
.audience-section-block {
    width: 100%;  
    background-color: #ffffff;
    padding: 3rem 0;
    border-top: none;
}

.audience-grid-row { display: flex; gap: 30px; }
.audience-card-col { width: 33.333%; }
.audience-card { background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; height: 100%; display: flex; flex-direction: column; }
.audience-card-body { padding: 2.5rem 2rem; }
.audience-title { color: var(--brand-dark-navy); font-size: 1.4rem; font-weight: 800; margin: 0 0 1rem 0; letter-spacing: -0.25px; }
.audience-text { font-size: 0.95rem; line-height: 1.6; color: #475569; margin: 0; }

/* --- Solutions & Work Showcase Styles --- */
.solutions-section-block { width: 100%; background-color: #f8fafc; padding: 6rem 0; border-top: none; }
.section-header-wrap { max-width: 700px; margin: 0 auto 4rem auto; }
.section-main-title { font-size: 2.25rem; font-weight: 800; color: var(--brand-dark-navy); margin: 0 0 1rem 0; letter-spacing: -0.5px; }
.section-sub-title { font-size: 1.1rem; color: #64748b; line-height: 1.6; margin: 0; }
.showcase-grid-row { display: flex; gap: 30px; }
.showcase-card-col { width: 33.333%; }
.showcase-item-card { background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; height: 100%; display: flex; flex-direction: column; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.showcase-item-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.showcase-card-body { padding: 2.5rem 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.badge-pill-tech { background-color: #f0fdfa; color: #0d9488; font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.85rem; border-radius: 50px; display: inline-block; align-self: flex-start; margin-bottom: 1.25rem; letter-spacing: 0.5px; border: 1px solid rgba(13, 148, 136, 0.15); }
.showcase-item-title { color: var(--brand-dark-navy); font-size: 1.25rem; font-weight: 800; margin: 0 0 1rem 0; line-height: 1.3; }
.showcase-item-text { font-size: 0.95rem; line-height: 1.6; color: #475569; margin: 0; flex-grow: 1; }
.showcase-action-link { color: var(--brand-primary-teal); font-size: 0.85rem; font-weight: 700; text-decoration: none; margin-top: 2rem; letter-spacing: 0.5px; transition: color 0.2s ease; }
.showcase-action-link:hover { color: var(--brand-dark-navy); }

footer { background: #ffffff; border-top: 1px solid #e2e8f0; padding: 2.5rem 0; text-align: center; font-size: 0.9rem; color: #718096; }

/* --- ABOUT US SECTION PRESENTATION LAYER OVERRIDES --- */
.about-section-block {
	width: 100%;
    background-color: #ffffff;
    padding: 5rem 0;
    border-top: 1px solid #f0f4f8;
}

.about-lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--brand-dark-navy);
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-weight: 600;
}

.about-body-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-color-muted);
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

/* --- CONTACT FORM SECTION PRESENTATION LAYER OVERRIDES --- */
.contact-section-block {
    background-color: #f8fafc;
    padding: 6rem 0;
    border-top: 1px solid #e2e8f0;
}

/* Premium form container enclosure box matching Visual 2 */
.form-wrapper-card {
    background-color: #ffffff;
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 28, 63, 0.05);
}

.r9-consulting-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Creates perfect uniform spacing between the rows */
}

.form-group-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-input-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark-navy);
    letter-spacing: -0.1px;
}

.required-star {
    color: #e11d48; /* Crimson red accent highlight for vital fields */
    margin-left: 2px;
}

/* Standardized responsive text inputs & selection components style */
.form-input-field,
.form-select-field,
.form-textarea-field {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--brand-dark-navy);
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

/* Changes the color smoothly to your logo teal when a user clicks into a field */
.form-input-field:focus,
.form-select-field:focus,
.form-textarea-field:focus {
    border-color: var(--brand-primary-teal);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(21, 177, 197, 0.15);
}

.form-textarea-field {
    resize: vertical; /* Stops users from expanding the box horizontally and breaking the columns */
}

/* Premium R9 Corporate Teal Form Submit Button style */
.btn-submit-form {
    background-color: var(--brand-primary-teal);
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(21, 177, 197, 0.3);
    transition: all 0.25s ease;
    display: inline-block;
    width: auto;
    margin-top: 1rem;
}

.btn-submit-form:hover {
    background-color: #1194a5;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(21, 177, 197, 0.45);
}

/* --- FREQUENTLY ASKED QUESTIONS (FAQ) PRESENTATION LAYERS --- */
.faq-section-block {
	width: 100%;
    background-color: #ffffff;
    padding: 6rem 0;
    border-top: 1px solid #e2e8f0;
}

.faq-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.faq-column-item {
    width: calc(50% - 15px); /* Creates a balanced 2-column grid layout pattern across wide displays */
    display: flex;
}

.faq-item-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--brand-primary-teal); /* Adds a sharp signature R9 turquoise vertical accent bar */
    padding: 2.25rem 2rem;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.faq-question-title {
    color: var(--brand-dark-navy);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    letter-spacing: -0.25px;
}

.faq-answer-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* --- CORE VALUES / WHY CHOOSE R9 PRESENTATION LAYERS --- */
.values-section-block {
	width: 100%;
    background-color: #f8fafc;
    padding: 5rem 0;
    border-top: 1px solid #e2e8f0;
}

.values-grid-row {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.value-card-col {
    width: 33.333%;
}

.value-display-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.value-display-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -3px rgba(15, 28, 63, 0.08);
}

.value-icon-shield {
    color: #ffffff;
    background-color: var(--brand-primary-teal);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(21, 177, 197, 0.3);
}

.value-card-title {
    color: var(--brand-dark-navy);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.25px;
}

.value-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #556270;
    margin: 0;
}

/* --- FLOATING BACK TO TOP ARROW BUTTON (Strategy 2) --- */
.scroll-to-top-btn {
    position: fixed;     /* Pins the button viewport coordinates to float dynamically */
    bottom: 30px;        /* Cradles it 30px up from your monitor's bottom frame border */
    right: 30px;         /* Anchors it 30px out from your monitor's right screen wall */
    background-color: var(--brand-primary-teal); /* Matches your signature R9 corporate branding logo accent colors */
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;  /* Forms a perfect crisp modern layout geometric circle */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(21, 177, 197, 0.35); /* Glow shadow texture accent rules */
    z-index: 2500;       /* Guarantees it floats over your lower FAQ and Form sections */
    transition: all 0.25s ease;
}

.scroll-to-top-btn:hover {
    background-color: #1194a5;
    transform: translateY(-3px); /* Interactive movement layout rules */
    box-shadow: 0 12px 25px rgba(21, 177, 197, 0.5);
}

/* --- RESPONSIVE MOBILE OVERRIDES (Phones & Small Tablets) --- */
@media (max-width: 768px) {
    
    /* 1. Reset Global Navbar & Flex Containers to Columns */
    .navbar .d-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links-container {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 2. Re-stack Grid Structures Vertically */
    .hero-split-row,
    .services-row,
    .audience-grid-row,
    .showcase-grid-row,
    .values-grid-row,
    .faq-grid-row {
        flex-direction: column;
        gap: 20px !important;
    }

    /* 3. Force Columns to Take Up Full Width */
    .col-lg-6,
    .service-col,
    .audience-card-col,
    .showcase-card-col,
    .value-card-col,
    .faq-column-item {
        width: 100% !important;
    }

    /* 4. Fix Hero Section Spacing, Text, and Graphics */
    .hero-section {
        padding: 2rem 0 4rem 0; /* Shrink padding so it feels tighter */
    }

    .text-column {
        padding-left: 0; /* Remove massive left indent */
        text-align: center;
        margin-top: 1.5rem;
    }

    .text-dark-blue {
        font-size: 1.85rem; /* Make huge header smaller for mobile displays */
    }

    .graphic-column {
        padding-right: 0;
    }

    /* 5. Adjust the Floating Card Element */
    .floating-services-section {
        margin-top: -2rem; /* Soften the negative margin overlap */
        padding: 0 10px;
    }

    /* 6. Form Enclosure Card Tweaks */
    .form-wrapper-card {
        padding: 2rem 1.2rem; /* Soften form borders on tight screens */
    }
}





