/* ===================================
   KHYATHI PHARMACY - CSS STYLESHEET
   Pure CSS3 - No JavaScript Required
   =================================== */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

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

ul {
    list-style: none;
}

/* ========== COLORS ========== */
:root {
    --emerald-50: #f0fdf4;
    --emerald-100: #dcfce7;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --yellow-400: #fbbf24;
    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --blue-900: #1e3a8a;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container--narrow {
    max-width: 768px;
}

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

.section-title--center {
    text-align: center;
}

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

.btn--large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--emerald-600);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

.btn--secondary {
    background-color: #ffffff;
    color: var(--emerald-600);
    border: 2px solid var(--emerald-600);
}

.btn--secondary:hover {
    background-color: var(--emerald-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

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

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--emerald-600);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--emerald-700);
}

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

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

.nav-link:hover {
    color: var(--emerald-600);
}

.btn--header {
    padding: 0.5rem 1.5rem;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(to bottom right, var(--emerald-50), #ffffff);
    padding: 3rem 0 5rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero__content {
    animation: fadeInUp 0.6s ease-out;
}

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

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--emerald-700);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.stars {
    display: flex;
    color: var(--yellow-400);
}

.star {
    font-size: 1.125rem;
}

.rating-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.rating-count {
    color: var(--gray-600);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__image {
    transition: transform 0.3s ease;
}

.hero__image:hover {
    transform: scale(1.05);
}

.hero__image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, var(--emerald-100), var(--emerald-50));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========== TRUST BAR ========== */
.trust-bar {
    background-color: var(--emerald-600);
    color: #ffffff;
    padding: 3rem 0;
}

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

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

.trust-item__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-item__text {
    font-weight: 600;
}

/* ========== SERVICES SECTION ========== */
.services {
    padding: 4rem 0 6rem;
    background-color: #ffffff;
}

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

.service-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2);
}

.service-card__image {
    height: 12rem;
    background: linear-gradient(135deg, var(--emerald-100) 0%, var(--emerald-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-card__image {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
}

.service-card__emoji {
    font-size: 5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__emoji {
    transform: scale(1.15) rotate(5deg);
}

.service-card__content {
    padding: 1.5rem;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.service-card__text {
    color: var(--gray-600);
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: 4rem 0 6rem;
    background-color: var(--emerald-50);
}

.about__content {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.about__text {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.75;
}

/* ========== LOCATION SECTION ========== */
.location {
    padding: 4rem 0 6rem;
    background-color: #ffffff;
}

.location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-card {
    background-color: var(--emerald-50);
    border-radius: 1rem;
    padding: 2rem;
}

.location-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.location-card__name {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.location-card__address {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.location__image {
    transition: transform 0.3s ease;
}

.location__image:hover {
    transform: scale(1.05);
}

.location__image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, var(--emerald-100), var(--emerald-50));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: 4rem 0 6rem;
    background-color: var(--emerald-50);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: #ffffff;
    border: 2px solid var(--emerald-600);
    color: var(--emerald-600);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.contact-card:hover {
    background-color: var(--emerald-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.contact-card__info {
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-card__info--small {
    font-size: 0.875rem;
    word-break: break-all;
}

.gst-info {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gst-info p {
    color: var(--gray-700);
}

/* ========== COMPLIANCE SECTION ========== */
.compliance {
    padding: 3rem 0;
    background-color: #ffffff;
    border-top: 1px solid var(--gray-200);
}

.compliance__box {
    background-color: var(--blue-50);
    border-left: 4px solid var(--blue-500);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.compliance__text {
    color: var(--blue-900);
    font-weight: 600;
}

/* ========== FAQ SECTION ========== */
.faq {
    padding: 4rem 0 6rem;
    background-color: var(--emerald-50);
}

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

.faq-item {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item__checkbox {
    display: none;
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: background-color 0.3s ease;
}

.faq-item__question:hover {
    background-color: var(--emerald-50);
}

.faq-item__arrow {
    font-size: 1.5rem;
    color: var(--emerald-600);
    transition: transform 0.3s ease;
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item__answer p {
    color: var(--gray-700);
    padding-bottom: 1.5rem;
}

.faq-item__checkbox:checked ~ .faq-item__question .faq-item__arrow {
    transform: rotate(180deg);
}

.faq-item__checkbox:checked ~ .faq-item__answer {
    max-height: 500px;
    padding-top: 0;
}

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

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer__link:hover {
    color: #6ee7b7;
}

.footer__bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.img-responsive {
    width: 100%;
    height: auto;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 1.75rem;
    }

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

/* Mobile & Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header__nav {
        display: none;
    }

    .logo-text {
        display: none;
    }

    .btn--header {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0 3rem;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }

    /* Trust Bar */
    .trust-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Services */
    .services {
        padding: 3rem 0 4rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about {
        padding: 3rem 0 4rem;
    }

    .about__content {
        padding: 1.5rem;
    }

    .about__text {
        font-size: 1rem;
    }

    /* Location */
    .location {
        padding: 3rem 0 4rem;
    }

    .location__grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact {
        padding: 3rem 0 4rem;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq {
        padding: 3rem 0 4rem;
    }

    .faq-item__question {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-item__answer {
        padding: 0 1rem;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .trust-bar {
        padding: 2rem 0;
    }

    .trust-bar__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card__icon {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .btn,
    .faq-item__arrow {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .hero,
    .about,
    .location,
    .contact,
    .faq {
        page-break-inside: avoid;
    }
}
