   Mobile UX Optimization (2026-04-19 v2)
   - Hamburger nav, mobile drawer, FAB call button
   - Prevent text/button overlap on <=600px
   - Picture/img responsive sizing
   ================================================================ */

/* Picture element should fill like the original img */
picture { display: block; line-height: 0; }
picture > img { width: 100%; height: auto; display: block; }

/* Safe-area on touch */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Hamburger button (visible on mobile only) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,23,42,0.4);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
  transition: background .2s ease, border-color .2s ease;
  z-index: 101;
}
.nav-toggle:hover { background: rgba(15,23,42,0.7); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hide hamburger on desktop */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(82vw, 320px);
  background: #0b1220;
  color: #e5e7eb;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,.45);
  z-index: 120;
  overflow-y: auto;
  padding: 72px 20px 24px;
  visibility: hidden;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer-nav a {
  padding: 14px 12px;
  border-radius: 10px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.mobile-drawer-nav a:hover, .mobile-drawer-nav a:active { background: rgba(255,255,255,.06); }
.mobile-drawer-nav .mobile-drawer-cta {
  background: #f2c44d;
  color: #0b1220;
  margin-top: 8px;
  text-align: center;
}
.mobile-drawer-nav .mobile-drawer-cta:hover { background: #f4cf6a; }
.mobile-drawer-nav .mobile-drawer-phone {
  margin-top: 12px;
  text-align: center;
  border: 1px solid rgba(242,196,77,.6);
  color: #f2c44d;
}

.mobile-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 110;
}
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .mobile-drawer, .mobile-drawer-backdrop { display: none !important; }
}

/* Prevent body scroll when drawer is open */
body.no-scroll { overflow: hidden; }

/* Floating Call Button (mobile only) */
.fab-call {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #f2c44d;
  color: #0b1220;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  z-index: 90;
  text-decoration: none;
  transition: transform .15s ease;
}
.fab-call:active { transform: scale(.94); }
.fab-call:hover { background: #f4cf6a; }
@media (max-width: 899px) {
  .fab-call { display: inline-flex; }
}

/* Header overlap fix on narrow screens:
   Keep phone button compact, allow logo to shrink */
@media (max-width: 899px) {
  .site-header .header-inner { gap: 8px; }
  .header-phone { padding: 8px 10px; font-size: 13px; }
  .header-phone span, .header-phone-label { display: none; }
  /* Language switch: smaller touch targets */
  .lang-switch, .lang-switcher, .language-switch { gap: 4px; }
  .lang-switch button, .lang-switch a { padding: 6px 8px; font-size: 12px; }
}

/* Hero mobile tuning: stack buttons, reduce title size, prevent text overflow */
@media (max-width: 599px) {
  .hero-title, .hero-section h1 {
    font-size: clamp(26px, 7.2vw, 38px) !important;
    line-height: 1.2 !important;
    word-break: keep-all;
  }
  .hero-subtitle, .hero-section .subtitle, .hero-lead {
    font-size: 14px !important;
    line-height: 1.55;
    word-break: keep-all;
  }
  .hero-badges, .hero-chips, .hero-meta {
    flex-wrap: wrap;
    gap: 6px !important;
  }
  .hero-badge, .hero-chip {
    font-size: 11px !important;
    padding: 4px 10px !important;
    white-space: nowrap;
  }
  .hero-cta-group, .hero-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
  }
  .hero-cta-group > a, .hero-cta-group > button,
  .hero-buttons > a, .hero-buttons > button,
  .cta-primary, .cta-secondary {
    width: 100% !important;
    justify-content: center;
    min-height: 48px;
  }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { min-width: 0; }
  .hero-urgency { font-size: 11px !important; line-height: 1.4; }
  .scroll-indicator { display: none; }
}

/* Gallery: ensure image grid fits & maintains aspect */
@media (max-width: 599px) {
  .gallery-grid, .gallery-section .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .gallery-item, .gallery-card { border-radius: 8px; }
  .gallery-item picture, .gallery-item img { aspect-ratio: 4/3; object-fit: cover; }
}

/* FAQ: prevent title wrap weirdness */
@media (max-width: 599px) {
  .faq-section h2, .section-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    word-break: keep-all;
    padding: 0 12px;
  }
  .faq-item, .faq-card { padding: 14px 16px !important; }
  .faq-question, .faq-item summary { font-size: 15px !important; line-height: 1.4; }
  .faq-answer { font-size: 14px !important; line-height: 1.55; }
}

/* Contact / apply buttons full width on mobile */
@media (max-width: 599px) {
  .contact-section .btn, .contact-form button, .apply-button {
    width: 100%;
    min-height: 48px;
  }
}

/* General: prevent long korean words from overflowing */
h1, h2, h3, h4, p, a, button, li, span, td, th { word-break: keep-all; overflow-wrap: break-word; }

/* Disable hover effects on touch to avoid sticky-hover */
@media (hover: none) {
  a:hover, button:hover { transform: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Performance: content-visibility for offscreen heavy sections */
.gallery-section, .facility-section, .faq-section, .contact-section {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* Tap highlight soften */
a, button { -webkit-tap-highlight-color: rgba(242,196,77,.2); }
