/* =============================================
   TZ Gate Auto - Shared Stylesheet
   ============================================= */
:root {
  --blue: #1a56db;
  --blue-dark: #1240a8;
  --blue-light: #dbeafe;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --green-line: #06c755;
  --dark: #111827;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 10px 0;
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-box {
  width: 40px; height: 40px;
  background: var(--blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.nav-logo-text .brand { font-size: 17px; font-weight: 800; color: var(--blue); line-height: 1; }
.nav-logo-text .sub { font-size: 11px; color: var(--gray); }

.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(26,86,219,0.35); }

.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #e08e00; box-shadow: 0 6px 20px rgba(245,158,11,0.45); }

.btn-green { background: var(--green-line); color: white; }
.btn-green:hover { background: #05a847; box-shadow: 0 6px 20px rgba(6,199,85,0.35); }

.btn-outline {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, #0d1f4e 0%, #1a3a8f 55%, #1a56db 100%);
  display: flex; align-items: center;
  padding: 65px 0 48px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1' fill='white' fill-opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4);
  color: #fbbf24; padding: 5px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 3rem; font-weight: 800; color: white; line-height: 1.25; margin-bottom: 16px; }
.hero h1 .hl { color: #fbbf24; }
.hero .sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.9; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 28px; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: #fbbf24; line-height: 1; }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 28px;
}
.hero-card-title {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
.hc-list { list-style: none; }
.hc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: white;
}
.hc-item:last-child { border-bottom: none; }
.hc-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(26,86,219,0.45); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #93c5fd;
}
.hc-item strong { display: block; font-size: 14px; font-weight: 600; }
.hc-item span { font-size: 12px; color: rgba(255,255,255,0.55); }

/* ===== SECTION BASE ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-light); }
.s-label {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: 0.5px;
}
.s-title { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.s-sub { color: var(--gray); font-size: 15px; max-width: 580px; }
.center { text-align: center; }
.s-sub.center { margin: 0 auto; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px; margin-top: 44px;
}
.card {
  background: white; border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 26px;
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}
.card-ico {
  width: 52px; height: 52px;
  background: var(--blue-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--blue); margin-bottom: 18px;
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 14px; line-height: 1.75; }
.card-tag {
  display: inline-block; margin-top: 14px;
  background: #f0fdf4; color: #15803d;
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}

/* ===== WHY US (dark bg) ===== */
.why-section {
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  color: white; padding: 72px 0;
}
.why-section .s-label { background: rgba(255,255,255,0.15); color: #93c5fd; }
.why-section .s-title { color: white; }
.why-section .s-sub { color: rgba(255,255,255,0.7); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin-top: 44px;
}
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 26px; text-align: center;
  transition: all 0.25s;
}
.why-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-4px); }
.why-ico { font-size: 32px; margin-bottom: 12px; }
.why-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ===== AREAS ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; justify-content: center; }
.chip {
  display: flex; align-items: center; gap: 6px;
  background: white; border: 2px solid #e5e7eb;
  padding: 8px 18px; border-radius: 30px;
  font-size: 14px; font-weight: 600; transition: all 0.18s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.chip i { color: var(--blue); }
.area-note { text-align: center; margin-top: 20px; color: var(--gray); font-size: 14px; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-top: 44px; align-items: start;
}
.contact-item {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px;
}
.ci-ico {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ci-ico.blue { background: var(--blue-light); color: var(--blue); }
.ci-ico.green { background: #dcfce7; color: #15803d; }
.ci-ico.amber { background: var(--gold-light); color: #92400e; }
.ci-text strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.ci-text span { color: var(--gray); font-size: 14px; }
.ci-text a { color: var(--blue); font-weight: 600; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--blue), #1e3a8a);
  border-radius: 20px; padding: 36px; color: white; text-align: center;
}
.cta-box .cta-icon { font-size: 44px; margin-bottom: 14px; color: #93c5fd; }
.cta-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.cta-box p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 24px; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; }
.cta-tel {
  background: var(--gold); color: var(--dark);
  padding: 13px 20px; border-radius: 11px;
  font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all 0.2s;
}
.cta-tel:hover { background: #e08e00; transform: scale(1.02); }
.cta-line-btn {
  background: var(--green-line); color: white;
  padding: 12px 20px; border-radius: 11px;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all 0.2s;
}
.cta-line-btn:hover { background: #05a847; transform: scale(1.02); }
.cta-note { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.55); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  text-align: center; padding: 28px 20px; font-size: 14px;
}
footer .f-brand { font-size: 18px; font-weight: 800; color: white; margin-bottom: 6px; }
footer a { color: #93c5fd; }
footer .f-copy { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ===== FLOATING BUTTONS ===== */
.float-wrap {
  position: fixed; bottom: 22px; right: 22px;
  display: flex; flex-direction: column; gap: 10px; z-index: 900;
}
.fbtn {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  transition: all 0.2s; position: relative;
}
.fbtn:hover { transform: scale(1.1); }
.fbtn-tel { background: var(--blue); }
.fbtn-line { background: var(--green-line); }
.fbtn .tip {
  position: absolute; right: 62px;
  background: var(--dark); color: white;
  padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.fbtn:hover .tip { opacity: 1; }
.fbtn-top {
  background: #1e293b;
  border: 2px solid #fbbf24;
  color: #fbbf24 !important;
  opacity: 0; pointer-events: none; transition: all 0.3s;
}
.fbtn-top.show { opacity: 1; pointer-events: auto; }
.fbtn-top:hover { background: #fbbf24; color: #1e293b !important; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb i { font-size: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.1rem; }
  .s-title { font-size: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .nav-logo-text .brand { font-size: 15px; }
  .btn-lg { padding: 12px 20px; font-size: 15px; }
  .section, .why-section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .hero { padding: 90px 0 48px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-btns { flex-direction: column; }
  .nav-actions .btn span { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
}
