/* RGIE Manpower Services Global Theme
   Palette: #fcc166, #7dd857, #fd2f2f, #0c5f78, #03999e
*/

:root {
    --rgie-gold: #fcc166;
    --rgie-green: #7dd857;
    --rgie-red: #fd2f2f;
    --rgie-blue: #0c5f78;
    --rgie-teal: #03999e;
    --rgie-dark: #172026;
    --rgie-muted: #65717a;
    --rgie-light: #f7fafb;
    --rgie-white: #ffffff;
    --rgie-border: #dde7ea;
    --rgie-shadow: 0 12px 32px rgba(12, 95, 120, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--rgie-dark);
    background: var(--rgie-light);
}

a {
    color: var(--rgie-blue);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
    color: var(--rgie-teal);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Theme helpers */
.bg-primary-custom,
.bg-rgie-blue {
    background-color: var(--rgie-blue) !important;
}

.bg-rgie-teal {
    background-color: var(--rgie-teal) !important;
}

.bg-rgie-gold {
    background-color: var(--rgie-gold) !important;
}

.bg-rgie-green {
    background-color: var(--rgie-green) !important;
}

.bg-rgie-red {
    background-color: var(--rgie-red) !important;
}

.text-primary-custom,
.text-rgie-blue {
    color: var(--rgie-blue) !important;
}

.text-rgie-teal {
    color: var(--rgie-teal) !important;
}

.text-rgie-gold,
.text-warning {
    color: var(--rgie-gold) !important;
}

.text-rgie-green,
.text-success {
    color: var(--rgie-green) !important;
}

.text-rgie-red {
    color: var(--rgie-red) !important;
}

.border-primary-custom {
    border-color: var(--rgie-teal) !important;
    border-width: 3px !important;
}

/* Header and navigation */
.top-bar {
    background: var(--rgie-white);
    border-bottom: 4px solid var(--rgie-gold);
    font-size: 0.93rem;
    box-shadow: 0 2px 16px rgba(12, 95, 120, 0.08);
}

.logo-wrapper img {
    object-fit: contain;
}

.top-info {
    color: var(--rgie-blue);
    font-weight: 700;
}

.top-info i {
    color: var(--rgie-red);
    margin-right: 0.35rem;
}

.navbar.bg-dark {
    background: linear-gradient(90deg, var(--rgie-blue), var(--rgie-teal)) !important;
    box-shadow: 0 8px 24px rgba(12, 95, 120, 0.25);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.85rem 0.9rem;
    border-bottom: 3px solid transparent;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .active > .nav-link {
    color: var(--rgie-gold);
    border-bottom-color: var(--rgie-gold);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--rgie-white);
    background: #eef7f7;
    /* background: var(--rgie-dark); */
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    min-height: 560px;
}

.hero-section .carousel-item {
    display: none;
}

.hero-section .carousel-item.active {
    display: block;
}

.hero-slide {
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 95, 120, 0.82), rgba(23, 32, 38, 0.48));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 96px;
    padding-bottom: 138px;
}

.hero-section h1 {
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}

.hero-section h2 {
    color: var(--rgie-white);
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}

.hero-section .lead {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.94);
}

.hero-section .carousel-indicators {
    bottom: 40px;
    z-index: 3;
}

.hero-section .carousel-indicators li {
    width: 34px;
    height: 4px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.55);
}

.hero-section .carousel-indicators .active {
    background-color: var(--rgie-gold);
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 3;
    width: 8%;
}

/* Buttons */
.btn-warning {
    color: var(--rgie-dark) !important;
    background-color: var(--rgie-gold) !important;
    border-color: var(--rgie-gold) !important;
    box-shadow: 0 8px 18px rgba(252, 193, 102, 0.28);
}

.btn-warning:hover,
.btn-warning:focus {
    color: var(--rgie-white) !important;
    background-color: var(--rgie-red) !important;
    border-color: var(--rgie-red) !important;
    transform: translateY(-1px);
}

.btn-primary,
.btn-primary-custom {
    color: var(--rgie-white) !important;
    background-color: var(--rgie-blue) !important;
    border-color: var(--rgie-blue) !important;
}

.btn-primary:hover,
.btn-primary-custom:hover {
    background-color: var(--rgie-teal) !important;
    border-color: var(--rgie-teal) !important;
}

/* Sections and cards */
section {
    background: var(--rgie-white);
}

.about-intro-section {
    position: relative;
    overflow: hidden;
    background: var(--rgie-white);
}

.about-intro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('hero/hero3.jpg') no-repeat center center / cover;
    opacity: 0.14;
    z-index: 0;
}

.about-intro-section .container {
    position: relative;
    z-index: 1;
}

section.bg-light,
.bg-light {
    background-color: #eef7f7 !important;
}

section h2 {
    color: var(--rgie-blue);
}

section h4,
.card-title {
    color: var(--rgie-dark);
}

.card,
.list-group,
.rounded.shadow-sm,
.shadow-sm {
    border: 1px solid var(--rgie-border) !important;
    box-shadow: var(--rgie-shadow) !important;
}

.card {
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(3, 153, 158, 0.45) !important;
    box-shadow: 0 18px 40px rgba(12, 95, 120, 0.18) !important;
}

.card .fa-user-tie {
    color: var(--rgie-teal);
}

.list-group-item {
    border-color: var(--rgie-border);
}

#coverage .p-3 {
    border-top: 4px solid var(--rgie-gold) !important;
    border-radius: 16px !important;
}

#coverage .fa-building {
    color: var(--rgie-teal) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--rgie-dark), var(--rgie-blue));
    color: var(--rgie-white);
    padding: 44px 0 22px;
    border-top: 6px solid var(--rgie-gold);
}

footer h5 {
    color: var(--rgie-white) !important;
}

footer p,
footer .text-muted,
footer li,
footer .small {
    color: rgba(255, 255, 255, 0.78) !important;
}

footer a {
    color: var(--rgie-gold);
}

footer a:hover,
footer a:focus {
    color: var(--rgie-green);
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

footer iframe {
    border: 0;
}

/* Forms, useful for the other pages */
.form-control:focus {
    border-color: var(--rgie-teal);
    box-shadow: 0 0 0 0.2rem rgba(3, 153, 158, 0.18);
}

.badge-primary {
    background-color: var(--rgie-blue);
}

.badge-success {
    background-color: var(--rgie-green);
    color: var(--rgie-dark);
}

.alert-primary {
    color: var(--rgie-blue);
    background-color: rgba(3, 153, 158, 0.12);
    border-color: rgba(3, 153, 158, 0.22);
}

/* Responsive polish */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .navbar-dark .navbar-nav .active > .nav-link {
        border-bottom-color: rgba(252, 193, 102, 0.8);
    }
}

@media (max-width: 575.98px) {
    .top-info span {
        display: block;
        margin: 0.15rem 0 !important;
    }

    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        min-height: 480px;
    }

    .hero-content {
        min-height: 480px;
        padding-top: 66px;
        padding-bottom: 108px;
    }

    .hero-section h1,
    .hero-section h2 {
        font-size: 2.15rem;
    }
}
