/* ============================================================
   Two Frames Studio: tablet and phone.
   Loaded after tf-effects.css so these win at equal weight.
   ============================================================ */

html,body{overflow-x:hidden;max-width:100%}
img,canvas,svg,iframe,video{max-width:100%}

@media (max-width:1024px){
  .e-con>.e-con-inner{padding-left:24px!important;padding-right:24px!important}
  /* Decorative bleeds need gutters they no longer have. */
  .tf-ribbon,.tf-stroke{display:none!important}
}

/* ---------- Header ---------- */
@media (max-width:1024px){
  .tf-topbar-con{display:none!important}
  .tf-navbar-con>.e-con-inner,.tf-navbar-inner{min-height:64px!important;gap:10px!important}
  .xpro-elementor-horizontal-menu-toggler,
  .xpro-elementor-horizontal-menu-close{color:#EDE7DE!important;font-size:22px!important}
  .xpro-elementor-horizontal-navbar-wrapper{background:#16120F!important}
  .xpro-elementor-horizontal-menu-overlay{background:rgba(11,8,6,.88)!important}
  .xpro-elementor-horizontal-navbar-nav .xpro-elementor-nav-link{
    color:#EDE7DE!important;font-family:'Instrument Sans',sans-serif!important;
    font-size:17px!important;font-weight:500!important;
    padding:14px 22px!important;border-bottom:1px solid #3A322B!important}
  .xpro-elementor-horizontal-navbar-nav li.current-menu-item>.xpro-elementor-nav-link{color:#E8A33D!important}
  .tf-cta-nowrap .elementor-button{padding:11px 16px!important;font-size:13px!important}
  .tf-lang .elementor-button{padding:5px 7px!important;font-size:11px!important}
}
@media (max-width:600px){
  .tf-cta-nowrap{display:none!important}
  .tf-brand-sub .elementor-heading-title{font-size:9px!important;letter-spacing:2.6px!important}
}

/* ---------- Hero ---------- */
@media (max-width:1024px){
  .tf-hero-title .elementor-heading-title{font-size:clamp(30px,6.4vw,44px)!important;line-height:1.12!important}
  .tf-kicker .elementor-heading-title{font-size:17px!important}
  .tf-tab .elementor-button{padding:7px 11px!important;font-size:11px!important}
  .tf-tab .tf-tab-label{font-size:12px!important}
  .tf-cap-title .elementor-heading-title{font-size:13px!important}
  .tf-cap-sub .elementor-heading-title,
  .tf-cap-ratio .elementor-heading-title{font-size:11px!important}
  .tf-hint{font-size:12px!important}
  .tf-chrome-url .elementor-heading-title{font-size:10px!important}
}

/* ---------- Trust strip ---------- */
@media (max-width:900px){
  .tf-trust-label .elementor-heading-title{max-width:none!important;font-size:13px!important}
  .tf-trust-item .elementor-heading-title{font-size:14px!important}
}

/* ---------- Stacked cells: side rules become bottom rules ----------
   Dividers were right borders between columns. Once those columns
   stack, a right border is a stray vertical line beside the text. */
@media (max-width:767px){
  .e-con:has(> .elementor-widget .tf-step-when),
  .e-con:has(> .tf-step-when){
    border-right-width:0!important;
    border-bottom-width:1px!important;
    padding-right:0!important;
    padding-bottom:26px!important}
  .tf-step-dot{margin-top:0!important;margin-bottom:14px!important}
  .tf-step-body p,.tf-benefit-body p{font-size:15px!important}
}

/* ---------- Service rows ---------- */
@media (max-width:767px){
  .tf-ratio-col,.tf-price-col{width:100%!important;align-items:flex-start!important}
  .tf-price .elementor-heading-title{font-size:26px!important;text-align:left!important}
  .tf-price-sub .elementor-heading-title{text-align:left!important}
  .tf-svc-lede p,.tf-svc-item p{max-width:none!important;font-size:15px!important}
  .tf-pills p{gap:6px!important}
  .tf-pill{font-size:13px!important;padding:6px 10px!important}
}

/* ---------- Listings: no sticky reveal on small screens ---------- */
@media (max-width:900px){
  .tf-se-track{height:auto!important}
  .tf-se-stage{position:static!important;height:auto!important;overflow:visible!important}
  .tf-se-frame{position:relative!important;inset:auto!important;
    clip-path:none!important;aspect-ratio:3/2;border-radius:5px;z-index:auto!important}
  .tf-se-frame img{transform:none!important}
  .tf-se-scrim,.tf-se-titlewrap,.tf-se-title{display:none!important}
  .tf-se-caption{position:static!important;opacity:1!important;transform:none!important;
    background:transparent!important;padding:18px 0 0 0!important;
    flex-direction:column!important;align-items:flex-start!important}
  .tf-se-caption>*{align-self:flex-start!important}
  .tf-se-caption>.e-con-inner{flex-direction:column!important;align-items:flex-start!important}
  .tf-se-caption .elementor-widget-button .elementor-button-wrapper{text-align:left!important}
}

/* ---------- Contact ---------- */
@media (max-width:1024px){
  .wpforms-container .wpforms-one-half{width:100%!important}
  .wpforms-container textarea{min-height:110px!important}
  /* 16px stops iOS zooming the whole page when a field is focused. */
  .wpforms-container input,.wpforms-container select,.wpforms-container textarea{font-size:16px!important}
  .tf-info-val .elementor-heading-title{font-size:15px!important}
  .tf-form-note p{font-size:13px!important}
}

/* ---------- Footer ---------- */
@media (max-width:1024px){
  .tf-fhead .elementor-heading-title{font-size:15px!important}
  .tf-fbase-right p{text-align:left!important}
}

/* ---------- Motion ---------- */
@media (max-width:900px){
  /* Sparks chase a cursor that does not exist on touch. */
  .click-spark{display:none!important}
}

/* ---------- Hero frame on phones ----------
   The shader is off below 900px, so the underlying image has to
   be visible again and the frame has to size itself. */
@media (max-width:900px){
  .tf-halftone .elementor-widget-image,
  .tf-halftone-src{opacity:1!important;aspect-ratio:16/9;overflow:hidden;border-radius:3px}
  .tf-halftone-src img{width:100%!important;height:100%!important;object-fit:cover;display:block}
  .tf-frame{max-width:100%!important;width:100%!important}
  .tf-hint{display:none!important}
}

/* ---------- Tap targets ----------
   Anything you are expected to press needs real height. */
@media (max-width:767px){
  .elementor-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .tf-lang .elementor-button{min-height:38px}
  .tf-flink a{display:inline-block;padding:4px 0}
  .elementor-toggle .elementor-tab-title{padding:18px 0!important}
}

/* ---------- Section rhythm ----------
   96px of vertical padding reads as emptiness on a 390px screen. */
@media (max-width:767px){
  .e-con>.e-con-inner{padding-left:20px!important;padding-right:20px!important}
  .tf-svc-row{padding:24px 20px!important}
}

/* ============================================================
   HEADER + FOOTER, phone
   ============================================================ */

@media (max-width:1024px){
  /* One line: brand, then language, then the menu toggle. */
  .tf-navbar-inner,.tf-navbar-con>.e-con-inner{
    flex-direction:row!important;flex-wrap:nowrap!important;
    align-items:center!important;justify-content:space-between!important;
    gap:8px!important;min-height:60px!important}
  /* Menu column is second in the markup but belongs on the right. */
  .tf-navbar-inner>.e-con:nth-child(2){order:3}
  .tf-navbar-inner>.e-con:nth-child(3){order:2}
  .tf-logo-mark{width:32px!important;min-height:32px!important}
  .tf-brand-name .elementor-heading-title{font-size:15px!important}
  .xpro-elementor-horizontal-menu-toggler-wrapper{justify-content:flex-end!important}
}

@media (max-width:600px){
  /* Wordmark alone: the STUDIO line costs height it does not earn. */
  .tf-brand-sub{display:none!important}
  .tf-navbar-inner,.tf-navbar-con>.e-con-inner{min-height:56px!important}
}

/* ---- Footer: two columns of links, not one long ribbon ---- */
@media (max-width:1024px){
  .tf-fhead .elementor-heading-title{margin-bottom:4px!important}
  .tf-flink a{font-size:15px!important}
}
@media (max-width:767px){
  /* Brand block sits above, full width; link columns pair up. */
  #xpro-theme-builder-footer .e-con-inner{row-gap:30px!important;column-gap:20px!important}
  .tf-fbase p{font-size:11px!important;line-height:1.7!important}
  .tf-fbase-right p{text-align:left!important}
}
@media (max-width:420px){
  /* Below this the two-up columns start breaking words. */
  #xpro-theme-builder-footer .e-con-inner>.e-con{width:100%!important}
}

/* ============================================================
   MENU TOGGLER
   The bars icon renders, but Elementor's global button styling
   was painting the button amber and the SVG inherited a fill that
   vanished against it. Make it a bordered outline with a bone icon.
   ============================================================ */
.xpro-elementor-horizontal-menu-toggler,
.xpro-elementor-horizontal-menu-close{
  background:transparent!important;border:1px solid #3A322B!important;
  border-radius:3px!important;color:#EDE7DE!important;
  width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  padding:0!important;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.xpro-elementor-horizontal-menu-toggler:hover{border-color:#E8A33D!important;background:rgba(232,163,61,.08)!important}
.xpro-elementor-horizontal-menu-toggler svg,
.xpro-elementor-horizontal-menu-close svg{width:20px!important;height:20px!important;
  fill:#EDE7DE!important;display:block}
.xpro-elementor-horizontal-menu-toggler i,
.xpro-elementor-horizontal-menu-close i{color:#EDE7DE!important;font-size:20px!important}
.xpro-elementor-horizontal-menu-close{position:absolute;top:16px;right:16px;z-index:5}

/* Language switcher inside the open panel, not crammed in the bar. */
@media (max-width:600px){
  .tf-lang .elementor-button{font-size:12px!important;padding:6px 6px!important}
}

/* Legal links now live on the base row of the footer. */
.tf-legal{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 8px 0!important}
.tf-legal a{color:#A9A096!important;text-decoration:none!important;border-bottom:0!important;
  font-family:'IBM Plex Mono',monospace;font-size:12px}
.tf-legal a:hover{color:#E8A33D!important}
