/* Reset และ Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Kanit', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.about-intro > .container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}
p {
  margin-bottom: 1rem;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
img {
  max-width: 100%;
  height: auto;
}
/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-secondary:hover {
  background: white;
  color: #1e3a8a;
}
.btn-full {
  width: 100%;
}
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}
.logo-img {
  height: 40px;
  width: auto;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-link {
  color: #333;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #3b82f6;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.hotline-btn {
  background: #ef4444;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 1.5rem;
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}
/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-logo-img {
  max-width: 320px;
  height: auto;
  margin-bottom: 1rem;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.6));
  z-index: -1;
}
.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* Sections */
section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: 2.5rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}
/* About Section */
.about {
  background: #f8fafc;
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.about-img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.about-img:hover {
  transform: scale(1.05);
}
/* Services Section */
.services-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.service-gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 300px;
}
.service-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.service-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.service-gallery-item:hover .service-gallery-img {
  transform: scale(1.1);
}
.service-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.service-gallery-item:hover .service-gallery-overlay {
  opacity: 1;
}
.service-gallery-content {
  color: white;
  text-align: left;
}
.service-gallery-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}
.service-gallery-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  color: white;
  margin-bottom: 1rem;
}
.service-gallery-click {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
/* Service Modal */
.service-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}
.service-modal-content {
  position: relative;
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}
.service-modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #aaa;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.service-modal-close:hover,
.service-modal-close:focus {
  color: #000;
  background: white;
}
.service-modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #eee;
}
.service-modal-title {
  font-size: 2rem;
  color: #1e3a8a;
  margin: 0;
}
.service-modal-body {
  padding: 2rem;
}
/* Contact company info and responsive map */
.company-info-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}
.company-info h5 {
  margin: 0;
  line-height: 1.6;
}
.map-responsive {
  position: relative;
  overflow: hidden;
  padding-bottom: 92%;
  height: 0;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Reuse/ensure icon and screen-reader helpers */
.contact-icon i,
.footer-contact i {
  font-size: 1.4rem;
  color: #FFF;
  vertical-align: middle;
}
.footer-contact i {
  margin-right: 0.6rem;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 800px) {
  .company-info-map {
    grid-template-columns: 1fr;
  }
}
/* Contact columns (after removing form) */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-right {
  display: block;
}
.company-name {
  color: #22227d;
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.company-address,
.company-contact {
  color: #22227d;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .contact-columns {
    grid-template-columns: 1fr;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon i {
  width: 2em;
  height: 2em;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item a {
  color: #3b82f6;
}
.contact-item a:hover {
  text-decoration: underline;
}
/* Form */
.form-group {
  margin-bottom: 1.5rem;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: 'Kanit', sans-serif;
}
.form-input:focus {
  outline: none;
  border-color: #3b82f6;
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
/* Footer */
.footer {
  background: #1e3a8a;
  color: white;
  padding: 3rem 0 1rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo-img {
  height: 40px;
  margin-bottom: 1rem;
}
.footer-logo h3 {
  color: white;
  margin-bottom: 0.5rem;
}
.footer-logo p {
  opacity: 0.8;
}
.footer-contact h4 {
  margin-bottom: 1rem;
}
.footer-contact p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}
/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Responsive Design */
@media (max-width: 960px) {
  .mobile-menu-btn {
    display: flex;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-title {
    font-size: 2rem;
  }
  .services-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-gallery-item {
    height: 250px;
  }
  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }
  .nav.mobile-open {
    top: 70px;
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .services-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.service-menu {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.6));
}