/* ===================================
   Twenty First Century Solutions Home Health
   Clean Minimalist — Teal + Slate Grey
   =================================== */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: var(--teal-700);
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 1px;
}

.logo-mark::before {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-mark::after {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-800);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--slate-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-top: -2px;
}

/* ---------- Navigation ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--slate-700);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: var(--slate-700);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--slate-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-600);
    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--teal-700);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    color: var(--teal-700) !important;
    border: 1px solid var(--teal-200);
    padding: 8px 20px;
    border-radius: 100px;
    transition: all var(--transition) !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    background: var(--teal-700);
    color: var(--white) !important;
    border-color: var(--teal-700);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--slate-900);
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(15, 118, 110, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 24px;
    max-width: 540px;
}

.hero-headline em {
    color: var(--teal-300);
    font-style: italic;
}

.hero-desc {
    font-size: 1rem;
    color: var(--slate-400);
    max-width: 440px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--teal-500);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-300);
    border: 1px solid var(--slate-600);
}

.btn-ghost:hover {
    border-color: var(--teal-400);
    color: var(--teal-300);
}

.btn-icon {
    display: flex;
    align-items: center;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 6/7;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--teal-700);
    border-radius: 16px;
    z-index: -1;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--slate-500);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--slate-500), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Section Shared ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--slate-800);
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-line {
    width: 48px;
    height: 1px;
    background: var(--teal-400);
    margin: 0 auto;
}

/* ---------- Services ---------- */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal-500);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--teal-200);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--teal-50);
    color: var(--teal-700);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--teal-700);
    color: var(--white);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--slate-50);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: 12px;
}

.about-accent-box {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--teal-700);
    padding: 24px 32px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.about-accent-box .accent-number {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1;
}

.about-accent-box .accent-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-200);
}

.about-content .section-eyebrow {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-line {
    margin: 0;
}

.about-text {
    font-size: 0.95rem;
    color: var(--slate-500);
    margin-top: 24px;
    line-height: 1.8;
}

.about-values {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.value-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--slate-700);
}

.value-line {
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

/* ---------- Approach ---------- */
.approach {
    padding: 120px 0;
    background: var(--white);
}

.approach-inner {
    max-width: 960px;
    margin: 0 auto;
}

.approach-header {
    text-align: center;
    margin-bottom: 64px;
}

.approach-header .section-eyebrow {
    text-align: center;
}

.approach-header .section-title {
    text-align: center;
}

.approach-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.approach-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--slate-200);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 12px;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--teal-600);
    margin-bottom: 16px;
    display: block;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.step-connector {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-connector::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--teal-400);
}

/* ---------- Community ---------- */
.community {
    padding: 120px 0;
    background: var(--slate-50);
}

.community-inner {
    max-width: 900px;
    margin: 0 auto;
}

.community-content .section-eyebrow {
    text-align: left;
}

.community-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.community-content .section-line {
    margin: 0;
}

.community-desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.8;
    margin-top: 24px;
    margin-bottom: 48px;
}

.community-map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.community-map img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--slate-700);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.map-pin {
    color: var(--teal-600);
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-eyebrow {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info .section-line {
    margin: 0;
}

.contact-text {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.8;
    margin-top: 24px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--teal-50);
    color: var(--teal-700);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.contact-item a:hover .contact-value {
    color: var(--teal-700);
}

/* Form */
.contact-form-wrap {
    background: var(--slate-50);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--slate-100);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--slate-800);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-400);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-300);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success .success-icon {
    color: var(--teal-600);
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--slate-900);
    padding: 80px 0 0;
    color: var(--slate-400);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-sub {
    color: var(--slate-500);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate-300);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--slate-500);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-phone,
.footer-email {
    display: block;
    font-size: 0.9rem;
    color: var(--slate-400);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--teal-400);
}

.footer-address {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-top: 8px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--slate-600);
}

/* ---------- Mobile Nav Overlay ---------- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1rem;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-headline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content .section-title,
    .about-content .section-eyebrow {
        text-align: center;
    }

    .about-content .section-line {
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info .section-title,
    .contact-info .section-eyebrow {
        text-align: center;
    }

    .contact-info .section-line {
        margin: 0 auto;
    }

    .contact-text {
        text-align: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .approach-steps {
        flex-direction: column;
        gap: 32px;
    }

    .approach-steps::before {
        display: none;
    }

    .step-connector {
        display: none;
    }

    .about-accent-box {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        display: inline-flex;
    }

    .about-image-wrap img {
        height: 400px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
