/* ========================================
   Life 4 All Pharmacy - Main Stylesheet
   A professional, trustworthy pharmacy website
   ======================================== */

/* CSS Variables for Brand Consistency */
:root {
    --primary-navy: #011C3B;
    --secondary-blue: #007bff;
    --light-blue: #e7f3ff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
    --success-green: #28a745;
    --warning-orange: #ff9800;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0 40px 0;
    --container-max: 1200px;
}

/* ========================================
   Global Styles & Reset
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-navy);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    /*background-color: var(--primary-navy); */
    background-color: #F8F9FA;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .pharmacy-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--primary-navy) !important;
    font-weight: bolder;
    font-size: 22PX;
    padding: 1.2rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007BFF !important;
   
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary-blue);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    background-color: rgb(11, 52, 165);
}

.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(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, rgba(1, 28, 59, 0.85) 0%, rgba(2, 74, 122, 0.85) 100%), url('../hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L30 60 M0 30 L60 30' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.4;
}

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

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero .lead {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero .hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-feature i {
    font-size: 1.5rem;
    color: var(--secondary-blue);
}

.btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

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

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

/* ========================================
   Section Styles
   ======================================== */

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-blue);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* ========================================
   Card Components
   ======================================== */

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-blue), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.card-body {
    padding: 2rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* Service Cards */
.service-card {
    text-align: left;
}

.service-card .card-icon {
    margin: 0 0 1.5rem 0;
}

.service-card .card-body {
    text-align: left;
}

/* ========================================
   Info Boxes
   ======================================== */

.info-box {
    background: var(--light-blue);
    border-left: 4px solid var(--secondary-blue);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-box h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Opening Hours
   ======================================== */

.hours-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.hours-table table {
    width: 100%;
    margin: 0;
}

.hours-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--primary-navy);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--text-light);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table .closed {
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   Testimonials
   ======================================== */

.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--secondary-blue);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary-navy);
}

.testimonial-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Equal Height Columns for Image Sections */
.section .row.align-items-stretch {
    display: flex;
}

.section .row.align-items-stretch > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.section .row.align-items-stretch img {
    flex: 1;
    height: 100%;
}

/* ========================================
   Back to Top Button
   ======================================== */

#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-blue);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#backToTop:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    transform: translateY(-3px);
}

#backToTop.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer a {
    color: rgba(255,255,255,0.75);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
}

/* ========================================
   Contact Form
   ======================================== */

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

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

/* ========================================
   Product Grid
   ======================================== */

.product-category {
    margin-bottom: 4rem;
}

.product-category h3 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-gray);
}

.product-card {
    text-align: center;
    transition: all 0.3s ease;
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-image i {
    font-size: 3rem;
    color: var(--secondary-blue);
}

.product-name {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Contact Info Boxes
   ======================================== */

.contact-info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.contact-info-box i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.contact-info-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-info-box a {
    color: var(--text-dark);
}

.contact-info-box a:hover {
    color: var(--secondary-blue);
}

/* ========================================
   Map Container
   ======================================== */

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Utilities
   ======================================== */

.text-primary-navy {
    color: var(--primary-navy) !important;
}

.text-secondary-blue {
    color: var(--secondary-blue) !important;
}

.bg-primary-navy {
    background-color: var(--primary-navy) !important;
}

.bg-secondary-blue {
    background-color: var(--secondary-blue) !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.15rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero .btn {
        width: 100%;
    }
}
