
:root {
  --primary-color: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --secondary-color: #64748b;
  --background-color: #f0f9ff;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 165, 233, 0.1);
  --shadow-lg: 0 8px 24px rgba(14, 165, 233, 0.15);
  --font-family: 'Noto Sans Thai', sans-serif;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  font-family: var(--font-family);
  margin: 0;
  background: linear-gradient(135deg, var(--background-color) 0%, #e0f2fe 100%);
  color: var(--text-color);
  line-height: 1.7;
  min-height: 100vh;
}

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

header {
  background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
}

.logo {
  width: 180;
  max-width: 280px;
  filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.15));
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

header h2 {
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

main {
  padding: 3rem 0;
}

.services {
  text-align: center;
}

.services h3 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.services > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
  text-align: left;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-card h4 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.contact-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
  padding: 4rem 0;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid var(--light-gray);
}

.contact-section h3 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-info {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-info p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.qr-container {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: inline-block;
  border: 2px solid var(--primary-light);
}

.qr-code {
  max-width: 200px;
  display: block;
}

.button-container {
  margin-top: 0.5rem;
}

.button-container img {
  transition: transform 0.25s ease;
}

.button-container img:hover {
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  font-size: 0.95rem;
  color: var(--text-muted);
}

footer p {
  margin: 0;
}


@media (max-width: 768px) {
  header {
    padding: 2rem 0 1.5rem;
  }

  .logo {
    width: 180px;
    max-width: 220px;
  }

  main {
    padding: 2rem 0;
  }

  .service-card {
    padding: 1.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-section {
    padding: 3rem 0;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .qr-container {
    padding: 1rem;
  }

  .qr-code {
    max-width: 170px;
  }
}
