/* Palette: Navy Blue, Dark Grey, White */
:root {
    --navy: #0D47A1;
    --road-grey: #333333;
    --asphalt: #121212;
    --light-bg: #F4F7F9;
    --text-color: #2c3e50;
    --white: #ffffff;
    
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Header */
.connect-header { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--asphalt); letter-spacing: 1px; }
.blue { color: var(--navy); }
.sub-logo { display: block; font-size: 0.7rem; font-weight: 400; margin-top: -5px; letter-spacing: 3px; color: var(--navy); }

.main-nav a { margin-left: 20px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: #555; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }

.btn-primary { background: var(--navy); color: var(--white) !important; padding: 10px 25px; border-radius: 2px; }
.btn-primary:hover { background: #000; }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: var(--asphalt); }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 260px; height: 100%; background: var(--asphalt); z-index: 2000; transition: 0.4s; padding: 20px; display: flex; flex-direction: column; }
.mobile-menu.active { right: 0; }
.close-btn { align-self: flex-end; color: var(--white); background: none; border: none; font-size: 2rem; cursor: pointer; }
.mobile-menu a { color: var(--white); font-family: var(--font-heading); font-size: 1.3rem; padding: 15px 0; border-bottom: 1px solid #333; }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
}

/* Hero Section */
.hero-infra { height: 80vh; background-size: cover; background-position: center; position: relative; }
.hero-mask { width: 100%; height: 100%; background: rgba(13, 71, 161, 0.7); display: flex; align-items: center; }
.hero-content { color: var(--white); max-width: 800px; padding-left: 5%; }
.top-label { background: var(--white); color: var(--navy); padding: 5px 15px; font-weight: 700; font-size: 0.8rem; border-radius: 20px; display: inline-block; margin-bottom: 20px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: #e0e0e0; margin-bottom: 40px; }

.action-row { display: flex; gap: 20px; }
.btn-main { background: var(--white); color: var(--navy); padding: 15px 30px; font-weight: 700; font-family: var(--font-heading); }
.btn-outline-white { border: 2px solid var(--white); color: var(--white); padding: 13px 30px; font-weight: 700; }

/* Stats Strip */
.counter-strip { background: var(--asphalt); color: var(--white); padding: 40px 0; }
.strip-grid { display: flex; justify-content: space-around; text-align: center; }
.stat strong { display: block; font-family: var(--font-heading); font-size: 3rem; color: var(--navy); line-height: 1; }
.stat span { font-size: 0.9rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* Expertise Grid */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--asphalt); }
.blue-dash { width: 80px; height: 5px; background: var(--navy); margin: 15px auto 0; }
.blue-dash.left { margin: 20px 0; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.exp-card { background: var(--white); border: 1px solid #ddd; padding: 20px; text-align: center; transition: 0.3s; }
.exp-card:hover { transform: translateY(-5px); border-color: var(--navy); }
.exp-card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 20px; }
.exp-card h3 { font-family: var(--font-heading); color: var(--navy); margin-bottom: 10px; }
.exp-card p { color: #666; font-size: 0.95rem; }

/* About & Contact */
.about-flex { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.text-side h1 { font-family: var(--font-heading); font-size: 2.8rem; line-height: 1.2; }
.cert-list { margin-top: 30px; }
.cert-item { background: #e3f2fd; color: var(--navy); padding: 12px 20px; margin-bottom: 10px; font-weight: 600; border-left: 4px solid var(--navy); }

.contact-box { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: var(--white); padding: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.info-side h2 { font-family: var(--font-heading); color: var(--navy); }
.c-data { margin-top: 30px; font-weight: 500; }
.c-data p { margin-bottom: 10px; color: #555; }

.infra-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.infra-form input, .infra-form select, .infra-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; font-family: var(--font-body); background: #fafafa; }
.infra-form select { margin-bottom: 20px; }
.btn-submit { width: 100%; background: var(--navy); color: var(--white); border: none; padding: 15px; font-family: var(--font-heading); font-weight: 700; cursor: pointer; }

/* Partners & Legal */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.partner-card { background: var(--white); padding: 30px; border-top: 5px solid #ddd; }
.partner-card.highlight { border-top-color: var(--navy); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.partner-card h3 { font-family: var(--font-heading); margin-bottom: 15px; font-size: 1.1rem; }

.legal-content { max-width: 800px; margin: 0 auto; background: var(--white); padding: 50px; }
.legal-content h1 { font-family: var(--font-heading); }
.legal-content h3 { color: var(--navy); margin-top: 30px; font-family: var(--font-heading); }

/* Footer */
.connect-footer { background: var(--asphalt); color: #888; padding: 60px 0 20px; margin-top: 80px; border-top: 5px solid var(--navy); }
.footer-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; padding-bottom: 30px; margin-bottom: 20px; }
.f-info h4 { color: var(--white); font-family: var(--font-heading); font-size: 1.5rem; }
.f-links a { margin-left: 20px; color: var(--white); }
.copyright { text-align: center; font-size: 0.85rem; }

/* Cookie */
.cookie-box { position: fixed; bottom: 20px; left: 20px; background: var(--white); border-left: 5px solid var(--navy); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 20px; z-index: 3000; display: none; }
.cookie-box.active { display: flex; }
.cookie-box button { background: var(--navy); color: var(--white); border: none; padding: 8px 20px; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content { padding-right: 5%; }
    .strip-grid { flex-direction: column; gap: 30px; }
    .expertise-grid, .about-flex, .contact-box, .infra-form .form-row, .partner-grid { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; text-align: center; gap: 30px; }
}