/*
Theme Name: Hoaihel Mom
Theme URI: https://hoaihel.mom
Author: Hoài Hẻl Team
Author URI: https://hoaihel.mom
Description: Theme tối giản định hướng phụ huynh với checklist và nội dung nuôi dạy đặc biệt.
Version: 0.1.0
Text Domain: hoaihel-mom
*/

:root {
    --hhm-bg: #fef8f3;
    --hhm-primary: #f25f5c;
    --hhm-secondary: #35605a;
    --hhm-muted: #f9e1d9;
    --hhm-dark: #1f2329;
    --hhm-radius: 20px;
    --hhm-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--hhm-font);
    background: var(--hhm-bg);
    color: var(--hhm-dark);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.hhm-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.hhm-section {
    padding: 4rem 0;
}

.hhm-card {
    background: #fff;
    border-radius: var(--hhm-radius);
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(20, 30, 50, 0.08);
}

.hhm-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hhm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .9rem 1.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hhm-button--primary {
    background: var(--hhm-primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(242, 95, 92, .35);
}

.hhm-button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
}

.hhm-button:hover {
    transform: translateY(-2px);
}

.hhm-grid {
    display: grid;
    gap: 1.5rem;
}

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

.hhm-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hhm-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hhm-section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.hhm-section-desc {
    max-width: 640px;
    color: rgba(31, 35, 41, .7);
    margin-bottom: 2.5rem;
}

.hhm-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hhm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fcd1c6, #f6f0ff);
    z-index: -2;
}

.hhm-hero__card {
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
}

.hhm-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.hhm-site-footer {
    background: var(--hhm-dark);
    color: rgba(255, 255, 255, .8);
    padding: 3rem 0;
    margin-top: 4rem;
}

.hhm-site-footer a {
    color: inherit;
}

.hhm-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hhm-nav a {
    font-weight: 500;
}

.hhm-nav__list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hhm-menu-toggle {
    border: none;
    background: transparent;
    padding: 0;
    display: none;
}

.hhm-badge-green {
    background: rgba(53, 96, 90, .1);
    color: var(--hhm-secondary);
}

.hhm-badge-rose {
    background: rgba(242, 95, 92, .12);
    color: var(--hhm-primary);
}

.hhm-latest-posts article {
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hhm-site-header .hhm-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        display: none;
        margin-top: 1rem;
    }

    .hhm-site-header .hhm-nav.is-open {
        display: flex;
    }

    .hhm-site-header .hhm-nav__list {
        flex-direction: column;
        gap: 1rem;
    }

    .hhm-menu-toggle {
        display: inline-flex;
    }

    .hhm-button {
        width: 100%;
    }

    .hhm-site-header .hhm-container {
        flex-wrap: wrap;
    }

    .hhm-hero {
        padding-top: 6rem;
    }
}

