/* Phone layouts: readable content, one menu, and comfortable touch targets. */
@media (max-width: 760px) {
  html {scroll-padding-top: 96px;}
  body {font-size:16px;}
  body::before {background-position:65% center;background-image:linear-gradient(rgba(18,48,69,.78),rgba(24,58,80,.62)),url('kirtipur-dental-realistic.png');}
  .site-header {position:relative;inset:auto;}
  .site-header .nav-shell {width:100%;min-height:84px;padding:14px 20px;gap:12px;}
  .site-header .brand {min-width:0;align-items:center;}
  .site-header .supplied-logo {width:112px;height:45px;}
  .site-header .brand .clinic-label {font-size:10px;line-height:1.4;}
  .site-header .language-control {margin:0;}
  .language-control select {min-width:44px;width:44px;min-height:44px;font-size:14px;}
  .nav-toggle {display:flex;width:44px;height:44px;min-width:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);box-shadow:none;}
  .nav-toggle span {width:18px;height:2px;background:#fff;}
  .site-header .primary-nav {display:none;position:absolute;inset:84px 12px auto;max-height:calc(100dvh - 104px);overflow:auto;width:auto;margin:0;padding:12px 18px;gap:0;border-radius:16px;background:rgba(26,57,78,.97);box-shadow:0 12px 30px rgba(0,0,0,.2);z-index:60;}
  .site-header .primary-nav.open {display:flex;flex-direction:column;align-items:stretch;}
  .site-header .primary-nav>a,.site-header .primary-nav>[data-section],.site-header .primary-nav .btn {display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:48px;margin:0;padding:12px 6px;font-size:16px;text-align:left;}
  .mobile-bottom-nav {display:none!important;}
  .hero-card {display:flex;flex-direction:column;min-height:0;padding:18px 20px 36px;overflow:visible;}
  .hero-copy {order:0;width:100%;max-width:none;margin:0;padding:16px 0 0;}
  .hero-copy h1,.hero h1 {font-size:clamp(36px,10vw,48px);line-height:1.12;text-transform:none;letter-spacing:-.035em;margin:0 0 22px;padding:0;border:0;text-wrap:initial;}
  html[lang="ne"] .hero h1 {font-size:clamp(30px,8.5vw,40px);line-height:1.4;letter-spacing:0;}
  .hero-lede {font-size:16px;line-height:1.75;margin-bottom:20px;max-width:36ch;}
  .hero-actions {display:flex;flex-direction:column;align-items:stretch;gap:4px;}
  .hero-actions .btn,.hero-actions .text-link {display:flex;justify-content:flex-start;min-height:48px;width:100%;padding:12px 0;font-size:16px;line-height:1.5;}
  .hero-actions .btn {font-weight:800;}
  .hero-actions .text-link {text-decoration:underline;text-underline-offset:5px;}
  .hero-facts {margin:24px 0 0;padding:0;gap:0;}
  .hero-facts .experience {margin:0;padding:0;display:flex;align-items:center;gap:14px;}
  .hero-facts .experience strong {font-size:40px;line-height:1.1;}
  .hero-facts .experience span {font-size:14px;line-height:1.5;}
  .opening-hours-button {order:1;position:relative;inset:auto;align-self:stretch;margin:28px 0 0;padding:16px 18px;font-size:14px;line-height:1.65;gap:2px;text-align:left;border-radius:14px;}
  .site-footer {padding:24px 20px 32px;}
  .site-footer .container {width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:16px;}
  .site-footer .container p,.site-footer .container>a {font-size:14px;line-height:1.7;}
  .footer-legal {width:100%;margin:24px 0 0;padding:20px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:14px;}
  .footer-legal nav {display:grid;grid-template-columns:1fr 1fr;width:100%;gap:2px 16px;}
  .footer-legal button {min-height:44px;text-align:left;font-size:13px;padding:10px 0;}
  .footer-legal p {font-size:12px;line-height:1.6;}
  .section-dialog,.policy-dialog {inset:10px;margin:0;width:calc(100% - 20px);max-width:none;max-height:calc(100dvh - 20px);height:fit-content;padding:18px;border-radius:18px;background:rgba(233,246,255,.97);overflow-x:hidden;}
  .section-dialog .section-heading {padding-right:0;}
  .section-dialog h2,.policy-dialog-content>h2:first-child {font-size:28px;line-height:1.25;clear:both;}
  .section-dialog-close,.policy-dialog-close {min-height:44px;min-width:44px;top:0;margin:0 0 12px 12px;}
  .section-dialog .service-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;}
  .section-dialog .service-card {padding:14px!important;min-width:0;}
  .service-diagram {height:auto;aspect-ratio:4/3;object-fit:cover;}
  .service-card h3 {font-size:22px;line-height:1.3;}
  .service-card p,.treatment-risk p,.policy-dialog-content p,.policy-dialog-content li {font-size:15px;line-height:1.8;overflow-wrap:anywhere;}
  .treatment-prompt {font-size:14px;line-height:1.5;}
  .booking-overlay {padding:10px;}
  .booking-modal {width:100%;max-width:100%;padding:24px 18px;margin:auto;max-height:calc(100dvh - 20px);overflow:auto;}
  .booking-modal h2 {font-size:28px;line-height:1.3;}
  .booking-modal form {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;}
  .booking-modal label {grid-column:1;font-size:14px;}
  input,select,textarea {font-size:16px;min-width:0;}
}
@media(max-width:760px){.nav-toggle{padding:0}.nav-toggle span{flex:0 0 2px;min-height:2px}.site-footer .container>a:last-child{order:initial}}
/* Show the complete landscape on phones, with a compact fixed menu. */
@media(max-width:760px){
  html{background:#315c79}
  body::before{background-color:#315c79;background-image:linear-gradient(rgba(23,57,80,.12),rgba(23,57,80,.22)),url('kirtipur-dental-realistic.png');background-size:100% auto;background-position:center 88px;background-repeat:no-repeat;position:absolute;inset:0;}
  .site-header{position:relative;background:rgba(34,68,93,.9);}
  .hero-card{padding-top:calc(66.6667vw + 16px);}
  .hero-copy{padding-top:8px;}
  .site-header .primary-nav{position:fixed;inset:78px 12px auto auto;width:min(272px,calc(100vw - 24px));max-height:calc(100dvh - 94px);padding:8px 14px;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:rgba(27,58,80,.96);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 12px 30px rgba(10,31,46,.24);}
  .site-header .primary-nav.open{gap:0;align-items:stretch;}
  .site-header .primary-nav>a,.site-header .primary-nav>[data-section],.site-header .primary-nav .btn{min-height:44px;padding:10px 4px;font-size:14px;line-height:1.5;white-space:normal;margin:0;}
  .site-header .primary-nav .nav-phone{display:none;}
  .site-header .primary-nav .btn{border-top:1px solid rgba(255,255,255,.2);margin-top:4px;padding-top:12px;}
}
.mobile-landscape{display:none}
@media(max-width:760px){
 body::before{position:fixed;background:#315c79;background-image:none}
 .site-header{background:#315c79}
 .hero-card{padding:0 0 28px;display:flex;gap:0}
 .mobile-landscape{display:block;order:-1;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;margin:0;mask-image:linear-gradient(#000 85%,transparent);-webkit-mask-image:linear-gradient(#000 85%,transparent)}
 .hero-copy{padding:12px 22px 0;margin:0;width:100%}
 .hero-copy h1,.hero h1{font-size:clamp(34px,9.5vw,46px);margin-bottom:16px;line-height:1.15}
 .hero-lede{font-size:15px;line-height:1.75;max-width:none}
 .hero-actions{gap:0}
 .hero-actions .btn,.hero-actions .text-link{font-size:15px}
 .hero-facts{margin-top:18px}
 .opening-hours-button{margin:24px 22px 0;align-self:stretch;width:auto}
 .site-footer{padding:24px 22px 32px;background:rgba(16,46,65,.13)}
 .site-header .primary-nav{width:min(252px,calc(100vw - 24px));padding:8px 14px}
 .section-dialog,.policy-dialog{padding:16px;max-height:calc(100dvh - 20px)}
}
@media(max-width:760px){
 body::before{position:fixed;inset:0;background-image:linear-gradient(180deg,rgba(19,48,71,.48),rgba(16,43,58,.56)),url('mobile-kirtipur-background.png');background-size:cover;background-position:center center;background-repeat:no-repeat;}
 .mobile-landscape{display:none}
 .site-header{background:transparent;position:relative;z-index:70}
 .hero-card{padding:18px 0 32px;min-height:calc(100svh - 86px);background:transparent}
 .hero-copy{padding:16px 22px 0}
 .hero h1,.hero-lede{ text-shadow:0 2px 8px rgba(13,35,52,.45)}
 .site-footer{background:transparent}
 .site-header .nav-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;gap:0;position:relative;box-shadow:none;border-radius:12px;background:rgba(23,54,76,.4);border:1px solid rgba(255,255,255,.5);}
 .nav-toggle .menu-icon{display:block;width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;flex:none;}
 .menu-cross{display:none}.nav-toggle[aria-expanded="true"] .menu-lines{display:none}.nav-toggle[aria-expanded="true"] .menu-cross{display:block}
 .site-header .primary-nav{top:82px;right:14px;width:min(252px,calc(100vw - 28px));max-height:calc(100dvh - 100px);z-index:80;}
 .opening-hours-button{margin-top:26px}
}
/* Floating phone navigation with room for the home indicator. */
@media(max-width:760px){
 .site-header .nav-toggle,.site-header .primary-nav,.site-header .primary-nav.open{display:none!important}
 .site-header .language-control{margin-left:auto}
 .opening-hours-button{align-self:flex-end;width:auto;max-width:calc(100% - 44px);margin:22px 22px 0;padding:10px 13px;gap:1px;font-size:12px;line-height:1.55;border-radius:12px;}
 .opening-hours-button span:first-child{font-size:12px;margin-bottom:2px}
 .mobile-bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 14px calc(12px + env(safe-area-inset-bottom,0px));z-index:90;width:auto;max-width:470px;margin-inline:auto;padding:7px 8px;gap:2px;border:1px solid rgba(255,255,255,.55);border-radius:30px;background:linear-gradient(135deg,rgba(76,135,182,.72),rgba(27,66,103,.78));backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 8px 24px rgba(8,30,48,.25)}
 .mobile-bottom-nav>a,.mobile-bottom-nav>button,.mobile-bottom-nav>.btn{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:52px;width:100%;margin:0;padding:4px 0!important;background:none!important;border:0!important;color:#fff!important;box-shadow:none!important;font-size:10px;line-height:1.25;font-weight:600;text-decoration:none}
 .mobile-bottom-nav svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
 .mobile-bottom-nav span{display:block;white-space:nowrap;font-size:10px;line-height:1.4}
 .mobile-bottom-nav :focus-visible{outline:2px solid white;outline-offset:0;border-radius:14px!important}
 .site-footer{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
 .hero-card{min-height:calc(100svh - 175px)}
 html[lang="ne"] .mobile-bottom-nav span{font-size:10px}
}
