/* Standalone layout and interactions; legacy source is retained in the archive. */
body { font-family: "Lato", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif; }
[id] { scroll-margin-top: 76px; }
.navbar .nav a:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #06c755; outline-offset: 4px; }
.line-contact { padding: 36px 24px; border-radius: 16px; background: #fff; border: 1px solid #d3eade; min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.line-contact h3 { color: #1d3557; font-size: 24px; margin-bottom: 18px; }
.line-contact p { line-height: 1.8; font-size: 16px; max-width: 360px; }
.line-contact-button { display: inline-block; padding: 16px 30px; margin: 20px 0 12px; color: white !important; background: #068c3f; font-size: 19px; font-weight: bold; border-radius: 8px; text-decoration: none !important; }
.line-contact-button:hover { background: #056e32; }
.line-account { color: #555; }
.partner-list { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 8px 0 16px; list-style: none; scrollbar-width: thin; }
.partner-list > li { flex: 0 0 calc((100% - 56px)/3); min-width: 0; scroll-snap-align: start; }
.partner-list .avatar img { display: block; width: 100%; max-width: 250px; height: 200px; object-fit: contain; margin: auto; }
.partner-list .avatar { float: none; }
.partner-controls { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 12px; }
.partner-controls button { width: 42px; height: 42px; border: 1px solid #457b9d; color: #1d3557; background: white; border-radius: 50%; font-size: 28px; cursor: pointer; }
#portfolio-wrapper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
#portfolio-wrapper::before, #portfolio-wrapper::after { display: none; }
#portfolio-wrapper .portfolio-item { width: 100% !important; margin: 0 !important; float: none; }
.portfolio-item .picture > div > img { cursor: zoom-in; }
#modal01 { inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; max-width: none !important; height: 100dvh; padding: 40px 20px !important; background: #000b !important; z-index: 10000 !important; align-items: center; justify-content: center; }
#modal01.is-open { display: flex !important; }
#modal01 img { max-width: 90vw; max-height: 85vh; width: auto; object-fit: contain; }
#modal01 > span { font-size: 28px; }
#googlemaps, #map { min-height: 320px; }
#map iframe { min-height: 320px; }
.nav-collapse { transition: none; }
#home { min-height: 600px; }
#slider { position: relative !important; height: 600px; }
.demo-1 .sl-slide-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.demo-1 .deco { position: static; width: 220px; height: auto; margin: 0; padding: 0; transform: none; border: 0; background: transparent; }
.demo-1 .sl-slide h2 { position: static; width: auto; height: auto; margin: 0 !important; padding: 0 15px; line-height: 1.35; }
.demo-1 .sl-slide blockquote { position: static; width: 100%; height: auto; margin: 0; padding: 0 16px; text-align: center; }
.demo-1 .sl-slide blockquote p:before { content: none; }
.demo-1 .sl-slide blockquote p { margin: 0 auto; width: 100%; max-width: 450px; }
@media (max-width: 979px) {
  .nav-collapse.is-open { height: auto !important; overflow: visible; }
}
@media (max-width: 767px) {
  body { padding-left: 0; padding-right: 0; }
  .container { width: 100%; padding-left: 18px; padding-right: 18px; }
  .wrapper.span12 { margin-left: 0 !important; width: 100%; }
  #home { min-height: 500px; }
  #home .sl-slider { height: 500px !important; }
  .demo-1 .deco { width: 170px; }
  .demo-1 .sl-slide h2 { font-size: 30px; }
  #services .span4 { width: 100% !important; margin-bottom: 28px; }
  #portfolio-wrapper { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  #portfolio-wrapper .works-title { white-space: normal; -webkit-line-clamp: unset !important; font-size: 16px !important; }
  #contact .span6 { width: 100% !important; margin-left: 0 !important; }
  .partner-list > li { flex-basis: calc((100% - 28px)/2); }
  .partner-list .avatar img { height: 145px; }
  #history h3 { line-height: 1.5; }
  #widget { z-index: 900; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
