.text-caption {
    color: #CCC !important;
    font-size: 0.8em;
}
/* Contact methods list styling */
.contact-methods {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
}
.contact-methods li {
    margin-bottom: 0.5em;
    color: var(--text-light);
    font-size: 1em;
}
.contact-methods i {
    padding-right: 10px;
}
footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text-white);
}

/* Quicklinks custom bullet using FontAwesome */
.quicklinks {
    list-style: none;
    padding-left: 0;
}

.quicklinks li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

.quicklinks li::before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-teal);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1em;
}

:root {
    --primary-dark: #001844;
    --primary-blue: #006699;
    --accent-cyan: #00CCCC;
    --accent-cyan-bright: #00FFFF;
    --accent-teal: #31C6C4;
    --accent-teal-dark: #23A7B7;
    --dark-blue: #004A6F;
    --darker-blue: #011F5B;
    --border-blue: #055AA0;
    --text-white: #FFFFFF;
    --text-light: #E1E3E8;
    --text-lighter: #ECECEC;
    --text-gray: #CCCCCC;
    --background-black: #000000;
    --bs-body-font-size: 21px;
}

/* Global Styles */
body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background-color: #01051a;
    color: var(--text-light);
}

.container-custom {
    max-width: 1600px;
    margin: 0 auto;
    background-color: var(--primary-dark);
    border-left: 1px solid var(--primary-blue);
    border-right: 1px solid var(--primary-blue);
    border-bottom: 1px solid var(--primary-blue);
    box-shadow: 0 0 32px 8px #000;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-white);
}

h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    font-family: 'Cairo', Arial, Helvetica, sans-serif;
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    color: var(--text-white);
}

p {
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
}

strong {
    color: var(--text-white);
}

/* Links */
a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-cyan-bright);
    text-decoration: underline;
}

a:active {
    color: #CCFF00;
}

.logo {
    height: 150px;
    width: auto;
}

header.subpage-logo img {
    position: absolute;
    z-index: 5000;
    top: 20px;
    height: 70px;
    width: auto;
    margin-left: 35px;
}

/* Masthead Hero Section */
.masthead {
    width: 100%;
    height: 600px;
    background-color: #000000;
    padding: 0;
}

.masthead .container-fluid {
    padding: 0;
    height: 100%;
}

.masthead .row {
    margin: 0;
    height: 600px;
}

.masthead .col-lg-7,
.masthead .col-lg-5,
.masthead [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.masthead-image-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    background-color: #000000;
    padding-right: clamp(40px, 7vw, 120px);
    padding-left: clamp(10px, 3vw, 40px);
}

.masthead-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    /* 1. Set initial state to invisible */
    opacity: 0;

    /* 2. Apply animation with 'forwards' to stay at 100% opacity */
    animation: fadeIn 1.2s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.masthead-content {
    background: black;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: clamp(40px, 7vw, 120px);
    padding-right: clamp(10px, 3vw, 40px);
}

.masthead-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.masthead-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Navigation - Desktop Logic */
/* Only hide toggler on desktop to avoid conflict with mobile logic */
@media (min-width: 1025px) {
    .navbar-toggler {
        display: none !important;
    }
}

.menu-accent-bar {
    width: 100%;
    height: 36px;
    background: var(--accent-teal, #25b2ba);
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0% 100%);
    margin-bottom: -10px;
    z-index: 2;
    position: relative;
}

.main-nav {
    background: linear-gradient(to right, var(--dark-blue) 0%, var(--darker-blue) 100%);
    border-top: 10px solid var(--accent-teal);
    border-bottom: 1px solid var(--primary-blue);
    min-height: 50px;
    display: flex;
    align-items: stretch;
}

.navbar {
    padding: 0;
}

.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-white) !important;
    font-size: 18px;
    font-weight: normal;
    padding: 20px 35px !important;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(0, 102, 153, 0.5);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
    font-family: 'Cairo', Arial, Helvetica, sans-serif;
}

.main-nav .navbar-nav .nav-item:last-child .nav-link {
    border-right: none;
}

/* Consolidating hover/active states for clarity */
.nav-link:hover,
.nav-item.menu-open>.nav-link,
.nav-item.show>.nav-link,
.nav-item:focus-within>.nav-link,
.nav-item.dropdown.show>.nav-link.dropdown-toggle {
    background-color: var(--accent-teal) !important;
    color: var(--background-black) !important;
    text-decoration: none;
}

.nav-item .dropdown-menu {
    min-width: 100%;
    left: 0;
}

.dropdown-menu {
    background-color: var(--accent-teal);
    border-radius: 0;
    border: none;
    padding: 0 0 10px 0;
    margin-top: -1px;
}

.dropdown-item {
    color: var(--text-white);
    background-color: var(--accent-teal);
    font-size: 18px;
    font-family: 'Cairo', Arial, Helvetica, sans-serif;
    font-weight: normal;
    padding: 15px 35px;
    border-right: 1px solid rgba(0, 102, 153, 0.5);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--accent-teal);
    color: var(--background-black);
    text-decoration: none;
}

/* Content Area */
.breadcrumb-custom {
    background-color: transparent;
    padding: 15px 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-custom a {
    color: var(--accent-cyan);
}

.content-wrapper {
    min-height: 500px;
    padding: 30px 0;
}

.main-content {
    padding: 25px 50px;
}

.main-content p {
    padding-bottom: 20px;
}

.right-col {
    padding-top: 25px;
}

.ready-to-order {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    border: 2px solid var(--accent-teal);
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.ready-to-order h3 {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.ready-to-order p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-primary-custom {
    background: #07204a;
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 30px;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
}

.btn-primary-custom:hover {
    background: #1793b2;
    color: #fff;
    text-decoration: none !important;
}

.contact-info-hover {
    background-color: #FFFFCC;
    color: #000066;
    padding: 15px;
    font-size: 12px;
    border: 2px solid var(--accent-teal);
}

.contact-info-hover a {
    color: var(--primary-blue);
}

.organism-photo {
    border: 3px solid var(--accent-teal);
    margin: 15px 0;
    max-width: 100%;
    height: auto;
}

.photo-caption {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 5px;
}

ul {
    padding-left: 20px;
}

li {
    color: var(--text-lighter);
    line-height: 1.6;
    margin-bottom: 0px;
}

.homepage-columns {
    display: grid;
    grid-template-columns: 200px 1fr 250px;
    gap: 20px;
    padding: 20px;
}

/* Footer */
.site-footer {
    border-left: 1px solid var(--primary-blue);
    border-right: 1px solid var(--primary-blue);
    padding: 20px 0;
    font-size: 11px;
    margin-bottom: 30px;
    color: var(--text-gray);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.back-to-top {
    text-align: left;
}

.back-to-top a,
.copyright a {
    color: var(--text-gray);
    text-decoration: none;
}

.back-to-top a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
}

.back-to-top a:hover,
.copyright a:hover {
    color: var(--text-white);
}

.copyright {
    text-align: right;
}

/* * =========================================
 * MEDIA QUERIES (Responsive Logic)
 * =========================================
 */

@media (max-width: 1400px) {
    .container-custom {
        max-width: 100%;
    }

    .masthead-content h1 {
        font-size: 2rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .nav-link {
        padding: 20px 20px !important;
    }

    .main-content {
        font-size: 22px;
    }

    div.right-col {
        padding-right: 50px !important;
    }

    a.btn.btn-primary-custom {
        width: 300px;
    }

    a.btn.btn-primary-custom:first-child {
        margin-bottom: 10px;
    }
}

/* Mobile Navigation (Flyout / Side Drawer) - Max-width 1024px (includes tablets) */
@media (max-width: 1024px) {

    header.subpage-logo {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 115px;
        background-color: #000;
        border-bottom: 10px solid var(--accent-teal);
    }
    .content-wrapper {
        margin-top: 115px; /* add space for fixed header */
        
    }

    .phone-number {
        display: block;
        margin-top: 0.5em;
    }

    footer {
        border: none !important;
    }

    .masthead,
    .masthead-content,
    .masthead .row {
        height: auto;
    }

    .masthead {
        padding-bottom: 20px;
        border-bottom: 10px solid var(--accent-teal);
    }

    .logo {
        height: 100px;
        width: auto;
        margin-top: 30px;
    }

    /* Toggler Styling (Visible here) */
    .navbar-toggler {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 3000;
        border-color: #fff;
    }

    .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        display: block;
        width: 2rem;
        height: 2rem;
        background-color: transparent;
    }

    a.btn.btn-primary-custom {
        width: 250px;
    }

    .container-custom {
        border: none;
        margin: 0px;
        width: 100%;
    }

    .right-col {
        padding: 30px 50px;
    }

    /* 1. The Container - Slid off-screen by default */
    .main-nav {
        display: block !important;
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        width: 75vw;
        max-width: 75%;
        background: linear-gradient(to bottom, var(--dark-blue, #004A6F) 0%, var(--darker-blue, #011F5B) 100%);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 2999;
        padding-top: 80px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        visibility: hidden;
    }

    /* 2. The Active State - Triggered by JS */
    .main-nav.flyout-open {
        transform: translateX(0);
        visibility: visible;
    }

    /* 3. The Hamburger/Close Button */
    .navbar-toggler {
        display: block !important;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 3000;
        background-color: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        padding: 8px;
        width: 45px;
        height: 45px;
    }

    .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        width: 100%;
        height: 100%;
    }

    /* 4. Reset Bootstrap Internals */
    .main-nav .navbar-collapse {
        display: block !important;
        height: auto !important;
    }

    .main-nav .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    /* 5. Main Link Styling */
    .main-nav .nav-link {
        width: 100%;
        padding: 15px 25px !important;
        font-size: 18px;
        color: var(--text-white, #fff) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--accent-teal, #31C6C4) !important;
    }

    /* 6. Mobile Dropdowns - Stack/Accordion Style */
    .main-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        transform: none !important;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        display: none;
    }

    .main-nav .dropdown-menu.show {
        display: block;
    }

    /* Dropdown Items */
    .main-nav .dropdown-item {
        padding: 12px 25px 12px 45px;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 16px;
        background-color: transparent;
    }

    .main-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* 7. Arrow Rotation Animation */
    .nav-item.dropdown .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .nav-item.dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}


/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .logo {
        height: 60px;
    }

    .content-wrapper {
        padding-top: 0px;
    }

    .main-nav {
        width: 85vw;
        max-width: 85%;
    }

}


/* Print Styles */
@media print {

    .main-nav,
    .header-top-bar,
    .back-to-top,
    .sidebar,
    .quick-links-box {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .content-wrapper {
        background: white;
        border: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}