/* ============================================================================
   ELDERASSIST MARKETING WEBSITE - COMPONENT STYLES
   Reusable UI components (buttons, cards, navigation, etc.)
   ============================================================================ */

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

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

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

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* ========== CARDS ========== */
.card {
    background-color: white;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.feature-card {
    background-color: white;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card h3 {
    min-height: 2.5em;  /* Reserve space for 2 lines of title */
}

.feature-card > p {
    flex: 1;  /* Body text takes remaining space */
}

.feature-card > a {
    margin-top: auto;  /* Push button to bottom */
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

/* .feature-icon styles are defined in theme files (theme-english-international.css, theme-thai.css) */

/* ========== NAVIGATION ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: white;
    border-bottom: var(--border-width) solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0 20px;
}

.nav-link {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primary);
}

/* ========== HERO SECTION ========== */
.hero {
    padding: var(--spacing-5xl) 0;
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-6xl);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ========== IMAGE PLACEHOLDERS ========== */
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5EDE5;          /* Warm light tan */
    color: #6D4C41;                     /* Warm brown */
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    text-align: center;
    border-radius: var(--border-radius);
}

.placeholder-hero {
    aspect-ratio: 16 / 9;
    max-height: 500px;
}

.placeholder-feature {
    aspect-ratio: 4 / 3;
}

.placeholder-mobile {
    aspect-ratio: 9 / 16;
    max-height: 600px;
}

.placeholder-avatar {
    aspect-ratio: 1 / 1;
    width: 100px;
    border-radius: var(--border-radius-full);
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--color-background-alt);
    border-top: var(--border-width) solid var(--color-border);
    padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
}

.footer-content {
    text-align: center;
    padding-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-links-row a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links-row a:hover {
    color: var(--color-primary);
}

.footer-separator {
    color: var(--color-text-muted);
    margin: 0 var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: var(--border-width) solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.footer-selectors {
    margin-top: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-selectors select {
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* ========== STATS DISPLAY ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .nav-menu {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}
