/* ========================================
   HealthCraft Website - Modern Professional Styles
   Semi-Corporate Design with Strategic Brand Color Usage
   ======================================== */

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

:root {
    /* Brand Red Color Palette */
    --brand-red: #eb0043;              /* Primary brand red */
    --brand-red-dark: #c20038;         /* Darker shade (80%) */
    --brand-red-darker: #99002d;       /* Darkest shade (60%) */
    --brand-red-light: #ef4d76;        /* Lighter tint */
    --brand-red-lighter: #f799b1;      /* Very light tint */
    --brand-red-subtle: #fce5ea;       /* Subtle background tint */
    
    /* Professional Neutral Colors */
    --heading-color: #2c3e50;          /* Professional dark blue-gray for headings */
    --text-color: #4a5568;             /* Softer text color */
    --text-light: #718096;             /* Light text for secondary content */
    --border-color: #e2e8f0;           /* Subtle borders */
    --background-gray: #f7fafc;        /* Very light background */
    --background-white: #ffffff;
    
    /* Accent Colors */
    --accent-gold: #d4a574;            /* Muted gold accent */
    --success-color: #48bb78;
    --error-color: #f56565;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Reduced sizes for professional look */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    color: var(--heading-color);  /* Changed from red to professional dark gray */
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.875rem;  /* Reduced from 2.5rem (30px) */
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;    /* Reduced from 2rem (24px) */
}

h3 {
    font-size: 1.25rem;   /* Reduced from 1.75rem (20px) */
}

h4 {
    font-size: 1.125rem;  /* Reduced from 1.5rem (18px) */
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

/* Container - More breathing room */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Clean and minimal */
.header {
    background-color: var(--background-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    height: 50px;  /* Slightly reduced for cleaner look */
}

/* Navigation - Subtle and professional */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 0.9375rem;  /* 15px - slightly smaller */
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition-fast);
    color: var(--text-color);
}

.nav-menu li a:hover {
    background-color: var(--brand-red-subtle);
    color: var(--brand-red);
}

.nav-menu li a.active {
    background-color: var(--brand-red);
    color: var(--background-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-red);
}

/* Hero Section - Modern and clean with subtle gradient */
.hero {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: var(--background-white);
    padding: 5rem 0 6rem;
    text-align: center;
}

.hero h1 {
    color: var(--background-white);
    font-size: 2.25rem;      /* Reduced from 3rem (36px) */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.125rem;     /* Reduced from 1.3rem (18px) */
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    opacity: 0.95;
}

/* Buttons - Clean and modern */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--accent-gold);
    color: var(--background-white);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;    /* 15px - slightly smaller */
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn:hover {
    background-color: #c59563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

/* Main Content - More white space */
.main-content {
    padding: 5rem 0;
    min-height: 60vh;
}

/* Section Styling - Clean and spacious */
.section {
    margin-bottom: 5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    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(--brand-red);
    border-radius: 2px;
}

/* News Grid - Clean card design */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.news-card {
    background-color: var(--background-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-red-lighter);
}

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

.news-card-content {
    padding: 2rem;
}

.news-card h3 {
    font-size: 1.125rem;    /* Reduced from 1.3rem */
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.read-more {
    color: var(--brand-red);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--brand-red-dark);
}

/* Content Box - Subtle accent */
.content-box {
    background-color: var(--background-gray);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--brand-red);
}

/* Services Section - Professional card grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background-color: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-red-lighter);
}

.service-icon {
    font-size: 2.5rem;      /* Reduced from 3rem */
    color: var(--brand-red);
    margin-bottom: 1.25rem;
}

/* Contact Form - Clean and professional */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    background-color: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px var(--brand-red-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.9375rem;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Contact Info - Clean cards */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.contact-card {
    background-color: var(--background-gray);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 2.25rem;     /* Reduced from 2.5rem */
    color: var(--brand-red);
    margin-bottom: 1rem;
}

/* Footer - Professional with subtle branding */
.footer {
    background-color: var(--heading-color);
    color: var(--background-white);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 5rem;
    border-top: 3px solid var(--brand-red);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    font-size: 0.9375rem;
}

.footer-links a {
    color: var(--background-white);
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--background-white);
    opacity: 1;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(235, 0, 67, 0.2);
    border-radius: 50%;
    border-top-color: var(--brand-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design - Maintains cleanliness on mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 1.0625rem;
    }

    .main-content {
        padding: 3.5rem 0;
    }

    .news-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .main-content {
        padding: 2.5rem 0;
    }

    .section {
        margin-bottom: 3rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .news-card-content,
    .service-card {
        padding: 1.75rem;
    }
}

/* Accessibility */
.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;
}

/* Print Styles */
@media print {
    .header,
    .nav-menu,
    .menu-toggle,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .main-content {
        padding: 0;
    }
}
