/* =========================================
   Reliant Foundations - Main Stylesheet
   ========================================= */

:root {
    --primary: #f4c11c;
    --primary-dark: #d8a60e;
    --dark: #20262d;
    --dark-alt: #2a313b;
    --text: #505763;
    --light-bg: #f2f2f2;
    --nav-bg: #1d2128;
    --nav-text: #e4e4e4;
    --section-white: #ffffff;
    --shadow-soft: rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    background: #f8f8f8;
}

a { color: var(--primary); transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #1c1c1c;
    border-radius: 4px;
    padding: 10px 28px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 13px;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #1c1c1c;
}
.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 4px;
    padding: 10px 28px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 13px;
}
.btn-outline:hover { background: #fff; color: var(--dark); }
.btn-quote {
    background: var(--primary);
    color: #1c1c1c;
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 700;
    border: none;
    text-transform: uppercase;
    font-size: 13px;
}
.btn-quote:hover { background: var(--primary-dark); color: #1c1c1c; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--nav-bg);
    color: #a7a7a7;
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar i { margin-right: 6px; color: var(--primary); }
.top-social a {
    color: #bcbcbc;
    margin-left: 12px;
    font-size: 14px;
}
.top-social a:hover { color: var(--primary); }

/* ---- Header ---- */
.site-header {
    background: #fff;
    padding: 16px 0;
    box-shadow: none;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.logo img { max-height: 68px; }
.header-contact {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}
.header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-contact-item > i {
    font-size: 22px;
    color: var(--primary);
}
.header-contact-item span {
    display: block;
    font-size: 11px;
    color: #8f8f8f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.header-contact-item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* ---- Navbar ---- */
.navbar {
    background: var(--nav-bg);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    min-height: 56px;
}
.navbar-nav > li > a {
    color: #f4f4f4 !important;
    font-size: 14px;
    font-weight: 700;
    padding: 18px 16px 17px;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
    color: var(--primary) !important;
    background: transparent !important;
}
.navbar-nav > li.active > a {
    background: rgba(255,255,255,0.02) !important;
}
.login-links .dropdown-menu {
    background-color: var(--dark-alt);
    border: none;
}
.login-links .dropdown-menu > li > a {
    color: #ccc;
    font-size: 13px;
}
.login-links .dropdown-menu > li > a:hover {
    background: var(--primary);
    color: #fff;
}
/* Bootstrap's collapsed-navbar rule (.navbar-nav .open .dropdown-menu) is more
   specific than the rules above and forces a transparent background + gray
   text once the mobile hamburger menu is used. Re-assert our styling so the
   Login dropdown never falls back to unstyled/blank-looking on mobile. */
.navbar-nav.login-links .open .dropdown-menu,
.login-links .dropdown.open .dropdown-menu {
    background-color: var(--dark-alt) !important;
    border: none !important;
}
.navbar-nav.login-links .open .dropdown-menu > li > a,
.login-links .dropdown.open .dropdown-menu > li > a {
    color: #ccc !important;
}
.navbar-nav.login-links .open .dropdown-menu > li > a:hover,
.login-links .dropdown.open .dropdown-menu > li > a:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}
.navbar-toggle .icon-bar { background: #ccc; }

/* ---- Hero ---- */
#heroCarousel {
    position: relative;
}

.hero-slider {
    position: relative;
    background: #000;
}
.hero-slide {
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero-slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.overlay-1 { background: rgba(13, 14, 17, 0.52); }
.overlay-2 { background: rgba(15, 18, 17, 0.58); }
.overlay-3 { background: rgba(13, 14, 17, 0.60); }

/* Bootstrap 3's default carousel animates the "left" property, which forces
   a repaint of the full-bleed background image on every frame -> jitter.
   Override it to animate "transform" instead so the browser can composite
   the slide on the GPU (smooth) rather than repaint it (janky). */
#heroCarousel .carousel-inner > .item {
    transition: -webkit-transform 0.6s ease-in-out;
    transition: transform 0.6s ease-in-out;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}
#heroCarousel .carousel-inner > .item.next,
#heroCarousel .carousel-inner > .item.active.right {
    left: 0;
    transform: translate3d(100%, 0, 0);
}
#heroCarousel .carousel-inner > .item.prev,
#heroCarousel .carousel-inner > .item.active.left {
    left: 0;
    transform: translate3d(-100%, 0, 0);
}
#heroCarousel .carousel-inner > .item.next.left,
#heroCarousel .carousel-inner > .item.prev.right,
#heroCarousel .carousel-inner > .item.active {
    left: 0;
    transform: translate3d(0, 0, 0);
}

.hero-caption {
    position: relative;
    z-index: 2;
    padding: 40px 60px;
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-caption .hero-title {
    color: #f4f4f4;
    font-size: clamp(42px, 5vw, 104px);
    line-height: 0.95;
    letter-spacing: -2px;
    margin: 0 auto 24px;
    font-weight: 800;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-caption .hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: clamp(21px, 2.2vw, 36px);
    font-weight: 400;
    line-height: 1.4;
    margin: 0 auto 28px;
    letter-spacing: 0.3px;
    max-width: 1100px;
    text-transform: uppercase;
}
.hero-caption h5 {
    color: var(--primary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.hero-caption h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
.hero-caption h2 {
    color: #ddd;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
}
.btn-hero {
    margin-right: 12px;
    margin-top: 5px;
    min-width: 190px;
}
.carousel-control {
    background: none;
    width: 5%;
}
.carousel-control:hover { background: rgba(0,0,0,0.2); }

#heroCarousel .carousel-indicators {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 88px;
    width: auto;
    margin: 0;
    transform: translateX(-50%);
    z-index: 12;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}
#heroCarousel:hover .carousel-indicators,
#heroCarousel:focus-within .carousel-indicators {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#heroCarousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.35);
    margin: 0 5px;
    transition: all 0.25s ease;
    opacity: 0.85;
}
#heroCarousel .carousel-indicators li:hover {
    background: var(--primary);
    border-color: var(--primary);
    opacity: 1;
}
#heroCarousel .carousel-indicators .active {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.22);
    opacity: 1;
}
#heroCarousel .carousel-indicators .active:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.item .hero-caption h5,
.item .hero-caption h1,
.item .hero-caption h2,
.item .hero-caption .hero-buttons {
    opacity: 0;
}
.item.active .hero-caption h5 {
    animation: heroDropDown 0.4s ease forwards;
    animation-delay: 0.05s;
}
.item.active .hero-caption h1 {
    animation: heroFadeIn 0.45s ease forwards;
    animation-delay: 0.2s;
}
.item.active .hero-caption h2 {
    animation: heroSlideInLeft 0.4s ease forwards;
    animation-delay: 0.35s;
}
.item.active .hero-caption .hero-buttons {
    animation: heroSlideInRight 0.4s ease forwards;
    animation-delay: 0.5s;
}

@keyframes heroDropDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes heroSlideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroSlideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- Needs Section ---- */
.needs-section {
    position: relative;
    background: transparent;
    padding: 0 0 30px;
    margin-top: -68px;
    z-index: 10;
    color: #111;
    box-shadow: none;
}
.needs-section .container {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--primary);
    padding: 0 30px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.needs-row {
    min-height: 130px;
    display: flex;
    align-items: center;
    margin: 0;
}
.needs-section h3 {
    margin: 0 0 5px;
    font-size: 22px;
    color: #111;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.needs-section p {
    margin: 0;
    opacity: 1;
    font-size: 14px;
    color: #111;
    line-height: 1.6;
}
.needs-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.needs-btn .btn-dark {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.needs-btn .btn-dark:hover {
    background: #1f1f1f;
    color: #fff;
}
.align-center { display: flex; align-items: center; }

@media (max-width: 991px) {
    .needs-section {
        margin-top: -36px;
    }
    .needs-section .container {
        width: 88%;
    }
}

@media (max-width: 767px) {
    .needs-section {
        margin-top: -24px;
        padding-bottom: 20px;
    }
    .needs-section .container {
        width: 92%;
        padding: 20px 20px 10px;
    }
    .needs-row {
        min-height: auto;
        display: block;
    }
    .needs-btn {
        justify-content: flex-start;
        margin-top: 15px;
    }
}

/* ---- Features / About + Motto ---- */
.features-section {
    padding: 80px 0 40px;
    background: #f4f4f4;
}
.about-motto-row {
    align-items: flex-start;
}
.about-panel,
.motto-panel {
    background: transparent;
    padding: 10px 0;
}
.section-heading {
    color: #111;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
    letter-spacing: 0;
    text-transform: none;
}
.about-panel h2,
.about-section h2 {
    display: none;
}
.about-panel p,
.about-section p {
    color: #666;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 18px;
}
.motto-panel {
    padding-left: 20px;
}
.motto-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 18px 26px;
}
.motto-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    color: #222;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}
.motto-list i {
    color: var(--primary);
    font-size: 24px;
    min-width: 24px;
}
.about-img { border-radius: 5px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

/* ---- About Section ---- */
.about-section {
    padding: 70px 0 40px;
    background: #f4f4f4;
}

/* ---- Clients Section ---- */
.clients-section {
    padding: 60px 0;
    background: #f4f4f4;
}
.client-logo {
    max-height: 85px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    margin: 15px auto;
}
.client-logo:hover { filter: grayscale(0); opacity: 1; }

.client-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.client-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #3b3b3b;
    font-weight: 500;
}
.client-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 14px;
    line-height: 1.8;
}

/* ---- Services Page ---- */
.services-section .row {
    display: flex;
    flex-wrap: wrap;
}
.services-section .row > [class^="col-"] {
    display: flex;
    margin-bottom: 25px;
}
.service-card {
    width: 100%;
    padding: 30px 25px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: none;
    text-align: left;
}
.service-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.service-card > i { font-size: 36px; color: var(--primary); margin-bottom: 15px; display: block; text-align: left; }
.service-card .service-icon { height: 50px; margin-bottom: 15px; display: block; }
.service-card h4 {
    color: var(--dark);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
    transition: color 0.3s ease;
}
.service-card:hover h4 {
    color: var(--primary);
}
.service-card p { font-size: 14px; color: #777; margin: 0; text-align: left; }

/* ---- Page Banner ---- */
.page-banner {
    background: var(--dark);
    padding: 55px 0;
    color: #fff;
    text-align: center;
}
.page-banner h1 { font-size: 46px; font-weight: 700; margin-bottom: 12px; font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; }
.breadcrumb { background: transparent; padding: 0; margin: 0; display: inline-block; }
.breadcrumb > li + li::before { color: #888; }
.breadcrumb a { color: var(--primary); }
.breadcrumb > .active { color: #aaa; }

/* ---- Page Body ---- */
.page-body {
    background: #fff;
    min-height: 160px;
    padding: 50px 0;
}

/* ---- Section Padding ---- */
.section-padding { padding: 70px 0; }

/* ---- Contact Page ---- */
.contact-info-box { padding: 30px; background: var(--dark); border-radius: 5px; color: #ccc; }
.contact-info-box h3 { color: #fff; margin-bottom: 25px; font-size: 22px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 25px; align-items: flex-start; }
.contact-info-item > i { color: var(--primary); font-size: 22px; margin-top: 3px; flex-shrink: 0; }
.contact-info-item h5 { color: #fff; margin: 0 0 5px; font-size: 15px; }
.contact-info-item p, .contact-info-item a { color: #aaa; margin: 0; font-size: 14px; }

.contact-form-box { padding: 30px; background: #fff; border-radius: 5px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
.contact-form-box h3 { color: var(--dark); margin-bottom: 25px; font-size: 22px; }
.contact-form .form-control {
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    height: 44px;
    font-size: 14px;
}
.contact-form textarea.form-control { height: auto; }
.contact-form .form-group { margin-bottom: 18px; }

/* ---- Footer ---- */
.site-footer {
    background: var(--dark);
    color: #aaa;
    padding: 55px 0 0;
}
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; font-weight: 600; }
.site-footer h4::after { content: ''; display: block; width: 40px; height: 2px; background: var(--primary); margin-top: 8px; }
.site-footer p { font-size: 14px; line-height: 1.8; }
.footer-logo { max-height: 55px; margin-bottom: 15px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--dark-alt);
    color: #ccc;
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 10px;
    font-size: 14px;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; font-size: 14px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.site-footer address { font-size: 14px; line-height: 1.9; color: #aaa; font-style: normal; }
.site-footer address + p { margin-top: 8px; }
.site-footer .fa { color: var(--primary); margin-right: 6px; }
.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    font-size: 13px;
}
.footer-bottom a { color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-caption { padding: 30px 20px; }
    .hero-caption .hero-title { font-size: clamp(28px, 6vw, 64px); }
    .hero-caption .hero-subtitle { font-size: clamp(18px, 2.7vw, 28px); }
    .hero-caption h1 { font-size: 28px; }
    .hero-caption h2 { font-size: 16px; }
    .hero-slider .carousel-indicators { bottom: 72px; }
    .header-contact { display: none; }
}
@media (max-width: 767px) {
    .hero-slide { min-height: 420px; }
    .hero-caption .hero-title { font-size: 30px; }
    .hero-caption .hero-subtitle { font-size: 16px; }
    .hero-slider .carousel-indicators { bottom: 58px; }
    .top-bar .container { flex-direction: column; gap: 5px; text-align: center; }
    .needs-section .text-right { text-align: left; margin-top: 15px; }
    .contact-info-box { margin-bottom: 25px; }
}

.about-img-placeholder {
    background: var(--light-bg);
    border-radius: 5px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border: 2px dashed #ddd;
}
.about-img-placeholder i { font-size: 60px; margin-bottom: 15px; }
.about-img-placeholder p { color: #bbb; }
.client-placeholder {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px 10px;
    margin: 10px auto;
    color: #aaa;
    font-size: 13px;
    width: 100%;
    text-align: center;
}
.needs-btn { display: flex; align-items: center; justify-content: flex-end; }
.btn-dark { background: var(--dark); color: #fff; border: none; }
.btn-dark:hover { background: var(--dark-alt); color: #fff; }

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '\f00e';
    font-family: 'FontAwesome';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: rgba(20, 22, 26, 0);
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; background: rgba(20, 22, 26, 0.45); }
.gallery-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 5px;
}
@media (max-width: 991px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ---- Gallery Lightbox ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 11, 13, 0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 22px;
    right: 32px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close:hover { color: var(--primary); }
