/* 
  Style Guide - Sức Khỏe Tài Chính 
  Phong cách: Yên tâm, Điềm tĩnh, Chuyên nghiệp (Financial Clinic)
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    /* 1. Bảng màu (Color Palette) */

    /* Primary: Màu Xanh Cổ Vịt Trầm (Deep Teal) */
    --color-primary: #2C6E73;
    --color-primary-dark: #1F4E52;
    --color-primary-light: #E0F2F3;

    /* Secondary: Màu Đất Nung Nhạt (Soft Terracotta) */
    --color-secondary: #D4A373;
    --color-icon-bg: #FAEDCD;

    /* Neutrals */
    --color-bg: #F7F9FA;
    /* Mint Cream / Ice Water */
    --color-surface: #FFFFFF;
    --color-surface-alt: #F0F4F5;
    /* Slightly darker surface for section contrast */
    --color-text-main: #2D3748;
    --color-text-muted: #718096;
    --color-border: #E2E8F0;

    /* Spacing */
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 80px;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Be Vietnam Pro', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-main);
    font-size: 1.05rem;
    text-align: justify;
    /* Căn đều 2 bên theo yêu cầu */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.text-center {
    text-align: center;
}

.text-center p {
    text-align: center;
}

/* Override justify for centered blocks */
.text-muted {
    color: var(--color-text-muted);
}

.text-small {
    font-size: 0.875rem;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-primary-dark);
    color: white;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    /* Trắng trên nền xanh */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    /* Border trắng */
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 2px;
    background-color: white;
    /* Dấu thập trắng */
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 10px;
    background-color: white;
    /* Dấu thập trắng */
}


/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    font-size: 0.9rem;
}

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

/* Sections */

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 80px 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    text-align: center;
    /* Giữ căn giữa cho Hero */
}

/* Definition Section */
.definition-section {
    background-color: var(--color-surface);
}

.definition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.def-content p {
    color: var(--color-text-muted);
}

.def-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: var(--color-bg);
    transition: all 0.2s ease;
}

.metric-item:hover {
    transform: translateX(5px);
    background-color: var(--color-surface);
    /* Sáng hơn nền một chút */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-primary-light);
}

.metric-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Origin Story Section */
.origin-section .origin-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-primary-light);
    /* Very light Teal */
    padding: var(--space-2xl);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #C4E2E5;
}

.origin-box h3 {
    color: var(--color-primary-dark);
}

.origin-box p {
    font-size: 1.05rem;
    font-style: italic;
    /* Tone tâm tình */
}

/* Benefits (Cards) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.card {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-icon-bg);
    color: var(--color-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
}

/* CTA Footer */
.cta-section {
    text-align: center;
    padding-bottom: 100px;
}

/* Global Footer */
.footer {
    text-align: center;
    padding: var(--space-xl) 0;
    background-color: var(--color-primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .container {
        padding: 0 var(--space-md);
    }
}

.doctor-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.doctor-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}