/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Inter", sans-serif; background: #fff; color: #111; }

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 30px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}
.logo-img {
    height: 40px;
    width: auto;
}

.nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: #222;
    font-weight: 400;
}

.nav-cta {
    padding: 8px 18px;
    background: #111;
    color: #fff !important;
    border-radius: 4px;
}

/* HERO SLIDER */
.hero-slider { position: relative; height: 100vh; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}
.slide.active { opacity: 1; }

.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}
.hero-title {
    font-size: 60px;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.hero-btn {
    padding: 14px 40px;
    background: #fff;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

/* GENERAL SECTIONS */
.section { padding: 80px 60px; }
.section-title { font-size: 38px; margin-bottom: 50px; text-align: center; }

/* PROJECT GRID */
.project-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap:10px;
}
.project-card {
    text-decoration: none;
    color: #111;
}
.project-img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:6px;
}

/* PROJECT DETAIL */
.project-hero {
    height: 50vh;
    background-size: cover;
    background-position: center;
}
.project-info {
    padding: 80px;
    max-width: 800px;
    margin: auto;
}
.project-info ul { margin: 20px 0; line-height: 1.8; }
.project-desc { margin-top: 20px; line-height: 1.7; }
.gallery img {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
}

/* CONTACT */

input, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* FEATURED PROJECTS */
.featured-section { padding: 80px 60px; }

.featured-title {
    font-size: 34px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.featured-card {
    text-decoration: none;
    color: #111;
}
.featured-img {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    transition: transform 0.4s ease;
}
.featured-card:hover .featured-img { transform: scale(1.05); }

.featured-info { margin-top: 15px; }
.featured-info h3 { font-size: 20px; font-weight: 600; }
.featured-info p { font-size: 15px; opacity: 0.7; }

/* FOOTER (fixed version) */
.footer {
    background: #afa89b;
    padding: 10px 80px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-left {
    flex: 1;
    text-align: center;
}

.footer-info p {
    margin: 8px 0;
    font-size: 17px;
    color: #111;
}

.footer-map {
    width: 300px;
    flex-shrink: 0;
}

.copyright {
    margin-top: 18px;
    font-size: 14px;
    color: #888;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .navbar { padding: 16px 20px; }
    .nav-links { display: none; } /* chuẩn bị cho hamburger menu */

    .hero-title { font-size: 40px; }
    .hero-btn { padding: 12px 28px; font-size: 16px; }

    .section,
    .featured-section { padding: 60px 20px; }

    .project-grid,
    .featured-grid { grid-template-columns: 1fr; }

    .footer-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .footer-map { width: 100%; }
}

.footer-info a,
    .footer-social-text a:active {
        color: #111 !important; /* dùng màu chữ hiện tại */
        text-decoration: none !important;
        font-weight: 500;
}
    .footer-social-text a:hover {
        text-decoration: none  !important;
        opacity: 0.6;
}

.footer-social-text span {
    margin: 0.8px;
    color: #ffffff;
}
/* PROJECT PAGE GRID LAYOUT */

.projects-page {
    margin-top: 80px;       /* tránh đè lên navbar */
    width: 90%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Flex layout để đảo chiều */
.project-block {
    display: flex;
    gap: 0px;
    align-items: flex-start;
}

/* Đảo chiều cho item chẵn */
.project-block.reverse {
    flex-direction: row-reverse;
}

/* bên trái = 50% */
.project-grid-wrapper {
    flex: 5;
    position: relative;
}

/* Left: 9 images (3x3) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: 100%;
}

.project-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
}

/* Right: info box */
.project-info {
    margin-top: 30px;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.project-info h2 {
    font-size: 28px;
    font-weight: 500;
}

.info-line {
    font-size: 16px;
    color: #444;
}

.info-line strong {
    color: #111;
}

.desc {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .project-block,
    .project-block.reverse {
        flex-direction: column;
    }

    .project-grid,
    .project-info {
        width: 100%;
    }
}
/* WRAPPER bao toàn bộ 9 hình */
.project-grid-wrapper {
    position: relative;
}

/* Overlay "MORE" cho cả block */
.more-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;                /* đường kính hình tròn */
    height: 90px;
    border-radius: 50%;         /* làm tròn */
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    opacity: 0;
    transition: 0.35s ease;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Hover cả block → hiện overlay */
.project-grid-wrapper:hover .more-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Toàn bộ 9 hình tối nhẹ khi hover */
.project-grid-wrapper:hover img {
    filter: brightness(90%);
}
/* FIX HEADER CHE GALLERY */
.project-detail-container {
    margin-top: 150px;   /* tránh bị header đè */
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* GRID 5 HÌNH VUÔNG */
.detail-gallery {
    margin-top: 50px;      /* đẩy khung hình xuống dưới */
    display: grid;
    grid-template-columns: repeat(5, 1fr);   /* 5 ảnh mỗi hàng */
    gap: 1px;
}
.detail-info {
    width: 100%;
    max-width: 600px;   /* giữ block gọn */
    margin: 40px 0 20px 0; 
    padding-left: 18px;
}

.detail-info h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
}

.detail-info p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* MỖI ẢNH VUÔNG */
.detail-gallery img.thumb {
    width: 100%;
    aspect-ratio: 1 / 1;      /* ép thành hình vuông */
    object-fit: cover;        /* crop đẹp ảnh */
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.detail-gallery img.thumb:hover {
    transform: scale(1.04);
}

/* LIGHTBOX OVERLAY */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000; /* đảm bảo nằm trên NAVBAR */
}

/* ẢNH TRONG LIGHTBOX */
#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

/* CLOSE BUTTON */
.lightbox .close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}

/* ARROWS */
.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: white;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 10px 20px;
    user-select: none;
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

.lightbox .prev:hover,
.lightbox .next:hover {
    opacity: 0.6;
}
.news-page {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto;
}

.news-title {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.news-card {
    text-decoration: none;
    color: #111;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-info {
    padding: 18px;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-date {
    color: #777;
    font-size: 14px;
}

/* Đẩy nội dung xuống, tránh bị header che */

body {
    padding-top: 80px;     /* chỉnh theo độ cao header thực tế */


/* Căn giữa form đúng chuẩn */
.form-wrapper {
    width: 100%;                /* form-wrapper chiếm toàn bộ chiều ngang */
    display: flex;
    flex-direction: column;     /* xếp h2 + form theo chiều dọc */
    align-items: center;        /* căn giữa tất cả */
    margin-top: 10px;
}

/* Tiêu đề */
.form-wrapper h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* Hộp form cố định chiều rộng */
.contact-box {
    width: 500px;               /* chỉnh tùy thích */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input + textarea */
.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-btn {
    width: 100%;
    padding: 10px;
    font-size: 20px;
    background: #efe7db;
    color: black;
    border: #a39282;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 5px;
}

.contact-btn:hover {
    opacity: 0.8;
}
.grecaptcha-badge {
    z-index: 9999 !important;   /* nằm trên mọi thứ */
    opacity: 1 !important;      /* để Google không phàn nàn */
    bottom: 20px !important;    /* sát dưới */
    left: 10px !important;     /* sát phải */
    transform: scale(0.8);
    transform-origin: bottom left;
}

.project-block{
display:flex;
gap:40px;
margin-bottom:80px;
align-items:center;
}

.project-block.reverse{
flex-direction:row-reverse;
}

@media (max-width:768px){

.project-block{
flex-direction:column;
gap:20px;
}

.project-block.reverse{
flex-direction:column;
}

.project-info{
width:100%;
}

}

/* MASONRY GALLERY */

.project-grid{
column-count:3;
column-gap:8px;
}

.project-grid img{
width:100%;
margin-bottom:8px;
border-radius:6px;
break-inside:avoid;
transition:transform .3s ease;
}

.project-grid img:hover{
transform:scale(1.04);
}

/* responsive */

@media(max-width:900px){
.project-grid{
column-count:2;
}
}

@media(max-width:600px){
.project-grid{
column-count:1;
}
}

.project-block{
transition:transform .35s ease;
}

.project-block:hover{
transform:translateY(-5px);
}