:root {
  --navy: #0B2638;
  --deep: #123C56;
  --aqua: #18A7A0;
  --aqua-hover: #128F89;
  --soft: #DCF5F2;
  --off: #F7FAFA;
  --white: #FFFFFF;
  --char: #172126;
  --mute: #66757C;
  --line: #DCE5E7;
  --mint: #B8E8E3;
  --radius-card: 22px;
  --radius-visual: 28px;
}

html { scroll-behavior: auto; overflow-x: hidden; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--off);
  color: var(--char);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3, .font-display { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
a, button, [role="button"], input[type="submit"], label, select { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 8px 14px; font-size: 13px; border-radius: 10px;
}
.skip:focus { top: 8px; }

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  background: rgba(247, 250, 250, 0.38);
}
#navbar.is-solid {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 38, 56, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menu-bars span {
  display: block; width: 18px; height: 1.6px; background: var(--char);
  transition: transform .3s ease, opacity .2s ease;
}
.is-open .menu-bars span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.is-open .menu-bars span:nth-child(2) { opacity: 0; }
.is-open .menu-bars span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

#mobileDrawer {
  background: #fff;
  z-index: 70;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}
#mobileDrawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#drawerScrim {
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#drawerScrim.is-open { opacity: 1; pointer-events: auto; }

.line-mask { overflow: hidden; display: block; }

.btn-aqua {
  background: var(--aqua);
  color: #fff;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-aqua:hover { background: var(--aqua-hover); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--char);
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.btn-ghost:hover { border-color: var(--navy); background: var(--off); }
.btn-light {
  background: #fff;
  color: var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.btn-light:hover { background: var(--mint); }
.btn-outline-light {
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

.img-shell { background: var(--soft); overflow: hidden; position: relative; }
.img-shell img { width: 100%; height: 100%; object-fit: cover; }
.img-shell[data-failed="1"]::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute);
}

.service-card { border-radius: var(--radius-card); overflow: hidden; }
.service-card img, .zoom-img { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .service-card:hover img, .prop-card:hover .zoom-img { transform: scale(1.03); }
  .prop-card:hover .prop-overlay { background: rgba(11, 38, 56, 0.28); }
}

.glass-label {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 30px rgba(11, 38, 56, 0.08);
}

.ba-frame { touch-action: none; user-select: none; cursor: ew-resize; }
.ba-clip {
  position: absolute; inset: 0 auto 0 0; width: 52%;
  overflow: hidden;
}
.ba-clip img {
  position: absolute; left: 0; top: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 52%;
  width: 2px; background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(11,38,56,.12);
}
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  background: #fff; color: var(--navy);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(11, 38, 56, .22);
}
.ba-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ba-tabs::-webkit-scrollbar { height: 0; }
.ba-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.ba-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.ba-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--mute);
  font-size: 14px;
  background: var(--off);
}
.ba-empty[hidden] { display: none; }

.process-line {
  transform: scaleY(0);
  transform-origin: top center;
}

.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  animation: acs-marquee 48s linear infinite;
}
@keyframes acs-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.prop-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .25rem;
}
.prop-scroller::-webkit-scrollbar { height: 0; }
.prop-card { scroll-snap-align: start; flex: 0 0 78%; }
@media (min-width: 768px) {
  .prop-scroller { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; gap: 1rem; }
  .prop-card { flex: none; }
}

.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-panel { display: none; }
.faq-item.is-open .faq-panel { display: block; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
}
body.is-locked .wa-float { visibility: hidden; }

input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--char);
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 14px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(24, 167, 160, 0.18);
}

html.js .hero-reveal,
html.js .hero-visual,
html.js .hero-label,
html.js .service-reveal,
html.js .floor-reveal,
html.js .ba-reveal,
html.js .trust-reveal,
html.js .property-reveal,
html.js .process-reveal,
html.js .gallery-reveal,
html.js .faq-reveal,
html.js .contact-reveal,
html.js .cta-reveal {
  opacity: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.note-ok {
  background: var(--soft);
  color: var(--deep);
  border-radius: 16px;
  padding: 12px 14px;
}
.note-error { color: #b42318; }
.nav-active { color: var(--navy); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
  .process-line { transform: none !important; }
  html.js .hero-reveal,
  html.js .hero-visual,
  html.js .hero-label,
  html.js .service-reveal,
  html.js .floor-reveal,
  html.js .ba-reveal,
  html.js .trust-reveal,
  html.js .property-reveal,
  html.js .process-reveal,
  html.js .gallery-reveal,
  html.js .faq-reveal,
  html.js .contact-reveal,
  html.js .cta-reveal { opacity: 1 !important; transform: none !important; }
}
