/* Responsive adjustments; original content and desktop design are retained. */
.navbar { gap: 1.5rem; }
.nav-logo { flex-shrink: 0; }
.nav-logo-img { width: auto; height: 54px; max-width: 180px; }
img, video { max-width: 100%; }
[id] { scroll-margin-top: calc(var(--nav-height) + 1rem); }
.configurator-layout > *, .cfg-option-body, .form-group, .cart-info { min-width: 0; }
@media (max-width: 1200px) {
  .nav-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; flex-shrink: 0; }
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--ink); border-bottom: 3px solid var(--fill); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 max(1rem, env(safe-area-inset-bottom)); z-index: 999; max-height: calc(100vh - var(--nav-height)); max-height: calc(100dvh - var(--nav-height)); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .75rem 1.5rem; min-height: 44px; font-size: 1.1rem; white-space: normal; }
  .nav-links a::after { display: none; }
  .nav-links .nav-configurator-link { margin: .35rem 1.25rem; display: flex !important; justify-content: center; }
  .nav-links .nav-cta { margin: .35rem 1.25rem; text-align: center; }
  html.nav-menu-open, html.nav-menu-open body { overflow: hidden; }
}
@media (max-width: 1000px) {
  .cfg-summary { order: 0; }
  .configurator-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-testimonials { grid-column: 1; }
}
@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .page-hero { padding: calc(var(--nav-height) + 2rem) 0 2.5rem; }
  .hero { padding-top: calc(var(--nav-height) + 1.5rem); gap: 1.5rem; }
  .hero-title { font-size: clamp(2rem, 8.6vw, 2.6rem); line-height: 1.05; }
  .section-title { font-size: clamp(1.85rem, 8vw, 2.6rem); line-height: 1.08; overflow-wrap: anywhere; }
  .section-header { margin-bottom: 2rem; }
  .hero-eyebrow .badge { max-width: 100%; white-space: normal; }
  .btn { min-height: 44px; white-space: normal; text-align: center; justify-content: center; }
  input, select, textarea, .store-search, .section-nav-dropdown { font-size: 16px !important; max-width: 100%; min-width: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form-group input, .form-group select, .form-group textarea { width: 100%; }
  .slide-arrow { width: 44px; height: 44px; opacity: 1; }
  .dot { width: 44px; height: 44px; background-size: 22px 4px; }
  .slideshow-dots { bottom: 0; gap: 0; }
  .slideshow-label { padding-bottom: 3rem; }
  .gallery-item:nth-child(1) { grid-row: auto; }
  .tool-cta-card { gap: .75rem; padding: 1.5rem 1rem; }
  .tool-cta-card > * { min-width: 0; }
  .addons-grid { grid-template-columns: minmax(0, 1fr); }
  .package-card { padding: 1.5rem; }
  .cfg-option { display: grid; grid-template-columns: 88px minmax(0, 1fr); padding: 1rem .85rem; gap: .75rem; }
  .cfg-option.selected { padding-left: calc(.85rem - 3px); }
  .cfg-option-img-wrap { width: 88px; height: 80px; }
  .cfg-option-img { object-fit: contain; }
  .cfg-option-body { overflow-wrap: anywhere; }
  .cfg-option-body strong { padding-right: 1rem; }
  .cfg-option.selected::after { right: .5rem; }
  .cfg-step-header { flex-direction: row; gap: .75rem; padding: 1rem; }
  .cfg-step-num { min-width: 32px; font-size: 1.7rem; }
  .cfg-complete-wrap { padding: 1rem; }
  .overlay, .cfg-modal-overlay { padding: .5rem; }
  .pm-dialog, .cfg-modal { padding: 1rem; max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); overscroll-behavior: contain; }
  .pm-close, .cfg-modal-close { position: sticky; top: 0; right: 0; margin-left: auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--bg-card); z-index: 10; }
  .drawer-close { width: 44px; height: 44px; top: .25rem; right: .5rem; }
  .drawer-panel { max-height: 100dvh; }
  .cart-items { min-height: 0; }
  .cart-foot { flex-shrink: 0; padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); }
  .cart-info { overflow-wrap: anywhere; }
  .cart-rm, .qty button, .qty.sm button { min-width: 44px; min-height: 44px; }
  .pm-buy { flex-wrap: wrap; }
  .pm-buy .btn { flex-basis: 100%; }
  .pm-opts { grid-template-columns: minmax(0, 1fr); }
  .pm-arrow { width: 44px; height: 44px; }
  .store-search { width: 100%; }
  .store-chip, .cart-btn { min-height: 44px; }
  .store-card, .store-card-body { min-width: 0; overflow-wrap: anywhere; }
  .cfg-spec-sheet { padding: .75rem; overflow-wrap: anywhere; }
  .spec-row { flex-direction: column; gap: 0; margin-bottom: .5rem; }
  .spec-key { min-width: 0; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links, .footer-brand { min-width: 0; overflow-wrap: anywhere; }
  .social-links a { min-width: 44px; min-height: 44px; }
}
@media (max-width: 420px) {
  .store-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { column-gap: 1rem; }
}
@media (max-width: 900px) {
  .ow-step-content, .ow-step-media { transform: none !important; opacity: 1 !important; }
}


/* Keep controls usable with touch, keyboard, and landscape phone viewports. */
.slide-pause { position: absolute; top: 1rem; left: 1rem; z-index: 5; min-height: 44px; padding: .5rem .75rem; border: 2px solid var(--head); background: var(--bg-card); color: var(--head); font: inherit; cursor: pointer; }
.slide-pause:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1200px) {
  .nav-links { touch-action: pan-y; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 900px), (max-height: 500px) {
  .overlay, .cfg-modal-overlay { padding: .5rem; }
  .pm-dialog, .cfg-modal { max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); overflow-y: auto; overscroll-behavior: contain; }
  .drawer-panel { max-height: 100vh; max-height: 100dvh; }
  .cart-items { min-height: 0; overscroll-behavior: contain; }
  .cart-foot { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .service-card, .gallery-item, .ow-gallery-item, .ow-step-content, .ow-step-media,
  .option-card, .layout-card, .switch-option-card, .avionics-card, .engraving-option, .finish-alt-card {
    opacity: 1 !important; transform: none !important; pointer-events: auto !important;
  }
}
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}
