/* Custom styles for FBH Groups */

:root {
    --primary-color: #005f6b;
    --secondary-color: #6c757d;
    --text-color: #333;
    --heading-color: #222;
    --light-bg: #f8f9fa;
    --dark-bg: #222;
}

body {
    font-family: 'Roboto', sans-serif; /* Using a more modern font */
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* A different font for headings */
    color: var(--heading-color);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Hero Slider - no top gap, flush under header */
.hero-slider {
    position: relative;
    overflow: hidden;
    padding-top: 0 !important;
}
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    min-height: 70vh;
}
.hero-slide {
    padding: 80px 0;
    position: relative;
}
/* Slide background images */
.hero-slide-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 95, 107, 0.75);
    z-index: 0;
}
.hero-slide .container.position-relative {
    z-index: 1;
}
.hero-slide h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-slide .lead {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 0.5rem;
}
.hero-slider .carousel-control-prev-icon:hover,
.hero-slider .carousel-control-next-icon:hover {
    background-color: rgba(0,0,0,0.5);
}
.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: transparent;
    opacity: 0.8;
}
.hero-slider .carousel-indicators .active {
    background-color: #fff;
    opacity: 1;
}

.hero-section {
    position: relative;
    color: white;
    padding: 120px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section p.lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Header - constrained width */
header.bg-light {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
header .container {
    max-width: 100%;
}

/* Navbar Styling */
.navbar-brand img {
    max-height: 60px; /* Slightly larger logo */
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--heading-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

section:nth-of-type(odd) {
    background-color: var(--light-bg);
}

/* Card Styling */
.card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.card-text ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.card-text ul li {
    margin-bottom: 5px;
}

/* Icon styling for differentiators */
.bi {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary-color);
}

/* Footer Styling */
.site-footer {
    background-color: var(--dark-bg);
    color: #eee;
    padding: 60px 0;
    font-family: 'Roboto', sans-serif;
}

.site-footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer ul {
    padding-left: 0;
    list-style: none;
}

.site-footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.site-footer ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin-top: 30px;
    padding-top: 30px;
}

.site-footer .mb-0 {
    color: rgba(255, 255, 255, 0.6);
}

/* Contact Page specific styles */
.contact-info li div strong {
    color: var(--heading-color);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    height: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 1240px) {
    header.bg-light {
        max-width: 100%;
        border-radius: 0;
    }
}
@media (max-width: 992px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        min-height: 60vh;
    }
    .hero-slide h1 {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 100px 0;
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p.lead {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    .navbar-collapse {
        background-color: var(--light-bg); 
        padding: 10px 15px;
        border-radius: 5px;
        margin-top: 10px;
    }

    .navbar-nav .nav-item {
        padding: 8px 0;
    }

    .navbar-toggler {
        border-color: rgba(0,0,0,.1);
    }
}

@media (max-width: 768px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        min-height: 50vh;
    }
    .hero-slide h1 {
        font-size: 2rem;
    }
    .hero-slide .btn-lg {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    .hero-section {
        padding: 80px 0;
        min-height: 50vh;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p.lead {
        font-size: 1rem;
    }

    section {
        padding: 40px 0;
    }

    .site-footer {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .hero-slide h1 {
        font-size: 1.6rem;
    }
    .hero-slide .lead {
        font-size: 0.95rem;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p.lead {
        font-size: 0.9rem;
    }

    .navbar-brand img {
        max-height: 45px;
    }
}
