/* 
  SummitCare Services - Premium CSS Design System
  Design Philosophy: Modern, structured, trust-focused with soft visual tone
  Color Palette: Deep slate (#2C3E50), Soft teal (#4A90A4), White, Light neutral (#F8F9FA)
  Typography: Playfair Display (headlines), Inter (body)
  Spacing: 8px base unit, generous whitespace
*/

:root {
    --primary-dark: #2C3E50;
    --primary-teal: #4A90A4;
    --accent-light: #E8F2F7;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --border-light: #E0E0E0;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-teal);
}

.nav-phone {
    display: flex;
    align-items: center;
}

.phone-link {
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: var(--spacing-lg);
    color: var(--white);
}

.hero-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-light);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service-block {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-teal);
}

.service-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.service-block h3 {
    margin-bottom: var(--spacing-sm);
}

.service-block p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Value Section */
.value-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
}

.value-container {
    max-width: 1000px;
    margin: 0 auto;
}

.value-content h2 {
    margin-bottom: var(--spacing-xl);
}

.value-list {
    display: grid;
    gap: var(--spacing-lg);
}

.value-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.value-check {
    font-size: 1.5rem;
    color: var(--primary-teal);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-dark);
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Process Timeline */
.process {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--white);
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.timeline-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.timeline-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-teal);
    opacity: 0.3;
    margin-bottom: var(--spacing-md);
    font-family: 'Playfair Display', serif;
}

.timeline-item h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.timeline-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-connector {
    flex: 0.5;
    height: 2px;
    background-color: var(--primary-teal);
    opacity: 0.3;
    display: none;
}

@media (min-width: 768px) {
    .timeline-connector {
        display: block;
    }
}

/* Work Section */
.work {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-light);
}

.work-container {
    max-width: 1200px;
    margin: 0 auto;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 350px;
}

.work-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: var(--spacing-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.work-item:hover .work-caption {
    transform: translateY(0);
}

.work-caption h4 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.work-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
    color: var(--white);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
}

.cta-section .btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-form-section h2,
.contact-info-section h2 {
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px var(--spacing-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

.contact-info {
    display: grid;
    gap: var(--spacing-lg);
}

.info-block {
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-teal);
}

.info-block h4 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.info-block a {
    font-weight: 600;
    color: var(--primary-teal);
}

.info-block p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.map-container {
    margin-top: var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-direction: column;
    }

    .timeline-connector {
        display: none !important;
    }

    .work-gallery {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: var(--spacing-sm);
        flex-direction: column;
        gap: var(--spacing-sm);
    }

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

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-block,
.value-item,
.work-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}
