/*
 Theme Name:   Pencil Group Child
 Theme URI:    https://pencil.vn
 Description:  Child theme cho Pencil Group
 Author:       Chuong Dev
 Author URI:   https://pencil.vn
 Template:     remake
 Version:      1.0.0
*/

/* ==========================================================================
   PENCIL GROUP - TAILWIND TO ELEMENTOR TRANSLATION
   ========================================================================== */

/* --- TYPOGRAPHY & UTILS --- */
.pencil-eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 20px;
}
.pencil-display {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #090909;
}
.highlight {
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #FFC700;
}

/* --- HERO SECTION --- */
.lovable-hero-container {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 40px;
    align-items: center;
}
.lovable-hero-container h1 {
    font-size: clamp(4rem, 8vw, 9.2rem);
    text-transform: lowercase;
}
.hero-bottom {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}
.hero-desc {
    font-size: 1.125rem;
    color: #666;
    max-width: 50%;
}
.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.btn-primary {
    border: 1px solid #090909;
    border-radius: 50px;
    padding: 12px 24px;
    color: #090909;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: #090909;
    color: #fff;
}
.btn-link {
    color: #666;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.btn-link:hover { color: #090909; }
.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(0.97) rotate(-0.6deg); /* Giống hệt code Lovable */
}

/* --- YELLOW BANNER --- */
.lovable-yellow-banner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.lovable-yellow-banner h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    max-width: 1000px;
    line-height: 1.1;
    margin-top: 40px;
    text-transform: lowercase;
}
.lovable-yellow-banner em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: #090909;
}
.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.banner-item {
    border-top: 1px solid rgba(0,0,0,0.3);
    padding-top: 20px;
}
.banner-item h3 { font-size: 24px; font-weight: 500; margin: 0; }
.banner-item p { font-size: 14px; opacity: 0.6; margin-top: 5px; }

/* --- PRACTICES GRID --- */
.section-header {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    margin-bottom: 60px;
}
.section-header h2 { font-size: clamp(3rem, 5vw, 5rem); }
.section-header h2 span { color: #888; }
.header-desc { font-size: 1.25rem; color: #666; }

.lovable-practices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px; /* Tạo đường viền mảnh (1px) giữa các khối */
    background-color: #EAEAEA; 
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    overflow: hidden;
}
.practice-card {
    background-color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
}
.practice-card:hover {
    background-color: #FFC700; /* hover:bg-amber */
}
.card-top {
    display: flex;
    justify-content: space-between;
    color: #888;
}
.practice-card h3 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 15px; }
.practice-card .desc { font-size: 1.125rem; }
.practice-card .sub { font-size: 0.875rem; color: #888; margin-top: 15px; }

/* --- WORK MASONRY --- */
.lovable-work-masonry {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 24px;
}
.work-card {
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
/* CSS vẽ cái curve svg nhẹ chìm dưới background của thẻ Work */
.work-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 400 300" xmlns="http://www.w3.org/2000/svg"><path d="M-20 240 C 80 180, 160 260, 260 160 S 420 60, 460 40" stroke="black" stroke-width="1" fill="none"/></svg>');
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}
.work-card h3 { font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; }
.bg-amber { background: #FFC700; color: #000; }
.bg-ink { background: #090909; color: #fff; }
.bg-ink::before { filter: invert(1); opacity: 0.2; } /* Làm sáng nét vẽ svg trên nền đen */
.bg-cyan { background: #D6F5F5; color: #000; }
.bg-magenta { background: #FF0080; color: #fff; grid-column: 1 / -1; min-height: 250px;}

/* --- MARQUEE ANIMATION --- */
.lovable-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}
.marquee-content span {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #090909;
    opacity: 0.8;
}
.marquee-content span .text-amber { 
    color: #FFC700;
    margin: 0 30px;
    font-size: 20px;
    vertical-align: middle;
 }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .lovable-hero-container, .section-header, .lovable-practices-grid, .lovable-work-masonry {
        grid-template-columns: 1fr;
    }
    .hero-bottom { flex-direction: column; align-items: flex-start; }
    .hero-desc { max-width: 100%; }
    .banner-grid { grid-template-columns: 1fr 1fr; }
    .lovable-yellow-banner { padding: 0 20px; }
}