/* 
 * Pharma Portfolio — Premium Stylesheet
 * elitecode.in/anil
 * Hand-crafted. No frameworks. Pure elegance.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&family=Roboto:wght@300;400;500;700&family=Outfit:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════════════════════════ */

:root {
    /* Default (Monochrome) */
    --primary: #111111;
    --primary-light: #222222;
    --accent: #333333;
    --accent-light: #555555;
    --accent-muted: rgba(0,0,0,0.06);
    --bg: #F1F5F9; /* Distinct grey background to make containers visible */
    --surface: #FFFFFF; /* Pure white containers */
    --text: #111111;
    --text-light: #475569;
    --text-lighter: #94A3B8;
    --border: #CBD5E1;
    --border-light: #E2E8F0;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', -apple-system, sans-serif;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 6px 16px rgba(0,0,0,0.06);

    --nav-h: 80px;
    --nav-h-mob: 64px;
    --max-w: 1200px;
    --section-pad: 120px;
}

/* Themes */
[data-theme="prestige"] {
    --primary: #0D233A;
    --primary-light: #163352;
    --accent: #527E51;
    --accent-light: #6B9B6A;
    --accent-muted: rgba(82, 126, 81, 0.1);
    --bg: #F4F7F4; /* Greenish-grey background */
    --surface: #FFFFFF;
    --text: #1C2331;
    --text-light: #5A6577;
    --text-lighter: #8C95A6;
    --border: #E8EBF0;
    --border-light: #F0F2F5;
}

[data-theme="blue"] {
    --primary: #0F2B4C;
    --primary-light: #1A3D6B;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-muted: rgba(37,99,235,0.08);
    --bg: #F0F4F8; /* Blue-grey background */
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-light: #475569;
    --text-lighter: #94A3B8;
    --border: #D2DEEA;
    --border-light: #E2EAF2;
}

/* Fonts */
[data-font="inter"] { --font-body: 'Inter', sans-serif; --font-display: 'Inter', sans-serif; }
[data-font="roboto"] { --font-body: 'Roboto', sans-serif; --font-display: 'Roboto', sans-serif; }
[data-font="playfair"] { --font-body: 'DM Sans', sans-serif; --font-display: 'Playfair Display', serif; }
[data-font="cormorant"] { --font-body: 'DM Sans', sans-serif; --font-display: 'Cormorant Garamond', serif; }
[data-font="outfit"] { --font-body: 'Outfit', sans-serif; --font-display: 'Outfit', sans-serif; }

/* ══════════════════════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p {
    text-align: justify;
    margin-bottom: 1em;
}

img, video { max-width: 100%; height: auto; display: block; pointer-events: none; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { 
    font-family: inherit; font-size: inherit; 
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.profile-photo-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: inline-block;
    width: 100%;
    max-width: 420px;
}
.profile-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
@media(max-width: 768px) {
    .profile-photo-wrapper {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
}

/* ══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.display-1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.display-2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-light);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-secondary, .text-accent { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section-light { background: var(--surface); }

.section-dark {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
}

/* ══════════════════════════════════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════════════════════════════════ */

.section-title { margin-bottom: 56px; }

.section-title .overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title .overline::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: var(--accent);
}

.section-title h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 560px;
    line-height: 1.7;
}

.section-title.text-center p { margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-radius: 2px;
    border: 1.5px solid transparent;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn i { font-size: 0.85rem; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-secondary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.4s var(--ease);
}

.header.scrolled {
    height: 68px;
    box-shadow: var(--shadow-xs);
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 2px;
    font-size: 0.82rem !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--primary-light) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--primary);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    position: relative;
    background: var(--surface);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-subtitle::before {
    content: '';
    width: 40px;
    height: 1.5px;
    background: var(--accent);
}

.hero .display-1 { margin-bottom: 24px; }

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-item {
    min-width: 0;
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 24px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
}

.stat-item h3 {
    font-size: 2.8rem;
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-item p {
    font-size: 0.78rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════ */

.card {
    background: var(--surface);
    border-radius: 4px;
    padding: 36px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s var(--ease);
    border: 1px solid var(--border-light);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-muted);
    color: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════════════
   PAGE HEADER (Inner pages)
   ══════════════════════════════════════════════════════════════════ */

.page-header {
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 80px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.page-header .overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.page-header .overline::before,
.page-header .overline::after {
    content: '';
    width: 28px;
    height: 1.5px;
    background: var(--accent);
}

.page-header h1 { margin-bottom: 16px; }

.page-header p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT INFO BLOCKS
   ══════════════════════════════════════════════════════════════════ */

.contact-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-block-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--accent-muted);
    color: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-block h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-block p { color: var(--text-light); font-size: 0.95rem; }

/* ══════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════ */

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-card {
    background: var(--surface);
    padding: 48px;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */

.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.15rem;
    font-family: var(--font-display);
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    transition: all 0.3s var(--ease);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   FLOATING WHATSAPP
   ══════════════════════════════════════════════════════════════════ */

.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    z-index: 99;
    transition: all 0.3s var(--ease);
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════ */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════
   TOASTER
   ══════════════════════════════════════════════════════════════════ */

.toaster {
    position: fixed;
    top: 24px;
    right: -400px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: right 0.4s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    font-size: 0.92rem;
}

.toaster.show { right: 24px; }
.toaster.error { border-left-color: #C0392B; }

/* ══════════════════════════════════════════════════════════════════
   THEME SWITCHER
   ══════════════════════════════════════════════════════════════════ */

.theme-switcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    background: var(--surface);
    padding: 10px 14px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-light);
}

.theme-switcher select {
    padding: 5px 8px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .hero-stats { gap: 32px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Dropdown Menu */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 100;
    list-style: none;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li { margin: 0; width: 100%; }
.dropdown li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: none;
}
.dropdown li a:hover {
    background: var(--bg);
    color: var(--accent);
}
.dropdown li a::after { display: none !important; }

@media (max-width: 768px) {
    :root { --nav-h: var(--nav-h-mob); }

    .menu-toggle { display: flex; margin-left: auto; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 0;
        box-shadow: -8px 0 32px rgba(0,0,0,0.08);
        transition: right 0.4s var(--ease-out);
    }

    .nav-links.active { right: 0; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links a::after { display: none; }

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 5px 0 5px 20px;
        display: none;
    }
    .has-dropdown:hover .dropdown, .has-dropdown:active .dropdown {
        display: flex;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 5px 0 5px 20px;
        display: none;
    }
    .has-dropdown:hover .dropdown, .has-dropdown:active .dropdown {
        display: flex;
    }

    .nav-cta {
        margin-top: 16px;
        text-align: center !important;
        display: block !important;
    }

    .header-logo-img { height: 44px !important; max-width: 160px !important; }

    .hero-stats { gap: 24px; }
    .stat-item h3 { font-size: 2.2rem; }
    .page-header { padding-top: calc(var(--nav-h-mob) + 48px); padding-bottom: 48px; }
}
