/* QS Client Forms Hub + WhatsApp contrast. Loaded last so it can win over the theme. */

/* ---------- WhatsApp: deeper green, white glyph, both themes ---------- */
:root {
  --qs-wa: #075E54;
  --qs-wa-mid: #128C7E;
  --qs-wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413z'/%3E%3C/svg%3E");
}

body.qs-brand a.qs-btn-whatsapp,
body.qs-brand a.qs-btn-wa,
body.qs-brand .qs-btn-whatsapp,
body.qs-brand .qs-btn-wa,
a.qs-btn-whatsapp,
a.qs-btn-wa {
  background: var(--qs-wa) !important;
  border: 1px solid var(--qs-wa) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

body.qs-brand a.qs-btn-whatsapp:hover,
body.qs-brand a.qs-btn-wa:hover,
body.qs-brand .qs-btn-whatsapp:hover,
body.qs-brand .qs-btn-wa:hover,
a.qs-btn-whatsapp:hover,
a.qs-btn-wa:hover {
  background: var(--qs-wa-mid) !important;
  border-color: var(--qs-wa-mid) !important;
  color: #fff !important;
  filter: none !important;
}

/* Floating button: official glyph on deep green, not a faint "WA" label */
body.qs-brand a.qs-wa-float,
a.qs-wa-float {
  background: var(--qs-wa) !important;
  background-image: var(--qs-wa-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 28px 28px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 8px 24px rgba(7, 94, 84, .45), 0 2px 8px rgba(0, 0, 0, .28) !important;
}

body.qs-brand a.qs-wa-float:hover,
a.qs-wa-float:hover {
  background-color: var(--qs-wa-mid) !important;
  background-image: var(--qs-wa-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 28px 28px !important;
}

html[data-qs-theme="dark"] body.qs-brand a.qs-wa-float,
html[data-qs-theme="dark"] a.qs-wa-float {
  border-color: #e8eef5 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12) !important;
}

/* Footer, overlay and any other wa.me text links */
body.qs-brand .qs-footer a[href*="wa.me"],
body.qs-brand .qs-mob-overlay a[href*="wa.me"],
body.qs-brand .qs-mob-cta a[href*="wa.me"] {
  color: #fff !important;
  background: var(--qs-wa) !important;
  border: 1px solid var(--qs-wa) !important;
  border-radius: 2px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
}

body.qs-brand .qs-footer a[href*="wa.me"]:hover,
body.qs-brand .qs-mob-overlay a[href*="wa.me"]:hover,
body.qs-brand .qs-mob-cta a[href*="wa.me"]:hover {
  background: var(--qs-wa-mid) !important;
  border-color: var(--qs-wa-mid) !important;
  color: #fff !important;
}

/* ---------- Header Client Forms CTA: visible on desktop AND mobile ---------- */
body.qs-brand a.qs-nav-cta-forms,
body.qs-brand a.qs-cfh-header-cta {
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  background: #f8a818 !important;
  border: 1px solid #f8a818 !important;
  color: #001f40 !important;
  border-radius: 2px;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(248, 168, 24, .28);
}

body.qs-brand a.qs-nav-cta-forms:hover,
body.qs-brand a.qs-cfh-header-cta:hover {
  background: #003060 !important;
  border-color: #003060 !important;
  color: #fff !important;
}

/* On small screens keep Client Forms in the header; hide the longer Schedule CTA so both gold buttons do not collide. */
@media (max-width: 960px) {
  body.qs-brand .qs-nav-actions .qs-nav-cta:not(.qs-nav-cta-forms) {
    display: none !important;
  }
  body.qs-brand a.qs-nav-cta-forms,
  body.qs-brand a.qs-cfh-header-cta {
    display: inline-flex !important;
    min-height: 40px;
    padding: 0 10px;
    font-size: .68rem;
    letter-spacing: .04em;
  }
}

/* Stay visible even at very narrow widths (theme previously hid .qs-nav-cta at 340px). */
@media (max-width: 400px) {
  body.qs-brand a.qs-nav-cta-forms,
  body.qs-brand a.qs-cfh-header-cta {
    display: inline-flex !important;
    padding: 0 8px;
    font-size: .64rem;
  }
}

/* When the full-screen menu is open, hide header CTAs like the theme already does. */
body.qs-menu-open a.qs-cfh-header-cta {
  visibility: hidden !important;
}

/* Desktop nav link */
body.qs-brand .qs-nav-links a.qs-cfh-nav {
  color: inherit;
  font-weight: 600;
}

/* ---------- Homepage hero: gold Client Forms first, stays above the fold ---------- */
body.qs-brand .qs-hero-cinema__actions .qs-cfh-hero-cta {
  background: #f8a818 !important;
  border: 1px solid #f8a818 !important;
  color: #001f40 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(248, 168, 24, .28);
  order: -1;
}

body.qs-brand .qs-hero-cinema__actions .qs-cfh-hero-cta:hover {
  background: #003060 !important;
  border-color: #003060 !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  /* Keep hero actions inside the first screen, below the sticky header. */
  body.qs-brand .qs-hero-cinema {
    min-height: calc(100svh - 108px);
    min-height: calc(100dvh - 108px);
    align-items: end;
  }
  body.qs-brand .qs-hero-cinema__inner {
    padding: 4.25rem 0 1.35rem;
  }
  body.qs-brand .qs-hero-cinema .qs-lead {
    margin-bottom: 1rem !important;
    font-size: .98rem !important;
  }
  body.qs-brand .qs-hero-cinema__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .5rem !important;
    margin-bottom: 1rem;
  }
  body.qs-brand .qs-hero-cinema__actions .qs-cfh-hero-cta {
    grid-column: 1 / -1;
  }
  body.qs-brand .qs-hero-cinema__actions .qs-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }
}

/* ---------- Client Forms hub page ---------- */
.qs-cfh-main,
.qs-cfh {
  background: #fbfaf7;
  color: #0f1419;
}

.qs-cfh {
  padding: 3.25rem 0 4.5rem;
}

.qs-cfh-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.qs-cfh-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 2.25rem;
}

.qs-cfh-seal {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex: 0 0 auto;
}

.qs-cfh-eyebrow {
  margin: 0 0 .35rem;
  font-family: Inter, Montserrat, "Segoe UI", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f8a818;
}

.qs-cfh-head h1 {
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif !important;
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 .45rem;
  color: #003060;
}

.qs-cfh-lead {
  margin: 0;
  max-width: 36rem;
  color: #3d4a57;
  font-family: Inter, Montserrat, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.qs-cfh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.qs-cfh-card {
  background: #fff;
  border: 1px solid #e2e5e7;
  border-top: 3px solid #f8a818;
  border-radius: 4px;
  padding: 1.6rem 1.4rem 1.45rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(0, 48, 96, .05);
}

.qs-cfh-card h2 {
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif !important;
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0 0 .55rem;
  color: #003060;
}

.qs-cfh-card p {
  margin: 0 0 1.35rem;
  flex: 1 1 auto;
  color: #3d4a57;
  font-family: Inter, Montserrat, "Segoe UI", sans-serif;
  font-size: .98rem;
  line-height: 1.55;
}

.qs-cfh-card .qs-cfh-start {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: #f8a818 !important;
  border: 1px solid #f8a818 !important;
  color: #001f40 !important;
  border-radius: 2px;
  font-family: Inter, Montserrat, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.qs-cfh-card .qs-cfh-start:hover {
  background: #003060 !important;
  border-color: #003060 !important;
  color: #fff !important;
}

@media (max-width: 860px) {
  .qs-cfh-grid { grid-template-columns: 1fr; }
  .qs-cfh { padding: 2rem 0 3rem; }
  .qs-cfh-head { align-items: flex-start; }
  .qs-cfh-seal { width: 68px; height: 68px; }
}

@media (max-width: 400px) {
  .qs-cfh-inner { width: calc(100% - 1.5rem); }
  .qs-cfh-head { gap: 0.85rem; margin-bottom: 1.5rem; }
  .qs-cfh-card { padding: 1.3rem 1.1rem 1.2rem; }
  .qs-cfh-card .qs-cfh-start { width: 100%; justify-content: center; }
}

/* Dark mode */
html[data-qs-theme="dark"] .qs-cfh-main,
html[data-qs-theme="dark"] .qs-cfh {
  background: #0a1628;
  color: #e8eef5;
}

html[data-qs-theme="dark"] .qs-cfh-head h1,
html[data-qs-theme="dark"] .qs-cfh-card h2 {
  color: #e8eef5 !important;
}

html[data-qs-theme="dark"] .qs-cfh-lead,
html[data-qs-theme="dark"] .qs-cfh-card p {
  color: #b7c3d0;
}

html[data-qs-theme="dark"] .qs-cfh-card {
  background: #12233a;
  border-color: rgba(255, 255, 255, .08);
  border-top-color: #f8a818;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

/* Hide unused light/dark seal swap if only one image is present */
html[data-qs-theme="dark"] .qs-cfh-seal--light { /* seal is full-colour; keep it */ }



/* Hide leftover MyHome/Elementor page chrome on the hub so only the branded cards show between nav and footer. */
body.qs-cfh-body .myhome-menu-sticky-holder,
body.qs-cfh-body .myhome-menu-mobile,
body.qs-cfh-body .mh-header,
body.qs-cfh-body .mh-footer,
body.qs-cfh-body #myhome-sidebar,
body.qs-cfh-body .myhome-sidebar,
body.qs-cfh-body .mh-layout__sidebar,
body.qs-cfh-body .page-title,
body.qs-cfh-body .mh-page-title,
body.qs-cfh-body .entry-header,
body.qs-cfh-body .mh-breadcrumbs,
body.qs-cfh-body .elementor-widget-mh_menu {
  display: none !important;
}
body.qs-cfh-body .mh-layout,
body.qs-cfh-body .mh-layout__content,
body.qs-cfh-body #primary,
body.qs-cfh-body .site-content,
body.qs-cfh-body .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}


/* Keep the desktop header on one row after adding Client Forms. */
@media (min-width: 961px) {
  body.qs-brand header.qs-nav > .qs-container,
  body.qs-brand .qs-nav > .qs-container {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  body.qs-brand header.qs-nav a.qs-brand,
  body.qs-brand .qs-brand {
    flex: 0 0 auto !important;
    max-width: none !important;
  }
  body.qs-brand .qs-brand-text,
  body.qs-brand a.qs-brand > span {
    white-space: nowrap !important;
  }
  body.qs-brand .qs-nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: .65rem !important;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }
  body.qs-brand .qs-nav-links a {
    font-size: .8rem !important;
    white-space: nowrap !important;
    min-height: 36px !important;
  }
  body.qs-brand .qs-nav-links a.qs-btn-whatsapp {
    padding: 0 10px !important;
    min-height: 34px !important;
    font-size: .68rem !important;
    flex: 0 0 auto;
  }
  body.qs-brand .qs-nav-actions {
    flex: 0 0 auto !important;
    margin-left: .5rem;
  }
}

/* Extra tightness just below typical laptop width */
@media (min-width: 961px) and (max-width: 1280px) {
  body.qs-brand .qs-nav-links { gap: .5rem !important; }
  body.qs-brand .qs-nav-links a { font-size: .76rem !important; }
  body.qs-brand a.qs-nav-cta-forms { padding: 0 10px; font-size: .68rem; }
}

/* Lift mobile hero actions above the floating WhatsApp button */
@media (max-width: 640px) {
  body.qs-brand .qs-hero-cinema__inner {
    padding: 3.25rem 0 5.5rem !important;
  }
  body.qs-brand .qs-hero-cinema__meta {
    margin-bottom: .25rem;
    padding-right: 4.25rem; /* keep labels clear of the float */
  }
  body.qs-cfh-body .qs-cfh {
    padding-bottom: 5rem;
  }
}
