/*
Theme Name: iN Sáng Tạo
Theme URI: https://insangtao.com.vn
Description: Theme được thiết kế và tối ưu riêng cho iN Sáng Tạo. Kế thừa giao diện Flatsome chuẩn SEO, siêu nhẹ.
Author: Việt Print
Template: flatsome
Version: 1.2
*/

/* ====================================================
   1. GLOBAL & TYPOGRAPHY
   ==================================================== */
:root {
    --primary-color: #d32f2f;
    --secondary-color: #1976d2;
    --text-color: #333333;
    --bg-light: #f9f9f9;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* ====================================================
   2. HEADER TÙY BIẾN
   ==================================================== */
.header-top {
    background-color: var(--primary-color);
    color: #fff;
}
.header-top a {
    color: #fff !important;
}
.header-main {
    padding: 15px 0;
}
.header-nav .nav > li > a {
    font-weight: bold;
    text-transform: uppercase;
}
.header-nav .nav > li:hover > a {
    color: var(--primary-color);
}

/* ====================================================
   3. KHỐI CAM KẾT (SECTION)
   ==================================================== */
.seo-optimized-section {
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}
.featured-box {
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.featured-box .icon-box img {
    margin-bottom: 15px;
}

/* ====================================================
   4. PRODUCT/CATALOG GRID
   ==================================================== */
.product-small.box {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}
.product-small.box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-small .box-text {
    padding: 15px;
    text-align: center;
}

/* ====================================================
   5. CỤM NÚT LIÊN HỆ THẢ NỔI (TỐI ƯU SIÊU NHẸ)
   ==================================================== */
.contact-floating-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    color: #fff;
    font-size: 24px;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.pulse-effect::before,
.pulse-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}
.pulse-effect::after {
    animation-delay: 1s;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.btn-call { background-color: #dd3333; }
.btn-call.pulse-effect::before, .btn-call.pulse-effect::after { background-color: #dd3333; }
.btn-zalo { background-color: #0088ff; }
.btn-zalo.pulse-effect::before, .btn-zalo.pulse-effect::after { background-color: #0088ff; }
.btn-mess { background: linear-gradient(45deg, #00B2FF, #006AFF); }

.float-btn .tooltip {
    position: absolute;
    right: 60px;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.float-btn:hover .tooltip {
    opacity: 1;
    right: 65px;
}

/* ====================================================
   6. FOOTER
   ==================================================== */
#footer {
    background-color: #222;
    color: #ccc;
    padding-top: 40px;
}
#footer h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
#footer a {
    color: #aaa;
}
#footer a:hover {
    color: var(--primary-color);
}
.absolute-footer {
    background-color: #111;
    padding: 15px 0;
    font-size: 13px;
}
