/* ==========================================================================
   DQueue – shared design polish (loaded after style.css + colors/*.css)
   NOTE: theme root font-size is 20px, so 1rem = 20px.
   ========================================================================== */

:root {
  /* Override theme's default Manrope font everywhere (body, buttons, form controls) */
  --bs-font-sans-serif: 'Noto Sans Thai', sans-serif;

  /* Brand orange palette (overrides theme's coral "orange" used by colors/orange.css) */
  --bs-orange: #f97316;
  --bs-orange-rgb: 249, 115, 22;
  --bs-soft-orange: #fff6ef;
  --bs-pale-orange: #ffe9d8;
  --bs-bullet-soft-orange: #ffe3cf;
  --bs-icon-fill-orange: #fcc49a;
  --bs-icon-solid-fill-orange: #fdd6b8;
  --bs-border-soft-orange: #fdd9bf;

  --dq-orange-dark: #ea580c;
  --dq-orange: #f97316;
  --dq-orange-light: #fb923c;
  --dq-amber: #fbbf24;
  --dq-gradient: linear-gradient(135deg, var(--dq-orange-dark) 0%, var(--dq-orange-light) 100%);

  --dq-font-body: 'Noto Sans Thai', sans-serif;
  --dq-font-heading: 'Noto Sans Thai', sans-serif;
  --dq-line: #06c755;
  --dq-line-dark: #05b04b;
  --dq-shadow-sm: 0 0.25rem 1.25rem rgba(30, 34, 40, 0.06);
  --dq-shadow-md: 0 0.75rem 2rem rgba(30, 34, 40, 0.1);
  --dq-radius: 1rem;
}

/* ---------- Grid fix: theme's style.css has this Bootstrap rule commented out ---------- */
.row > * {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

/* ---------- Typography ---------- */
body {
  font-family: var(--dq-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar .nav-link,
.btn {
  font-family: var(--dq-font-heading);
}

h1, h2, h3, .display-1, .display-2, .display-3 {
  letter-spacing: -0.01em;
}

/* Orange-toned text gradients (scoped to text only) */
.text-gradient.gradient-4 {
  background-image: linear-gradient(125deg, var(--dq-orange-dark), var(--dq-orange) 50%, var(--dq-amber));
}

.text-gradient.gradient-5 {
  background-image: linear-gradient(43deg, #c2410c 0%, var(--dq-orange) 50%, var(--dq-amber) 100%);
}

.text-gradient.gradient-6 {
  background-image: linear-gradient(45deg, var(--dq-orange) 0%, #fb7185 100%);
}

.text-gradient.gradient-7 {
  background-image: linear-gradient(100deg, var(--dq-orange-dark) 20%, var(--dq-orange-light) 85%);
}

/* Fluid hero typography (replaces inline px font sizes) */
.dq-hero-title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.15;
  font-weight: 600;
}

.dq-hero-sub {
  font-size: clamp(17px, 2.1vw, 26px);
  line-height: 1.45;
  opacity: 0.92;
}

.dq-eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ---------- Navbar ---------- */
.navbar .btn.btn-sm {
  padding: 0.45rem 1.2rem;
  font-weight: 500;
  box-shadow: 0 0.35rem 1rem rgba(var(--bs-primary-rgb), 0.25);
}

.navbar-clone.navbar-stick {
  background: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 0.25rem 1rem rgba(30, 34, 40, 0.06);
}

/* ---------- Hero image shadows (shared across pages) ---------- */
.shadow-img {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.image-with-shadow {
  position: relative;
  display: inline-block;
}

.image-with-shadow img {
  position: relative;
  z-index: 1;
}

.oval-shadow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}

/* ---------- App store badges ---------- */
@media (max-width: 575.98px) {
  img.h-11.rounded-xl {
    height: auto !important;
    max-width: 42vw;
  }
}

/* ---------- Feature icon tiles (index) ---------- */
.dq-feature {
  transition: transform 0.3s ease;
}

.dq-feature .svg-bg {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dq-feature:hover {
  transform: translateY(-0.3rem);
}

.dq-feature:hover .svg-bg {
  box-shadow: 0 0.75rem 1.5rem rgba(var(--bs-primary-rgb), 0.18);
}

.dq-feature h4 {
  margin-bottom: 0;
}

/* ---------- Step-by-step guides (index) ---------- */
.dq-steps {
  padding-left: clamp(0px, 6vw, 100px);
  padding-right: clamp(0px, 6vw, 100px);
}

.dq-steps figure {
  margin: 0;
  width: 100%;
}

.dq-steps figure img {
  width: 60%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 1.25rem 1.5rem rgba(30, 34, 40, 0.14));
  transition: transform 0.4s ease;
}

.dq-steps .col-12:hover figure img {
  transform: translateY(-0.3rem);
}

.dq-steps .fs-70 {
  font-size: clamp(44px, 5vw, 70px) !important;
}

.dq-steps p {
  color: var(--bs-gray-700);
}

@media (max-width: 767.98px) {
  .dq-steps .col-md-6 {
    text-align: center !important;
  }

  .dq-steps figure {
    margin-bottom: 1.25rem;
  }

  .dq-steps figure img {
    width: 72%;
  }

  .dq-steps p {
    text-indent: 0 !important;
  }

  .dq-steps p br {
    display: none;
  }
}

/* ---------- Function grid (index) ---------- */
.dq-functions > [class*='col-'] > .d-flex {
  height: 100%;
  padding: 1.1rem 1.2rem;
  border-radius: var(--dq-radius);
  background: var(--bs-white);
  box-shadow: var(--dq-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dq-functions > [class*='col-'] > .d-flex:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--dq-shadow-md);
}

.dq-functions h4 {
  font-size: 1rem;
}

.dq-functions p {
  color: var(--bs-gray-700);
}

/* ---------- Testimonials (index) ---------- */
.isotope .card.equal-size {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.isotope .card.equal-size .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.isotope .card.equal-size blockquote {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.isotope .card.equal-size blockquote > p {
  flex: 1 1 auto;
}

.isotope .card.equal-size .blockquote-details .info {
  width: 100% !important;
}

.isotope .card.equal-size:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--dq-shadow-md);
}

.isotope .card.equal-size .avatar {
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ---------- Client logo ticker (index) ---------- */
.dq-ticker figure img {
  border-radius: 0.6rem;
  box-shadow: var(--dq-shadow-sm);
  transition: transform 0.3s ease;
}

.dq-ticker figure img:hover {
  transform: scale(1.04);
}

/* ---------- FAQ (index) ---------- */
.accordion-wrapper .card.accordion-item {
  border-radius: 0.8rem;
  overflow: hidden;
}

.accordion-wrapper .card-header button {
  font-weight: 500;
}

/* ---------- Register / LINE modal ---------- */
.dq-register-modal .modal-dialog {
  max-width: 420px;
}

.dq-register-modal .modal-content {
  border: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(30, 34, 40, 0.25);
}

.dq-register-modal .dq-modal-head {
  position: relative;
  padding: 2.75rem 1.5rem 2.25rem;
  background: var(--dq-gradient);
  color: #fff;
}

.dq-register-modal .dq-modal-head::after {
  content: '';
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 80%;
  background: var(--bs-white);
  border-radius: 50% 50% 0 0;
}

.dq-register-modal .dq-modal-head > * {
  position: relative;
  z-index: 1;
}

.dq-register-modal .dq-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(30, 34, 40, 0.2);
  margin-bottom: 1rem;
}

.dq-register-modal .dq-modal-icon i {
  font-size: 48px;
  line-height: 1;
  color: var(--dq-line);
}

.dq-register-modal .dq-modal-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.dq-register-modal .btn-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
}

.btn-line,
.btn-line:focus {
  background-color: var(--dq-line);
  border-color: var(--dq-line);
  color: #fff !important;
  box-shadow: 0 0.5rem 1.25rem rgba(6, 199, 85, 0.3);
}

.btn-line:hover,
.btn-line:active {
  background-color: var(--dq-line-dark);
  border-color: var(--dq-line-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---------- Articles ---------- */
.article-card {
  border-radius: var(--dq-radius);
  box-shadow: var(--dq-shadow-sm);
  border: 1px solid rgba(30, 34, 40, 0.04);
}

.article-card:hover {
  box-shadow: var(--dq-shadow-md);
}

.article-card .card-img {
  background: var(--bs-gray-100);
}

.article-card .card-title {
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.article-card:hover .card-title {
  color: var(--bs-primary);
}

.article-card .card-date {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dq-pagination .btn {
  min-width: 2.2rem;
}

/* ---------- Advertorial (single article) ---------- */
.dq-article-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dq-article-hero img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--dq-radius);
  box-shadow: var(--dq-shadow-md);
}

.dq-article-title {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.25;
}

.dq-article-body {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--bs-gray-800);
}

.dq-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

@media (max-width: 767.98px) {
  .dq-article-hero img {
    max-height: 240px;
  }
}

/* ---------- Pricing ---------- */
.dq-pricing-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bs-white);
  border-radius: 1.2rem;
  box-shadow: var(--dq-shadow-md);
  overflow: hidden;
}

.dq-pricing-card .dq-pricing-head {
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--dq-gradient);
  color: #fff;
  text-align: center;
}

.dq-pricing-card .dq-pricing-head h3 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.dq-pricing-card .dq-pricing-head p {
  margin: 0;
  opacity: 0.9;
}

.dq-pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.dq-pricing-table th,
.dq-pricing-table td {
  padding: 0.9rem 1.25rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
}

.dq-pricing-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-gray-600);
  background: var(--bs-gray-100);
  border-bottom: 1px solid var(--bs-gray-200);
}

.dq-pricing-table tbody tr + tr td {
  border-top: 1px solid var(--bs-gray-200);
}

.dq-pricing-table tbody tr:hover td {
  background: var(--bs-pale-primary);
}

.dq-pricing-table td:first-child {
  color: var(--bs-gray-800);
}

.dq-pricing-table td:last-child {
  font-weight: 600;
  color: var(--bs-primary);
}

.dq-pricing-note {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
  background: var(--bs-pale-primary);
}

.dq-pricing-card .dq-pricing-note {
  margin-top: auto;
}

.dq-pricing-card.h-100 {
  display: flex;
  flex-direction: column;
}

/* Annual flat-rate card */
.dq-annual-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--bs-white);
  border: 2px solid var(--bs-primary);
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2.5rem rgba(var(--bs-primary-rgb), 0.18);
}

.dq-annual-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--dq-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 0.4rem 1rem rgba(var(--bs-primary-rgb), 0.35);
}

.dq-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1;
}

.dq-price-amount {
  font-family: var(--dq-font-heading);
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 700;
  color: var(--bs-primary);
  letter-spacing: -0.02em;
}

.dq-price-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bs-gray-700);
}

.dq-price-meta {
  margin: 0.6rem 0 1.4rem;
  font-size: 0.75rem;
  color: var(--bs-gray-600);
}

.dq-annual-card .icon-list li {
  margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
  .dq-pricing-table th,
  .dq-pricing-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ---------- Contact ---------- */
.dq-contact-card {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--dq-shadow-md);
}

.dq-map {
  position: relative;
  min-height: 360px;
  height: 100%;
}

.dq-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.dq-contact-item + .dq-contact-item {
  margin-top: 1.25rem;
}

.dq-contact-item .icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: var(--bs-pale-primary);
  color: var(--bs-primary);
  font-size: 1.2rem;
}

.dq-contact-item h5 {
  margin-bottom: 0.2rem;
}

.dq-contact-item p,
.dq-contact-item address {
  margin-bottom: 0;
  color: var(--bs-gray-700);
}

.dq-contact-form .form-control,
.dq-contact-form .form-select {
  border-radius: 0.6rem;
}

/* ---------- Legal / long-form text ---------- */
.dq-legal .card-body {
  padding: clamp(1.25rem, 4vw, 3rem);
}

.dq-legal p {
  line-height: 1.95;
  color: var(--bs-gray-800);
}

/* ---------- Footer ---------- */
footer.bg-dark .widget-title {
  letter-spacing: 0.02em;
}

footer .nav.social a {
  transition: transform 0.2s ease, color 0.2s ease;
}

footer .nav.social a:hover {
  transform: translateY(-2px);
}

footer .badge.rounded-pill {
  font-weight: 500;
  margin: 0.15rem 0.1rem;
}

footer .badge.bg-pale-purple {
  background-color: var(--bs-pale-primary) !important;
  color: var(--bs-primary) !important;
}
