/* True Thai Home Massage Dubai — shared site styles */

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: #FFF9F2; color: #2B2B2B; font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: 'Poppins', sans-serif; }
input, textarea, select { outline: none; font-family: 'Poppins', sans-serif; }
input::placeholder, textarea::placeholder { color: #B8A080; font-size: 12px; }
select { appearance: none; background: none; cursor: pointer; }

img { max-width: 100%; }

/* -- Keyframes -- */
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes floatLotus { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(4deg); } }
@keyframes goldPulse { 0%, 100% { opacity: 0.07; } 50% { opacity: 0.14; } }
@keyframes shimmerBtn { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes successPop { 0% { transform: scale(0.8); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes checkDraw { 0% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }

/* -- Scroll reveal -- */
.tt-in { opacity: 0; transform: translateY(32px); transition: opacity 0.95s cubic-bezier(.16,1,.3,1), transform 0.95s cubic-bezier(.16,1,.3,1); }
.tt-in.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .40s; } .d6 { transition-delay: .48s; }

/* -- Scrollbar -- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #FFF9F2; }
::-webkit-scrollbar-thumb { background: linear-gradient(#B8860B, #C9A66B); border-radius: 2px; }

/* -- Service card gradient backgrounds -- */
.svc-bg-1 { background: linear-gradient(160deg, #C9A66B 0%, #B8860B 45%, #6B4010 100%); }
.svc-bg-2 { background: linear-gradient(160deg, #B8860B 0%, #8C6239 45%, #3D2008 100%); }
.svc-bg-3 { background: linear-gradient(160deg, #8C6239 0%, #B8860B 50%, #C9A66B 100%); }
.svc-bg-4 { background: linear-gradient(160deg, #5A3620 0%, #8C6239 40%, #B8860B 100%); }
.svc-bg-5 { background: linear-gradient(160deg, #1A1208 0%, #5A3620 40%, #C9A66B 100%); }
.svc-card-img:hover .svc-card-inner { transform: scale(1.03); }

.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.price-table-row { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr; align-items: center; padding: 18px 32px; border-bottom: 1px solid rgba(184,134,11,0.1); transition: background 0.3s; }
.price-table-row:hover { background: rgba(184,134,11,0.03); }

/* -- Pricing table (Pricing page) -- */
.pt-head { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; background: linear-gradient(135deg, #2B1A08, #3D2808, #5A3A14); border-radius: 16px 16px 0 0; overflow: hidden; }
.pt-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; border-bottom: 1px solid rgba(184,134,11,0.1); transition: background 0.3s; }
.pt-row:last-child { border-bottom: none; border-radius: 0 0 16px 16px; overflow: hidden; }
.pt-row:hover { background: rgba(184,134,11,0.04); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; box-shadow: 0 8px 48px rgba(43,26,8,0.1); }
.table-wrap .pt-head, .table-wrap .pt-body { min-width: 580px; }
.step-line { position: absolute; top: 28px; left: calc(50% + 28px); right: calc(-50% + 28px); height: 1px; background: linear-gradient(to right, #B8860B, rgba(184,134,11,0.2)); pointer-events: none; }

/* -- FAQ accordion (class-based, used on Pricing / Contact) -- */
.faq-item { border-bottom: 1px solid rgba(184,134,11,0.15); }
.faq-btn { width: 100%; text-align: left; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; background: none; border: none; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(.16,1,.3,1); }
.faq-body.open { max-height: 400px; }

/* -- Contact form -- */
.form-field { background: #FFF9F2; border: 1px solid rgba(184,134,11,0.2); border-radius: 8px; padding: 14px 18px; transition: border-color 0.3s; }
.form-field:focus-within { border-color: #B8860B; }
.form-field label { display: block; font-family: 'Poppins', sans-serif; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: #B8860B; margin-bottom: 5px; }
.form-field input, .form-field textarea, .form-field select { font-size: 13px; color: #2B2B2B; background: none; line-height: 1.5; border: none; width: 100%; }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(184,134,11,0.12); }

/* -- Blog page -- */
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.cat-chip:hover { background: rgba(184,134,11,0.12); color: #B8860B; }
.search-input::placeholder { color: #B8A080; font-size: 12px; letter-spacing: 1px; }
.search-input:focus { outline: none; }

/* -- Responsive utility classes -- */
@media (max-width: 1300px) { .svc-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 1200px) {
  .md-col2 { grid-template-columns: 1fr 1fr !important; }
  .md-pad { padding-left: 40px !important; padding-right: 40px !important; }
}
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .price-table-row { padding: 16px 20px !important; }
}
@media (max-width: 900px) {
  .hide-sm { display: none !important; }
  .show-sm { display: flex !important; }
  .sm-col1 { grid-template-columns: 1fr !important; }
  .sm-col2 { grid-template-columns: 1fr 1fr !important; }
  .sm-stack { flex-direction: column !important; }
  .sm-pad { padding-left: 24px !important; padding-right: 24px !important; }
  .sm-p80 { padding-top: 72px !important; padding-bottom: 72px !important; }
  .sm-h1 { font-size: 42px !important; }
  .svc-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .price-table-row { grid-template-columns: 1.8fr 1fr 1fr 1fr !important; padding: 14px 16px !important; font-size: 12px !important; }
  body { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  /* Phone widths: one service card per row so each card's full description
     is readable without being squeezed into a half-width column. */
  .svc-grid { grid-template-columns: 1fr !important; }

  /* Pricing table (pricing.html): the desktop 4-column grid (name + 60/90/120)
     relies on a 580px min-width, which just forces horizontal scrolling on
     phones. Instead, drop the min-width and reflow each row with flexbox:
     the name cell (1st child) wraps to its own full-width line, and the
     three duration/price cells (2nd-4th children) sit in one row underneath
     at an even 33% each — no overlap, no scrolling, no cropped "120 Min". */
  .table-wrap { overflow-x: visible !important; }
  .table-wrap .pt-head, .table-wrap .pt-body { min-width: 0 !important; }
  .pt-head, .pt-row { display: flex !important; flex-wrap: wrap !important; }
  .pt-head > div:first-child, .pt-row > div:first-child {
    width: 100% !important;
    padding: 14px 16px !important;
  }
  .pt-head > div:not(:first-child), .pt-row > div:not(:first-child) {
    width: 33.333% !important;
    padding: 10px 4px !important;
    border-left: none !important;
    box-sizing: border-box !important;
  }
  .pt-row > div:first-child > div:first-child { width: 28px !important; height: 28px !important; }
  .pt-row > div:first-child span[style*="font-size:17px"] { font-size: 14px !important; }
  .pt-head div[style*="font-size:22px"] { font-size: 16px !important; }
  .pt-row span[style*="font-size:20px"] { font-size: 15px !important; }
}
