/* ========================================
   FONTS
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* ========================================
   CSS VARIABLES & ROOT STYLES
======================================== */

:root {
    --primary-teal: #00bcd4;
    --dark-bg: #1a1f2e;
    --darker-bg: #0f1419;
    --text-light: #ffffff;
    --text-secondary: #b8c5d6;
    --font-roboto: 'Roboto', sans-serif;
    --border-light: #dee2e6;
}

/* Make superscript text smaller */
.hero-subtitle sup {
    font-size: 0.6em;
}

/* Image description toggle */
.image-toggle {
    cursor: pointer;
    display: inline-block;
}

.image-toggle:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.toggle-icon.closed {
    background-image: url('../images/svg/icon-close.svg');
}

.toggle-icon.open {
    background-image: url('../images/svg/icon-open.svg');
}

/* ========================================
   BASE STYLES
======================================== */

body {
    background: white;
    color: var(--text-light);
    font-family: var(--font-roboto);
    overflow-x: hidden;
}

/* Font utility classes */
.font-roboto {
    font-family: var(--font-roboto) !important;
}

/* ========================================
   NAVIGATION STYLES
======================================== */

.navbar-logo {
    height: 5vh !important;
    width: auto !important;
    min-height: 40px;
    max-height: 120px;
    display: block;
    object-fit: contain;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0px;
}

.navbar {
    background: #122636;
    backdrop-filter: blur(10px);
    padding: 1rem 0 1rem 0;
}

@media (min-width: 992px) {
    .navbar {
        padding-bottom: 0;
    }
}

.navbar a {
    font-size: 1rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 4L4 12M4 4l8 8'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: -5px;
    text-align: right;
}

.nav-link {
    color: black;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--text-light) !important;
    background: rgba(0, 188, 212, 0.1);
}

/* Remove nav-link hover/focus effects on mobile to prevent sticky states */
@media (max-width: 991.98px) {
    .nav-link:hover,
    .nav-link:focus,
    .nav-link:active {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
}

/* Pill Navigation */
.pill-nav-group {
    background: #5a5a5a;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: flex;
    font-weight: bold;
    overflow: visible;
    padding: 2px;
}

.pill-btn {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem !important;
    transition: none;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.pill-btn-left {
    border-radius: 22px 0 0 22px;
}

.pill-btn-middle {
    position: relative;
}

.pill-btn-middle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    width: 1px;
    height: 50%;
    background: white;
}

.pill-btn-middle::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    width: 1px;
    height: 50%;
    background: white;
}

.pill-btn-right {
    border-radius: 0 22px 22px 0;
}

.pill-btn:hover {
    background-color: #009BAC;
    position: relative;
    z-index: 10;
    outline: 2px solid var(--primary-teal);
    outline-offset: 0;
}

.pill-nav-group.row {
    margin-left: 0;
    margin-right: 0;
    flex-wrap: nowrap;
    min-height: auto;
    align-items: stretch;
}

.navbar .row a {
    color: var(--text-light);
    text-decoration: none;
}


/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    min-height: 25vh;
    background: #122636;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.hero-section-small {
    background: #122636;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.hero-section-contact {
    min-height: 75vh;
    background: #122636;
    position: relative;
    overflow: hidden;
    display: flex;
}

.hero-section-contact .container {
    display: flex;
    flex: 1;
}

.hero-section-contact .row {
    flex: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .hero-section-contact .row {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Form label styling */
.form-label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

/* Submit button styling */
.btn-submit {
    background-color: #00bcd4;
    border: none;
    color: #00183F;
    font-weight: 600;
    padding: 0.50rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 0.5rem;
}

.btn-submit:hover {
    background-color: #00acc1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
}

/* Form link styling */
.contact-form a {
    font-weight: bold;
    text-decoration: underline;
}

/* Info button mobile sizing */
@media (max-width: 767.98px) {
    .info-card {
        align-items: flex-start !important;
    }
    .info-btn {
        width: auto !important;
        display: inline-flex !important;
        align-self: flex-start !important;
    }
    
    .callout-section .d-flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .callout-section .info-btn {
        align-self: center !important;
    }
}


.hero-section .container {
    display: flex;
    flex: 1;
}

.hero-section .row {
    flex: 1;
    align-items: stretch;
}

.clinical-product-showcase {
    display: flex;
    justify-content: center;
    max-height: 25vh;
    width: 100%;
}

.clinical-product-showcase img {
    max-width: 120%;
    height: auto;
    object-fit: cover;
    z-index: 100;
}

.product-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

.product-showcase img {
    max-width: 120%;
    height: 100%;
    object-fit: contain;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-weight: bold;
    color: #009bac;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
}

.callout-section {
    background-color: #10A1B1;
}

.callout-section .d-flex {
    gap: 1rem;
}

.callout-section h2 img {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .callout-section .d-flex {
        flex-direction: column !important;
    }

    .callout-section h2 img {
        display: block;
        margin: 0 auto 12px auto;
    }
}

.list-section {
    background-color: #F0F4FE;
    color: black;
    padding: 3rem 0;
}

.list-section h2 {
    color: #009BAC;
}

.safety-section {
    color: #009BAC;
    padding: 3rem 0;
}

.contact-section {
    color: black;
    background-color: #F0F4FE;
    min-height: 25vh;
    display: flex;
    align-items: center;
}

.contact-section h6{
    color: black;
    font-weight: bold;
    margin-bottom: 0px;
}

.contact-form {
    background-color: #F0F4FE;
    color:black;
    padding: 1rem;
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .contact-form {
        border-radius: 0;
    }
}

/* ========================================
   FEATURES SECTION
======================================== */

.features-section {
    background: #F0F4FE;
    color: black;
}


.feature-card {
    text-align: left;
    padding: 2rem;
    height: 100%;
}

@media (min-width: 992px) {
    .features-section .col-lg-4:first-child .feature-card {
        padding-left: 0;
    }

    .features-section .col-lg-4:last-child .feature-card {
        padding-right: 0;
    }

    .info-section .col-lg-4:first-child .info-card {
        padding-left: 0;
    }

    .info-section .col-lg-4:last-child .info-card {
        padding-right: 0;
    }
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.feature-title {
    color: #009BAC;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* ========================================
   INFO SECTION
======================================== */
.darkblue {
    color: #00183F;
}

.info-section {
    background: #009BAC;
}

.info-section .row>[class*="col-"] {
    margin-top: 0 !important;
}

.info-section hr {
    background-color: white;
    height: 1px;
    border: none;
    opacity: 1;
    margin-bottom: 0px;
}

.info-card {
    padding: 30px 25px;
    height: 100%;
    transition: all 0.3s ease;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card h3 {
    color: white;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.info-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #00183F;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s ease;
}

.info-btn::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url(/images/svg/icon-arrowR-b.svg) no-repeat center;
    background-size: contain;
}

/* ========================================
   Utility
======================================== */

.bottom-border {
    border-bottom: 20px solid #011735;
}

/* ========================================
   ISI (Important Safety Information)
======================================== */

.isi-content {
    margin: auto;
    background-color: white;
    color: black;
}

.isi-content p:last-child {
    margin-bottom: 0;
}

.sticky {
    position: sticky;
    z-index: 9999;
    bottom: 0;
    transition: transform 0.3s ease;
    max-height: fit-content;
    background: white;
    box-shadow: 0 -2px 6px -1px rgba(136, 136, 136, 0.3);
}

.sticky::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to bottom, white 0%, white 50%, rgba(255, 255, 255, 0.9) 100%);
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    from {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========================================
   ACCESSIBILITY & UX
======================================== */

/* Focus styles */
.nav-link:focus,
button:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

.pill-btn:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 0;
    background-color: #009BAC;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   MOBILE/DESKTOP VISIBILITY CLASSES
======================================== */

.mobile-show-only {
    display: block;
}

.desktop-show-only {
    display: none;
}

@media (max-width: 991.98px) {
    .navbar {
        background: #122636 !important;
        transition: background-color 0.5s ease-out;
    }

    /* Change to teal when expanded or collapsing */
    .navbar:has(.navbar-collapse.show),
    .navbar:has(.navbar-collapse.collapsing),
    .navbar:has(.navbar-toggler[aria-expanded="true"]) {
        background: #BFE6EA !important;
    }

    .navbar-nav {
        text-align: center;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ensure order classes work on mobile nav items */
    .navbar-nav .nav-item.order-5 {
        order: 5 !important;
    }
    
    .navbar-nav .nav-item.order-6 {
        order: 6 !important;
    }

    .navbar-nav .nav-item:not(:last-child) {
        border-bottom: 1px solid black;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Hide logo when mobile nav is expanded but keep spacing */
    .navbar:has(.navbar-collapse.show) .navbar-logo,
    .navbar:has(.navbar-toggler[aria-expanded="true"]) .navbar-logo {
        visibility: hidden !important;
    }

    /* Fallback for browsers that don't support :has() */
    .navbar-collapse.show+* .navbar-logo,
    .navbar-collapse.collapsing+* .navbar-logo {
        visibility: hidden !important;
    }
}

@media (min-width: 992px) {
    .mobile-show-only {
        display: none;
    }

    .desktop-show-only {
        display: block;
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet and smaller desktops */
@media (max-width: 991.98px) {
    .hero-content {
        padding-top: 40px;
        padding-bottom: 40px;
        text-align: left;
    }

    .feature-card {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 2rem;
    }

    .feature-card:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.75rem;
    }

    .product-showcase {
        height: 300px;
        /* Smaller height on mobile */
        background-position: center center;
        /* Center on mobile */
    }

    .circular-bg {
        width: 300px;
        height: 300px;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .features-section {
        padding: 2rem 0;
        text-align: left;
    }

    .feature-card {
        padding: 1.5rem 0;
    }

    .feature-icon-wrapper {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .info-card {
        padding: 1.5rem 0;
    }
}

.footer {
    background-color: #122636;
    color: #ecf0f1;
    padding: 2rem 0rem 2rem 0rem;
}

.footer .nav-links {
    padding-top: 1.5rem;
}

.footer .nav-links a {
    color: white;
    text-decoration: none;
    padding: 0 1rem;
    border-right: 1px solid white;
    transition: color 0.3s ease;
}

.footer .nav-links a:last-child {
    border-right: none;
}

.footer .nav-links a:hover {
    color: #ecf0f1;
}

@media (max-width: 768px) {
    .footer .nav-links {
        text-align: center;
    }

    .footer .nav-links .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .footer .nav-links a {
        display: inline-block;
        border-right: none;
        border-bottom: none;
        padding: 0.75rem 0;
        margin: 0 auto;
        text-align: center;
        position: relative;
    }

    .footer .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
        height: 1px;
        background-color: white;
    }

    .footer .nav-links a:last-child::after {
        display: none;
    }

    .brand-container {
        text-align: center;
        margin-top: 1rem;
    }

    .brand-container .d-flex {
        justify-content: center !important;
    }
}

.teal {
    color: #3CB1C1;
}

.site-map a {
    color: black;
}

.bioequivalence-hr {
    border-color: #333;
    opacity: 0.8;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.mobile-vial-img {
    max-width: 200px;
}

/* Ensure h4 headings match h2 styling when used for accessibility */
.list-section h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #009BAC;
}

.white-bg p,ul, a {
    color: black;
}

.white-bg h6 {
    color: black;
    font-weight: bold;
}