/* =========================================================
   Suriya9 — ติดต่อเรา (Contact) — คลาส .ct-*
   ใช้ hero (.cf-hero/.cf-top/.cf-title/.cf-divider) ร่วมกับ coffin.css
   ========================================================= */

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

.ct-main {
  max-width: 1308px;
  margin: 48px auto 0;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}

/* ===== INTRO ===== */
.ct-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 0;
}
/* พื้นหลังดอกไม้ขาว-ทอง ด้านขวา (Group 5) ตามดีไซน์ */
.ct-intro::before {
  content: "";
  position: absolute;
  top: -75px; /* ยึดขอบบนไว้ใต้ banner (ไม่ชนบน) แล้วขยายลงล่าง */
  right: calc(50% - 50vw); /* ชิดขอบขวาของจอ (full-bleed) */
  width: min(80vw, 1200px);
  height: 560px; /* ขยายลงล่าง (การ์ดมี z-index:1 คลุมไว้) */
  background: url("../images/contact/contact-intro-flowers.webp") right center / cover no-repeat;
  /* เฟดทั้งขอบบนและขอบล่างให้จางลง ไม่ให้ตัดแข็ง */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.ct-intro__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.2;
  color: #333;
}
.ct-intro__text {
  margin: 0;
  max-width: 1080px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #404040;
}
.ct-intro__btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.ct-btn-gold,
.ct-btn-outline {
  width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 36px;
  border-radius: 100px;
  box-shadow: 0 10px 12px rgba(166, 124, 30, 0.4);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.ct-btn-gold {
  border: 1px solid #fff;
  background: linear-gradient(93.55deg, #a67c1e 1.52%, #d4af37 99.43%);
  color: #fffdf6;
}
.ct-btn-outline {
  background: #fff;
  border: 1px solid #cea934;
  color: #bd9a4b;
}

/* ===== GRID (รูป + การ์ดข้อมูล) ===== */
.ct-grid {
  display: flex;
  gap: 28px;
  align-items: stretch;
  width: 100%;
  position: relative;
  z-index: 1; /* การ์ดอยู่บน floral bg ของ ct-intro เสมอ */
}
.ct-photo {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  border: 4px solid #fff;
  border-radius: 0 50px 0 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-height: 494px;
}
.ct-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
}

.ct-cards {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ct-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ct-card__icon {
  width: 32px;
  height: 32px;
}
.ct-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.ct-card__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #000;
}
.ct-card__value {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  color: #000;
}
.ct-card__note {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #404040;
}

/* ===== ดอกไม้ก่อน footer ===== */
.ct-flowers { position: relative; z-index: 0; height: 300px; overflow: hidden; opacity: 1; margin-top: -120px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 55%); mask-image: linear-gradient(to bottom, transparent 0, #000 55%); } /* เฟดขาวด้านบนของรูปดอกไม้ */
.ct-flowers img { position: absolute; width: 100%; left: 0; bottom: 0; height: auto; max-width: none; }

@media (max-width: 1080px) {
  .ct-grid { flex-direction: column; }
  .ct-photo { min-height: 320px; }
}
@media (max-width: 640px) {
  .ct-cards { grid-template-columns: 1fr; }
}

/* อีเมล / เบอร์โทร / ที่อยู่ / LINE กดได้ */
.ct-card__value a, .ct-card__note a { color: inherit; text-decoration: none; transition: color .18s; }
.ct-card__value a:hover, .ct-card__note a:hover { color: #94641e; text-decoration: underline; text-underline-offset: 4px; }
.ct-card__value--tel a { display: block; } /* เบอร์โทรบรรทัดละเบอร์ ทั้งจอคอมและมือถือ */
