/* ==========================================================
   ASCENERDS v2 – mobile & tablet polish
   Loaded last. Uses !important where style.css already does.
   ========================================================== */

/* Process steps get a short description (all screens) */
.asc-process-desc{margin:10px 0 0!important;font-size:.86rem!important;line-height:1.5!important;color:#615d57!important;max-width:240px}

@media (min-width:821px){.asc-process-flow{align-items:stretch!important}.asc-process-arrow{align-self:center}}

/* Plan details "show more" toggle (only visible on phones) */
.asc-v4-more{display:none}

@media (max-width:980px){
  /* Cards: remove the tall empty space from desktop min-heights */
  .asc-problem-card,.asc-why-card,.asc-flow-step,.asc-purpose-card,.asc-solution-home-card,.asc-testimonial-home-card{min-height:0!important}
  .asc-problem-card,.asc-why-card{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:12px!important}
  .asc-problem-card>*,.asc-why-card>*{margin-top:0!important;margin-bottom:0!important}
  .asc-problem-card h3,.asc-why-card h3{margin-top:6px!important}
}

@media (max-width:820px){
  /* Home process → compact vertical timeline */
  .asc-process-flow{gap:0!important;max-width:none!important}
  .asc-process-arrow{display:none!important}
  .asc-process-node{
    min-height:0!important;display:grid!important;grid-template-columns:52px 1fr;column-gap:16px;row-gap:2px;align-items:start!important;
    text-align:left!important;padding:18px!important;margin-bottom:10px;position:relative;
  }
  .asc-process-node .asc-process-icon{grid-row:1 / span 2;width:52px!important;height:52px!important;border-radius:15px!important}
  .asc-process-node .asc-process-icon svg{width:24px!important;height:24px!important}
  .asc-process-node h3{margin:4px 0 0!important;font-size:1.05rem!important}
  .asc-process-desc{margin-top:4px!important;max-width:none}
  .asc-process-node:not(:last-child)::after{content:"";position:absolute;left:43px;bottom:-11px;width:2px;height:12px;background:rgba(238,83,70,.35)}
  .asc-process-node:hover{transform:none!important}
}

@media (max-width:700px){
  /* Section rhythm */
  .asc-home-light,.asc-home-dark,.asc-why-section,.asc-ind-cards-section,.asc-focus-section,.asc-plan-faq,.asc-booking-section,.asc-cases-work,.asc-cases-process{padding-top:64px!important;padding-bottom:64px!important}
  .asc-home-head{margin-bottom:28px!important}
  .asc-home-head h2,.asc-plan-section-head h2,.asc-new-section-head h2,.asc-cases-section-head h2{font-size:clamp(2.1rem,9.4vw,2.7rem)!important;line-height:1!important}
  .asc-home-head p{font-size:.98rem!important}

  /* Cards: tighter padding */
  .asc-problem-card,.asc-why-card,.asc-solution-home-card,.asc-testimonial-home-card{padding:22px!important;border-radius:20px!important}
  .asc-problem-grid,.asc-why-grid,.asc-solution-grid,.asc-testimonial-home-grid{gap:12px!important}
  .asc-problem-card h3,.asc-why-card h3{font-size:1.25rem!important;line-height:1.2!important}
  .asc-problem-card p,.asc-why-card p{font-size:.92rem!important;line-height:1.6!important}
  .asc-testimonial-home-card blockquote{font-size:1rem!important;margin:14px 0!important}

  /* Hero spacing with the robot below the buttons */
  body.home .asc-home-hero{padding-bottom:28px!important}
  .asc-home-actions{gap:10px!important}

  /* FAQ rows: comfortable tap targets */
  .faq-trigger{min-height:56px!important;padding:14px 0!important;text-align:left!important;gap:14px!important}

  /* Industries */
  .asc-ind-hero{min-height:auto!important}
  .asc-ind-hero h1{font-size:clamp(2.3rem,10.5vw,3rem)!important;line-height:1!important}
  .asc-ind-card{padding:22px!important}
  .asc-ind-card h3{font-size:1.6rem!important;line-height:1.05!important}
  .asc-flow-step{padding:20px!important}

  /* Solutions: hero + plan details collapse into "see everything included" */
  .asc-plan-hero h1{font-size:clamp(2.3rem,10.5vw,3.1rem)!important;line-height:1!important}
  .asc-solutions-v4 .asc-v4-detail-summary{padding-bottom:20px!important}
  .asc-solutions-v4 .asc-v4-detail-summary h3{font-size:2rem!important}
  .asc-solutions-v4 .asc-v4-detail-card:not(.is-expanded) .asc-v4-detail-content{display:none!important}
  .asc-v4-more{
    all:unset;box-sizing:border-box;display:flex!important;align-items:center;justify-content:space-between;width:100%;margin:16px 0 4px;padding:14px 16px;
    border-radius:14px;border:1px solid rgba(255,251,244,.14);color:#fffbf4;font-family:var(--font)!important;font-weight:600!important;font-size:.92rem;cursor:pointer!important;
  }
  .asc-v4-more::after{content:"+";font-size:1.3rem;line-height:1;color:#ff8d82}
  .is-expanded .asc-v4-more::after{content:"–"}
  .asc-v4-detail-footer{gap:16px!important}
  .asc-v4-detail-footer .aigo-btn{width:100%!important}

  /* About */
  .asc-purpose-card{padding:24px!important}
  .asc-team-name{font-size:clamp(2.2rem,11vw,3rem)!important}

  /* Contact: heading first, then the booking widget */
  html body.page-template-page-templatescontact-php .asc-contact-layout-final{display:flex!important;flex-direction:column!important;gap:26px!important}
  html body.page-template-page-templatescontact-php .asc-contact-layout-final .asc-contact-benefits{order:-1!important}
  html body.page-template-page-templatescontact-php .asc-contact-layout-final>*{width:100%!important;max-width:100%!important;min-width:0!important}
  html body.page-template-page-templatescontact-php .asc-contact-benefits h1{font-size:clamp(2.4rem,11vw,3.2rem)!important;margin-bottom:18px!important}
  html body.page-template-page-templatescontact-php .asc-expect-list-compact{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  html body.page-template-page-templatescontact-php .asc-expect-list-compact article{padding:12px!important;gap:10px!important;min-height:0!important}
  html body.page-template-page-templatescontact-php .asc-expect-list-compact h2{font-size:.86rem!important;line-height:1.25!important}
  html body.page-template-page-templatescontact-php .asc-expect-list-compact .asc-expect-icon{width:26px!important;height:26px!important;flex:0 0 26px!important;font-size:.8rem!important}
  .asc-contact-booking{padding-top:96px!important}

  /* Booking sections: let the widget use the full width */
  .asc-home-booking-grid,.asc-booking-layout{gap:28px!important}
  .asc-home-booking-copy ul li{font-size:.92rem!important}

  /* Footer */
  .asc-footer-top{gap:30px!important}
  .asc-footer-brand-col h2{font-size:1.45rem!important;line-height:1.15!important}
  .asc-footer-links-col a{padding:6px 0!important}
  .asc-footer-bottom-new{gap:14px!important}

  /* Keep the floating chat button clear of the page edge content */
  body{padding-bottom:0}
}

@media (max-width:380px){
  .ascb-week span{font-size:.6rem}
  .ascb-day,.ascb .ascb-day.is-open{font-size:.82rem}
  html body.page-template-page-templatescontact-php .asc-expect-list-compact{grid-template-columns:1fr!important}
}
