/* 
* Saving Life Website - Main Stylesheet
* Modern, responsive design for health and wellness website
*/

/* ===== VARIABLES ===== */
:root {
    /* Color scheme */
    --primary: #2E8B57;     /* Sea Green - representing health and life */
    --primary-light: #5CAD85;
    --primary-dark: #1C6B44;
    --secondary: #F39237;   /* Soft Orange - warm and inviting */
    --accent: #3E885B;      /* Darker green for emphasis */
    --background: #FFFFFF;  /* White background for clean look */
    --background-alt: #F7F9F8; /* Light gray-green for alternate sections */
    --text: #333333;        /* Dark gray for main text */
    --text-light: #666666;  /* Lighter gray for secondary text */
    --text-white: #FFFFFF;  /* White text for dark backgrounds */
    --border: #E3E8E5;      /* Light border color */
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem for easier calculations */
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.6rem;
}

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

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

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

.btn-secondary:hover {
    background-color: #E07A1B; /* Darker orange */
    color: var(--text-white);
}

/* ===== LAYOUT ===== */
section {
    padding: 8rem 0;
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 50px;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 3rem;
}

.main-navigation a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

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

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: 8rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--text-white);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1, 
.hero p {
    color: var(--text-white);
}

.hero h1 {
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* ===== FEATURES SECTION ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
}

.feature-card h3 {
    margin-bottom: 1.5rem;
}

/* ===== ABOUT SECTION ===== */
.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-content .btn {
    margin-top: 1rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* ===== ENTERTAINMENT SECTION ===== */
.entertainment {
    background-color: var(--background-alt);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.entertainment-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.entertainment-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.resource-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.resource-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.resource-list a {
    color: var(--text);
    transition: color 0.3s ease;
}

.resource-list a:hover {
    color: var(--primary);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3,
.service-card p {
    padding: 0 2rem;
}

.service-card h3 {
    padding-top: 2rem;
}

.service-card p {
    padding-bottom: 2rem;
}

.services-cta {
    text-align: center;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--background-alt);
}

.testimonial-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 3rem;
    padding: 2rem 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-slide {
    min-width: 300px;
    flex: 1;
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    position: relative;
    padding-top: 2rem;
}

.testimonial-content::before {
    content: '"';
    font-size: 6rem;
    color: var(--primary-light);
    position: absolute;
    top: -2rem;
    left: -1rem;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.author-info p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    text-align: center;
    padding: 6rem 0;
}

.cta h2,
.cta p {
    color: var(--text-white);
}

.cta p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.8rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #1C2826;
    color: var(--text-white);
    padding-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 1.5rem;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--text-white);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-social a {
    color: #B8C2BE;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--text-white);
}

.footer-contact p {
    margin-bottom: 1rem;
    color: #B8C2BE;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #B8C2BE;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #B8C2BE;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 60%;
    }
    
    .feature-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .hero .container,
    .about .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content .btn {
        display: block;
        margin: 0 auto;
    }
    
    .entertainment-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .feature-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slide {
        min-width: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Mobile Navigation */
    .main-navigation ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-icon {
        display: block;
        position: relative;
        width: 24px;
        height: 2px;
        background-color: var(--text);
    }
    
    .menu-icon::before,
    .menu-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--text);
        transition: all 0.3s ease;
    }
    
    .menu-icon::before {
        top: -7px;
    }
    
    .menu-icon::after {
        bottom: -7px;
    }
    
    /* Mobile menu open state (will be toggled with JS) */
    .menu-open .main-navigation ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--background);
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
}

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

.feature-card,
.service-card,
.testimonial-slide {
    animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(2),
.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3),
.service-card:nth-child(3) {
    animation-delay: 0.4s;
}
