/* Global Styles & Fixed Aspect Ratios */
:root {
    --primary: #15803d;
    --primary-dark: #166534;
    --primary-light: #22c55e;
    --secondary: #0f766e;
    --accent: #eab308;
    --dark: #0f172a;
    --gray-dark: #334155;
    --gray-light: #f8fafc;
    --gray-border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --font-lao: 'Noto Sans Lao', sans-serif;
    --font-en: 'Inter', sans-serif;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-lao), var(--font-en);
    color: var(--text);
    background-color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

/* Language Visibility */
body.lang-lo .en-text { display: none !important; }
body.lang-lo .lo-text { display: inline !important; }

body.lang-en .lo-text { display: none !important; }
body.lang-en .en-text { display: inline !important; }

/* Top Bar */
.top-bar {
    background-color: var(--dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-quick span {
    margin-right: 18px;
}

.contact-quick i {
    color: var(--accent);
    margin-right: 5px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--white);
    font-weight: 600;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
    line-height: 1.25;
}

.logo-text small {
    font-size: 0.78rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-dark);
    padding: 6px 10px;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-btn:hover {
    background-color: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    color: var(--white);
    padding: 70px 0 60px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #854d0e;
}

.btn-primary:hover {
    background-color: #facc15;
    color: #713f12;
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255,255,255,0.8);
    color: var(--white);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.15);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-card {
    text-align: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Sections Common */
.section {
    padding: 65px 0;
}

.section-header {
    margin-bottom: 45px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 1.9rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* About Grid with Fixed Uniform Images */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.about-card:hover .card-img {
    transform: scale(1.05);
}

.card-img-wrap .about-icon {
    position: absolute;
    bottom: -15px;
    left: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow);
    border: 2px solid #dcfce7;
    z-index: 2;
}

.card-body {
    padding: 28px 20px 22px;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Visual Work Highlights Gallery with Fixed Uniform Images */
.gallery-section {
    background-color: #f8fafc;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.work-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 26px;
}

.work-box {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-border);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.work-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.work-box-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.work-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.work-box:hover .work-box-img img {
    transform: scale(1.06);
}

.work-box-desc {
    padding: 22px;
    flex-grow: 1;
}

.work-box-desc h4 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.work-box-desc h4 i {
    color: var(--primary);
}

.work-box-desc p {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Service Tables */
.service-category {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

.category-header {
    background: linear-gradient(to right, #f8fafc, #edf2f7);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--gray-border);
}

.category-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.category-header h3 {
    font-size: 1.25rem;
    color: var(--dark);
}

.category-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-table-wrapper {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 16px 22px;
    text-align: left;
    border-bottom: 1px solid var(--gray-border);
}

.price-table th {
    background-color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.price-table td strong {
    display: block;
    font-size: 0.98rem;
    color: var(--dark);
}

.price-table td small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.price-col {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
    text-align: right;
}

.price-col .unit {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: normal;
}

.text-right {
    text-align: right !important;
}

/* Packages Section */
.packages-section {
    background-color: #e2e8f0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.package-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 2px solid transparent;
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.popular-ribbon {
    position: absolute;
    top: -12px;
    right: 25px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.pkg-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.pkg-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin: 8px 0;
}

.pkg-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pkg-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-border);
    padding-bottom: 15px;
}

.pkg-price .currency {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.pkg-features {
    margin-bottom: 30px;
    flex-grow: 1;
}

.pkg-features li {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pkg-features i {
    color: var(--primary);
    margin-top: 4px;
}

/* Infrastructure */
.infra-section {
    background: var(--white);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.infra-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--gray-border);
}

.infra-box i {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.infra-box h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.infra-box ul li {
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-border);
    color: var(--gray-dark);
}

/* Contact */
.contact-section {
    background: #f1f5f9;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-info {
    background: linear-gradient(135deg, #064e3b, #047857);
    color: var(--white);
    padding: 45px;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin: 15px 0;
}

.contact-info > p {
    font-size: 0.92rem;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 4px;
}

.info-item strong {
    font-size: 0.9rem;
    color: #f8fafc;
}

.info-item p {
    font-size: 0.88rem;
    color: #cbd5e1;
}

.contact-form-box {
    padding: 45px;
}

.contact-form-box h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: #1e293b;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .package-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-border);
    }
    .nav-menu.active {
        display: flex;
    }
    .hero-title {
        font-size: 1.7rem;
    }
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
}
