/* ========== MODERN STYLES FOR COMFORTING HANDS HEALTHCARE ========== */
/* Theme Colors: Warm Orange (#f60) and Fresh Green (#a5c422) */

:root {
    --primary: #f60;
    --primary-dark: #e05a00;
    --primary-light: #ff8533;
    --secondary: #a5c422;
    --secondary-dark: #8aa81c;
    --secondary-light: #b8da3a;
    --dark: #1a2a3a;
    --gray-dark: #2c3e44;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ========== HERO SECTION WITH BACKGROUND IMAGES ========== */

/* ========== HERO SECTION WITH BACKGROUND IMAGES ========== */




body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(165, 196, 34, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.logo span span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}



/* Feature Cards */
.feature-cards {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.feature-card-content {
    padding: 28px;
    text-align: center;
}

.feature-card-content h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-card-content p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* About Section */
.about-section {
    background: var(--gray-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.about-text h2 span {
    color: var(--primary);
}

.about-text p {
    margin-bottom: 32px;
    color: var(--gray);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-top: 32px;
}

.profile-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-card h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-card p {
    color: var(--primary);
    margin: 0;
}

.about-image img {
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.services-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.services-image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
}

.services-image-grid img:hover {
    transform: scale(1.05);
}

.services-content {
    padding: 40px;
    color: var(--white);
}

.services-content h2 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 32px;
    line-height: 1.2;
}

.services-content h2 span {
    color: #ffda76;
}

.services-list {
    list-style: none;
}

.services-list li {
    margin-bottom: 24px;
}

.services-list a {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.services-list a:hover {
    transform: translateX(10px);
    color: #ffda76;
}

.services-list a::before {
    content: '→';
    font-size: 20px;
}

/* Why Choose Us Cards */
.choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.choose-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.choose-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.choose-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.choose-card-content {
    padding: 28px;
}

.choose-card-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.choose-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.choose-card p {
    color: var(--gray);
    margin-bottom: 24px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-info h5 {
    font-size: 14px;
    margin: 0;
}

/* Appointment Section */
.appointment-section {
    background: var(--gray-light);
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.appointment-image img {
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.appointment-form {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.appointment-form h2 {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: var(--gray);
}

/* Map Section */
.map-section iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wow {
    visibility: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 36px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .about-content,
    .appointment-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h3 {
        font-size: 16px;
    }
    
    .feature-cards {
        margin-top: -40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .services-content h2 {
        font-size: 36px;
    }
    
    .choose-grid {
        grid-template-columns: 1fr;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ========== FEATURE CARDS SECTION ========== */

.feature-cards {
    margin-top: 60px;
    position: relative;
    z-index: 10;
    padding: 0 0 60px 0;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.05);
}

.feature-card-content {
    padding: 28px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card-content h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.feature-card-content p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.6;
    flex: 1;
}

.feature-card-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    width: auto;
    margin-top: auto;
}

.feature-card-content .btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.feature-card-content .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

.feature-card-content .btn-secondary {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    padding: 10px 24px;
}

.feature-card-content .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.emergency-btn {
    font-size: 24px !important;
    font-weight: bold !important;
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.emergency-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545) !important;
}

/* Alternative using Bootstrap Grid (if you prefer) */
.feature-cards .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.feature-cards .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .feature-cards .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .feature-cards {
        margin-top: -40px;
        padding: 0 0 40px 0;
    }
    
    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-cards .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .feature-card-image {
        height: 200px;
    }
    
    .feature-card-content {
        padding: 20px;
    }
    
    .feature-card-content h4 {
        font-size: 20px;
    }
    
    .feature-card-content .btn-secondary {
        font-size: 20px !important;
    }
}

@media (max-width: 576px) {
    .feature-card-image {
        height: 180px;
    }
    
    .feature-card-content {
        padding: 18px;
    }
    
    .feature-card-content h4 {
        font-size: 18px;
    }
    
    .feature-card-content p {
        font-size: 14px;
    }
    
    .feature-card-content .btn-secondary {
        font-size: 18px !important;
        padding: 8px 20px;
    }
}