/* ==========================================
   Aashirwad Hospital - Main Stylesheet
   A refined, trustworthy medical aesthetic
   ========================================== */

/* CSS Variables for Theme */
:root {
    /* Primary Colors - Calming teal/blue medical palette */
    --primary-color: #2C7A7B;
    --primary-light: #4FD1C5;
    --primary-dark: #1A4D4E;
    
    /* Secondary Colors */
    --secondary-color: #E8B4B8;
    --secondary-light: #FFF5F5;
    
    /* Neutral Colors */
    --text-dark: #1A202C;
    --text-medium: #4A5568;
    --text-light: #718096;
    --background: #FFFFFF;
    --background-light: #F7FAFC;
    --border-color: #E2E8F0;
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Nunito Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    background: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.logo .tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
}

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

.nav-menu a {
    color: var(--text-medium);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(79, 209, 197, 0.1), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-lg) var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #D89DA3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ==========================================
   Welcome Section
   ========================================== */
.welcome-section {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

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

.welcome-text h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.welcome-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.welcome-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--background-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.image-placeholder svg {
    width: 120px;
    height: 120px;
    color: var(--primary-light);
    opacity: 0.5;
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-light);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
}

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

.feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

/* ==========================================
   Page Header
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ==========================================
   Services Detail
   ========================================== */
.services-detail {
    padding: var(--spacing-xl) 0;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.services-intro h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.service-list {
    display: grid;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.service-content h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
}

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

.contact-info h2,
.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--radius-md);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.info-content h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.info-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

.form-message {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm);
    display: none;
}

.form-message.success {
    background: #C6F6D5;
    color: #22543D;
    display: block;
}

.form-message.error {
    background: #FED7D7;
    color: #742A2A;
    display: block;
}

/* Map Section */
.map-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-light);
}

.map-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}
/*/
.map-placeholder {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    text-align: center;
    color: var(--text-light);
}*/ 

.map-embed {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.2), transparent);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Founder Section
   ========================================== */
.founder-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

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

.founder-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.founder-content h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 500;
}

.founder-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.founder-credentials {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.founder-credentials h4 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.founder-credentials ul {
    list-style: none;
    padding: 0;
}

.founder-credentials ul li {
    padding: var(--spacing-xs) 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
}

.founder-credentials ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.founder-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-image img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 4/3.8;
}

/* ==========================================
   Founder Section - Mobile
   ========================================== */
@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .founder-image {
        order: -1;
    }

    .founder-image img {
        max-width: 100%;
        aspect-ratio: 4/3;
    }

    .founder-slider {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "track track"
            "prev  next"
            "dots  dots";
        gap: 16px;
        position: relative;
        padding: 0;
    }

    .slider-track {
        grid-area: track;
    }

    .slider-arrow-left {
        grid-area: prev;
        justify-self: end;
        position: static;
        transform: none;
        margin: 0;
    }

    .slider-arrow-right {
        grid-area: next;
        justify-self: start;
        position: static;
        transform: none;
        margin: 0;
    }

    .slider-dots {
        grid-area: dots;
        justify-self: center;
        position: static;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Grid Layouts */
    .welcome-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Spacing */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 125px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 125px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.founder-slider {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-track {
    overflow: hidden;
    width: 100%;
}

.founder-slide {
    display: none;
}

.founder-slide.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-arrow {
    background: var(--primary-color, #1a5f5f);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease;
}

.slider-arrow:hover {
    background: #123f3f;
}

.slider-arrow-left {
    margin-right: 16px;
}

.slider-arrow-right {
    margin-left: 16px;
}

.slider-dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dot.active {
    background: var(--primary-color, #1a5f5f);
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}