/**
 * Theme Name:     GeneratePress Child
 * Author:         Phan Van Duy
 * Template:       generatepress
 * Text Domain:	   generatepress-child
 * Description:    Thêm siêu nhẹ custom Functions
 */


/* Tổng thể Footer */
#colophon.site-footer {
    background-color: #f8f8f8; /* Màu nền nhẹ nhàng, bạn có thể đổi thành #222 nếu muốn tối */
    border-top: 1px solid #eee;
    padding-top: 40px;
}

/* Container chứa các Widget (F1, F2, F3) */
.footer-widgets {
    background: none !important;
}
.footer-widgets-container {
    padding-bottom: 20px;
}

/* Style cho tiêu đề Widget trong footer */
#colophon .widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Khu vực bản quyền tùy chỉnh */
.custom-copyright-area {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #e5e5e5; /* Đường kẻ ngăn cách với Widget */
    margin-top: 20px;
}

.custom-copyright-area p {
    margin: 0;
    font-size: 14px;
    color: #666;
}






/* ================= VARIABLES ================= */
:root {
    --primary-color: #0f172a; /* Xanh Navy đậm */
    --accent-color: #f59e0b; /* Vàng cam thu hút */
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================= RESET & BASIC ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.bg-light {
    background-color: var(--light-bg);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background-color: #d97706;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
}

/* ================= HEADER ================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 600;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

/* ================= HERO ================= */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* ================= GRID SYSTEM ================= */
.grid {
    display: grid;
    gap: 30px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ================= CARDS ================= */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Features */
.feature-card {
    text-align: center;
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Categories */
.category-card {
    padding: 0;
    overflow: hidden;
}

.cat-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.category-card:hover .cat-img {
    transform: scale(1.05);
}

.cat-content {
    padding: 25px;
}

.cat-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ================= CONTACT FORM ================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-list {
    margin-top: 30px;
}

.info-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-list i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ================= ANIMATIONS ================= */
.fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
}

.slide-up-delay {
    opacity: 0;
    animation: slideUp 1s ease 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    nav ul {
        gap: 15px;
    }
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    #colophon.site-footer {
        padding-top: 30px;
        text-align: center;
    }
    
    .custom-copyright-area {
        padding: 20px 10px;
    }

    .header-container {
        /* Dàn ngang Logo và Nút gọi trên cùng 1 dòng */
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 0;
        height: auto;
    }
    
    /* Thu nhỏ chữ Logo */
    .logo h1 {
        font-size: 1.2rem;
    }
    
    /* Thu nhỏ nút bấm Zalo để không bị lấn chỗ */
    .contact-btn .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Ép menu xuống dòng dưới và căn giữa, ép sát lại */
    nav {
        width: 100%;
        margin-top: 8px;
    }
    
    nav ul {
        justify-content: center;
        gap: 15px;
        font-size: 0.9rem;
    }
}








