/*
Theme Name: Flatsome Child - Phường Thiết Kế
Theme URI: https://phuongthietke.com
Template: flatsome
Author: Phường Thiết Kế
Version: 1.0.0
Description: Child theme cho Công ty TNHH Phường Thiết Kế - Thiết kế Kiến trúc Nội thất
Text Domain: flatsome-child
*/

/* ============================================
   CSS VARIABLES - BRAND SYSTEM
   ============================================ */
:root {
    --ptk-primary: #1a1a1a;
    --ptk-accent: #f39c12;
    --ptk-gold: #c8a97e;
    --ptk-dark: #111111;
    --ptk-bg-light: #f5f5f5;
    --ptk-text: #333333;
    --ptk-text-light: #888888;
    --ptk-white: #ffffff;
    --ptk-border: #e0e0e0;
    --ptk-overlay: rgba(0,0,0,0.6);
}

/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Open Sans', sans-serif !important;
    color: var(--ptk-text);
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header-main {
    background: var(--ptk-dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-main .logo img {
    max-height: 60px;
}
#main-menu > li > a,
.nav > li > a {
    color: var(--ptk-white) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 18px !important;
    transition: all 0.3s ease;
}
#main-menu > li > a:hover,
.nav > li > a:hover {
    color: var(--ptk-accent) !important;
}
.nav-dropdown {
    background: var(--ptk-dark) !important;
    border: 1px solid rgba(255,255,255,0.08);
}
.nav-dropdown li a {
    color: #ccc !important;
    font-size: 13px !important;
}
.nav-dropdown li a:hover {
    color: var(--ptk-accent) !important;
    background: rgba(255,255,255,0.05) !important;
}

/* ============================================
   PORTFOLIO GRID - MASONRY STYLE
   ============================================ */
.ptk-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.ptk-portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.ptk-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}
.ptk-portfolio-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}
.ptk-portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--ptk-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.ptk-portfolio-item:hover .ptk-portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}
.ptk-portfolio-overlay h4 {
    color: var(--ptk-white);
    font-size: 16px;
    margin-bottom: 4px;
}
.ptk-portfolio-overlay .ptk-meta {
    color: var(--ptk-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.ptk-section-title {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--ptk-primary);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.ptk-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--ptk-accent);
}
.ptk-section-dark {
    background: var(--ptk-dark);
    color: var(--ptk-white);
}
.ptk-section-light {
    background: var(--ptk-bg-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.ptk-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--ptk-accent);
    color: var(--ptk-accent);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}
.ptk-btn:hover {
    background: var(--ptk-accent);
    color: var(--ptk-dark);
}
.ptk-btn-dark {
    border-color: var(--ptk-white);
    color: var(--ptk-white);
}
.ptk-btn-dark:hover {
    background: var(--ptk-white);
    color: var(--ptk-dark);
}

/* ============================================
   ABOUT / PHILOSOPHY SECTION
   ============================================ */
.ptk-philosophy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}
.ptk-philosophy-item {
    text-align: center;
    padding: 30px;
}
.ptk-philosophy-item h4 {
    color: var(--ptk-accent);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.ptk-philosophy-item p {
    color: var(--ptk-text-light);
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-wrapper,
#footer,
.absolute-footer {
    background: var(--ptk-dark) !important;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-wrapper .widget-title {
    color: var(--ptk-white) !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.footer-wrapper a {
    color: #999 !important;
    transition: color 0.3s ease;
}
.footer-wrapper a:hover {
    color: var(--ptk-accent) !important;
}
.absolute-footer {
    font-size: 13px;
    color: #666;
}

/* ============================================
   FLOATING CTA - PHONE
   ============================================ */
.ptk-floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ptk-floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ptk-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.ptk-floating-phone {
    background: var(--ptk-accent);
    animation: ptk-pulse 2s infinite;
}
.ptk-floating-zalo {
    background: #0068ff;
}
@keyframes ptk-pulse {
    0% { box-shadow: 0 0 0 0 rgba(243,156,18,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(243,156,18,0); }
    100% { box-shadow: 0 0 0 0 rgba(243,156,18,0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ptk-philosophy {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ptk-portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .ptk-section-title {
        font-size: 22px;
        letter-spacing: 2px;
    }
    .ptk-floating-cta {
        bottom: 15px;
        right: 15px;
    }
    .ptk-floating-btn {
        width: 45px;
        height: 45px;
    }
}
@media (max-width: 480px) {
    .ptk-portfolio-grid {
        grid-template-columns: 1fr;
    }
}
