/* ===========================================================
   Sushruta Pharma — Custom Styles
   =========================================================== */

:root {
    --primary: #0b6e74;       /* deep teal */
    --primary-dark: #084d52;
    --accent: #2bb673;        /* medical green */
    --accent-dark: #209a5f;
    --ink: #1f2d3d;
    --muted: #6c7a89;
    --bg-soft: #f4f8f9;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    padding-top: 64px; /* offset fixed navbar */
}

/* ---------- Utility colors ---------- */
.text-accent { color: var(--accent) !important; }

/* Pill-rounded buttons site-wide (back-to-top keeps its circle) */
.btn { border-radius: 50rem; }

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    transition: all .2s ease;
}
.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Navbar ---------- */
#mainNav {
    background-color: var(--primary);
    transition: background-color .3s ease, padding .3s ease;
}
#mainNav.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
#mainNav .nav-link {
    font-weight: 500;
    opacity: .9;
    transition: opacity .2s ease;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { opacity: 1; }
#mainNav .navbar-brand img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 88vh;
    background:
        linear-gradient(120deg, rgba(8,77,82,.92), rgba(11,110,116,.82)),
        url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80")
        center/cover no-repeat;
}

/* ---------- Filter buttons ---------- */
.filter-btn {
    border: 1px solid #d4dde0;
    background: #fff;
    color: var(--muted);
    font-weight: 500;
    border-radius: 50rem;
    padding: .35rem 1rem;
    transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Medicine card ---------- */
.medicine-card {
    border: 1px solid #eef2f3;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.medicine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(11,110,116,.14);
}
.medicine-card .card-thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    overflow: hidden;
}
.medicine-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.medicine-card .badge-cat {
    background: rgba(43,182,115,.12);
    color: var(--accent-dark);
    font-weight: 600;
}
.medicine-card .price {
    color: var(--primary);
    font-weight: 700;
}

/* ---------- About image ---------- */
.about-image {
    min-height: 360px;
    background:
        linear-gradient(0deg, rgba(8,77,82,.25), rgba(8,77,82,.05)),
        url("../company%20pic.jpeg")
        center/cover no-repeat;
}

/* ---------- Contact ---------- */
.contact-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: rgba(43,182,115,.12);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: .85rem;
}

/* ---------- Footer ---------- */
#footer { background: var(--primary-dark); }
.footer-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-link:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
#backToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1030;
}
#backToTop.show { display: inline-flex; }

/* ---------- Floating Call + WhatsApp ---------- */
#floatContact {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    z-index: 1031;
}
.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.float-btn:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(0,0,0,.3);
}
.float-wa { background: #25d366; }
.float-call { background: var(--accent); }

/* ---------- Modal detail rows ---------- */
.detail-row {
    display: flex;
    padding: .6rem 0;
    border-bottom: 1px dashed #e7edee;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label {
    flex: 0 0 150px;
    color: var(--muted);
    font-weight: 600;
}
.modal-thumb {
    height: 120px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    overflow: hidden;
}
.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    margin-top: -64px;       /* sit under the fixed navbar */
    padding-top: 64px;
    background:
        linear-gradient(120deg, rgba(8,77,82,.95), rgba(11,110,116,.88)),
        url("https://images.unsplash.com/photo-1631549916768-4119b2e5f926?auto=format&fit=crop&w=1600&q=80")
        center/cover no-repeat;
}
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- Home feature tiles ---------- */
.home-feature {
    border: 1px solid #eef2f3;
    border-radius: 1rem;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(11,110,116,.12);
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--primary), var(--accent));
}

/* ---------- Fullscreen medicine image modal ---------- */
#medicineModal .modal-content { background-color: #0f1115; }
#medicineModal .modal-header { padding: 1rem 1.25rem; }
#medicineModal .modal-title { font-size: 1.5rem; letter-spacing: .3px; }
#medicineModal .modal-body { overflow: hidden; }

.medicine-fullscreen-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4.5rem;
    width: 100%;
    height: 100%;
}
.medicine-fullscreen-img {
    max-width: 100%;
    max-height: calc(100vh - 90px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.medicine-fullscreen-icon {
    font-size: 12rem;
    color: rgba(255,255,255,.5);
}

.medicine-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    z-index: 10;
}
.medicine-nav-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.05);
}
.medicine-nav-prev { left: 1.25rem; }
.medicine-nav-next { right: 1.25rem; }

@media (max-width: 575px) {
    .medicine-nav-btn { width: 42px; height: 42px; font-size: 1.3rem; }
    .medicine-nav-prev { left: .5rem; }
    .medicine-nav-next { right: .5rem; }
    .medicine-fullscreen-stage { padding: 0 3.25rem; }
}

/* ---------- Small screens ---------- */
@media (max-width: 991px) {
    .hero { min-height: 80vh; text-align: center; }
    #mainNav .navbar-nav { padding-top: .5rem; }
}
