/* Sri Hara Services V8 — mobile and tablet usability layer.
   Does not alter approved desktop visual appearance or design assets. */
@media (max-width:1180px) {
  .header-row {column-gap:12px; row-gap:8px;}
  .main-nav.is-open {width:100%; padding-block:8px 15px;}
  .main-nav.is-open a {display:block; min-height:44px; padding:11px 12px; border-radius:8px;}
  .main-nav.is-open a:focus-visible {outline-offset:-2px;}
}
@media (max-width:1000px) {
  .wrap {max-width:100%;}
  .hero-inner {grid-template-columns:minmax(0,1fr) minmax(0,.87fr)!important;gap:3%!important;}
  .service-card {min-width:0;}
}
@media (max-width:860px) {
  html {scroll-padding-top:90px;}
  .site-header {isolation:isolate;}
  .hero-inner,.showcase-grid,.service-hero-grid,.package-grid,.contact-grid,.faq-wrap,.detail-grid {grid-template-columns:minmax(0,1fr)!important;}
  .hero-inner,.showcase-grid,.service-hero-grid {gap:32px!important;}
  .hero-visual {width:min(100%,700px); margin-inline:auto; overflow:hidden; border-radius:22px;}
  .hero-visual img {max-width:100%; width:100%; object-fit:cover;}
  .page-hero-media {width:100%; max-width:700px; margin-inline:auto;}
  .showcase-graphic {max-width:750px; margin-inline:auto;}
  .service-card,.package-card,.enquiry-form {min-width:0;}
  .services-grid,.steps {grid-template-columns:repeat(2,minmax(0,1fr));}
  .audience-inner {justify-content:flex-start;}
  .footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .chat-window {max-height:calc(100dvh - 28px);}
}
@media (max-width:590px) {
  html {scroll-padding-top:82px;}
  .wrap {width:calc(100% - 30px);}
  .site-header .header-row {flex-wrap:nowrap; min-height:79px; gap:8px;}
  .site-header .brand {flex:1 1 auto; max-width:calc(100% - 58px); gap:9px;}
  .site-header .brand span {min-width:0;}
  .site-header .brand strong {overflow-wrap:break-word; line-height:1.13;}
  .site-header .brand small {line-height:1.25;}
  .site-header .menu-button {margin-left:auto;flex:0 0 44px;}
  .site-header .header-cta {display:none;}
  /* On small phones, make the expanded menu a full-width row beneath the header. */
  .site-header .header-row {flex-wrap:wrap;}
  .main-nav.is-open {flex:0 0 100%; order:4;}
  .hero {padding-block:46px 55px;}
  .hero h1 {overflow-wrap:break-word;}
  .actions {gap:10px;}
  .actions .btn {max-width:100%; min-height:46px;}
  .hero-visual {min-height:0; aspect-ratio:1.5/1;}
  .hero-visual img {border-radius:16px;}
  .hero-visual-label {font-size:10px;}
  .hero-visual-brand {font-size:8px;}
  .audience-inner {gap:8px 15px; padding-block:20px;}
  .audience-inner strong {flex-basis:100%;}
  .services-grid,.steps,.form-grid,.footer-grid,.value-grid {grid-template-columns:minmax(0,1fr);}
  .service-card {padding:14px 14px 20px;}
  .service-media {width:100%;}
  .section {padding-block:56px;}
  .visual-showcase {padding-block:56px;}
  .showcase-graphic {padding:6px;border-radius:18px;}
  .showcase-graphic img {border-radius:13px;}
  .showcase-accent {position:static;display:inline-block;margin-top:9px;font-size:11px;}
  .showcase-highlights {gap:7px;}
  .showcase-highlights span {font-size:11px;}
  .package-card {padding:22px;}
  .page-hero {padding-block:46px;}
  .page-hero-media img {max-width:100%;height:auto;}
  .enquiry-form {padding:20px 16px;}
  .field input,.field textarea,.field select {width:100%;max-width:100%;font-size:16px;}
  .footer-grid {gap:28px;}
  /* Avoid inaccessible chat controls when the mobile keyboard and safe areas appear. */
  .chat-window {right:8px;left:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;height:min(510px,calc(100dvh - 16px - env(safe-area-inset-bottom)));max-height:calc(100dvh - 16px - env(safe-area-inset-bottom));}
  .chat-head {padding:9px 12px;min-height:64px;}
  .chat-messages {min-height:0;}
  .chat-quick {max-height:94px;overscroll-behavior:contain;}
  .chat-ask {padding-bottom:max(10px,env(safe-area-inset-bottom));}
  .chat-ask input {font-size:16px;}
  .robot-welcome {right:5px;bottom:max(9px,env(safe-area-inset-bottom));}
  .robot-launcher {right:12px;bottom:max(12px,env(safe-area-inset-bottom));}
  .robot-tip {bottom:max(25px,calc(env(safe-area-inset-bottom) + 13px));}
}
@media (max-width:375px) {
  .wrap {width:calc(100% - 24px);}
  .site-header .brand img {width:38px;height:38px;}
  .site-header .brand {gap:7px;}
  .site-header .brand strong {font-size:18px;}
  .site-header .brand small {font-size:12px;}
  .actions .btn {padding-inline:14px;}
  .service-card {padding:12px 12px 18px;}
  .showcase-highlights span {padding:6px 10px;}
  .chat-quick button {min-height:34px;}
}
@media (max-height:540px) and (max-width:860px) {
  .chat-window {height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);}
  .chat-head {min-height:52px;}
  .chat-quick {max-height:66px;}
}
@media (prefers-reduced-motion:reduce) {
  .hero,.service-card,.btn,.showcase-graphic {animation:none!important;transition:none!important;}
}
