/* ==========================================
   PHÂN BÒ TRƯỜNG AN - CSS COLORS FOR 30+ AGE GROUP
   Màu sắc trưởng thành, ổn định, tin cậy
   ========================================== */

/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    /* Thay gradient sặc sỡ bằng màu tự nhiên */
    background: linear-gradient(135deg, #8B7355 0%, #6B5B47 100%);
    min-height: 100vh;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================
   HEADER STYLES - Màu nâu đất ổn định
   ========================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: #4A4A4A; /* Xám đậm thay vì xanh dương */
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.header p {
    color: #2E7D32; /* Xanh lá đậm thay vì xanh lá sáng */
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.header-subtitle {
    margin-top: 20px;
}

.highlight {
    /* Thay gradient hồng-đỏ bằng nâu-cam đất */
    background: linear-gradient(45deg, #8D6E63, #A0522D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.1em;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ==========================================
   MAIN CONTENT GRID
   ========================================== */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* ==========================================
   CARD STYLES
   ========================================== */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* Thay gradient xanh-tím bằng nâu-xanh */
    background: linear-gradient(90deg, #8D6E63, #2E7D32);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #4A4A4A; /* Xám đậm */
    margin-bottom: 25px;
    font-size: 1.9em;
    font-weight: 600;
    border-bottom: 3px solid #2E7D32; /* Xanh lá đậm */
    padding-bottom: 15px;
    position: relative;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    /* Thay gradient hồng bằng nâu cam */
    background: linear-gradient(90deg, #8D6E63, #A0522D);
}

/* ==========================================
   PRODUCT INFO CARD - Màu xanh lá tự nhiên
   ========================================== */
.product-info {
    /* Thay gradient hồng-đỏ bằng xanh lá tự nhiên */
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.product-info h2 {
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.product-info h2::after {
    background: rgba(255, 255, 255, 0.8);
}

.product-info p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-list {
    margin-top: 25px;
}

.product-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(10px);
}

.product-item h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
}

.product-item p {
    font-size: 0.95em;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================
   BENEFITS CARD
   ========================================== */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 12px 0;
    position: relative;
    padding-left: 35px;
    font-size: 1.05em;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: #2E7D32; /* Xanh lá đậm */
    font-weight: bold;
    font-size: 1.4em;
    background: rgba(46, 125, 50, 0.1);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

.benefits-list li:hover {
    color: #2E7D32;
    transform: translateX(5px);
}

/* ==========================================
   PRICE SECTION - Màu xanh biển trưởng thành
   ========================================== */
.price-section {
    /* Thay gradient xanh sáng bằng xanh biển đậm */
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    color: white;
}

.price-section h2 {
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.price-section h2::after {
    background: rgba(255, 255, 255, 0.8);
}

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

.price-main {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFF59D; /* Vàng nhạt thay vì vàng chói */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
    animation: pulse 2s infinite;
}

.price-details {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1em;
}

.price-item:last-child {
    border-bottom: none;
}

.price-type {
    font-weight: 500;
}

.price-value {
    font-weight: 700;
    color: #FFF59D; /* Vàng nhạt */
}

.special-offer {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

.special-offer p {
    margin: 5px 0;
}

.discount {
    color: #FFF59D !important; /* Vàng nhạt */
    font-weight: bold;
    font-size: 1.1em;
}

/* ==========================================
   CONTACT SECTION - Màu nâu cam đất
   ========================================== */
.contact-section {
    /* Thay gradient hồng-vàng bằng nâu cam đất */
    background: linear-gradient(135deg, #8D6E63 0%, #D7CCC8 100%);
    color: white;
}

.contact-section h2 {
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.contact-section h2::after {
    background: rgba(255, 255, 255, 0.8);
}

.contact-info {
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.phone-number {
    font-weight: bold;
    font-size: 1.1em;
    color: #FFF59D; /* Vàng nhạt */
}

.note {
    font-size: 0.9em;
    opacity: 0.8;
    font-style: italic;
}

.cta-section {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-text {
    font-size: 1.3em;
    color: #FFF59D; /* Vàng nhạt */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* ==========================================
   QUALITY COMMITMENT CARD
   ========================================== */
.quality-commitment {
    grid-column: 1 / -1;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.commitment-item {
    display: flex;
    align-items: center;
    padding: 20px;
    /* Thay màu xanh sáng bằng màu đất tự nhiên */
    background: linear-gradient(135deg, rgba(141, 110, 99, 0.1), rgba(121, 85, 72, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(141, 110, 99, 0.2);
    transition: all 0.3s ease;
}

.commitment-item:hover {
    background: linear-gradient(135deg, rgba(141, 110, 99, 0.2), rgba(121, 85, 72, 0.2));
    border-color: rgba(141, 110, 99, 0.4);
    transform: translateY(-5px);
}

.commitment-icon {
    font-size: 2.5em;
    margin-right: 20px;
    flex-shrink: 0;
}

.commitment-text h3 {
    color: #4A4A4A; /* Xám đậm */
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

.commitment-text p {
    color: #6D4C41; /* Nâu đậm thay vì xám */
    font-size: 0.95em;
    line-height: 1.4;
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.footer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
}

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

.footer-main {
    color: #4A4A4A; /* Xám đậm */
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-slogan {
    color: #2E7D32; /* Xanh lá đậm */
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-contact {
    color: #6D4C41; /* Nâu đậm */
    font-size: 0.95em;
}

.footer-contact strong {
    color: #4A4A4A; /* Xám đậm */
}

/* ==========================================
   FLOATING CONTACT BUTTONS - Màu trưởng thành
   ========================================== */
.floating-contact {
    position: fixed;
    bottom: 300px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.floating-btn:active::before {
    width: 100px;
    height: 100px;
}

/* Nút điện thoại - màu xanh lá trưởng thành */
.phone-btn {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    animation: phoneRing 2s infinite ease-in-out;
}

.phone-btn:hover {
    background: linear-gradient(135deg, #1B5E20, #0D4F16);
}

/* Nút Zalo - màu xanh biển trưởng thành */
.zalo-btn {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
    animation: zaloFloat 3s infinite ease-in-out;
}

.zalo-btn:hover {
    background: linear-gradient(135deg, #0D47A1, #0A2E5F);
}

/* Animation cho nút phone */
@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-15deg) scale(1.05); }
    20% { transform: rotate(15deg) scale(1.05); }
    30% { transform: rotate(-15deg) scale(1.05); }
    40% { transform: rotate(15deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
}

/* Animation cho nút Zalo */
@keyframes zaloFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Tooltip hiển thị khi hover */
.floating-btn .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.floating-btn .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* ==========================================
   ANIMATIONS - Giữ nguyên
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================
   RESPONSIVE DESIGN - Cập nhật màu
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2.2em;
    }
    
    .header p {
        font-size: 1.1em;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 25px;
    }
    
    .card h2 {
        font-size: 1.6em;
    }
    
    .price-main {
        font-size: 2em;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .price-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .floating-contact {
        bottom: 150px;
        right: 15px;
        gap: 30px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .floating-btn .tooltip {
        font-size: 12px;
        padding: 6px 10px;
        right: 65px;
    }
    
    .floating-btn:hover .tooltip {
        right: 70px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .card {
        padding: 20px;
    }
    
    .card h2 {
        font-size: 1.4em;
    }
    
    .price-main {
        font-size: 1.6em;
    }
    
    .commitment-item {
        flex-direction: column;
        text-align: center;
    }
    
    .commitment-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .floating-contact {
        bottom: 150px;
        right: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* ==========================================
   PRINT STYLES - Ẩn floating buttons khi in
   ========================================== */
@media print {
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .header,
    .footer {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .floating-contact {
        display: none !important;
    }
}