/*
Theme Name: Dr Sandipan Nayek Theme
Author: Your Name
Description: Custom theme for Dr. Sandipan Nayek based on provided colors and content.
Version: 1.0
*/

:root {
    --dark-green: #2F6B3F;
    --light-green: #7FB77E;
    --yellow: #F7C85C;
    --cream: #FFF6C0;
    --text-color: #333333;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 { color: var(--dark-green); margin-bottom: 15px; }
a { text-decoration: none; color: var(--dark-green); }
a:hover { color: var(--light-green); }

/* Layout Utilities */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 20px 0; }
.btn { display: inline-block; background-color: var(--yellow); color: var(--text-color); padding: 10px 25px; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.btn:hover { background-color: var(--dark-green); color: var(--white); }
.btn-outline { display: inline-block; border: 2px solid var(--dark-green); color: var(--dark-green); padding: 10px 25px; border-radius: 5px; font-weight: bold; }
.btn-outline:hover { background-color: var(--dark-green); color: var(--white); }

/* Header CSS Removed to prevent Tailwind conflicts */

/* Hero Section */
.hero { background-color: var(--cream); padding: 80px 20px; text-align: center; border-bottom: 5px solid var(--light-green); }
.hero h1 { font-size: 40px; color: var(--dark-green); }
.hero h2 { font-size: 20px; color: var(--text-color); font-weight: normal; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }

/* Sections */
section { padding: 60px 20px; }
.bg-light { background-color: #f9f9f9; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 40px; position: relative; }
.section-title::after { content: ''; width: 60px; height: 3px; background: var(--yellow); display: block; margin: 10px auto; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Cards */
.card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--light-green); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--dark-green); }
.card h3 { color: var(--dark-green); }
.card ul { padding-left: 20px; }
.card ul li { margin-bottom: 10px; }

/* Footer CSS Removed to prevent Tailwind conflicts */

/* --- NEW ANIMATIONS & LAYOUT ENHANCEMENTS --- */

/* Hero Section V2 */
.hero-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; text-align: left; }
.hero-content { flex: 1; min-width: 300px; }
.hero-content h1 { font-size: 48px; line-height: 1.2; margin-bottom: 10px; }
.hero-content .hero-buttons { justify-content: flex-start; }
.hero-image { flex: 1; min-width: 300px; text-align: center; position: relative; }
.hero-image img { max-width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 8px solid var(--white); animation: float 6s ease-in-out infinite; }

/* About Section V2 */
.about-wrapper { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-img { flex: 1; min-width: 300px; position: relative; }
.about-img img { width: 100%; border-radius: 15px; box-shadow: -20px 20px 0 var(--yellow); }
.about-content { flex: 1.5; min-width: 300px; }

/* Service Cards with Images */
.service-card { text-align: center; overflow: hidden; position: relative; padding-top: 0; display: flex; flex-direction: column; }
.service-card .card-img { width: calc(100% + 60px); margin: 0 -30px 20px -30px; height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .card-img { transform: scale(1.08); }
.service-icon { font-size: 40px; color: var(--dark-green); margin-bottom: 15px; background: var(--cream); width: 80px; height: 80px; line-height: 80px; border-radius: 50%; display: inline-block; margin-top: -60px; position: relative; z-index: 2; border: 4px solid var(--white); }

/* Parallax Section (Why Choose Us) */
.parallax-section { background: linear-gradient(rgba(47, 107, 63, 0.85), rgba(47, 107, 63, 0.85)), url('http://www.drsandipannayekpsychiatrist.com/wp-content/uploads/2026/04/Dr.-Sandipan-Nayek-15.jpeg') no-repeat center center; background-size: cover; background-attachment: fixed; color: var(--white); padding: 80px 20px; border-radius: 10px; margin: 40px auto; }
.parallax-section h2 { color: var(--yellow); }
.parallax-section h3 { color: var(--white); font-size: 36px; margin-bottom: 5px; }

/* Location Cards */
.location-img { width: 100%; height: 250px; object-fit: cover; border-radius: 5px; margin-bottom: 15px; }

/* Keyframes & Scroll Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.reveal { opacity: 0; transform: translateY(60px); transition: all 0.8s ease-in-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 0.8s ease-in-out; }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(60px); transition: all 0.8s ease-in-out; }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* --- FOOTER ALIGNMENT FIXES (DESKTOP) --- */
footer .grid > div,
footer .grid > div * {
    text-align: left !important;
}
footer .grid > div .flex {
    justify-content: flex-start !important;
}

/* --- CONTACT FORM 7 SIZING FIXES --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    padding: 10px 15px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
    max-width: 100% !important;
}
.wpcf7 textarea {
    height: 120px !important;
}
.wpcf7 input[type="submit"] {
    width: auto !important;
    min-width: 200px !important;
    padding: 12px 35px !important;
    font-size: 15px !important;
    display: inline-block !important;
    margin-top: 10px !important;
}

/* ========================================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ======================================================== */
@media screen and (max-width: 768px) {
    /* Adjust Headings for Mobile */
    .hero-content h1, 
    .hero h1 {
        font-size: 32px !important;
    }
    .parallax-section h3 {
        font-size: 26px !important;
    }
    .section-title {
        font-size: 28px !important;
    }

    /* Adjust Layout & Wrapping */
    .hero-wrapper, 
    .about-wrapper {
        flex-direction: column;
        text-align: center !important;
    }
    .hero-content .hero-buttons {
        justify-content: center !important;
    }
    
    /* Modify Shadows for mobile */
    .about-img img {
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    }

    /* Padding adjustments for smaller screens */
    section {
        padding: 40px 15px !important;
    }
    .parallax-section {
        padding: 50px 15px !important;
    }
    .container {
        width: 100%;
        padding: 15px;
    }

    /* Fix Footer alignment for Mobile (Center stacked) */
    footer .grid > div,
    footer .grid > div * {
        text-align: center !important;
    }
    footer .grid > div .flex {
        justify-content: center !important;
    }

    /* Make buttons full width on mobile */
    .wpcf7 input[type="submit"], 
    .btn, 
    .btn-outline {
        width: 100% !important;
        display: block !important;
    }
}