/* =========================================================
   Prs Pharmaceutical Group Inc - Premium Design System
   ========================================================= */

/* --- CSS Variables & Design Tokens --- */
:root {
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Curated Color Palette (HSL based) */
    --primary-color: hsl(217, 65%, 22%);      /* Premium Deep Blue */
    --primary-hover: hsl(217, 65%, 28%);
    --accent-color: hsl(197, 90%, 48%);       /* High-contrast Teal/Cyan */
    --accent-hover: hsl(197, 90%, 40%);
    --accent-glow: rgba(14, 165, 233, 0.2);

    --text-main: hsl(215, 25%, 20%);
    --text-muted: hsl(215, 15%, 50%);
    --bg-white: #ffffff;
    --bg-light: hsl(210, 40%, 98%);           /* Cool Soft Gray */
    --border-color: rgba(226, 232, 240, 0.8);
    
    /* Box Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.65;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 1.02rem;
}

/* --- Sticky Glassmorphic Header --- */
.site-header {
    background-color: rgba(20, 49, 94, 0.92); /* Deep blue with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--accent-color);
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.3));
}

/* Toggle Menu Switch */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition-smooth);
}

.nav-toggle:hover {
    color: var(--accent-color);
}

/* Navigation Links */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 28px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    font-family: var(--font-headings);
}

/* Sliding active indicator */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* --- Hero section / Carousel --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.carousel-track-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-track {
    height: 100%;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-caption-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-caption {
    max-width: 620px;
    background: rgba(15, 23, 42, 0.75); /* Dark background with glass blur */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.7s ease-out;
}

.carousel-slide.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carousel-caption h1,
.carousel-caption h2 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.carousel-caption p {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-headings);
    border: none;
    cursor: pointer;
    transition: var(--transition-spring);
    box-shadow: 0 4px 14px var(--accent-glow);
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.carousel-caption .btn {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.carousel-caption .btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(20, 49, 94, 0.15);
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(20, 49, 94, 0.3);
}

/* Arrow Navigation */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-spring);
    line-height: 1;
}

.carousel-button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.carousel-button:focus {
    outline: none;
}

.carousel-button--left {
    left: 25px;
}

.carousel-button--right {
    right: 25px;
}

/* Indicators (dots) */
.carousel-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    border: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.75);
}

.carousel-indicator.active {
    background: var(--accent-color);
    transform: scale(1.3);
    width: 24px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

/* --- Page Sections --- */
.page-section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--bg-light);
}

.section-heading-center {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
}

/* --- Card Grid Component --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    transition: var(--transition-spring);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.15));
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card .btn-secondary {
    align-self: flex-start;
    padding: 10px 22px;
    font-size: 0.9rem;
}

.policy-content {
    max-width: 800px;
}

.policy-content h2 {
    margin-top: 30px;
}

.lead {
    font-size: 1.2rem;
    max-width: 800px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    vertical-align: middle;
    margin-left: 6px;
}

/* --- Features Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.feature-col {
    background: var(--bg-white);
    padding: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.feature-col h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-col ul {
    list-style: none;
    padding-left: 0;
}

.feature-col li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-col li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* --- Services / Leadership Panels --- */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.service-block {
    display: flex;
    gap: 30px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition-spring);
    box-shadow: var(--shadow-sm);
}

.service-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, 0.2);
}

.service-icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.18));
}

.service-block h2 {
    font-size: 1.7rem;
    margin-bottom: 5px;
}

.service-tagline {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.service-block p {
    color: var(--text-main);
}

.service-list-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-block ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    padding-left: 0;
}

.service-block li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-block li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), hsl(217, 65%, 15%));
    color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 60px;
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
}

.cta-section h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* --- About Facility Section --- */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.about-list {
    margin: 20px 0 30px 0;
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 650px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form label {
    margin-top: 20px;
    margin-bottom: 6px;
    font-weight: 600;
    font-family: var(--font-headings);
    color: var(--primary-color);
    font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    background-color: var(--bg-light);
    transition: var(--transition-smooth);
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.consent-box {
    margin-top: 25px;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.consent-label input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.consent-label span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.consent-label a {
    color: var(--accent-color);
    font-weight: 500;
}

.consent-label a:hover {
    text-decoration: underline;
}

.contact-form .btn {
    margin-top: 30px;
    align-self: flex-start;
    padding: 14px 35px;
}

/* --- Form Messages --- */
.form-message {
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
    font-weight: 500;
}

.form-message.success {
    background-color: hsl(142, 70%, 95%);
    color: hsl(142, 70%, 25%);
    border: 1px solid hsl(142, 70%, 85%);
}

.form-message.error {
    background-color: hsl(0, 85%, 97%);
    color: hsl(0, 85%, 35%);
    border: 1px solid hsl(0, 85%, 90%);
}

.form-message.error ul {
    margin-left: 20px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 45px 0 35px 0;
    margin-top: 60px;
    border-top: 4px solid var(--accent-color);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.site-footer a:hover {
    color: var(--accent-color);
    border-bottom-style: solid;
}

.footer-company {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.footer-links {
    margin: 15px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links a {
    margin: 0 10px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    margin-bottom: 0;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 900px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        justify-content: space-between;
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
        background-color: rgba(15, 23, 42, 0.95);
        border-radius: var(--border-radius-md);
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav li {
        margin: 8px 0;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 8px 0;
    }

    .hero-carousel {
        height: 520px;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 2.1rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-caption {
        padding: 25px;
        margin: 0 15px;
    }
    
    .carousel-button {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
    
    .carousel-button--left {
        left: 10px;
    }
    
    .carousel-button--right {
        right: 10px;
    }
    
    .carousel-nav {
        bottom: 15px;
    }

    .service-block {
        flex-direction: column;
        padding: 25px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }
    
    .cta-section {
        padding: 35px 20px;
    }
}

/* --- Form Validation Alerts --- */
.error-msg {
    color: hsl(0, 85%, 45%);
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
    display: block;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: hsl(0, 85%, 75%) !important;
    background-color: hsl(0, 85%, 99%) !important;
}

.contact-form input.invalid:focus,
.contact-form textarea.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.consent-box.invalid-box {
    border-color: hsl(0, 85%, 75%) !important;
    background-color: hsl(0, 85%, 99%) !important;
}
