/* ==========================================================================
   1. GLOBAL THEME VARIABLES & BASE RULES
   ========================================================================== */
:root {
    --rh-maroon: #8A151B;
    --rh-blue: #2A4B7C;   
    --rh-dark: #222222;
    --rh-gray: #666666;
    --rh-white: #FFFFFF;
    --rh-bg-light: #F4F5F7;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--rh-dark);
    background-color: var(--rh-white);
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (OVERLAPPING FIXED LOGO SCHEME)
   ========================================================================== */
header {
    background-color: var(--rh-blue);
    padding: 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100; /* Keeps the header above content */
    width: 100%;
}

nav {
    display: flex;
    justify-content: flex-end; /* Pushes the nav links to the right */
    align-items: center;
    width: 100%; 
    height: 70px; /* Reduced header height slightly for a sleeker profile */
    margin: 0;
}

/* Constrains your navigation links back slightly from the far right edge */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 50px; 
}

/* New independent layout rules for the logo wrapper */
.logo-container {
    position: fixed;   /* Takes it out of the normal flow so it stays static on scroll */
    top: 10px;         /* Distance from the very top of the browser window */
    left: 40px;        /* Moves it a little bit to the right of the topmost left */
    z-index: 200;      /* Raised above the header (100) to overlay properly */
    height: auto;
    width: auto;
}

.logo-container a {
    display: block;
}

.logo-container img {
    height: 150px;     /* Made it significantly bigger so it drops below the 70px header */
    width: auto;       /* Maintains proportional aspect ratio */
    background-color: transparent;
    border-radius: 0;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.2)); 
}

.nav-links a {
    color: var(--rh-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 5px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--rh-white);
    border-bottom: 2px solid var(--rh-maroon);
}

/* ==========================================================================
   PRODUCTION CORPORATE FOOTER SYSTEM
   ========================================================================== */
footer {
    background-color: var(--rh-maroon, #8A151B);
    padding: 0; /* Clear padding so the left logo can touch the boundaries perfectly */
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 100%;
    height: 160px; /* Explicit structural layout height for the footer row */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* Ensures everything flows left-to-right */
}

/* 1. Logo Block: Forced to touch top and bottom boundaries */
.footer-logo-block {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo-img {
    height: 100%;
    max-height: 160px; /* Scales exactly to match the footer height */
    width: auto;       /* Retains clear aspect ratio constraints */
    background-color: transparent;
    border-radius: 0;
    display: block;
    object-fit: contain;
    padding: 0;        /* Flushes image edge directly against the containers */
}

/* 2. Content Block: Linear descending text lines stack */
.footer-info-block {
    display: flex;
    flex-direction: column; /* Forces lines to go step-by-step downwards */
    justify-content: center;
    align-items: flex-start;
    padding-left: 40px;     /* Adds pristine padding separating the text from the logo */
    color: var(--rh-white, #FFFFFF);
}

.footer-company-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.footer-detail-line {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.4;
    margin-bottom: 3px;
}

.footer-copyright-line {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 8px; /* Gives the copyright space at the bottom of the stack */
}

/* Mobile responsive collapsing stack layout override */
@media (max-width: 768px) {
    .footer-container {
        height: auto;
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .footer-logo-img {
        max-height: 100px;
        margin-bottom: 25px;
    }
    .footer-info-block {
        padding-left: 0;
        align-items: center;
    }
}
.footer-logo img {
    max-height: 50px;
    margin-bottom: 10px;
    background-color: transparent; /* Clean transparent blend */
    padding: 0;
    border-radius: 0;
}

/* ==========================================================================
   3. HERO SECTION MECHANICS
   ========================================================================== */
.hero {
    position: relative; 
    background-image: url("../images/slide1.b4c24d9fa1c1.png"); /* CSS fallback directory link */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 140px 20px;
    text-align: center;
    overflow: hidden;
    transition: background-image 1.5s ease-in-out; 
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
   /* background: rgba(42, 75, 124, 0.8);*/ 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--rh-white, #FFFFFF);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero p {
    color: var(--rh-white, #FFFFFF);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* 1. Hero Explore Button Modification */
.btn-primary {
    background-color: transparent;            /* Fixed the invalid var(transparent) bug */
    color: var(--rh-white, #FFFFFF);          
    border: 2px solid var(--rh-white, #FFFFFF); /* High contrast white border outline */
    padding: 14px 33px; 
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 700;   
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Elegant invert-color block effect on hover */
.btn-primary:hover {
    background-color: var(--rh-maroon, #8A151B);
    border-color: var(--rh-maroon, #8A151B);
    color: var(--rh-white, #FFFFFF);
}

/* ==========================================================================
   4. SLEEK HORIZONTAL IMPACT SECTION
   ========================================================================== */
.impact-band {
    background-color: var(--rh-blue, #2A4B7C);
    padding: 60px 20px;
    border-bottom: 1px solid #E5E9F0;
    width: 100%;
}

/* Forces the items to line up side-by-side inside a centered container */
.impact-grid {
    display: flex;
    flex-direction: row;       /* Explicitly arranges cards horizontally */
    justify-content: center;   /* Centers the group across the screen */
    align-items: flex-start;   /* Aligns them cleanly at the top line */
    gap: 40px;                 /* Adds elegant breathing room spacing between columns */
    max-width: 1200px;
    margin: 0 auto;            /* Centers the entire container grid block */
}

/* Layout spacing rules for each individual column card */
.impact-item {
    flex: 1;                   /* Spreads equal width properties uniformly across all 3 items */
    min-width: 250px;          /* Prevents them from getting too squished */
    text-align: center;        /* Centers text content internally */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-icon {
    width: 70px;               
    height: 70px;
    margin: 0 auto 20px auto;
    border: 2px solid var(--rh-blue, #2A4B7C); 
    background-color: var(--rh-blue, #2A4B7C); 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;         
}

.impact-item h3 {
    color: var(--rh-white, #FFFFFF);
    font-size: 1.1rem;         
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.impact-item p {
    color: #E2E8F0;
    font-size: 0.9rem;          
    line-height: 1.6;
    max-width: 300px;          
    margin: 0;
}
/* ==========================================================================
   5. CORPORATE ABOUT SECTION (SIDE-BY-SIDE FIXED LOGO LAYOUT)
   ========================================================================== */
.corporate-about-section {
    background-color: var(--rh-bg-light); /* Matches #F4F5F7 */
    padding: 80px 20px;
    border-bottom: 1px solid #E5E9F0;
    width: 100%;
}

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

/* Text Container allocation layout rules */
.about-content-block {
    flex: 1.3;
    text-align: left;
    line-height: 1.7;
}

.about-pretitle {
    color: var(--rh-maroon);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.about-title {
    color: var(--rh-dark);
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.about-hr {
    width: 60px;
    height: 3px;
    background-color: var(--rh-maroon);
    margin-bottom: 30px;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rh-blue);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-text {
    color: var(--rh-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Left accent block rules for closing paragraph quote */
.about-content-block .highlight-box {
    border-left: 3px solid var(--rh-blue);
    padding-left: 15px;
    font-style: italic;
    color: var(--rh-dark);
    margin-top: 25px;
}

/* Logo container block framework rules */
.about-logo-block {
    flex: 0.7;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   5. OPERATIONAL SECTORS / CATEGORIES (MODERN LIGHT CARDS)
   ========================================================================== */
.categories-section {
    background-color: var(--rh-bg-light, #F8FAFC);
    padding: 80px 20px;
    width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--rh-dark, #0F172A);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--rh-gray, #64748B);
    font-size: 1rem;
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Modern Light Card Container Structure */
.category-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Dedicated Top Image Container with Subtle Zoom Effect */
.category-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.05);
}

/* Main Inner Content Block */
.category-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.category-header h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--rh-dark, #0F172A);
    text-transform: uppercase;
    margin: 0;
    flex-grow: 1;
}

/* Red-Accented Circular Badge Framework */
.corporate-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--rh-maroon, #8B0000);
    color: var(--rh-maroon, #8B0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.category-content p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Clean Dark-to-Red Interactive Call-To-Action Button */
.corporate-explore-btn {
    color: var(--rh-dark, #0F172A);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.corporate-explore-btn .arrow {
    transition: transform 0.3s ease;
}

.category-card:hover .corporate-explore-btn {
    color: var(--rh-maroon, #8B0000);
}

.category-card:hover .corporate-explore-btn .arrow {
    transform: translateX(6px);
}

/* ABOUT SECTION TRANSPARENT LOGO FIX */
.logo-frame {
    background: transparent; 
    border: none;
    box-shadow: none;
    padding: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 380px;
    width: 100%;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
}

.logo-frame:hover {
    box-shadow: none;
    transform: scale(1.03); 
}

.corporate-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* ==========================================================================
   7. RESPONSIVE LAYOUT WRAPPERS
   ========================================================================== */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column-reverse;
        gap: 40px;
    }
    .about-content-block, .about-logo-block {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .impact-grid {
        flex-direction: column;
        gap: 40px;
    }
    .about-container {
        flex-direction: column-reverse !important;
        gap: 30px !important;
    }
    .about-content-block, .about-logo-block {
        width: 100% !important;
    }
}


/* ==========================================================================
   8. DEDICATED ABOUT PAGE ENHANCEMENTS
   ========================================================================== */

/* Styling for the Right-Side Image on the About Page */
/* Styling for the Right-Side Image on the About Page */
.about-image-wrapper {
    width: 100%;
    height: auto; /* Removes forced 100% height */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex; /* Eliminates the tiny whitespace gap below images */
}

.about-image-wrapper img {
    width: 100%;
    height: auto; /* Lets the image dictate its own natural height */
    object-fit: cover; /* Keeps proportions perfect without stretching */
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.04);
}

/* About Page Core Values Grid */
.about-values-section {
    background-color: var(--rh-white, #FFFFFF);
    padding: 60px 20px 100px 20px;
    width: 100%;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background-color: var(--rh-bg-light, #F4F5F7);
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 4px solid var(--rh-maroon, #8A151B);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.value-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--rh-dark, #222222);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    color: var(--rh-gray, #666666);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
