/* ================================================================
   Top PHARMA - NEW MODERN DESIGN SYSTEM
   Pharmaceutical Distribution Company - Clean & Professional
   Performance Optimized - v2.0
   ================================================================ */

/* ========== GLOBAL RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== CSS VARIABLES ========== */
:root {
    /* Brand Colors - Medical Professional */
    --brand-primary: #1E40AF;      /* Deep Professional Blue */
    --brand-secondary: #10B981;    /* Medical Green */
    --brand-accent: #F59E0B;       /* Warm Amber */

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Typography with fallbacks */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ========== NEW NAVIGATION ========== */
.new-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.new-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

.nav-logo:hover img {
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 8px rgba(30, 64, 175, 0.2));
}

.nav-menu {
    display: flex;
    gap: var(--space-8);
    list-style: none;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========== NEW HERO SECTION ========== */
.new-hero {
    margin-top: 71px;
    min-height: 600px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.new-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(30,64,175,0.05)"/></svg>');
    background-size: 100px 100px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-content h1 .highlight {
    color: var(--brand-primary);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
}

.btn-new {
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-primary-new {
    background: var(--brand-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary-new:hover {
    background: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-new {
    background: var(--white);
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-secondary-new:hover {
    background: var(--brand-primary);
    color: var(--white);
}

.btn-new * {
    pointer-events: none;
}

.btn-new svg,
.btn-new path {
    pointer-events: none;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    display: block;
}

/* ========== STATS SECTION ========== */
.stats-section {
    background: var(--white);
    padding: var(--space-16) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.stat-card {
    text-align: center;
    padding: var(--space-6);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-2);
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-label {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--gray-100);
    color: var(--brand-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== NEW CARDS ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .nav-logo img {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 35px;
    }
}

@media (max-width: 380px) {
    .nav-logo img {
        height: 32px;
    }
}

.new-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.new-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
}

.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: var(--space-6);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.card-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.card-badge {
    padding: var(--space-2) var(--space-3);
    background: var(--brand-secondary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: var(--space-20) 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #3B82F6 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--white);
    font-size: 2rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== MAP HOVER EFFECT ========== */
.map-link-btn {
    transition: all 0.3s ease;
}

.map-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: var(--brand-primary);
    color: white !important;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
}

.contact-info {
    background: var(--gray-50);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.contact-details p {
    color: var(--gray-600);
}

.contact-form-wrapper {
    background: var(--white);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========== FOOTER ========== */
.new-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    line-height: 1.8;
}

.footer-section h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container,
    .contact-grid {
        grid-template-columns: 1fr;
        padding: var(--space-12) var(--space-5);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: var(--space-10) 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        text-align: left;
    }

    .hero-content p {
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        padding: 0;
    }

    .hero-section-bg h1,
    .section-with-bg h1 {
        font-size: 2rem !important;
    }

    .hero-section-bg p,
    .section-with-bg p {
        font-size: 1rem !important;
    }

    .contact-grid {
        gap: var(--space-6);
        padding: 0;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .features-grid,
    .stats-container {
        grid-template-columns: 1fr;
    }

    .features-grid .feature-card {
        min-height: 280px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-container {
        padding: var(--space-8) 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        text-align: left;
    }

    .hero-content p {
        font-size: 0.95rem;
        text-align: left;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-new {
        width: 100%;
        justify-content: center;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }

    .hero-actions .btn-new * {
        pointer-events: none !important;
    }

    .hero-image {
        margin: 0;
        padding: 0;
    }

    .section-centered h1,
    .text-centered-section h1 {
        font-size: 1.75rem !important;
    }

    .section-centered p,
    .text-centered-section p {
        font-size: 0.95rem !important;
        padding: 0;
        max-width: 100% !important;
    }

    .hero-section-bg h1,
    .section-with-bg h1 {
        font-size: 1.75rem !important;
    }

    .hero-section-bg p,
    .section-with-bg p {
        font-size: 0.95rem !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .section-label {
        font-size: 0.875rem !important;
        padding: 6px 16px !important;
    }

    .map-link-btn {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        gap: 4px !important;
    }

    .map-link-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .contact-item {
        padding: 1rem !important;
    }

    .contact-details h4 {
        font-size: 1rem !important;
    }

    .contact-details p {
        font-size: 0.9rem !important;
    }

    .contact-grid {
        gap: var(--space-4);
        padding: 0;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 1rem;
        margin: 0;
    }

    .contact-info {
        background: transparent;
        border: 1px solid var(--gray-200);
    }

    .contact-form-wrapper {
        padding: 1rem;
    }

    .contact-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .contact-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .form-group {
        margin-bottom: var(--space-4) !important;
    }

    .form-label {
        font-size: 0.9rem !important;
    }

    .form-input,
    .form-textarea {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
    box-sizing: border-box;
}

.section {
    padding: var(--space-20) 0;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing Utilities - Margin */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex Utilities */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-col {
    display: flex;
    flex-direction: column;
}

/* Width Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Helper Classes for Sections */
.section-centered {
    text-align: center;
}
.text-centered-section {
    text-align: center;
}
.hero-section-bg {
    background-size: cover;
    background-position: center;
}
.section-with-bg {
    background-size: cover;
    background-position: center;
}

/* Staff Management Cards Equal Height and Width in Responsive Only */
@media (max-width: 768px) {
    .staff-slide-mobile .feature-card,
    .staff-slide-directors-mobile .feature-card {
        min-height: 300px;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0 auto;
    }

    /* Ensure mobile slider cards take full width */
    .staff-slide-mobile,
    .staff-slide-directors-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .staff-slide-mobile > div,
    .staff-slide-directors-mobile > div {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* Ensure desktop grid items have equal width */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid .feature-card {
        width: 100%;
        max-width: 100%;
    }
}
