/*
 * Stylesheet for Safa Health Care LLC website
 *
 * This file defines a soft, healthcare‑focused colour palette and
 * responsive layout rules for the multi‑page site. Sections
 * are spaced generously and cards use subtle shadows and
 * rounded corners to create a modern yet welcoming feel.
 */

:root {
    /* Primary and secondary hues are gentle teal and green tones
       that evoke healing and wellbeing. */
    --primary: #76c7c0;
    --secondary: #a8d5ba;
    --accent: #00897b;
    --light: #f4fdfc;
    --dark: #263238;
    --text: #37474f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* Header styles */
header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    line-height: 1.2;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    width: 50px;
    margin-right: 0.5rem;
}

nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

nav a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Hero section with background image and light overlay */
.hero {
    position: relative;
    background: url('../images/hero.png') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* A semi‑transparent white overlay softens the dark hero image */
    background: rgba(255, 255, 255, 0.8);
}

.hero .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero h1 {
    margin-top: 0;
    font-size: 2.5rem;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Button styling used throughout the site */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #00695c;
}

/* Section styling */
.section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Paragraph text in preview sections */
.about-preview p,
.eligibility-preview p,
.contact-preview p,
.services-preview p {
    max-width: 800px;
    margin: 0.5rem auto;
    font-size: 1.1rem;
}

/* Grid for service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.service-card h3 {
    margin-top: 0;
    color: var(--accent);
}

.service-card p {
    color: var(--text);
}

/* Footer styling */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
}

footer p {
    margin: 0;
}

/* Contact page */
.contact-info p {
    margin: 0.3rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin: 0.5rem 0 0.2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 1rem;
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav a {
        margin-left: 0.5rem;
        font-size: 0.9rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero .content {
        padding: 1.5rem;
    }
}