/* Reset and Base Styles */
:root {
    --primary-color: #008B8B;  /* Teal color from header */
    --secondary-color: #4B0082;  /* Deep purple */
    --accent-color: #FFA500;  /* Orange */
    --text-color: #333333;
    --light-gray: #F5F7FA;
    --white: #ffffff;
    
    /* Quick link colors - these are the only colors we'll use for services */
    --purple-btn: #800080;  /* Assessment Purple */
    --green-btn: #4CAF50;   /* Service Areas Green */
    --yellow-btn: #FFD700;  /* Referrals Yellow */
    --orange-btn: #FF6347;  /* Caregivers Orange */

    /* Service card colors */
    --service-purple: #9B59B6;  /* Purple for Skilled Nursing */
    --service-green: #2ECC71;   /* Green for Speech Therapy */
    --service-yellow: #F1C40F;  /* Yellow for Occupational */
    --service-red: #E74C3C;     /* Red for Physical Therapy */
    
    /* Footer color */
    --footer-teal: #008B8B;     /* Matching header teal */
}

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

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

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

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    padding: 10px 0;
    color: var(--white);
    width: 100%;
}

.contact-info {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
}

.logo img {
    height: 60px;
    animation: float 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 8px;
        z-index: 1001;
        min-width: 220px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 8px 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0,139,139,0.95), rgba(75,0,130,0.95)), url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wave-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

/* Quick Links Section */
.quick-links {
    padding: 50px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -50px;
}

.quick-link {
    padding: 30px;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Update Quick Links Section */
.quick-link.purple { 
    background-color: var(--purple-btn);
    background-image: linear-gradient(45deg, var(--purple-btn), #9932CC);
}
.quick-link.green { 
    background-color: var(--green-btn);
    background-image: linear-gradient(45deg, var(--green-btn), #45a049);
}
.quick-link.yellow { 
    background-color: var(--yellow-btn);
    background-image: linear-gradient(45deg, var(--yellow-btn), #FFA500);
}
.quick-link.orange { 
    background-color: var(--orange-btn);
    background-image: linear-gradient(45deg, var(--orange-btn), #FF4500);
}

/* Welcome Section */
.welcome {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.welcome-image img:hover {
    transform: scale(1.02);
}

.welcome-text {
    animation: fadeIn 1s ease-out;
}

.welcome-text h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.welcome-text h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Services Section with animations */
.services {
    padding: 100px 0;
    text-align: center;
    background-color: var(--white);
    overflow: hidden;
}

.services h2 {
    animation: fadeInUp 0.6s ease-out forwards;
}

.services h3 {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.services > .container > p {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

/* Service items with enhanced effects */
.service-item, .service-icon-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.service-item::before, .service-icon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-item:hover, .service-icon-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover::before, .service-icon-item:hover::before {
    transform: translateX(100%);
}

/* Icon animations and effects */
.service-item i, .service-icon-item i {
    font-size: 2.5em;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    position: relative;
}

.service-item:hover i, .service-icon-item:hover i {
    animation: floatIcon 2s ease-in-out infinite;
    transform-origin: center;
    filter: brightness(1.1);  /* Make icons slightly brighter on hover */
}

/* Specific hover effects for different services */
.service-item:nth-child(1):hover i {
    animation: pulse 1.5s ease-in-out infinite;
}

.service-item:nth-child(2):hover i {
    animation: rotateIcon 2s linear infinite;
}

.service-item:nth-child(3):hover i {
    animation: floatIcon 2s ease-in-out infinite;
}

.service-item:nth-child(4):hover i {
    animation: pulse 2s ease-in-out infinite;
}

/* Text effect on hover */
.service-item h4, .service-icon-item h4 {
    position: relative;
    transition: all 0.3s ease;
}

.service-item:hover h4, .service-icon-item:hover h4 {
    transform: scale(1.05);
    font-weight: 700;
}

/* Staggered animation for grid items */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.services-grid .service-item:nth-child(1) { animation-delay: 0.6s; }
.services-grid .service-item:nth-child(2) { animation-delay: 0.8s; }
.services-grid .service-item:nth-child(3) { animation-delay: 1.0s; }
.services-grid .service-item:nth-child(4) { animation-delay: 1.2s; }

.services-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.services-icon-grid .service-icon-item:nth-child(1) { animation-delay: 1.4s; }
.services-icon-grid .service-icon-item:nth-child(2) { animation-delay: 1.6s; }
.services-icon-grid .service-icon-item:nth-child(3) { animation-delay: 1.8s; }
.services-icon-grid .service-icon-item:nth-child(4) { animation-delay: 2.0s; }
.services-icon-grid .service-icon-item:nth-child(5) { animation-delay: 2.2s; }
.services-icon-grid .service-icon-item:nth-child(6) { animation-delay: 2.4s; }
.services-icon-grid .service-icon-item:nth-child(7) { animation-delay: 2.6s; }

/* Interactive shadow effect */
.service-item::after, .service-icon-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-item:hover::after, .service-icon-item:hover::after {
    opacity: 1;
}

/* Mission Statement */
.mission {
    padding: 100px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.mission h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mission h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.mission-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* Footer */
footer {
    background-color: var(--footer-teal);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-info {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 200px;
}

.contact-item i {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.contact-item p {
    color: var(--white);
    opacity: 0.9;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom nav {
    margin-bottom: 20px;
}

.footer-bottom nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-bottom nav a:hover {
    opacity: 1;
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-info {
        gap: 30px;
    }

    .contact-item {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-info {
        justify-content: space-between;
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-info {
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact-item {
        min-width: 45%;
    }
}

@media (max-width: 480px) {
    .contact-item {
        min-width: 100%;
    }

    .footer-bottom nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-bottom nav a {
        margin: 5px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
    }
    
    .welcome-content,
    .mission-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content,
    .footer-info {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Would need JavaScript for mobile menu */
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .services-grid,
    .services-icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-item {
        text-align: left;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        font-size: 20px;
    }

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

    .container {
        padding: 0 15px;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-bottom nav a {
        margin: 5px;
    }

    .services-icon-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .section {
        padding: 60px 0;
    }

    .welcome-text h3 {
        font-size: 2em;
    }

    .services h3 {
        font-size: 2em;
    }

    .mission h3 {
        font-size: 2em;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (forced-colors: active) {
    .logo-icon,
    .quick-link,
    .service-item,
    .mission-card {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .hero {
        background: none;
        color: #000;
    }

    .quick-links,
    .footer-bottom nav,
    .social-links,
    .cta-button {
        display: none;
    }

    * {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text small {
    font-size: 16px;
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-text span {
        font-size: 20px;
    }
    
    .logo-text small {
        font-size: 14px;
    }
    
    .logo-image {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-item,
    .service-icon-item,
    .services h2,
    .services h3,
    .services p {
        animation: none !important;
        transform: none !important;
    }
    
    .service-item:hover,
    .service-icon-item:hover {
        transform: none !important;
    }
    
    .service-item i:hover,
    .service-icon-item i:hover {
        animation: none !important;
    }
} 

/* Service icon colors - Main services */
.service-item:nth-child(1) i {
    color: #008B8B;  /* Teal for Skilled Nursing */
}

.service-item:nth-child(2) i {
    color: #800080;  /* Purple for Speech Therapy */
}

.service-item:nth-child(3) i {
    color: #4CAF50;  /* Green for Occupational Therapy */
}

.service-item:nth-child(4) i {
    color: #FFD700;  /* Yellow/Gold for Physical Therapy */
}

/* Additional service icon colors */
.service-icon-item:nth-child(1) i {
    color: #008B8B;  /* Teal for Companionship */
}

.service-icon-item:nth-child(2) i {
    color: #800080;  /* Purple for Personal Hygiene */
}

.service-icon-item:nth-child(3) i {
    color: #4CAF50;  /* Green for Dementia Care */
}

.service-icon-item:nth-child(4) i {
    color: #FFD700;  /* Yellow/Gold for Veterans Care */
}

.service-icon-item:nth-child(5) i {
    color: #008B8B;  /* Teal for Personal Care */
}

.service-icon-item:nth-child(6) i {
    color: #800080;  /* Purple for Respite Care */
}

.service-icon-item:nth-child(7) i {
    color: #4CAF50;  /* Green for Mobility Assistance */
} 

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
    }
} 