/* ===== Apogee Health Systems — Public Website Styles ===== */

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

:root {
    --primary: #0D7C66;
    --primary-dark: #095C4B;
    --primary-light: #E8F5F0;
    --accent: #F4A300;
    --accent-light: #FFF3DC;
    --text: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --border: #E0E0E0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

/* --- Utility --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--off-white); }
.text-center { text-align: center; }
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #D98E00; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow); }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}
.header__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
}
.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}
.header__nav a:hover { color: var(--primary); }
.header__nav a:hover::after { width: 100%; }

/* Mobile menu toggle */
.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.header__toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.header__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__toggle.active span:nth-child(2) { opacity: 0; }
.header__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 60%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13,124,102,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__content { position: relative; z-index: 1; }
.hero__badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}
.hero__title {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero__title span { color: var(--primary); }
.hero__desc { font-size: 1.15rem; margin-bottom: 2rem; max-width: 500px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero__image img { width: 100%; height: 400px; object-fit: cover; }
.hero__image-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero__image-float-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}
.hero__image-float-text { font-size: 0.85rem; }
.hero__image-float-text strong { display: block; font-size: 1.1rem; color: var(--text); }

/* --- Stats Bar --- */
.stats {
    background: var(--primary);
    padding: 3rem 0;
    color: var(--white);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stats__item-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.stats__item-num { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.stats__item-label { font-size: 0.9rem; opacity: 0.85; margin-top: 0.25rem; }

/* --- Services --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; }

/* --- Why Choose Us --- */
.why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.why-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.why-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.why-card h4 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.why-card p { font-size: 0.9rem; margin-bottom: 0; }

/* --- CTA --- */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    color: var(--white);
    text-align: center;
}
.cta h2 { color: var(--white); margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta .btn--accent { font-size: 1.05rem; padding: 1rem 2.5rem; }

/* --- Contact Page --- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.contact-info__icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-info__text h4 { margin-bottom: 0.15rem; }
.contact-info__text p { margin-bottom: 0; font-size: 0.95rem; }
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,124,102,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Footer --- */
.footer {
    background: #1A2332;
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 1.5rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer__brand p { font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer__logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.footer__social a:hover { background: var(--primary); color: var(--white); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__desc { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__image { max-width: 500px; margin: 0 auto; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero__title { font-size: 2.25rem; }
    .header__nav { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
    }
    .header__nav.open { display: flex; }
    .header__toggle { display: flex; }
    .services__grid { grid-template-columns: 1fr; }
    .why__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer__grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 6rem 0 3rem; }
    .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.85rem; }
    .hero__actions { flex-direction: column; align-items: center; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .stats__item-num { font-size: 2rem; }
}
