
:root {
    --primary-blue: #003a63;
    --secondary-blue: #005b8f;
    --dark-blue: #001d33;
    --light-blue: #e5f2fb;
    --link-red: #b30000;
    --link-red-hover: #7f0000;
    --body-text: #1a1a1a;
    --muted-text: #555555;
    --footer-bg: #021320;
    --footer-text: #f7f7f7;
    --focus-outline: #ffcc00;
    --header-height: 90px; /* kept for future use if needed */
}

html {
    font-size: 100%;
    height: 100%;
    background-color: #00070d;
	/* Match footer bottom to avoid white gap */
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--body-text);
    background-color: #00070d; /* Match footer; inner content sets its own background */
    margin: 0;
    min-height: 100%;
}

/* Global links */

a {
    color: var(--link-red);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--link-red-hover);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Visually hidden but focusable for skip link */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 12px;
    background: #ffffff;
    color: #000000;
    z-index: 10000;
    border: 2px solid var(--focus-outline);
}

.skip-link:focus {
    top: 0;
}

/* Top bar */

.top-bar {
    background-color: var(--dark-blue);
    color: #ffffff;
    font-size: 0.875rem;
    padding: 6px 0;
}

.top-bar-text {
    font-weight: 600;
}

.top-bar-contact {
    margin-left: 12px;
    display: inline-block;
}

.top-bar-link {
    color: #ffffff;
}

.top-bar-link:hover,
.top-bar-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Logo and navbar */

.logo-img {
    max-height: 40px;
    width: auto;
}

.navbar-main {
    margin-bottom: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 3px solid var(--primary-blue);
    background-color: #ffffff;
}

.navbar-main .navbar-brand {
    padding: 10px 15px;
}

.navbar-main .navbar-nav > li > a {
    font-weight: 600;
    color: var(--primary-blue);
    padding-top: 18px;
    padding-bottom: 18px;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus {
    color: var(--link-red);
    background-color: transparent;
}

.navbar-main .navbar-nav > .open > a,
.navbar-main .navbar-nav > .open > a:focus,
.navbar-main .navbar-nav > .open > a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.navbar-main .dropdown-menu {
    border-radius: 0;
}

.navbar-main .dropdown-menu > li > a:hover,
.navbar-main .dropdown-menu > li > a:focus {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}
/* ================= HERO / CAROUSEL ================= */

/* Hero wrapper – let the carousel control height */
.hero-section {
    position: relative;
    background-color: #000000;
    padding: 0;
}

/* Make each slide HALF viewport height */
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .item {
    height: 50vh;
    min-height: 320px; /* fallback on short viewports */
    max-height: 520px; /* optional: prevents it from getting huge on tall screens */
}

@supports (height: 50dvh) {
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .item {
        height: 50dvh;
    }
}

/* Fade transitions (Bootstrap 3 pattern) */
.carousel.carousel-fade .carousel-inner .item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
}

.carousel.carousel-fade .carousel-inner .active {
    opacity: 1;
}

.carousel.carousel-fade .carousel-inner .active.left,
.carousel.carousel-fade .carousel-inner .active.right {
    opacity: 0;
}

.carousel.carousel-fade .carousel-inner .next.left,
.carousel.carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}

/* Remove the default sliding transform */
.carousel.carousel-fade .carousel-inner .item {
    transform: translate3d(0, 0, 0);
}

.carousel.carousel-fade .carousel-inner .item.active.left,
.carousel.carousel-fade .carousel-inner .item.active.right,
.carousel.carousel-fade .carousel-inner .next,
.carousel.carousel-fade .carousel-inner .prev {
    left: 0;
}

/* Ensure slides can hold absolutely-positioned image */
.hero-carousel .carousel-inner .item {
    position: relative;
    overflow: hidden;
}

/* Make the hero image always cover the slide */
.hero-carousel .carousel-inner .item > img.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    display: block;
}

/* Full overlay caption, with service-hero-style content */
.hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;      /* vertically center like a full hero */
    justify-content: flex-start;

    background: linear-gradient(
        to right,
        rgba(0, 29, 51, 0.85) 0%,
        rgba(0, 29, 51, 0.70) 35%,
        rgba(0, 29, 51, 0.30) 70%,
        rgba(0, 29, 51, 0.00) 100%
    );

    padding: 40px 15px;
    color: #ffffff;
    text-shadow: none;
    text-align: left;
    z-index: 10;
}

/* Inner container mimics service hero layout */
.hero-caption-inner .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.hero-caption-inner .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 12px;
    max-width: 100%;
    color: #f0f4f8;
}

.hero-caption-inner .hero-note {
    font-size: 0.96rem;
    margin-bottom: 10px;
    max-width: 100%;
    color: #dde7f2;
}

/* Bullet list similar to service-hero-list */
.hero-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.hero-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
}

.hero-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffcc00;
}

/* Button spacing */
.hero-caption-inner .btn {
    margin-top: 4px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .hero-caption {
        padding-left: 60px;
        padding-right: 60px;
    }

    .hero-caption-inner .hero-title {
        font-size: 2.4rem;
    }

    .hero-caption-inner .hero-lead {
        font-size: 1.05rem;
    }
}

/* Mobile caption behavior */
@media (max-width: 767px) {
    .hero-caption {
        align-items: flex-start;     /* Start content at the top */
        justify-content: flex-start;
        padding-top: 200px;          /* push content down */
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;

        background: linear-gradient(
            to bottom,
            rgba(0, 29, 51, 0.9) 0%,
            rgba(0, 29, 51, 0.7) 40%,
            rgba(0, 29, 51, 0.3) 80%,
            rgba(0, 29, 51, 0.0) 100%
        );
    }

    .hero-caption-inner .hero-title {
        font-size: 1.6rem;
        margin-top: 100px;
    }

    .hero-caption-inner .hero-lead {
        font-size: 0.95rem;
    }
}

/* Carousel indicators */
.hero-carousel .carousel-indicators {
    bottom: 10px;
}

.hero-carousel .carousel-indicators li {
    border: 1px solid #ffffff;
    background-color: transparent;
}

.hero-carousel .carousel-indicators .active {
    background-color: #ffffff;
}

/* Hide any bootstrap-accessibility pause/play button (we control behavior via JS) */
#heroCarousel .carousel-pause-button {
    display: none !important;
}




/* ================= MAIN SECTIONS ================= */

.home-main {
    background-color: #ffffff;
	background: #ffffff url(/img/overlay.png);
}

.home-section {
    padding: 40px 0;
}

.section-title {
    margin-bottom: 25px;
    font-size: 1.75rem;
    color: var(--primary-blue);
}

.section-lead {
    max-width: 720px;
    margin: 0 auto 25px;
    color: var(--muted-text);
}

/* Intro section */

.home-intro {
    background-color: var(--light-blue);
}

.home-intro p {
    font-size: 1.0625rem;
    color: var(--muted-text);
}

.home-intro-panel {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 18px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-intro-panel-title {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.home-intro-list {
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--muted-text);
}

.home-intro-panel-cta {
    margin-bottom: 0;
}

/* Service cards with hover lift */

.home-service-cards {
    background-color: #ffffff;
		background: #ffffff url(/img/overlay.png);
}

/* Equal-height card layout */
.home-service-cards .row {
    display: flex;
    flex-wrap: wrap;
}

.home-service-cards .col-sm-4 {
    display: flex;
    margin-bottom: 25px;
}

.service-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-link {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    text-decoration: none;
}

.service-card-link:hover,
.service-card-link:focus {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    border-color: var(--secondary-blue);
}

.service-card-link:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.service-card-media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-link:hover .service-card-image,
.service-card-link:focus .service-card-image {
    transform: scale(1.05);
}

.service-card-body {
    padding: 15px 15px 18px;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--muted-text);
}

/* Industries */

.home-industries {
    background-color: #ffffff;
}

.home-industry {
    margin-bottom: 25px;
}

.home-industry-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.home-industry-text {
    color: var(--muted-text);
}

/* CTA */

.home-cta {
    background-color: var(--light-blue);
}

.home-cta p {
    font-size: 1.0625rem;
}

/* Buttons (override Bootstrap defaults slightly) */

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}




/* Detailed service lists */

.services-detailed {
    background-color: #ffffff;
			background: #ffffff url(/img/overlay.png);
}

.services-detailed-group {
    margin-bottom: 25px;
}

.services-detailed-group h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 8px;
    color: #003a63;
}

.services-detailed-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.services-detailed-list li {
    margin-bottom: 6px;
}

.services-detailed-list a {
    text-decoration: none;
}

.services-detailed-list a:hover,
.services-detailed-list a:focus {
    text-decoration: underline;
}

/* CTA strip on services page */

.services-cta-strip {
    background-color: #003a63;

}

.services-cta-strip .section-title {
    color: #ffffff;
    margin-bottom: 12px;
}

.services-cta-strip p {
    color: #e5eef7;
    font-size: 1.02rem;
}

.services-cta-strip .btn-primary {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #003a63;
}

.services-cta-strip .btn-primary:hover,
.services-cta-strip .btn-primary:focus {
    background-color: #f0b800;
    border-color: #f0b800;
    color: #001d33;
}

/* Footer */

#site-footer {
    margin-top: 0;
}

.footer-main {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 0 20px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--footer-text);
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-link {
    color: #ffffff;
}

.footer-link:hover,
.footer-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social .footer-link {
    display: inline-block;
}

.footer-bottom {
    background-color: #00070d;
    color: var(--footer-text);
    padding: 10px 0;
    text-align: center;
}

.footer-bottom-text {
    margin: 0;
    font-size: 0.85rem;
}

/* Back to top */

.back-to-top {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Forms (future-proofing for contact page) */

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 3px var(--secondary-blue);
}

/* Responsive tweaks */

@media (max-width: 767px) {
    .top-bar-right {
        margin-top: 5px;
        text-align: left;
    }

    .hero-caption {
        padding: 16px 15px 24px;
    }

    .service-card-image {
        height: 160px;
    }
}

/* ===== ACCESSIBILITY (KEEP AT BOTTOM) ===== */

#accessibility-content.acc-font-small {
  font-size: 13px !important;
  line-height: 1.3 !important;
}
#accessibility-content.acc-font-normal {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
#accessibility-content.acc-font-large {
  font-size: 20px !important;
  line-height: 1.8 !important;
}
#accessibility-content,
#accessibility-content.acc-font-default {
  /* This ensures that the site's default is always 16px/1.5, but only if not overridden elsewhere */
  font-size: 16px;
  line-height: 1.5;
}
/* Inherit for children */
#accessibility-content.acc-font-small *,
#accessibility-content.acc-font-normal *,
#accessibility-content.acc-font-large * {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Small font */
#accessibility-content.acc-font-small .btn,
#accessibility-content.acc-font-small button,
#accessibility-content.acc-font-small input[type="button"],
#accessibility-content.acc-font-small input[type="submit"] {
  font-size: 0.9em;
  padding: 4px 10px;
  height: 2em;
}

/* Normal font (your default) */
#accessibility-content.acc-font-normal .btn,
#accessibility-content.acc-font-normal button,
#accessibility-content.acc-font-normal input[type="button"],
#accessibility-content.acc-font-normal input[type="submit"] {
  font-size: 1em;
  padding: 8px 16px;
  height: 2.5em;
}

/* Large font */
#accessibility-content.acc-font-large .btn,
#accessibility-content.acc-font-large button,
#accessibility-content.acc-font-large input[type="button"],
#accessibility-content.acc-font-large input[type="submit"] {
  font-size: 1.2em;
  padding: 12px 20px;
  height: 3em;
}

.vcenter {
  display: flex;
  align-items: center;
  justify-content: center; /* remove if you want it left-aligned */
  height: 100%;
}
