/* AAYURCURE Ayurvedic Clinic Styles */

/* CSS Custom Properties */
:root {
    --color-primary: #87A96B;
    --color-primary-dark: #2D5016;
    --color-secondary: #F5F1E8;
    --color-accent: #D4B996;
    --color-text: #2C3E2D;
    --color-text-light: #5A6B5D;
    --color-white: #FFFFFF;
    --color-error: #D32F2F;
    --color-success: #388E3C;
    
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
    --box-shadow-lg: 0 4px 16px rgba(45, 80, 22, 0.15);
    
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    text-decoration: none;
    z-index: 1000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}

.section-title {
    font-size: var(--font-size-2xl);
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Header & Navigation */
.header {
    background: var(--color-white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--color-primary-dark);
}

.logo {
    font-size: var(--font-size-xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
}

.nav-link:hover {
    background: var(--color-secondary);
}

.nav-link.cta-nav {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-link.cta-nav:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-white) 100%);
    padding: var(--spacing-3xl) 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
    min-width: 140px;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

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

.btn-full {
    width: 100%;
}

/* Services Section */
.services {
    padding: var(--spacing-3xl) 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-secondary);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin: 0 auto var(--spacing-md);
}

.service-card h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: var(--spacing-3xl) 0;
    background: var(--color-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-content h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary-dark);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    color: var(--color-text-light);
    padding: var(--spacing-sm) 0;
    position: relative;
    padding-left: var(--spacing-xl);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-visual svg {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* Doctor Section */
.doctor {
    padding: var(--spacing-3xl) 0;
    background: var(--color-white);
}

.doctor-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.doctor-details h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-sm);
}

.doctor-title {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.registration {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.doctor-details p:last-child {
    color: var(--color-text-light);
    line-height: 1.7;
    text-align: left;
    margin-top: var(--spacing-lg);
}

/* Timings Section */
.timings {
    padding: var(--spacing-3xl) 0;
    background: var(--color-secondary);
}

.timings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.timing-card {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.timing-card h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-lg);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--color-secondary);
    border-radius: var(--border-radius);
}

.time-slot .time {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-dark);
}

.time-slot .label {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

/* Contact Section */
.contact {
    padding: var(--spacing-3xl) 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: var(--spacing-xs);
}

.contact-item h4 {
    font-size: var(--font-size-lg);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-link {
    font-weight: 600;
    color: var(--color-primary-dark);
}

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

.quick-actions h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

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

.call-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25D366;
    color: var(--color-white);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    color: var(--color-white);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq {
    padding: var(--spacing-3xl) 0;
    background: var(--color-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-lg);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-primary-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--color-secondary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Book Section */
.book {
    padding: var(--spacing-3xl) 0;
    background: var(--color-white);
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.book-info h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
}

.book-info p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.contact-summary {
    background: var(--color-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

.phone-link a {
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.clinic-hours {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
}

/* Form Styles */
.appointment-form {
    background: var(--color-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--color-primary-dark);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(135, 169, 107, 0.1);
}

.form-input.error {
    border-color: var(--color-error);
}

.error-message {
    display: block;
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    min-height: 20px;
}

/* Footer */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-brand .brand-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    margin: var(--spacing-xs) 0;
}

/* Mobile CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-secondary);
    display: none;
    grid-template-columns: 1fr 1fr 1fr;
    z-index: 99;
    box-shadow: 0 -2px 8px rgba(45, 80, 22, 0.1);
}

.mobile-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: var(--transition);
    min-height: 60px;
}

.mobile-cta-btn svg {
    width: 20px;
    height: 20px;
    margin-bottom: var(--spacing-xs);
}

.mobile-cta-btn:hover {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
}

.mobile-cta-btn.whatsapp {
    color: #25D366;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-success);
    color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    z-index: 1000;
    transform: translateX(100%);
    transition: var(--transition);
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.toast.show {
    transform: translateX(0);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Image Styles */
.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.doctor-image {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.doctor-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: var(--box-shadow-lg);
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* Responsive Images */
@media (max-width: 768px) {
    .doctor-photo {
        width: 150px;
        height: 150px;
    }
    
    .service-image {
        height: 150px;
    }
}

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