/* ==========================================================================
 * Standard & Truworth — site overrides. Loaded last, after all the ported
 * WordPress/Elementor CSS, so rules here win without editing vendor files.
 * ========================================================================== */

/* ---- behaviour the theme JS used to provide ---- */
html { scroll-behavior: smooth; }
#home, #cst-about, #cst-services, #cst-contact, #cst-form, #growth-advisor { scroll-margin-top: 90px; }
html.disable-scroll { overflow: hidden; }
.pollock-menu-panel .menu-panel-wrap { transition: right .3s cubic-bezier(.87, 0, .13, 1); }
.pollock-menu-panel .menu-panel-wrap.is-open { right: 0 !important; }
.pollock-hamburger-icon { cursor: pointer; }

/* Elementor sized the hosted background video from JS to cover the section. */
.elementor-background-video-container .elementor-background-video-hosted {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transform: none;
}

/* ==========================================================================
 * Client changes — Nov 2026 (Yash, 19 Nov feedback)
 * ========================================================================== */

/* "Why Standard & Truworth?" — one line on desktop; on mobile it breaks
   after "Why" so the brand name stays together. */
.st-br-mobile { display: none; }
.elementor-element-0f1687b .elementor-heading-title { white-space: nowrap; }

@media (max-width: 767px) {
  .st-br-mobile { display: inline; }
  .elementor-element-0f1687b .elementor-heading-title { white-space: normal; }

  /* Section headings were 64px / 42px on phones — far too big. */
  .elementor-element-37ac4e7 .master-heading .main-heading,
  .elementor-element-0f1687b .elementor-heading-title {
    font-size: 34px !important; line-height: 1.15 !important;
  }
}

/* "Why Invest" tiles -> dropdown rows on mobile (st.js wires the toggle). */
@media (max-width: 767px) {
  .st-why-grid { gap: 10px !important; }
  .st-why-grid .elementor-widget-mae-icon-box { width: 100% !important; margin: 0 !important; }
  .st-why-grid .master-icon-box { padding: 0 !important; min-height: 0 !important; height: auto !important; }
  .st-why-grid .master-icon-box > .inner {
    display: grid; grid-template-columns: 34px 1fr 18px; column-gap: 14px; align-items: center;
    padding: 16px 18px; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .st-why-grid .master-icon-box > .inner:focus-visible { outline: 2px solid #c9a96e; outline-offset: -2px; border-radius: inherit; }
  .st-why-grid .text-wrap { display: contents; }
  .st-why-grid .icon-wrap { grid-column: 1; grid-row: 1; margin: 0 !important; line-height: 0; }
  .st-why-grid .icon-wrap .master-icon, .st-why-grid .icon-wrap svg { width: 30px !important; height: 30px !important; font-size: 30px !important; }
  .st-why-grid .headline-2 {
    grid-column: 2; grid-row: 1; margin: 0 !important; min-height: 0 !important; height: auto !important;
    font-size: 18px !important; line-height: 1.3 !important; text-align: left;
  }
  .st-why-grid .master-icon-box > .inner::after {
    content: ''; grid-column: 3; grid-row: 1; justify-self: end;
    width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    color: #495423; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease;
  }
  .st-why-grid .is-open .master-icon-box > .inner::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .st-why-grid .desc {
    grid-column: 1 / -1; grid-row: 2; display: none; margin: 12px 0 2px !important; text-align: left;
  }
  .st-why-grid .is-open .desc { display: block; }
}

/* Footer: the empty band above the divider on phones. */
@media (max-width: 767px) {
  .elementor-6185 .elementor-element.elementor-element-6f7d6f6 { --padding-top: 8px; padding-top: 8px; }
}

/* The intro text under "Why Standard & Truworth?" was pasted from a chat
   window with wrapper markup; the clean <p>s get their spacing here. */
.elementor-element-d1e5002 p { margin: 0 0 1.1em; }
.elementor-element-d1e5002 p:last-child { margin-bottom: 0; }
.elementor-element-d1e5002 { padding-bottom: 44px; }

@media (max-width: 767px) {
  .elementor-element-d1e5002 { padding-bottom: 28px; }
  /* services: keep buttons and card off the screen edges */
  .custom-tabs-wrapper { padding: 0 16px; box-sizing: border-box; }
  /* "Why Invest": the decorative spacer under the tiles is dead space once
     they are dropdown rows */
  .elementor-element-55e1d45 { display: none; }
}

/* Popup: Elementor's Dialog library positioned the content box from JS
   (absolute, centred). The modal is a centring flex box already, so the
   content just needs to sit in the flow. */
.elementor-popup-modal .dialog-widget-content { position: relative; }

/* breathing room between the services card and the founder section */
.custom-tabs-wrapper { padding-bottom: 56px; }
@media (max-width: 767px) { .custom-tabs-wrapper { padding-bottom: 36px; } }
