/* 
  Sana Clinic - Stylesheet 
  Color Palette:
  Primary: #1F7A73 (Teal Green)
  Secondary: #A7D7C5 (Light Mint Green)
  Base: #FFFFFF (White)
  Accent (CTA): #E91E63 (Pink)
  Support: #2F80ED (Blue)
  Text Dark: #1A1A1A
  Text Grey: #555555
*/

:root {
    --primary: #1F7A73;
    --secondary: #A7D7C5;
    --base: #FFFFFF;
    --accent: #E91E63;
    --accent-hover: #D81B60;
    --support: #2F80ED;
    --text-dark: #1A1A1A;
    --text-grey: #555555;
    --light-bg: #F8FAF9;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5em;
    font-weight: 600;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

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

.section-title p {
    color: var(--text-grey);
    font-size: 1.1rem;
    margin-top: 15px;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--base);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--base);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--base);
    color: var(--primary);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--base);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(31, 122, 115, 0.3);
}

/* Header & Nav */
.header {
    background-color: var(--base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-right: 5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(31, 122, 115, 0.85) 100%), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: calc(100vh - 70px);
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--base);
}

.hero-text {
    max-width: 700px;
}

.hero-text h1 {
    color: var(--base);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

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

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

.about-features {
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background-color: var(--secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    font-weight: 500;
    color: var(--primary);
}

/* Services */
.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-category {
    background-color: var(--base);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    padding: 25px 20px;
    text-align: center;
    color: var(--base);
}

.category-header h3 {
    color: var(--base);
    margin: 0;
    margin-top: 10px;
    font-size: 1.4rem;
}

.category-header i {
    font-size: 2.5rem;
}

.bg-teal {
    background-color: var(--primary);
}

.bg-pink {
    background-color: var(--accent);
}

.bg-blue {
    background-color: var(--support);
}

.service-list {
    padding: 25px;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: "\f054";
    /* FontAwesome chevron-right icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
    font-size: 0.8rem;
}

.sub-categories {
    padding: 15px 25px;
}

.sub-category h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.service-list.small {
    padding: 0;
}

.service-list.small li {
    font-size: 0.95rem;
    padding: 8px 0;
}

/* Doctors */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.doctor-card {
    background-color: var(--base);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.doctor-img-placeholder {
    height: 250px;
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}

.doctor-img-wrapper {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.doctor-info {
    padding: 30px;
}

.doctor-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.doctor-info .qualification {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.doctor-info .specialization {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.doctor-info .exp {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.doctor-info .desc {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.doctor-info .timings {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Gallery Placeholders */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 200px;
}

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

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

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: var(--base);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    flex: 1;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-info>p {
    color: var(--text-grey);
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--primary);
    background-color: var(--secondary);
    padding: 15px;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-list strong {
    font-family: var(--font-heading);
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-list p {
    color: var(--text-grey);
}

.contact-map {
    flex: 1;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================
   Appointment Section
   ===================== */
.appointment {
    background: linear-gradient(135deg, #edf7f6 0%, #ffffff 60%, #f8f4ff 100%);
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: start;
}

/* --- Form Card --- */
.appointment-form-box {
    background: var(--base);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(31, 122, 115, 0.12);
    border: 1px solid rgba(31, 122, 115, 0.08);
}

/* Form Header Banner */
.form-card-header {
    background: linear-gradient(135deg, var(--primary), #155f5a);
    padding: 28px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.form-card-header>i {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 14px;
    border-radius: 14px;
    flex-shrink: 0;
}

.form-card-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.form-card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Form body */
form {
    padding: 35px;
}

/* Two-column row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.85rem;
}

.opt-label {
    font-weight: 400;
    color: var(--text-grey);
    font-size: 0.82rem;
    font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--text-dark);
    background-color: #fafafa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    outline: none;
    appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 122, 115, 0.1);
    background-color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-appt-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #1aab52 100%);
    color: #fff;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    margin-top: 5px;
}

.btn-appt-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, #1aab52 0%, #25D366 100%);
    color: #fff;
}

.btn-appt-submit i {
    font-size: 1.35rem;
}

/* --- Info Panel --- */
.appointment-info-box {
    background: linear-gradient(160deg, var(--primary) 0%, #0d4d48 100%);
    border-radius: 24px;
    padding: 35px 30px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(31, 122, 115, 0.25);
    position: sticky;
    top: 90px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.appointment-info-box h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 22px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 14px;
}

.timing-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.timing-doctor {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.timing-doctor>i {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 11px;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timing-doctor div {
    flex: 1;
}

.timing-doctor strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.97rem;
    color: #fff;
    margin-bottom: 2px;
}

.timing-doctor span {
    font-size: 0.8rem;
    opacity: 0.75;
    display: block;
    margin-bottom: 5px;
}

.timing-doctor p {
    font-size: 0.88rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 20px 0;
}

.info-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
}

.info-note i {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 3px;
}

.btn-wa-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #25D366;
    color: #fff;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.97rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-wa-direct:hover {
    background: #1aab52;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.btn-wa-direct i {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 992px) {
    .appointment-wrapper {
        grid-template-columns: 1fr;
    }

    .appointment-info-box {
        position: static;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    form {
        padding: 25px 20px;
    }

    .form-card-header {
        padding: 22px 20px;
    }
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--base);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 5px;
    opacity: 0.9;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: bounce 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--base);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 15px;
    }

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

    .cta-header {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-info {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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