/* CSS Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-surface-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
    color: inherit;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Label & Title */
.section-eyebrow {
    font-family: 'Inter', 'Prompt', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #B5925E 0%, #9A7644 100%);
    color: #FFFFFF;
    border-color: #B5925E;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C5A065 0%, #A88454 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 132, 84, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text-primary);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.btn-outline-light:hover {
    background: #FFFFFF;
    color: var(--color-bg-dark);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

/* Header */
.header {
    background-color: #0B132B;
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo img {
    height: 44px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.4rem 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary-light);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.language-switcher a.active,
.language-switcher a:hover {
    color: #FFFFFF;
    font-weight: 700;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    color: #FFFFFF;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #0B132B;
    color: #FFFFFF;
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

/* Breadcrumb */
.breadcrumb-bar {
    padding: 0.85rem 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.breadcrumb-bar a {
    color: var(--color-text-secondary);
}

.breadcrumb-bar a:hover {
    color: var(--color-primary);
}

/* Hero Banner (Home & Pages) */
.hero-banner {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background-color: #F4F6F9;
    background-size: cover;
    background-position: center right;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 42%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.hero-banner.hero-dark::before {
    background: linear-gradient(90deg, rgba(11,19,43,0.92) 0%, rgba(11,19,43,0.78) 50%, rgba(11,19,43,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0B132B;
    margin-bottom: 1rem;
}

.hero-title .text-gold {
    color: var(--color-primary);
}

.hero-desc {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

/* Stats Strip (4 Columns) */
.stats-strip {
    background: #FFFFFF;
    border-bottom: 1px solid #EAEAEA;
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #FAFAFA;
    border: 1px solid #EFEFEF;
    border-radius: 10px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(168, 132, 84, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.35rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0B132B;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0B132B;
    margin-top: 0.15rem;
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Service Split Cards (6 Cards with Image on Right) */
.service-split-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    min-height: 155px;
}

.service-split-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(168, 132, 84, 0.15);
    border-color: var(--color-primary-light);
}

.service-split-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.service-split-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(168, 132, 84, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.service-split-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0B132B;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.service-split-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(168, 132, 84, 0.15);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.service-split-img {
    width: 46%;
    position: relative;
    overflow: hidden;
}

.service-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CEO & Philosophy Banner */
.philosophy-section {
    background: #F5F5F3;
    border-top: 1px solid #E8E6E1;
    border-bottom: 1px solid #E8E6E1;
    overflow: hidden;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.95fr;
    align-items: center;
    gap: 1.5rem;
}

.philosophy-box-dark {
    background: linear-gradient(145deg, #0B132B 0%, #1C2541 100%);
    color: #FFFFFF;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.philosophy-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(168, 132, 84, 0.2);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Filter Tabs Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.filter-pill {
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

/* Project & Article Cards */
.project-card,
.article-card,
.scope-card,
.deliverable-card,
.office-card,
.contact-card,
.spec-item {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.project-card:hover,
.article-card:hover,
.scope-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-light);
}

.project-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.project-card-body {
    padding: 1rem 1.15rem;
}

.project-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0B132B;
    margin-bottom: 0.2rem;
}

.project-card-loc {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.project-card-meta {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

/* Dark Journey Section (6 Steps) */
.journey-dark-section {
    background: linear-gradient(180deg, rgba(11, 19, 43, 0.92) 0%, rgba(11, 19, 43, 0.95) 100%);
    color: #FFFFFF;
    padding: 4.5rem 0;
    position: relative;
}

.journey-steps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.journey-step-item {
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}

.journey-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C5A065 0%, #9A7644 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    box-shadow: 0 0 0 6px rgba(197, 160, 101, 0.2);
}

/* Why Thanakul (5 Columns) */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.why-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
}

.why-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonial-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.stars {
    color: #F59E0B;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

/* Partners Strip */
.partners-section {
    background: #F5F6F8;
    padding: 3rem 0;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 1.5rem;
}

.partner-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #4B5563;
    letter-spacing: 0.05em;
    opacity: 0.8;
    padding: 0.5rem 1rem;
}

/* News Overlay Card */
.news-overlay-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 4.2;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background-color: #0B132B;
}

.news-overlay-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-overlay-card:hover img {
    transform: scale(1.06);
}

.news-overlay-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,19,43,0.15) 0%, rgba(11,19,43,0.88) 80%);
    z-index: 1;
}

.news-overlay-content {
    position: relative;
    z-index: 2;
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: #0B132B;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

/* FAQ Accordion */
.faq-item {
    background: #FAFAFA;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.faq-item.active {
    background: #FFFFFF;
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 16px rgba(168, 132, 84, 0.08);
}

.faq-header {
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-num {
    color: var(--color-primary);
    font-weight: 700;
    margin-right: 0.75rem;
}

.faq-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.faq-content {
    padding: 0 1.5rem 1.25rem 3.25rem;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

/* Pre-Footer CTA Banner */
.cta-banner-box {
    background: linear-gradient(90deg, #16213E 0%, #0B132B 100%);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Footer */
.footer {
    background-color: #0B132B;
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0 2rem;
    font-size: 0.88rem;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.3fr 1.1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-branches {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-branch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-branch-card {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-branch-card strong {
    color: #FFFFFF;
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

.social-circle-list {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.social-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.social-circle:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-family: inherit;
    background: #FFFFFF;
    transition: border-color 0.25s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(168, 132, 84, 0.12);
}

/* Grid & Utility Classes */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-8-specs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.75rem; }

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

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-light { color: #FFFFFF; }

.bg-dark { background-color: var(--color-bg-dark); color: #FFFFFF; }
.bg-light { background-color: #F8F8F6; }
.bg-white { background-color: #FFFFFF; }
.bg-primary { background-color: var(--color-primary); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 4rem; padding-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.space-y-2 > * + * { margin-top: 0.5rem; }
