/* --- Variables & Reset --- */
:root {
    --primary-color: #004d40; /* Dark Teal / Forest Green for Health */
    --secondary-color: #e8f5e9; /* Very Light Green */
    --accent-color: #ff9800; /* Orange/Gold for contrast */
    --text-color: #333;
    --light-text-color: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

.section-padding {
    padding: 4rem 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-text-color);
    letter-spacing: 2px;
}

.group-text {
    color: var(--accent-color);
    font-weight: 400;
    font-size: 1.2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--light-text-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- Hero Section (Home) --- */
#hero {
    background: url('placeholder_hero.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 8rem 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    background-blend-mode: multiply;
}

#hero h1 {
    font-size: 3.5rem;
    color: var(--light-text-color);
}

#hero p {
    font-size: 1.3rem;
    margin: 1rem 0 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ffb74d; /* Lighter accent */
}

/* --- Hakim Bio --- */
.hakim-bio {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 3rem;
}

.hakim-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    flex-shrink: 0;
}

.bio-text {
    flex-grow: 1;
}

.bio-text em {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* --- Philosophy Cards --- */
#philosophy {
    background-color: var(--secondary-color);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: center;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
}

.card h4 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Services Page --- */
.intro-text {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.treatment-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.treatment-item h3 {
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

#unani-tibb {
    padding: 2rem;
    background-color: #fff;
    border-left: 5px solid var(--accent-color);
}

#unani-tibb ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 10px;
    margin-bottom: 2rem;
}

/* --- Contact Page --- */
.contact-layout {
    display: flex;
    gap: 50px;
}

#appointment-form {
    flex: 2;
}

#clinic-info {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    align-self: flex-start;
}

#clinic-info h2 {
    text-align: left;
    transform: none;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

.advice {
    margin-top: 2rem;
    padding: 10px;
    background-color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
}

/* Form Styles */
.contact-form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}


/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .hakim-bio {
        flex-direction: column;
        text-align: center;
    }
    .hakim-img {
        margin-bottom: 1.5rem;
    }
    .contact-layout {
        flex-direction: column;
    }
    #clinic-info {
        order: -1; /* Puts info above the form on small screens */
    }
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 1rem;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .section-padding {
        padding: 2rem 0;
    }
}