/* ============================================
   Pills Pharmacy - Pure CSS Stylesheet
   No JavaScript Required
   ============================================ */

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

:root {
    --brand-primary: #10b981;
    --brand-dark: #059669;
    --brand-light: #34d399;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-blue-50: #eff6ff;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-yellow-400: #fbbf24;
    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-900: #14532d;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Container & Layout Utilities
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Typography
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

.btn--primary:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn--secondary:hover {
    background-color: var(--color-green-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--full {
    width: 100%;
}

/* ============================================
   Star Rating
   ============================================ */
.star-rating {
    color: var(--color-yellow-400);
    font-size: 1rem;
}

.star-rating--large {
    font-size: 2rem;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

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

.logo-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-circle span {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-circle--large {
    width: 64px;
    height: 64px;
}

.logo-circle--large span {
    font-size: 2rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

.header__nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--color-green-50) 0%, var(--color-white) 50%, var(--color-green-100) 100%);
    animation: fadeIn 1s ease-out;
}

.hero__container {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero__content {
    animation: slideInLeft 0.8s ease-out;
}

.hero__rating {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.rating-score {
    font-weight: 600;
}

.rating-count {
    color: var(--color-gray-600);
    font-size: 0.875rem;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.badge--location {
    font-size: 0.875rem;
}

.badge--info {
    background-color: var(--color-blue-50);
    color: var(--color-blue-700);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero__phones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}

.phone-link {
    color: var(--color-gray-700);
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--brand-primary);
}

.hero__image {
    display: none;
    animation: slideInRight 0.8s ease-out;
}

.hero__image img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    width: 100%;
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
    padding: 3rem 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.trust-bar__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trust-item {
    text-align: center;
}

.trust-item__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.trust-item__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trust-item__desc {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* ============================================
   Stores Section
   ============================================ */
.stores {
    padding: 5rem 0;
    background-color: var(--color-gray-50);
}

.stores__grid {
    display: grid;
    gap: 2rem;
}

.store-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.store-card__image {
    position: relative;
    height: 224px;
    background-color: var(--color-green-50);
    overflow: hidden;
}

.store-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-blue-600);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.store-card__content {
    padding: 1.5rem;
}

.store-card__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.store-card__name {
    font-size: 1.5rem;
    font-weight: 700;
}

.store-card__area {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.store-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--color-yellow-400);
    background-color: #fffbeb;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.rating-value {
    font-weight: 700;
}

.rating-reviews {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.store-card__address {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin-bottom: 1rem;
}

.store-card__highlight {
    background-color: var(--color-gray-50);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.store-card__highlight p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-style: italic;
}

.store-card__actions {
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.about__container {
    display: grid;
    gap: 3rem;
}

.about__paragraph {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: 1rem;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--color-green-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.stat-card__label {
    color: var(--color-gray-700);
    font-weight: 500;
}

.about__card {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border-radius: 1.5rem;
    padding: 3rem;
    color: var(--color-white);
    text-align: center;
}

.about__icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.about__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about__card-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.about__badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 5rem 0;
    background-color: var(--color-gray-50);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card__desc {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.reviews__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reviews__score {
    font-size: 1.5rem;
    font-weight: 700;
}

.reviews__grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background-color: var(--color-gray-50);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    background-color: var(--brand-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 600;
}

.review-card__text {
    color: var(--color-gray-700);
    font-style: italic;
}

.reviews__action {
    text-align: center;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 5rem 0;
    background-color: var(--color-gray-50);
}

.contact__grid {
    display: grid;
    gap: 2rem;
}

.contact-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.contact-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-card__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card__item {
    margin-bottom: 0.5rem;
}

.contact-card__label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-card__value {
    color: var(--color-gray-700);
}

.contact-card__link {
    color: var(--brand-primary);
    transition: text-decoration 0.3s ease;
}

.contact-card__link:hover {
    text-decoration: underline;
}

.contact-card__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-white);
    padding: 3rem 0;
}

.footer__container {
    text-align: center;
}

.footer__logo {
    margin-bottom: 1.5rem;
}

.footer__logo .logo-circle {
    margin: 0 auto 1rem;
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    color: var(--color-gray-400);
}

.footer__nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.footer__link {
    color: var(--color-gray-400);
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__copyright {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

/* ============================================
   CSS Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* ============================================
   Responsive Design - Tablet (768px and up)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .header__nav {
        display: flex;
    }

    .hero {
        padding: 10rem 0 5rem;
    }

    .hero__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__image {
        display: block;
    }

    .hero__title {
        font-size: 3.75rem;
    }

    .hero__actions {
        flex-direction: row;
    }

    .hero__phones {
        flex-direction: row;
    }

    .section-title {
        font-size: 3rem;
    }

    .trust-bar__container {
        grid-template-columns: repeat(4, 1fr);
    }

    .stores__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive Design - Desktop (1024px and up)
   ============================================ */
@media (min-width: 1024px) {
    .hero__title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}
