/*
Theme Name: KPT Transport Custom Theme
Author: Assistant
Description: Custom WordPress Theme for KP Transport
Version: 1.0
Text Domain: kpt-transport
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #0b3c82;
  --secondary-blue: #0072bc;
  --light-blue: #e8f3fa;
  --accent-blue: #1e88e5;
  --dark-text: #222222;
  --light-bg: #f8fafc;
  --white: #ffffff;
}

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

body {
  font-family: 'Noto Sans Thai', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: #fff;
}

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

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

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

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

.logo img {
  max-height: 50px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.main-navigation a {
  font-weight: 500;
  font-size: 15px;
  color: var(--dark-text);
  transition: color 0.3s;
}

.main-navigation a:hover {
  color: var(--secondary-blue);
}

.btn-header {
  background-color: var(--primary-blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 60, 130, 0.7) 0%, rgba(11, 60, 130, 0.85) 100%),
              url('https://via.placeholder.com/1920x800/0b3c82/ffffff?text=Hero+Background+Truck') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 100px;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-desc {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background-color: var(--secondary-blue);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: 500;
  display: inline-block;
}

.btn-outline {
  border: 1px solid var(--white);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 20px;
  display: inline-block;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-content {
  flex: 1;
}

.section-subtitle {
  color: var(--secondary-blue);
  font-weight: 600;
  font-size: 18px;
}

.section-title {
  font-size: 28px;
  color: var(--primary-blue);
  margin: 10px 0 20px;
}

/* Services Section */
.services-section {
  background: linear-gradient(180deg, #1976d2 0%, #0d47a1 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.services-section .section-title {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  color: var(--dark-text);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.service-card-body {
  padding: 20px;
}

.service-card h3 {
  font-size: 16px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

/* News Section */
.news-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

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

.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.news-card-body {
  padding: 20px;
}

/* Partners Section */
.partners-section {
  padding: 60px 0;
  text-align: center;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.partners-logos img {
  height: 50px;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

/* Banner CTA */
.banner-cta {
  background: linear-gradient(90deg, #1565c0, #1e88e5);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}

/* Contact Form Section */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: flex;
  gap: 40px;
}

.contact-image {
  flex: 1;
}

.contact-image img {
  width: 100%;
  border-radius: 16px;
}

.contact-form-container {
  flex: 1;
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
}

/* Footer */
.site-footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 14px;
}