/* Global Styles */
:root {
    --primary-color: #D31145;
    /* AIA Red approx */
    --secondary-color: #2D3E50;
    --accent-color: #F8F9FA;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fcfcfc;
}

h1,
h2,
h3,
h4,
h5,
.thai-heading,
.thai-text {
    font-family: 'Kanit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Typography Helpers - Legacy classes kept for safety, but logic moved to body classes */
.thai-heading {
    font-weight: 500;
    color: var(--secondary-color);
}

.thai-text {
    color: var(--text-light);
}

/* --- Language Toggle Logic --- */
/* By default, try to show both or hide one based on body class */
/* If body has class .lang-en, hide .lang-th */
body.lang-en .lang-th {
    display: none !important;
}

/* If body has class .lang-th, hide .lang-en */
body.lang-th .lang-en {
    display: none !important;
}

/* Toggle Button Styling */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Show "TH" text when current lang is EN (to switch to TH) */
body.lang-en .toggle-text.en {
    display: inline;
}

body.lang-en .toggle-text.th {
    display: none;
}

/* Show "EN" text when current lang is TH (to switch to EN) */
body.lang-th .toggle-text.th {
    display: inline;
}

body.lang-th .toggle-text.en {
    display: none;
}

/* ----------------------------- */

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Kanit', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: color 0.3s;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #b00e3a;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-sub {
    margin: 2rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(211, 17, 69, 0.3);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.02);
}

.trust-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.bilingual-block {
    margin: 1.5rem 0;
}

.attributes-list {
    list-style: none;
    margin-top: 2rem;
}

.attributes-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.attributes-list i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Solutions Section */
.solutions {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

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

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(211, 17, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Case Study */
.case-study {
    padding: 5rem 0;
    background: var(--white);
}

.case-study-box {
    background: linear-gradient(135deg, #2D3E50 0%, #1a2530 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
}

.case-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.case-header .thai-highlight {
    color: #e0e0e0;
    font-weight: 300;
}

.story-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.story-item h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #ffd700;
    /* Gold */
}

/* Footer */
footer {
    background: #000;
    color: var(--white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
}

.footer-cta {
    margin-bottom: 3rem;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #222;
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}