/* ============================================================
   HypupAd — site-wide responsive polish (v55)
   Desktop styles remain unchanged. These rules progressively
   optimize tablet, mobile, small-mobile and touch interaction.
   ============================================================ */

/* Keep media and long content safely inside their containers. */
img,svg,video,canvas,iframe{max-width:100%}
button,a,input,select,textarea{touch-action:manipulation}

/* ---------- Tablet / compact desktop ---------- */
@media (max-width:1024px){
  .wrap{padding-left:24px;padding-right:24px}
  .section{padding-top:88px;padding-bottom:88px}
  .section-head{margin-bottom:52px}
  .page-hero{padding:62px 0 54px}
  .hero{padding:66px 0 76px}
  .footer-grid{gap:30px}
  .cta-banner{padding:52px 38px}
  .form-card{padding:34px}
  .hours-card{padding:28px}

  /* About stats: tablet uses a balanced 2 × 2 grid. */
  .about-brand-band{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;padding:38px 24px!important}
  .about-brand-band .stat-i{padding:24px 18px!important}
  .about-brand-band .stat-i::after{display:none!important}
  .about-brand-band .stat-i:nth-child(odd){border-right:1px solid rgba(255,255,255,.22)}
  .about-brand-band .stat-i:nth-child(n+3){border-top:1px solid rgba(255,255,255,.22)}

  /* Home journey switches from pinned desktop animation to a natural flow. */
  .journey-pin{padding-top:0}
  .journey-scroller{height:auto}

  /* Services visuals should never dominate the copy on tablets. */
  .svc-media{min-height:370px}
  .eco-flow{gap:10px}
}

/* Use the mobile navigation on tablets too; five nav links + CTA are cramped. */
@media (max-width:900px){
  .nav{height:70px}
  .nav-links,.nav-cta{display:none!important}
  .burger{display:flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:9px;margin-right:-7px}
  .brand-logo--header{width:142px}

  .mobile-nav{
    top:70px;bottom:0;inset-inline:auto 0;
    height:calc(100dvh - 70px);
    width:min(88vw,360px);
    padding:24px 26px max(28px,env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .mobile-nav a{font-size:1.22rem;padding:13px 0}
  .mobile-nav .btn{min-height:48px;margin-top:16px;padding:13px 20px}
  .overlay{top:70px}

  .hero-inner{gap:46px}
  .hero-visual{width:100%;min-width:0}
  .goal-panel.show,.wa60,.contact-grid,.ecard-hero,.kit-inner{gap:30px}
  .footer-grid{grid-template-columns:1fr 1fr}

  /* About workflow feels better as a stacked interactive module. */
  .wf{gap:26px}
  .wf-panel{min-height:0}

  /* Services: two-column chip grid is easier to scan on medium screens. */
  .svc-strip{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px}
  .eco-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eco-item:nth-child(3)::after{display:block}
  .eco-item:nth-child(even)::after{display:none}
}

/* ---------- Phones ---------- */
@media (max-width:640px){
  :root{--radius:16px;--radius-lg:24px}
  html{scroll-padding-top:70px}
  body{font-size:16px;line-height:1.58}
  .wrap{padding-left:18px;padding-right:18px}
  .section{padding:64px 0}
  .section-head{margin-bottom:38px}
  .section-head .lead{margin-top:14px}
  h1{font-size:clamp(2.18rem,11.4vw,3rem);line-height:1.03}
  h2{font-size:clamp(1.82rem,8.8vw,2.5rem);line-height:1.08}
  h3{line-height:1.14}
  .lead{font-size:1rem;line-height:1.65}
  .eyebrow{font-size:11.5px;letter-spacing:.14em;padding:7px 13px}

  /* Header and drawer */
  .nav{height:66px}
  .brand-logo--header{width:134px}
  .mobile-nav{top:66px;height:calc(100dvh - 66px);width:min(90vw,340px);padding:20px 22px max(26px,env(safe-area-inset-bottom))}
  .mobile-nav a{font-size:1.15rem;padding:12px 0}
  .overlay{top:66px}

  /* Page hero */
  .page-hero{padding:48px 0 44px}
  .page-hero .crumb{font-size:11.5px;margin-bottom:14px;letter-spacing:.1em}
  .page-hero .lead{margin-top:14px}

  /* Buttons: comfortable tap targets without oversized desktop padding. */
  .btn{min-height:46px;padding:13px 20px;font-size:14px;justify-content:center}
  .btn--lg{min-height:50px;padding:14px 22px;font-size:15px}

  /* Home hero */
  .hero{padding:46px 0 56px}
  .hero-inner{gap:32px}
  .hero-inner>div:first-child{text-align:center}
  .hero-title .tline{font-size:clamp(1.38rem,7vw,1.82rem)!important;line-height:1.25!important}
  .hero-title .tline+.tline{margin-top:5px}
  .hero .lead{margin:18px auto 0}
  .hero-pillars{justify-content:center;gap:7px!important;margin-top:22px!important;font-size:clamp(1rem,5.4vw,1.25rem)!important}
  .hero-cta{justify-content:center;gap:10px;margin-top:26px}
  .hero-visual{max-width:100%!important;margin:0 auto!important}
  .product{width:min(350px,100%)!important;margin-top:0!important}
  .hero-bg .b1{width:360px;height:360px;right:-170px}
  .hero-bg .b2{width:300px;height:300px;left:-150px}
  .hero-grid{background-size:42px 42px}

  /* Marquee */
  .marquee{padding:16px 0}
  .marquee-track{gap:30px}
  .marquee-track span{gap:30px;font-size:1.05rem}

  /* Home journey */
  .journey-pin{padding-top:0!important}
  .journey-grid{gap:0}
  .jstage{padding:0 0 34px 38px}
  .jstage-node{top:28px;width:20px;height:20px}
  .journey-vline,.journey-vline-fill{left:9px}
  .jstage-head{gap:10px}
  .jstage-ic{width:36px;height:36px;border-radius:10px}
  .jstage h3{font-size:1.25rem}
  .jstage-stat{font-size:.98rem}
  .jstage-desc{font-size:.92rem}
  .journey-end{font-size:1.22rem;margin-top:12px}

  /* Cards / grids */
  .card,.why-item,.promise{padding:23px}
  .card .ic{width:52px;height:52px;margin-bottom:18px}
  .home-svc-grid{gap:16px}
  .why-grid,.promise-grid,.flip-grid{gap:16px}
  .why-item .ic{margin-bottom:14px}

  /* Goal finder */
  .goal-tabs{
    justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;
    margin:0 -18px 24px;padding:2px 18px 8px;
    scrollbar-width:none;scroll-snap-type:x proximity;
  }
  .goal-tabs::-webkit-scrollbar{display:none}
  .goal-tab{flex:0 0 auto;min-height:44px;padding:11px 18px;font-size:.92rem;scroll-snap-align:start;white-space:nowrap}
  .goal-panel,.goal-panel.show{padding:24px;border-radius:20px}
  .goal-panel h3{font-size:1.35rem}
  .goal-rec{gap:8px;margin:16px 0 20px}
  .goal-rec span{padding:8px 12px;font-size:12.5px}
  .goal-visual{max-width:260px;width:100%;margin:0 auto}
  .goal-panel .plan-wa{width:100%;justify-content:center}

  /* Testimonials */
  .tcarousel__viewport{padding:8px;margin:-8px}
  .tcarousel__track{gap:14px}
  .tcard{padding:25px 22px}
  .tcard .quote{top:22px;left:20px;font-size:3rem}
  .tcard p{font-size:14.5px;line-height:1.62;margin:28px 0 20px}
  .tcard .who{gap:11px;align-items:flex-start}
  .tlogo{width:42px;height:42px;border-radius:10px}
  .tcarousel__controls{gap:14px;margin-top:26px}
  .tnav{width:42px;height:42px}
  .tdots{gap:6px;max-width:145px;overflow:hidden}

  /* FAQ */
  .faq{gap:11px}
  .faq-q{min-height:58px;padding:18px 18px;font-size:1rem;line-height:1.35}
  .faq-a p{padding:0 18px 20px;font-size:14px}
  .faq-ic{width:28px;height:28px;flex:0 0 28px}

  /* CTA blocks */
  .cta-banner,.quiz,.kit{padding:32px 20px;border-radius:22px}
  .cta-banner p{margin:13px auto 22px}
  .cta-banner .hero-cta{margin-top:0}
  .price-cta{padding:36px 22px;border-radius:22px}

  /* About page */
  .about-story-grid{gap:26px!important}
  .about-story-grid .about-story-title{font-size:1.5rem!important;line-height:1.25!important}
  .about-story-grid .about-story-copy{font-size:15.5px!important;line-height:1.68!important}
  .story-img{border-radius:22px}
  .story-img .tagchip{left:14px;bottom:16px;font-size:.83rem;padding:8px 13px}
  .stats-band{padding:34px 20px;border-radius:22px;gap:0}
  .about-brand-band{grid-template-columns:1fr!important;padding:18px 22px!important;gap:0!important}
  .about-brand-band .stat-i{padding:22px 0!important;border-right:0!important;border-top:0!important}
  .about-brand-band .stat-i:not(:last-child){border-bottom:1px solid rgba(255,255,255,.22)!important}
  .about-brand-band .stat-i::after{display:none!important}
  .about-brand-band .n{font-size:1.95rem!important;white-space:nowrap!important}
  .about-brand-band .l{font-size:13.5px!important;margin-top:9px!important}

  .wf{gap:20px}
  .wf-step{gap:13px;padding:10px 11px;border-radius:13px}
  .wf-dot{width:46px;height:46px;font-size:1.02rem}
  .wf-track,.wf-bar{left:33px;top:33px;bottom:33px}
  .wf-step .wt{font-size:1.06rem}
  .wf-step .ws{font-size:12px}
  .wf-panel{padding:28px 22px;border-radius:22px}
  .wf-pane .wf-ic{width:54px;height:54px;border-radius:15px;margin-bottom:16px}
  .wf-pane .wf-ic svg{width:27px;height:27px}
  .wf-pane h3{font-size:1.45rem}
  .wf-pane p{font-size:14.5px}
  .wf-deliver{gap:7px;margin-top:18px}
  .wf-deliver span{font-size:12px;padding:7px 10px}

  .flip{height:225px}
  .flip-face{padding:26px 22px}

  /* Services page */
  .svc-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .svc-chip{gap:10px;padding:18px 10px;border-radius:15px}
  .chip-ic{width:46px;height:46px;border-radius:13px}
  .chip-ic svg{width:23px;height:23px}
  .chip-name{font-size:.86rem;line-height:1.28}

  .svc-block{padding:46px 0!important;gap:26px!important}
  .svc-num{font-size:2.8rem}
  .svc-block h2{font-size:1.75rem;margin-top:5px}
  .feat-list{gap:9px}
  .feat-list li{font-size:14px;align-items:flex-start}
  .feat-strip{gap:7px;margin-top:16px}
  .feat-strip span{font-size:11px;padding:7px 10px}
  .svc-package-cta{margin-top:22px}
  .svc-package-btn{width:100%;justify-content:center}
  .svc-media{min-height:300px!important;border-radius:21px!important}
  .visual-label{font-size:10px!important}

  .eco-flow{grid-template-columns:1fr!important;gap:10px}
  .eco-item{min-height:105px;padding:18px 16px}
  .eco-item::after{display:none!important}

  /* Service tier tabs + cards (keep the approved desktop visual language). */
  #packages{padding:64px 0 72px!important}
  #packages .wrap{padding-left:16px!important;padding-right:16px!important}
  #packages .pkg-head{margin-bottom:22px!important}
  #packages .pkg-head h2{font-size:1.9rem!important;line-height:1.1!important}
  #packages .pkg-tabs{
    justify-content:flex-start!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;scrollbar-width:none;
    margin:0 -2px 18px!important;padding:2px 2px 8px!important;
  }
  #packages .pkg-tabs::-webkit-scrollbar{display:none}
  #packages .pkg-tab{flex:0 0 auto!important;scroll-snap-align:start;min-height:44px!important;padding:9px 14px!important;font-size:12px!important}
  #packages .pkg-group .svc-plan{padding:16px 12px 14px!important;gap:14px!important;border-radius:17px!important}
  #packages .plan-start{column-gap:12px!important}
  #packages .plan-price-icon{width:56px!important;height:56px!important}
  #packages .plan-price-icon svg{width:29px!important;height:29px!important}
  #packages .plan-start .pprice{font-size:2.1rem!important}
  #packages .plan-start .pvary{font-size:11.5px!important}
  #packages .plan-choose{font-size:11.5px!important;gap:8px!important}
  #packages .plan-pane{padding:20px 17px 18px!important;border-radius:15px!important}
  #packages .tier-icon{width:54px!important;height:54px!important;left:16px!important;top:17px!important}
  #packages .tier-icon svg{width:31px!important;height:31px!important}
  #packages .plan-pane .ptier{margin-left:66px!important;font-size:14px!important}
  #packages .plan-pane .pnote{margin-left:66px!important;font-size:11.8px!important;line-height:1.55!important}
  #packages .plan-pane ul{gap:9px!important;padding-top:16px!important;margin-bottom:17px!important}
  #packages .plan-pane ul li{font-size:12px!important}
  #packages .plan-pane .plan-wa{min-height:44px;font-size:11.5px!important}

  /* WhatsApp chat preview */
  .wa60{gap:28px}
  .chat{width:100%;max-width:100%;padding:18px;border-radius:22px}
  .bubble{font-size:13.5px;max-width:88%;padding:10px 13px}

  /* Contact page */
  .contact-grid{gap:30px}
  .contact-info .ci-item{gap:13px;padding:17px 0}
  .contact-info .ci-ic{width:46px;height:46px;border-radius:12px}
  .form-card{padding:24px 18px;border-radius:22px}
  .form-card-head{margin-bottom:22px;padding-bottom:18px}
  .form-card-head h2{font-size:1.65rem}
  .contact-needs p{font-size:14.5px}
  .contact-needs .contact-then{font-size:16px}
  .field{margin-bottom:16px}
  .field input,.field select,.field textarea{min-height:48px;padding:13px 14px;font-size:16px}
  .field textarea{min-height:116px}
  .form-card .btn{width:100%;justify-content:center}
  .contact-bottom{margin-top:34px;gap:18px}
  .hours-card{padding:24px 18px;border-radius:22px}
  .hours-list li{padding:13px 0;font-size:14px;gap:14px}
  .hours-list li b{text-align:right}
  .contact-bottom .map-embed{min-height:290px!important;border-radius:22px}

  /* Footer */
  .site-footer{padding:54px 0 24px}
  .footer-grid{grid-template-columns:1fr!important;gap:26px;padding-bottom:34px}
  .brand-logo--footer{width:min(100%,220px)}
  .footer-col h5{margin-bottom:12px}
  .footer-col a{padding:7px 0}
  .footer-bottom{display:grid;grid-template-columns:1fr;gap:6px;padding-top:20px;text-align:left}
  .social a{width:44px;height:44px}

  /* Floating controls leave more usable screen area. */
  .wa-float{left:15px;bottom:15px;width:50px;height:50px}
  .wa-float svg{width:26px;height:26px}
  .to-top{right:15px;bottom:15px;width:46px;height:46px}
  .to-top svg{width:19px;height:19px}

  .brand-signature{padding:46px 12px 32px}
}

/* ---------- Small phones ---------- */
@media (max-width:430px){
  .wrap{padding-left:16px;padding-right:16px}
  .section{padding:58px 0}
  .section-head{margin-bottom:34px}
  .hero{padding-top:40px;padding-bottom:50px}
  .page-hero{padding:43px 0 40px}
  .brand-logo--header{width:128px}
  .mobile-nav{width:92vw;padding-left:20px;padding-right:20px}

  .hero-cta{display:grid;grid-template-columns:1fr;width:100%}
  .hero-cta .btn{width:100%}
  .cta-banner .hero-cta{width:100%}

  .home-svc-grid>.card{padding:22px 20px}
  .goal-tabs{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
  .goal-panel,.goal-panel.show{padding:21px 18px}
  .goal-visual{max-width:220px}

  .stats-band{padding:31px 18px}
  .wf-panel{padding:25px 18px}
  .flip{height:235px}

  .svc-chip{padding:16px 8px}
  .chip-name{font-size:.82rem}
  .svc-media{min-height:278px!important}

  #packages .section-kicker{font-size:13px!important;padding:7px 13px!important}
  #packages .pkg-head h2{font-size:1.75rem!important}
  #packages .pkg-group .svc-plan{padding:14px 10px!important}
  #packages .plan-start{grid-template-columns:54px 1fr!important}
  #packages .plan-price-icon{width:52px!important;height:52px!important}
  #packages .plan-start .pprice{font-size:1.95rem!important}
  #packages .plan-pane{padding:18px 15px 16px!important}
  #packages .tier-icon{width:50px!important;height:50px!important;left:14px!important}
  #packages .plan-pane .ptier,#packages .plan-pane .pnote{margin-left:60px!important}

  .hours-head{align-items:flex-start}
  .hours-list li{align-items:flex-start}
}

@media (max-width:350px){
  .wrap{padding-left:14px;padding-right:14px}
  .brand-logo--header{width:120px}
  .svc-strip{grid-template-columns:1fr}
  .svc-chip{flex-direction:row;text-align:left;justify-content:flex-start;padding:14px 16px}
  .chip-ic{flex:0 0 44px;width:44px;height:44px}
  .chip-name{font-size:.9rem}
  #packages .pkg-head h2{font-size:1.62rem!important}
  .faq-q{padding-left:15px;padding-right:15px}
}

/* Touch-first devices: avoid leaving hover-only transforms visually "stuck". */
@media (hover:none){
  .card:hover,.why-item:hover,.promise:hover,.svc-chip:hover,.plan-pane:hover,.tcard:hover,
  .product:hover,.flip:hover .flip-inner{transform:none}
  .flip.flipped .flip-inner{transform:rotateY(180deg)}
}

/* Respect reduced-motion system settings everywhere. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* Project enquiry form — mobile refinement */
@media(max-width:640px){
  .project-enquiry-card{padding:26px 18px 24px}
  .project-enquiry-head{margin-bottom:24px;padding-bottom:20px}
  .project-enquiry-head .form-kicker{font-size:10.5px;margin-bottom:10px}
  .project-enquiry-head h2{max-width:none;font-size:1.68rem;line-height:1.1}
  .enquiry-step{margin-bottom:22px}
  .enquiry-step legend,.step-label{gap:9px;margin-bottom:10px;font-size:14px}
  .step-no{min-width:34px;height:27px;font-size:11px}
  .choice-grid{gap:9px}
  .choice-grid--need{grid-template-columns:repeat(2,minmax(0,1fr))}
  .choice-grid--goal{grid-template-columns:1fr}
  .choice-pill span{min-height:46px;padding:10px 11px;font-size:12.5px;border-radius:12px}
  .choice-dropdown summary{min-height:50px;padding:12px 13px;font-size:14px;border-radius:12px}
  .choice-dropdown[open] summary{border-radius:12px 12px 0 0}
  .choice-menu{border-radius:0 0 12px 12px;padding:5px}
  .choice-option{min-height:44px;padding:10px;font-size:13.5px}
  .choice-control{flex-basis:19px;width:19px;height:19px}
  .enquiry-field-step input{min-height:50px;padding:13px 14px;font-size:16px}
  .enquiry-field-step textarea{min-height:96px;padding:13px 14px;font-size:16px}
  .enquiry-submit{min-height:54px;padding:15px 18px;font-size:14.5px}
  .enquiry-note{font-size:12px}
}
@media(max-width:360px){
  .choice-grid--need{grid-template-columns:1fr}
}

/* v58 contact refinement — stacked/mobile */
@media(max-width:980px){
  .contact-grid{grid-template-columns:1fr;gap:34px}
  .contact-project-chip{margin-bottom:20px}
}
@media(max-width:640px){
  .contact-project-chip{
    padding:7px 14px;
    gap:8px;
    margin:0 0 18px;
    font-size:13px;
  }
  .contact-project-chip::before{width:7px;height:7px;box-shadow:0 0 0 4px rgba(7,137,239,.12)}
  .project-enquiry-card{padding:26px 18px 24px}
  .project-enquiry-head{margin-bottom:24px;padding-bottom:20px}
  .project-enquiry-head h2{font-size:1.68rem;line-height:1.08;margin-bottom:7px}
  .project-enquiry-head p{font-size:13px}
}
