/* ============================================
   เว็บโปรไฟล์ธุรกิจ — template "Clean สากล"
   ปรับสีแบรนด์ที่ตัวแปร 2 ตัวนี้เท่านั้น
   ============================================ */
:root {
  --brand: #b34e15;        /* สีหลักของร้าน */
  --brand-dark: #6e2e0a;   /* เฉดเข้ม ใช้กับ hover/footer */
  --line-green: #06c755;   /* สีปุ่ม LINE — ห้ามแก้ */
  --ink: #1e2423;
  --ink-soft: #55605e;
  --bg: #ffffff;
  --bg-alt: #f4f7f6;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Thai', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

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

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

.narrow { max-width: 760px; }

h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); }
.btn-line { background: var(--line-green); color: #fff; }

/* ---------- แถบบน ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7ecea;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.logo {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.05rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav { display: flex; gap: 1.2rem; }

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.topnav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 20, 18, 0.45), rgba(10, 20, 18, 0.6));
}

.hero-inner { position: relative; width: 100%; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  margin: 0.8rem auto 1.8rem;
  max-width: 640px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn { font-size: 1.05rem; padding: 0.85rem 2rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section p + p { margin-top: 1rem; }

/* ---------- การ์ดบริการ ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}

.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card .price {
  margin-top: 0.8rem;
  color: var(--brand);
  font-weight: 700;
}

.section-note {
  margin-top: 1.6rem;
  text-align: center;
  font-weight: 700;
  color: var(--brand);
}

/* ---------- แกลเลอรี ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- ติดต่อ / แผนที่ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 1.3rem 0 0.3rem;
}

.contact-info h3:first-child { margin-top: 0; }

.hours { border-collapse: collapse; }
.hours td { padding: 0.15rem 1.4rem 0.15rem 0; color: var(--ink-soft); }
.hours td:last-child { font-weight: 600; color: var(--ink); }

.contact-links { display: flex; flex-direction: column; gap: 0.4rem; }

.contact-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.6rem 0;
  font-size: 0.9rem;
  text-align: center;
  /* กันปุ่มลอยบังข้อความบนมือถือ */
  padding-bottom: 5.5rem;
}

.footer a { color: #fff; }

/* ---------- ปุ่มลอย (มือถือ) ---------- */
.float-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.float-call { background: var(--brand); }
.float-line { background: var(--line-green); }

/* ---------- Responsive ---------- */
@media (min-width: 761px) {
  /* จอใหญ่มีปุ่มโทรบน topbar แล้ว ซ่อนปุ่มลอย */
  .float-actions { display: none; }
  .footer { padding-bottom: 1.6rem; }
}

@media (max-width: 760px) {
  .topnav, .topbar-cta { display: none; }
  .hero { min-height: 62vh; }
  .section { padding: 3rem 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
