/* Modern Health Agent Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #2A9D8F;
    /* Teal - General Health */
    --secondary-color: #264653;
    /* Dark Blue/Green - Professional */
    --accent-color: #E9C46A;
    /* Gold - Warmth/Energy */

    /* Brand Specific Colors */
    --bemer-color: #F4A261;
    /* Orange-ish */
    --fitline-color: #E76F51;
    /* Red-ish */
    --doterra-color: #A5A58D;
    /* Earthy Green */

    /* Neutrals */
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --border-color: #E0E0E0;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: url('images/hero-bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Components */

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
    background-color: #238579;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Brand Buttons */
.btn-bemer {
    background-color: var(--bemer-color);
    color: white;
}

.btn-fitline {
    background-color: var(--fitline-color);
    color: white;
}

.btn-doterra {
    background-color: var(--doterra-color);
    color: white;
}

.btn-bemer:hover {
    background-color: #e78c4d;
    transform: translateY(-2px);
}

.btn-fitline:hover {
    background-color: #d65d3f;
    transform: translateY(-2px);
}

.btn-doterra:hover {
    background-color: #8f8f76;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.card h3 {
    margin-bottom: var(--spacing-xs);
}

.card p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-radius: 0 0 50% 50% / 40px;
    margin-bottom: var(--spacing-lg);
    background-size: cover;
    background-position: center;
    color: white;
    /* Default text color for heroes */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: white;
    /* Override for hero text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Specific Hero Backgrounds */
.hero-home {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-home.png');
    background-size: cover;
    background-position: center;
}

.hero-bemer {
    background: linear-gradient(rgba(244, 162, 97, 0.8), rgba(244, 162, 97, 0.6)), url('images/hero-bemer.png');
    background-size: cover;
    background-position: center;
}

.hero-fitline {
    background: linear-gradient(rgba(231, 111, 81, 0.8), rgba(231, 111, 81, 0.6)), url('images/hero-fitline.png');
    background-size: cover;
    background-position: center;
}

.hero-doterra {
    background: linear-gradient(rgba(165, 165, 141, 0.8), rgba(165, 165, 141, 0.6)), url('images/hero-doterra.png');
    background-size: cover;
    background-position: center;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer h3 {
    color: white;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Simple mobile hide for now, can enhance later */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--spacing-md) 0;
    }
}