/* Guardian Home Healthcare - Styles */

/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
    /* Brand Colors - Matching the teal from their materials */
    --primary-color: #5DBAAE;
    --primary-dark: #4A9B90;
    --primary-light: #7FCDC3;
    --accent-color: #4D8C84;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========================================
   Utilities
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section--gray {
    background-color: var(--gray-50);
}

.section--teal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section__title--white {
    color: var(--white);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

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

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

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

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

.btn--white:hover {
    background-color: var(--gray-50);
    transform: translateY(-2px);
}

.btn--outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

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

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}

/* Logo - Larger and Sharper */
.nav__logo-img {
    width: 70px;
    height: 70px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav__logo-text {
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.85em;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--primary-dark);
    display: block;
    margin-top: 2px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav__link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
    position: relative;
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
}

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

.nav__link--cta:hover {
    background-color: var(--primary-dark);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 94px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(93, 186, 174, 0.85) 0%, rgba(77, 140, 132, 0.90) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 500;
}

.trust-badge svg {
    fill: var(--white);
}

.hero__image {
    position: relative;
}

.hero__card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__icon svg {
    stroke: var(--white);
}

.hero__card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.hero__card p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* ========================================
   Services Section
   ======================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card--featured {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
}

.service-card--featured .service-card__title,
.service-card--featured .service-card__description {
    color: var(--white);
}

.service-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card--featured .service-card__icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card__icon svg {
    stroke: var(--primary-color);
}

.service-card--featured .service-card__icon svg {
    stroke: var(--white);
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card__description {
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-card__features {
    list-style: none;
}

.service-card__features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.service-card--featured .service-card__features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.service-card__features li:last-child {
    border-bottom: none;
}

.service-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card--featured .service-card__features li::before {
    color: var(--white);
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.why-choose__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    position: relative;
    padding: 32px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card__number {
    position: absolute;
    top: -20px;
    left: 32px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.feature-card__title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    margin-top: 16px;
}

.feature-card__text {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about__description {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.about__features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
}

.about__feature svg {
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.about__card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    color: var(--white);
}

.about__card h3 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 12px;
}

.about__card p {
    font-size: 1.05rem;
    opacity: 0.95;
}

/* ========================================
   Contact Section
   ======================================== */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

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

.contact__item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__item-icon svg {
    stroke: var(--white);
}

.contact__item-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact__item-content p {
    color: var(--gray-600);
}

.contact__item-content a {
    color: var(--primary-color);
}

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

.contact__form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 186, 174, 0.2);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer__logo-img {
    width: 60px;
    height: 60px;
    filter: brightness(1.2);
}

.footer__logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer__description {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-light);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-300);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2.75rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__image {
        display: none;
    }

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

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

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

@media (max-width: 768px) {
    .nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav__list.active {
        display: flex;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .nav__logo-img {
        width: 55px;
        height: 55px;
    }

    .nav__logo-text {
        font-size: 1.1rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.875rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

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