/* Custom Styles for Snapafoto */

/* Noto Sans Thai Font - รองรับภาษาไทยและลาติน */
@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 100;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-100.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 200;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-200.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 800;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-800.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 900;
  src: url('/fonts/noto-sans-thai-v29-latin_thai-900.woff2') format('woff2');
}

body {
  font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 14px;
}

* {
  font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.py-6 {
  padding-top: 8rem !important;
  padding-bottom: 4rem !important;
}

/* Reduce hero vertical padding on small screens */
@media (max-width: 576px) {
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Navigation hover background */
.navbar-nav .nav-link {
  border-radius: 10px;
  transition: background-color 0.2s;
}

.navbar-nav .nav-link:hover {
  background-color: #F0F0EF;
}

/* Hero image fixed height with responsive scaling */
.hero-image {
  height: clamp(280px, 45vh, 640px);
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-image {
    height: clamp(360px, 50vh, 680px);
  }
}

@media (min-width: 992px) {
  .hero-image {
    height: clamp(420px, 55vh, 720px);
  }
}

/* ========== Home (index) ========== */
.home-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.7) 100%);
}
.home-hero-content {
  z-index: 1;
  padding: 2.5rem 0;
  text-align: center;
}
.home-hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.home-hero-title {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.home-hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.95;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.home-hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  opacity: 0.92;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.home-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.home-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.home-hero-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
.home-hero-cta .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Home - Services block */
.home-services-wrap {
  background: #f8f9fa;
}
.home-services-intro {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.home-services-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.home-services-heading {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.home-services-desc {
  font-size: 0.95rem;
  color: #6b7280;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Home - บริการ 1 section ต่อ 1 บริการ */
.home-service-row {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.home-service-row:last-of-type {
  border-bottom: none;
}
.home-service-row-link {
  position: relative;
  display: block;
  transition: transform 0.35s ease;
}
.home-service-row-link:hover {
  transform: scale(1.02);
}
.home-service-row-img-wrap img {
  object-fit: cover;
  transition: transform 0.5s ease;
}
.home-service-row-link:hover .home-service-row-img-wrap img {
  transform: scale(1.05);
}
.home-service-row-num {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1;
}
.home-service-row-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}
.home-service-row-desc {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.home-service-row-btn:hover {
  transform: translateX(4px);
}
.home-service-row-btn {
  transition: transform 0.2s ease;
}

/* หน้าจอโทรศัพท์: ข้อความบริการอยู่ตรงกลาง */
@media (max-width: 767px) {
  .home-service-row .col-md-7 {
    text-align: center;
  }
  .home-service-row-btn {
    display: inline-block;
  }
}

/* Home - CTA strip */
.home-cta {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
}
.home-cta-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.95;
}
.home-cta-btn:hover {
  background: #fff;
  color: #1a1a1a;
  transform: translateY(-2px);
}
.home-cta-btn {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* ลูกค้าองค์กร - โลโก้ใน public/images/clients/ */
.client-logo-img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  box-shadow: none;
  border: none;
}

.tracking { letter-spacing: 0.08em; }
.border-2 { border-width: 2px !important; }

/* Home - การ์ดบริการ (cards) */
.home-service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
}
.home-service-card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}
.home-service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-service-card:hover .home-service-card-img {
  transform: scale(1.06);
}

/* Home - Bento */
.home-bento-big-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eee;
}
.home-bento-big-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-service-bento-big:hover .home-bento-big-img img {
  transform: scale(1.05);
}
.home-bento-small-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}
.home-bento-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-service-bento-small:hover .home-bento-small-img img {
  transform: scale(1.06);
}

/* Home - Overlay แนวงานแต่ง */
.home-service-wedding {
  --wedding-cream: #faf8f5;
  --wedding-gold: #b8860b;
  --wedding-rose: #c9a86c;
  --wedding-text: #3d3630;
  --wedding-muted: #6b635b;
}
.home-service-wedding-frame {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--wedding-cream);
  box-shadow: 0 4px 24px rgba(61, 54, 48, 0.08), 0 0 0 1px rgba(201, 168, 108, 0.15);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.home-service-wedding:hover .home-service-wedding-frame {
  box-shadow: 0 12px 40px rgba(61, 54, 48, 0.12), 0 0 0 1px rgba(201, 168, 108, 0.25);
  transform: translateY(-4px);
}
.home-service-wedding-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.home-service-wedding:hover .home-service-wedding-img {
  transform: scale(1.04);
}
.home-service-wedding-accent {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wedding-gold), var(--wedding-rose), var(--wedding-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease;
}
.home-service-wedding:hover .home-service-wedding-accent {
  opacity: 1;
  top: 12px;
}
.home-service-wedding-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(250, 248, 245, 0.98) 0%, rgba(250, 248, 245, 0.92) 70%, transparent 100%);
  border-top: 1px solid rgba(201, 168, 108, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.home-service-wedding:hover .home-service-wedding-caption {
  background: linear-gradient(to top, rgba(250, 248, 245, 0.99) 0%, rgba(250, 248, 245, 0.95) 75%, transparent 100%);
  border-top-color: rgba(201, 168, 108, 0.5);
}
.home-service-wedding-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wedding-text);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.home-service-wedding-desc {
  font-size: 0.8rem;
  color: var(--wedding-muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.home-service-wedding-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wedding-gold);
  letter-spacing: 0.03em;
}
.home-service-wedding:hover .home-service-wedding-link {
  color: var(--wedding-rose);
}

/* Wedding แนวงานแต่ง - การ์ดละ 1 แถว (รูปซ้าย ข้อความขวา) */
.home-service-wedding-list .home-service-wedding-frame {
  aspect-ratio: unset;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.home-service-wedding-one-row-img {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
}
.home-service-wedding-one-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.home-service-wedding:hover .home-service-wedding-one-row-img img {
  transform: scale(1.04);
}
.home-service-wedding-list .home-service-wedding-caption {
  position: static;
  flex: 1;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(201, 168, 108, 0.35);
  background: var(--wedding-cream);
}
.home-service-wedding-list .home-service-wedding:hover .home-service-wedding-caption {
  background: #f5f2ed;
}
.home-service-wedding-list .home-service-wedding-accent {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--wedding-gold), var(--wedding-rose), var(--wedding-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.home-service-wedding-list .home-service-wedding:hover .home-service-wedding-accent {
  opacity: 1;
}
@media (min-width: 768px) {
  .home-service-wedding-list .home-service-wedding-frame {
    flex-direction: row;
    min-height: 220px;
  }
  .home-service-wedding-one-row-img {
    width: 38%;
    min-width: 280px;
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
  }
  .home-service-wedding-list .home-service-wedding-caption {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: none;
    border-left: 1px solid rgba(201, 168, 108, 0.35);
    padding: 1.5rem 2rem;
  }
  .home-service-wedding-list .home-service-wedding-accent {
    left: 38%;
    top: 0;
    width: 48px;
    height: 3px;
    transform: translate(-50%, 0);
  }
}

/* ========== Video (360, videoguestbook) ========== */
.video-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrapper .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* หน้า 360: ความสูงตามสัดส่วนจริงของวิดีโอ */
.video-wrapper--360 {
  aspect-ratio: unset;
  height: auto;
}
.video-wrapper--360 .video-thumbnail {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: top;
}
.video-wrapper:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}
.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  pointer-events: none;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-lightbox-content {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
/* หน้า 360: วิดีโอขนาดใหญ่ */
.video-lightbox-content--360 {
  width: 90%;
  max-width: 90%;
  max-height: 90vh;
}
/* หน้า Video Guestbook: วิดีโอขนาดเล็กลง */
.video-lightbox-content--guestbook {
  width: min(90vw, calc(75vh * 16 / 9));
  max-height: 75vh;
}
.video-lightbox-content video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.video-lightbox-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-lightbox-youtube iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}
.video-lightbox-close:hover {
  color: #ccc;
}

/* ========== Photobooth Bento + Glass (หน้า photobooth) ========== */
.pb-bento-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}
.pb-bento-heading {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
/* Bento grid: บรรทัด 1 เต็มความกว้าง, บรรทัด 2 สองคอลัมน์, บรรทัด 3 เต็มความกว้าง */
.pb-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .pb-bento {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .pb-bento-card--wide {
    grid-column: 1 !important;
  }
}
.pb-bento-card--wide {
  grid-column: 1 / -1;
}
/* การ์ดสไตล์ glassmorphism (ไม่มีเงา ไม่มี hover ไม่มีเส้นขอบ) */
.pb-bento-card,
.pb-bento-card * {
  border: none !important;
}
.pb-bento-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
}
.pb-bento-card:focus {
  outline: none;
}
.pb-bento-card__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e5e7eb;
}
.pb-bento-card--wide .pb-bento-card__img-wrap {
  aspect-ratio: 21/9;
}
.pb-bento-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pb-bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  pointer-events: none;
}
.pb-bento-card__num {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}
.pb-bento-card__body {
  box-sizing: content-box;
  padding: 1.35rem 1.5rem 1.5rem;
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
div.pb-bento-card__body {
  border: 0 !important;
  outline: 0 !important;
}
div.pb-bento-card__body:focus {
  outline: none !important;
  outline-width: 0 !important;
}
.pb-bento-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.pb-bento-card__text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
}

/* ========== Trust copy (มั่นใจด้วยมาตรฐาน) - หน้าจอเล็กให้ขึ้นบรรทัดเหมือนจอปกติ ========== */
.trust-copy {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 576px) {
  .trust-copy {
    max-width: 22em; /* จำกัดความกว้างบนมือถือ ให้ข้อความขึ้น 2 บรรทัดใกล้เคียงจอใหญ่ */
  }
}

/* ========== Utilities (ใช้ร่วมทุกหน้า, Bootstrap ไม่มี) ========== */
/* aspect-ratio 3/2 - Bootstrap มีแค่ ratio-1x1, 4x3, 16x9, 21x9 */
.gallery-cell {
  aspect-ratio: 3/2;
}
/* ========== Contact page – ช่องทางติดต่อ card สีตาม brand ========== */
.contact-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
}
.contact-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__icon svg {
  width: 100%;
  height: 100%;
}
.contact-card__value {
  font-size: 0.95rem;
  word-break: break-all;
}
.contact-card--phone {
  background: #212529;
}
.contact-card--email {
  background: #495057;
}
.contact-card--line {
  background: #00b900;
}
.contact-card--facebook {
  background: #1877f2;
}
.contact-card--youtube {
  background: #ff0000;
}

/* LINE card ใช้ไฟล์ line-ar21.svg ให้แสดงเป็นสีขาวบนพื้นเขียว */
/* LINE icon สลับสี: เขียวเดิม → ขาว, ขาวเดิม → เขียว #00b900 */
.contact-card--line .line-icon-svg__bg {
  fill: #fff;
}
.contact-card--line .line-icon-svg__fg,
.contact-card--line .line-icon-svg__fg path {
  fill: #00b900;
}

.contact-icon {
  width: 40px;
  height: 40px;
}
.hero-desc-max {
  max-width: 540px;
}
