/* Remind Medical Center (rmc.com.np) - Modern Responsive & SEO-Optimized Stylesheet */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

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

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

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: #cbd5e1;
    font-size: 0.84rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: #38bdf8;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border-color: #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--secondary);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.brand img {
    height: 44px;
    width: auto;
}

.brand img + .brand-fallback {
    display: none;
}

.brand img[style*="display: none"] + .brand-fallback {
    display: inline;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.94rem;
    color: var(--text);
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--secondary);
    display: block;
}

/* Hero */
.hero {
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
    color: #fff;
    padding: 105px 0 135px;
}

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

.badge {
    display: inline-block;
    background: rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #bae6fd;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero p {
    font-size: 1.06rem;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Highlights */
.highlights {
    margin-top: -55px;
    position: relative;
    z-index: 10;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight-card {
    background: #fff;
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e0f2fe;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-card h2 {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 88px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 52px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.section-header h2,
.about-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-header p {
    color: var(--text-light);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #e2e8f0;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text);
}

.check-list {
    list-style: none;
    margin: 22px 0 28px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-weight: 500;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.94rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}

.team-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.team-card:hover {
    box-shadow: var(--shadow);
}

.team-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    background: #e2e8f0;
}

.team-info {
    padding: 18px 14px;
}

.team-info h3 {
    font-size: 1.02rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.team-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-info p {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Lab Panel & Gallery */
.lab-tests-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 36px;
}

.lab-tests-box h3 {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.lab-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 24px;
}

.lab-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.92rem;
    color: var(--text);
}

.lab-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
    background: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* FAQ Section */
.faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.faq-item summary {
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 12px;
    color: var(--text);
    font-size: 0.95rem;
}

.faq-item a {
    color: var(--primary);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    border-top: 1px solid var(--border);
}

.alert {
    max-width: 860px;
    margin: 0 auto 28px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 36px;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-info h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.info-item {
    margin-bottom: 15px;
}

.info-item strong {
    display: block;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.info-item span,
.info-item a {
    color: var(--text);
    font-size: 0.95rem;
}

.info-item a:hover {
    color: var(--primary);
}

.map-embed {
    margin-top: 18px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 170px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--secondary);
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand strong {
    color: #fff;
    margin-right: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
    .highlights-grid,
    .services-grid,
    .lab-list {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 18px;
    }

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

    .gallery-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        padding: 24px;
    }
}
