@charset "UTF-8";

/* ==========================================================================
   전국철거지원센터 Custom Styling & Utility Overrides
   ========================================================================== */

:root {
  --primary: #1B4D8F;
  --primary-dark: #0E3366;
  --primary-light: #3A6BB5;
  --accent: #FFB72A;
  --accent-hover: #E8A020;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

*, ::before, ::after {
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: #333333;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Page container */
.page-w {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 640px) {
  .page-w {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* GNB Navigation Hover Effect */
.gnb-link {
  position: relative;
  transition: color 0.2s ease;
}

.gnb-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background-color: var(--accent);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.gnb-link:hover::before,
.gnb-link.active::before {
  width: 100%;
}

/* Embla Carousel styles */
.embla {
  overflow: hidden;
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* Real-time Inquiries Vertical Marquee */
.marquee-container {
  overflow: hidden;
  height: 320px;
  position: relative;
}

.marquee-content {
  display: flex;
  flex-direction: column;
  animation: marquee-vertical 24s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Floating Quick Menu Styling (Desktop Only) */
.quick-floating-menu {
  position: fixed;
  right: 24px;
  bottom: 30px;
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) {
  .quick-floating-menu {
    display: flex;
  }
}

/* Mobile Fixed Bottom Action Bar (with iOS Safe Area support) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid #e5e7eb;
  z-index: 999;
  display: flex;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-bar a {
  transition: transform 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-bar a:active {
  transform: scale(0.94);
  opacity: 0.85;
}

/* Mobile Side Menu Transitions */
.mobile-side-menu {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

.mobile-side-menu.active {
  transform: translateX(0);
}

/* Mobile Range Slider Touch Enhancements */
input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s ease;
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Form Styles & iOS Auto-zoom prevention (Inputs >= 16px) */
.form-input-focus {
  font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  transition: all 0.2s ease-in-out;
}

@media (min-width: 640px) {
  .form-input-focus {
    font-size: 14px !important;
  }
}

.form-input-focus:focus {
  border-color: #1B4D8F !important;
  box-shadow: 0 0 0 4px rgba(27, 77, 143, 0.15) !important;
  outline: none;
}

/* Smooth Tap for Mobile Buttons */
button, a {
  -webkit-tap-highlight-color: transparent;
}

