/* =========================================================
   Dezora overrides on top of the theme (loaded last)
   ========================================================= */

img[width][height] { height: auto; }
address { font-style: normal; }

/* ---------- headings ---------- */
#section-intro h1 .hero-line { display: block; }
.page-title { font-size: clamp(40px, 6vw, 84px); line-height: .95; }
.page-title-long { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.01em; }
.card-title { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; margin-bottom: 0; }
.card-title-sm { font-size: 18px; line-height: 1.2; margin-bottom: 0; }
.de-step h3 { overflow-wrap: anywhere; }

/* ---------- long-form content ---------- */
.blog-read h2 { margin-top: 36px; margin-bottom: 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.blog-read h3 { margin-top: 24px; margin-bottom: 10px; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
.blog-read p, .blog-read li { font-size: 17px; line-height: 1.75; }
.blog-read ul { padding-left: 20px; margin-bottom: 20px; }
.blog-read ul li { margin-bottom: 6px; }
.widget_tags ul li a { font-size: 14px; }

/* ---------- cards & labels ---------- */
.extra-text { flex-wrap: wrap; right: auto; max-width: calc(100% - 3rem); }
.extra-text .bg-blur { margin-bottom: 8px; white-space: normal; line-height: 1.3; }
.product-card-img { aspect-ratio: 1 / 1; object-fit: cover; }
.blog-card-img { aspect-ratio: 4 / 5; object-fit: cover; }
.hover.text-center h3 a { color: inherit; }

/* ---------- forms ---------- */
.form-control { min-height: 48px; font-size: 16px; }   /* 16px stops iOS zooming into fields */
textarea.form-control { min-height: 120px; }

/* full-bleed carousel rows inside .container-fluid (no padding) */
section > .container-fluid > .row { margin-left: 0; margin-right: 0; }
footer .h3 { font-size: clamp(18px, 2vw, 26px); overflow-wrap: anywhere; }

/* ---------- container gutters ----------
   Below 1400px the theme's .container spans the viewport with ~12px padding, which is
   narrower than its row gutters (up to 24px), so rows bled off both edges. */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .container { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  h2, .h2 { font-size: 40px; }
}

/* ---------- tablet ---------- */
@media (max-width: 991.98px) {
  .p-40 { padding: 28px; }
  .de-step { margin-bottom: 20px; }
  .blog-card-img { aspect-ratio: 4 / 3; }
}

/* ---------- mobile ---------- */
@media (max-width: 767.98px) {
  /* the theme's 3rem gutter is wider than the 20px container padding and pushes rows off-screen */
  .gx-5 { --bs-gutter-x: 1.5rem; }
  section > .container-fluid > .row { margin-left: 0; margin-right: 0; }

  #section-intro h1 { font-size: 9vw; line-height: 1; }
  #section-intro .mh-800 { min-height: 640px; }
  #section-intro .btn-main { margin-bottom: 10px; }

  .page-title { font-size: 40px; }
  .page-title-long { font-size: 28px; }
  h2, .h2 { font-size: 32px; }
  .de-step h3 { font-size: 18px; }
  .de_count h3 { font-size: 34px; }
  .p-40 { padding: 22px; }
  .spacer-double { height: 40px; }
  footer .h2 { font-size: 28px; }
  footer .h3 { font-size: 20px; overflow-wrap: anywhere; }
  .card-title { font-size: 20px; }
  .hover > .pt-4 > h3 { font-size: 22px; line-height: 1.25; }
  .hover.text-center h3.hs-4 { font-size: 16px; line-height: 1.3; }
  footer .widget ul li { margin-bottom: 4px; }
  footer .social-icons { text-align: left !important; margin-top: 10px; }
  #filters li { margin-right: 4px; margin-bottom: 12px; }
  #filters a { padding: 6px 12px; }
}

/* outline button for light backgrounds (theme's .btn-line is white, for dark sections) */
a.btn-main.btn-line { background: transparent; border: 1px solid rgba(255, 255, 255, .7); }
a.btn-main.btn-line.btn-line-dark { color: var(--heading-font-color); border-color: var(--heading-font-color); }
a.btn-main.btn-line.btn-line-dark:hover { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }

/* How We Work + FAQ */
.how-we-work .de-step p { max-width: 280px; margin-left: auto; margin-right: auto; }
.faq-title { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
@media (max-width: 767.98px) { .how-we-work { padding-bottom: 20px; } }

/* footer/side-menu headings are div.h2/.h3/.h4 (kept out of the page outline): keep them light on dark */
footer .h2, footer .h3, footer .h4, footer .h5, #extra-wrap .h4 { color: var(--heading-font-color-bg-dark, #fff); }
footer .h3 a, footer .h2 a { color: inherit; }

/* side menu headings: always light on the dark panel */
#extra-wrap .h4, #extra-wrap h4 { color: #fff !important; }

/* inner page banners: below 992px the header is fixed (60px) and the theme hides the top spacer,
   so the title slid under the header */
@media (max-width: 991.98px) {
  .page-hero { padding-top: 130px; padding-bottom: 60px; }
  .page-hero h1 { line-height: 1.05; }
}
@media (max-width: 767.98px) {
  .page-hero { padding-top: 110px; padding-bottom: 50px; }
}

/* floating WhatsApp button (bottom-left; back-to-top sits bottom-right) */
.whatsapp-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 30px;
  background: #25D366; color: #fff !important; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s, box-shadow .2s;
}
.whatsapp-float i { font-size: 28px; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); color: #fff; }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366;
  z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 767.98px) {
  .whatsapp-float { left: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .whatsapp-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }
