/* CSS Custom Properties (Variables) for Easy Theming */
/* Updated for dark pink theme */
:root {
    --primary-color: #e75480; /* Dark pink for the main theme */
    --secondary-color: #ff69b4; /* Lighter pink for accents */
    --light-bg: #f8f9fa;
    --white: #fff;
    --text-dark: #333;
    --text-light: #666;
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* Fallback to system fonts for speed */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header and Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    /* Styles for the logo container */
    font-size: 1.8rem; /* This was for text; it can be removed if not needed */
    font-weight: bold;
    color: var(--primary-color); /* Updated to dark pink */
}

.logo img {
    /* Styles for the logo image */
    width: 150px; /* Adjust based on your logo size */
    height: auto;
    border-radius: 5px; /* Optional: Add rounding if the logo is square */
    box-shadow: var(--shadow); /* Add a shadow to match the theme */
    transition: var(--transition); /* Smooth transitions for hover effects */
    border: 2px solid var(--primary-color); /* Border using the dark pink color */
}

.logo img:hover {
    transform: scale(1.05); /* Slight zoom on hover for interactivity */
    box-shadow: 0 6px 15px rgba(231, 84, 128, 0.2); /* Enhanced shadow with dark pink tint */
}

/* If your logo is an SVG, you can add SVG-specific styles here (e.g., to change colors dynamically) */
/* Example for SVG logos: */
/* .logo svg { fill: var(--primary-color); } /* Uncomment and adjust if applicable */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-color); /* Updated to dark pink */
    background: var(--light-bg);
    outline: 2px solid var(--primary-color); /* Accessibility focus */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section (Primarily for Home Page, but Reusable) */
.hero {
    background: linear-gradient(rgba(231, 84, 128, 0.8), rgba(231, 84, 128, 0.8)),  /* Updated gradient to dark pink */
                url('../img/hero-bg.jpg') center/cover no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect on desktop */
    color: var(--white);
    text-align: center;
    padding: 150px 2rem 100px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2); /* Overlay for better text readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--white);
    color: var(--primary-color); /* Updated to dark pink */
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.cta-button:hover,
.cta-button:focus {
    background: #e9ecef;
    transform: translateY(-2px);
    outline: 2px solid var(--primary-color); /* Updated to dark pink */
}

/* General Sections */
.section {
    padding: 4rem 0;
    background: var(--white);
}

.section:nth-child(even) {
    background: var(--light-bg); /* Alternating backgrounds for visual separation */
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color); /* Updated to dark pink */
}

.section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

/* Grid and Cards (Used in Services, Specialties, Team, etc.) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%; /* Equal height cards */
}

.card:hover,
.card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color); /* Updated to dark pink */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Testimonials Carousel (Home Page) */
.testimonials {
    background: var(--light-bg);
    text-align: center;
}

.carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 2rem;
    opacity: 0.7;
    transition: opacity 0.5s ease;
    background: var(--white);
}

.testimonial.active {
    opacity: 1;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.testimonial cite {
    font-weight: bold;
    color: var(--primary-color); /* Updated to dark pink */
}

/* Team Grid (About Page Specific) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 1rem;
}

/* Forms (Appointment and Contact Pages) */
form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color); /* Updated to dark pink */
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary-color); /* Updated to dark pink */
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(231, 84, 128, 0.3); /* Updated shadow to dark pink */
}

form input:invalid,
form select:invalid,
form textarea:invalid {
    border-color: #dc3545;
}

form button {
    background: var(--primary-color); /* Updated to dark pink */
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    transition: var(--transition);
}

form button:hover,
form button:focus {
    background: var(--secondary-color); /* Updated to secondary pink */
    transform: translateY(-2px);
}

/* Google Map (Contact Page) */
#map {
    height: 400px;
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: none;
}

/* Blog Previews (Blog Page) */
.blog-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-preview:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.blog-preview img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    color: var(--primary-color); /* Updated to dark pink */
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.blog-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.read-more {
    color: var(--primary-color); /* Updated to dark pink */
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.read-more:hover {
    border-bottom-color: var(--primary-color);
}

/* Footer */
footer {
    background: #333;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer a {
    color: var(--primary-color); /* Updated to dark pink */
    transition: var(--transition);
}

footer a:hover {
    text-decoration: underline;
}

/* Contact Page Specific Styles */
/* Section Padding for Contact Page */
.section-padding {
    padding: 4rem 0;
    background: var(--white);
}

/* Main Heading and Intro Paragraph */
.section-padding h1 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color); /* Updated to dark pink */
    margin-bottom: 1rem;
}

.section-padding > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.info-box h3 {
    font-size: 1.5rem;
    color: var(--primary-color); /* Updated to dark pink */
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.info-box p:first-of-type {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.info-box p:nth-of-type(1) {
    color: #D32F2F; /* Emergency red - unchanged */
}

.info-box p:nth-of-type(3) { /* Assuming order: emergency, general, visiting */
    color: var(--secondary-color); /* Updated to secondary pink */
}

.info-box p:nth-of-type(5) {
    color: var(--primary-color); /* Updated to dark pink */
}

/* Location Heading */
.section-padding h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color); /* Updated to dark pink */
    margin: 3rem 0 2rem;
}

/* Map Embed */
.map-embed {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--border-radius);
}

/* Form Container (Enhances Base Form Styles) */
.form-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color); /* Updated to dark pink */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color); /* Updated to dark pink */
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(231, 84, 128, 0.3); /* Updated shadow to dark pink */
}

.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.submit-btn {
    background: var(--primary-color); /* Updated to dark pink */
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    transition: var(--transition);
}

.submit-btn:hover,
.submit-btn:focus {
    background: var(--secondary-color); /* Updated to secondary pink */
    transform: translateY(-2px);
    outline: 2px solid var(--primary-color);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
    }

    .logo img {
        width: 120px; /* Adjust logo size for mobile */
    }   
}


