/* ===================================
   KA SPECIAL PAINT — GLOBAL STYLES
   Theme: Blue & White
   =================================== */

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

:root {
  --blue-900: #0c2340;
  --blue-800: #0f3460;
  --blue-700: #1a4e8a;
  --blue-600: #1d6fba;
  --blue-500: #2d8fe0;
  --blue-400: #5aaee8;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;

  --font-display: 'Prompt', 'Sarabun', sans-serif;
  --font-body: 'Sarabun', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15,52,96,0.08);
  --shadow-md: 0 6px 24px rgba(15,52,96,0.12);
  --shadow-lg: 0 16px 48px rgba(15,52,96,0.16);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-800);
  white-space: nowrap;
}

.logo-icon {
  color: var(--blue-500);
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-700);
  background: var(--blue-50);
}

.nav-links a.active { font-weight: 600; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 4px 16px rgba(29,111,186,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--blue-50);
  box-shadow: var(--shadow-sm);
}

.btn-full { width: 100%; text-align: center; }

/* ---- SECTION HELPERS ---- */
.section { padding: 5rem 0; }
.bg-light { background: var(--gray-50); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-500);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,35,70,0.82) 0%, rgba(15,60,100,0.65) 60%, rgba(20,80,140,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem 4rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-300);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}

/* ---- PAGE HERO ---- */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.page-hero-sm { min-height: 30vh; }

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem 3rem;
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-top: 0.5rem;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-img-wrap {
  height: 200px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img { transform: scale(1.05); }

.service-body {
  padding: 1.4rem;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---- HOW WE WORK ---- */
.how-section { background: var(--blue-50); }

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

.how-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.how-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.how-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }

.how-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.how-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.how-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 0.3rem;
}

.how-item p { font-size: 0.93rem; color: var(--gray-600); }

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-200, #bfdbfe);
  margin-bottom: 0.8rem;
  line-height: 1;
}

.why-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 0.5rem;
}

.why-card p { font-size: 0.92rem; color: var(--gray-600); }

/* ---- GALLERY STRIP ---- */
.gallery-strip {
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.gallery-track {
  display: flex;
  gap: 0;
}

.gallery-track img {
  width: calc(100% / 6);
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(0.8);
  transition: filter var(--transition), transform 0.4s ease;
}

.gallery-track img:hover {
  filter: saturate(1.1);
  transform: scale(1.03);
  z-index: 1;
  position: relative;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 100%);
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.cta-inner p { color: var(--blue-200, #bfdbfe); }

/* ---- FOOTER ---- */
.footer {
  background: var(--blue-900);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-icon { color: var(--blue-400); }
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  display: inline-block;
  margin-left: 0.4rem;
}

.footer-tagline {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--blue-300); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.3rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ---- TWO COL LAYOUT ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.two-col-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.two-col-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* ---- VISION MISSION ---- */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vm-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.vm-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.vm-blue {
  background: var(--blue-800);
  border-color: var(--blue-700);
}

.vm-blue h3, .vm-blue p { color: var(--white); }
.vm-blue p { opacity: 0.85; }

.vm-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.vm-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 0.7rem;
}
.vm-card p { font-size: 0.93rem; color: var(--gray-600); }

/* ---- DETAIL LIST ---- */
.detail-list { display: flex; flex-direction: column; gap: 4rem; }

.detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.detail-item.reverse { direction: rtl; }
.detail-item.reverse > * { direction: ltr; }

.detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.detail-text h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 0.8rem;
}

.detail-text p {
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.detail-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-features li {
  font-size: 0.9rem;
  color: var(--blue-700);
  padding-left: 1.2rem;
  position: relative;
}

.detail-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--blue-500);
}

/* ---- BLUE GRADIENT SECTION ---- */
.bg-blue-gradient {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
}

.training-features { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }

.training-feat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.feat-icon {
  background: var(--blue-500);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- CONTACT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  color: var(--gray-600);
  margin-bottom: 1.8rem;
  font-size: 1rem;
}

.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}

.contact-card-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }

.contact-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-800);
  margin-bottom: 0.25rem;
}

.contact-card a, .contact-card span {
  font-size: 0.93rem;
  color: var(--blue-600);
  line-height: 1.6;
}

.contact-card a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-800);
  margin-bottom: 0.3rem;
}

.form-card > p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.6rem;
}

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

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(45,143,224,0.12);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 0.5rem;
}

/* ---- HOURS ---- */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.hours-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: var(--transition);
}

.hours-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.hours-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.hours-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 0.4rem;
}

.hours-card p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.6; }

/* ---- PRIVACY ---- */
.privacy-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.privacy-meta {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
}

.privacy-meta p { font-size: 0.9rem; color: var(--gray-600); }

.privacy-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.privacy-section { margin-bottom: 2.5rem; }

.privacy-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-100);
}

.privacy-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-700);
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.privacy-section p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.privacy-section ul {
  padding-left: 1.5rem;
  color: var(--gray-600);
  line-height: 1.9;
}

.privacy-contact-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-top: 1rem;
}

.privacy-contact-box p {
  font-size: 0.93rem;
  margin-bottom: 0.4rem;
}

.privacy-contact-box a { color: var(--blue-600); }
.privacy-contact-box a:hover { text-decoration: underline; }

.privacy-footer-note {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 1rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .two-col,
  .how-inner,
  .detail-item,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-item.reverse { direction: ltr; }

  .two-col-img img,
  .how-img img {
    height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-track img {
    width: calc(100% / 3);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-content { padding: 5rem 1.5rem 3rem; }
  .hero-title { font-size: 2.2rem; }

  .section { padding: 3rem 0; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner { grid-template-columns: 1fr; }

  .gallery-track img {
    width: calc(100% / 2);
  }

  .hero-actions { flex-direction: column; }

  .section-label + .section-title { text-align: left; }
}
