/* style.css */
:root {
  --primary-blue: #2d6a8c;
  --primary-green: #6bc3a3; /* Sampled from logo */
  --dark-text: #003366;
  --light-bg: #f4f7f6;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --text-primary: #333;
  --text-secondary: #555;
  --font-family: 'Roboto', sans-serif;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    color: var(--dark-text);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--white);
    min-height: 60px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem; 
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text);
}

.logo-img {
    height: 125px; 
    width: auto;
    transition: all 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    font-size: 1.25rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(170deg, var(--light-bg), var(--white));
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* --- For Caregivers Section --- */
.for-caregivers-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* --- How It Works Section --- */
.how-it-works-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.step-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    border-top: 4px solid var(--primary-blue);
}

.step-card .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: var(--white);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 3px solid var(--light-bg);
}

.step-card h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* --- Ethics Section --- */
.ethics-section {
    padding: 5rem 0;
}

.ethics-section .section-subtitle {
    font-style: italic;
    font-weight: 500;
}

.ethics-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.ethic-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.ethic-item h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-text);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

.main-footer a {
    color: var(--white);
    text-decoration: underline;
}
.main-footer p {
    margin-bottom: 0.5rem;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .ethics-points, .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links, .main-nav .btn-secondary {
        display: none; /* Simple hiding for mobile. A JS solution would create a hamburger menu. */
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: center; /* Center the logo when nav links are hidden */
    }

    .main-header.hidden {
        transform: translateY(-100%);
    }
}