/* =========================================================
   Suriya9 — Service: จัดดอกไม้งานศพ (Funeral Flowers)
   โหลดเฉพาะ template-service-flowers.php (คู่กับ service.css)
   ใช้ .sv-hero + ปุ่ม .sv-btn-* จาก service.css ซ้ำ, ส่วนแกลเลอรีคลาส .svf-*
   ========================================================= */

.svf {
  position: relative;
  background: #fff;
}

/* ===== MAIN (เต็มความกว้าง) ===== */
.svf-main {
  padding: 60px 89px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ===== แต่ละหมวด ===== */
.svf-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}
.svf-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  max-width: 1015px;
  width: 100%;
}
.svf-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  color: #8c0e0f;
}
.svf-desc {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.18px;
  line-height: 1.6;
  color: #000;
}
.svf-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== แกลเลอรี (แถวแบบ flex ถ่วงน้ำหนัก) ===== */
.svf-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-end;
}
.svf-row {
  display: flex;
  gap: 18px;
  width: 100%;
  align-items: center;
}
.svf-img {
  position: relative;
  height: 283px;
  overflow: hidden;
  flex-shrink: 0;
}
.svf-grid .svf-row:last-child .svf-img { height: 282px; }
.svf-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* มุมโค้งเฉพาะรูป */
.r-tl-100 { border-top-left-radius: 100px; }
.r-tr-20  { border-top-right-radius: 20px; }
.r-tr-100 { border-top-right-radius: 100px; }
.r-bl-20  { border-bottom-left-radius: 20px; }
.r-br-100 { border-bottom-right-radius: 100px; }
.r-all-20 { border-radius: 20px; }

/* ===== เส้นคั่นลายทอง ===== */
.svf-orn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 64px;
  width: 100%;
}
.svf-orn .ln {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, #bd9a4b, #d1ab35);
}
.svf-orn__c {
  flex-shrink: 0;
  width: 150px;
  height: 73px;
  overflow: hidden;
  position: relative;
  transform: rotate(180deg);
}
.svf-orn__c img {
  position: absolute;
  height: 410.83%;
  left: -52.01%;
  top: -98.9%;
  width: 200.78%;
  max-width: none;
}

/* ===== ดอกไม้ก่อน footer — ตรงตาม Figma export (opacity 0.3 + ตำแหน่งรูปเดียวกัน) ===== */
/* ดึงขึ้นชิด section "แบบสวน" ตามที่ต้องการ */
.svf-flowers {
  position: relative;
  z-index: 0;
  height: 366px;
  overflow: hidden;
  margin-top: -60px;
  margin-bottom: -161px;
  opacity: 0.3;
}
.svf-flowers img {
  position: absolute;
  height: 243.72%;
  width: 108.49%;
  left: -8.48%;
  top: -50.27%;
  max-width: none;
  pointer-events: none;
}

/* กันล้นจอเล็ก */
@media (max-width: 1200px) {
  .svf-main { padding: 60px 40px; }
}
