/* Assets/css/style.css — GrandPharma Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #008080;
    --primary-dark: #004d4d;
    --primary-light: #20c997;
    --secondary: #f8f9fa;
    --accent: #ffc107;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

[lang="ar"] {
    font-family: 'Cairo', sans-serif;
}

[lang="en"] {
    font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Header & Navigation --- */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,128,128,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

[lang="ar"] .nav-links li a::after {
    left: auto;
    right: 0;
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher .btn-lang {
    background: #f0f2f5;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

/* --- Burger Menu --- */
.burger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 45, 45, 0.85), rgba(0, 20, 20, 0.9)), url('../img/main.png') center/cover no-repeat;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    color: var(--white);
}

.hero .container {
    position: relative;
    z-index: 2;
}

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

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Premium depth */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-light); /* Give it a soft teal tint for harmony */
    margin-bottom: 40px;
    max-width: 650px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* --- Statistics Section --- */
.stats {
    padding: 80px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* --- Products Section --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.product-slider {
    padding: 20px 0 50px;
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,128,128,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 128, 128, 0.1);
    border-color: var(--primary-light);
}

.product-image {
    height: 200px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

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

/* --- Dosage Forms --- */
.dosage-forms {
    padding: 100px 0;
    background: #f8fbfb;
}

.dosage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.dosage-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.dosage-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(0, 128, 128, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dosage-icon img {
    width: 35px;
}

.dosage-info h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.dosage-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #001a1a 100%);
    color: var(--white);
    padding: 100px 0 30px;
    position: relative;
}

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

.footer-about img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
}

[lang="ar"] .footer-links h4::after {
    left: auto;
    right: 0;
}

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

.footer-links ul li a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 5px;
}

[lang="ar"] .footer-links ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- RTL Support Overrides --- */
[lang="ar"] {
    direction: rtl;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        min-height: 60vh;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
