/**
 * BirthHero - Main Stylesheet
 * Sidebar Navigation with Enhanced UI/UX
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #28e6d1;
    --primary-dark: #20c4b3;
    --secondary: #D6D1BB;
    --dark: #000000;
    --text: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --white: #FFFFFF;
    --bg-light: #f9f9f9;
    --overlay-dark: rgba(0, 0, 0, 0.55);

    --font-heading: 'Arvo', Georgia, serif;
    --font-body: 'Arvo', Georgia, serif;
    --font-button: 'DM Sans', sans-serif;

    --sidebar-width: 280px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 8px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg-light);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 80px 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar__header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar__logo {
    display: block;
    text-align: center;
}

.sidebar__logo-zh {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.sidebar__logo-en {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-top: 3px;
}

.sidebar__nav {
    flex: 1;
    padding: 25px 0;
    overflow-y: auto;
}

.sidebar__menu {
    display: flex;
    flex-direction: column;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    font-size: 15px;
    color: var(--gray);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar__link:hover,
.sidebar__link.active {
    color: var(--primary);
    background: rgba(40, 230, 209, 0.05);
    border-left-color: var(--primary);
}

.sidebar__icon {
    font-size: 18px;
}

.sidebar__footer {
    padding: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar__contact {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.sidebar__contact p {
    margin-bottom: 5px;
}

.sidebar__phone {
    color: var(--primary-dark);
    font-weight: 600;
}

.sidebar__cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

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

/* ===== HERO ===== */
.hero {
    padding: 60px 0 80px;
    background: var(--white);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero__content h1 {
    font-size: 30px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero__content h1 strong {
    display: block;
}

.hero__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 2;
    color: var(--text);
}

.hero__subtitle strong {
    display: block;
}

.hero__image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ===== INTRO ===== */
.intro {
    padding: 50px 0;
    text-align: center;
    background: var(--white);
}

.intro h4 {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark);
}

/* ===== PROCESS ===== */
.process {
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
        url('../images/process-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 80px 0;
}

.process__title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 50px;
    color: var(--white);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process__step {
    text-align: center;
    padding: 20px 15px;
}

.process__step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.process__step-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--white);
}

.process__step-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===== BLOG ===== */
.blog-section {
    padding: 80px 0;
    background: var(--white);
}

.blog-section__title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.blog-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card__image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
}

.blog-card__content {
    padding: 20px;
}

.blog-card__title {
    font-size: 16px;
    margin-bottom: 8px;
}

.blog-card__excerpt {
    font-size: 14px;
    color: var(--gray);
}

/* ===== SERVICES ===== */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.services__header {
    margin-bottom: 35px;
}

.services__title {
    font-size: 26px;
    margin-bottom: 8px;
}

.services__subtitle {
    color: var(--gray);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 60%, transparent);
    z-index: 1;
}

.service-card:hover .service-card__image {
    transform: scale(1.05);
}

.service-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: var(--white);
}

.service-card__title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--white);
}

.service-card__desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
    background: var(--secondary);
}

.features__title {
    font-size: 26px;
    margin-bottom: 40px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.feature__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature__title {
    font-size: 32px;
    color: var(--gray);
    margin-bottom: 10px;
}

.feature__desc {
    font-size: 14px;
    color: var(--dark);
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq__title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 40px;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    color: var(--dark);
}

.faq-item__question:hover {
    color: var(--primary-dark);
}

.faq-item__icon {
    font-size: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 400px;
}

.faq-item__answer-content {
    padding: 0 0 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
}

/* ===== CONTACT ===== */
.contact {
    padding: 80px 0;
    background: var(--secondary);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact__info h2 {
    margin-bottom: 20px;
}

.contact__text {
    margin-bottom: 25px;
    line-height: 1.8;
}

.contact__details p {
    margin-bottom: 8px;
    font-size: 15px;
}

.contact__form {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.form-success {
    text-align: center;
    padding: 25px;
}

.form-success h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-left: var(--sidebar-width);
}

.footer__text {
    opacity: 0.7;
    font-size: 14px;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

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

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content,
    .footer {
        margin-left: 0;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__image {
        order: -1;
        max-width: 450px;
        margin: 0 auto;
    }

    .process__steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    .container {
        padding: 0 20px;
    }

    .services__grid,
    .blog-section__grid {
        grid-template-columns: 1fr;
    }

    .process__steps,
    .features__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero__content h1 {
        font-size: 24px;
    }

    .hero__subtitle {
        font-size: 16px;
    }
}