/* =====================================================
   สำนักงานกฎหมายธาดาภูมิ บานชื่น - Custom Stylesheet
   ใช้ร่วมกับ Tailwind CSS (CDN) สำหรับส่วนที่ต้อง Custom เพิ่มเติม
   ===================================================== */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Header Scrolled State ---------- */
#site-header.scrolled {
  height: 72px;
  box-shadow: 0 6px 24px rgba(4, 27, 77, 0.35);
}

/* ---------- Nav Links (Desktop) ---------- */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #D4A24C;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #D4A24C;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---------- Mobile Nav Links ---------- */
.mobile-nav-link {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(212, 162, 76, 0.12);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav-link:hover {
  color: #D4A24C;
  padding-left: 8px;
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-block;
  padding: 10px 26px;
  background: linear-gradient(135deg, #E8C381, #D4A24C);
  color: #041B4D;
  font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(212, 162, 76, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(212, 162, 76, 0.5);
}

.btn-gold-lg {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #E8C381, #D4A24C);
  color: #041B4D;
  font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(212, 162, 76, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 162, 76, 0.55);
}

.btn-outline-lg {
  display: inline-block;
  padding: 14px 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border-radius: 6px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.btn-outline-lg:hover {
  border-color: #D4A24C;
  background-color: rgba(212, 162, 76, 0.08);
}

/* ---------- Hero Overlay ---------- */
.hero-overlay {
  background: linear-gradient(
    to right,
    #041B4D 0%,
    rgba(4, 27, 77, 0.85) 12%,
    rgba(4, 27, 77, 0.35) 35%,
    rgba(4, 27, 77, 0.05) 60%
  );
}

/* ---------- Glassmorphism Floating Card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 10px;
  padding: 18px 22px;
  max-width: 320px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Service Boxes (Hero, 2x2 Grid) ---------- */
.service-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(212, 162, 76, 0.16), rgba(212, 162, 76, 0.06));
  border: 1px solid rgba(212, 162, 76, 0.3);
  border-radius: 8px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service-box:hover {
  background: linear-gradient(135deg, rgba(212, 162, 76, 0.3), rgba(212, 162, 76, 0.12));
  border-color: #D4A24C;
  transform: translateY(-3px);
}
.service-box-icon {
  font-size: 20px;
  line-height: 1;
}

/* ---------- Service Cards (Services Section) ---------- */
.service-card {
  background: #ffffff;
  border: 1px solid rgba(4, 27, 77, 0.08);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 4px 18px rgba(4, 27, 77, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(4, 27, 77, 0.12);
  border-color: rgba(212, 162, 76, 0.4);
}
.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, #041B4D, #0A2E6B);
  margin-bottom: 18px;
}

/* ---------- Article Cards ---------- */
.article-card {
  background: #ffffff;
  border: 1px solid rgba(4, 27, 77, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(4, 27, 77, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(4, 27, 77, 0.12);
}

/* ---------- Contact Section ---------- */
.contact-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 162, 76, 0.12);
  border: 1px solid rgba(212, 162, 76, 0.3);
  border-radius: 8px;
  font-size: 18px;
  flex-shrink: 0;
}

.form-label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-input:focus {
  outline: none;
  border-color: #D4A24C;
  background: rgba(255, 255, 255, 0.1);
}
.form-input option {
  color: #041B4D;
}

/* ---------- Social Icons ---------- */
.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 162, 76, 0.4);
  color: #D4A24C;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.social-icon:hover {
  background: #D4A24C;
  color: #041B4D;
}

/* =====================================================
   ANIMATIONS - Fade-in สุภาพ ไม่หวือหวา
   ===================================================== */
.fade-in,
.fade-in-up,
.fade-in-up-delay {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up-delay {
  transition-delay: 0.2s;
}

.fade-in.visible,
.fade-in-up.visible,
.fade-in-up-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1024px) {
  .glass-card {
    max-width: 280px;
    padding: 14px 18px;
  }
}

@media (max-width: 768px) {
  .service-box {
    font-size: 12.5px;
    padding: 12px 12px;
  }
  .glass-card {
    position: relative;
    margin: -50px auto 0;
    right: 0 !important;
    bottom: 0 !important;
  }
}
