/* ===========================
   KMB Group - Custom Styles
   =========================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #C2566E;
  color: white;
}

/* ---- Navigation ---- */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  border-color: transparent !important;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.slide-left {
  transform: translateX(-30px);
}

.animate-on-scroll.slide-right {
  transform: translateX(30px);
}

.animate-on-scroll.scale-in {
  transform: scale(0.95);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* ---- Hero Overlay ---- */
.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(27, 27, 47, 0.75) 0%,
    rgba(27, 27, 47, 0.4) 50%,
    rgba(27, 27, 47, 0.2) 100%
  );
}

/* ---- Image Effects ---- */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s ease;
}

.img-zoom:hover img {
  transform: scale(1.06);
}

/* ---- Link Underline Animation ---- */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #C2566E;
  transition: width 0.3s ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* ---- Project Cards ---- */
.project-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

/* ---- Sustainability Icons ---- */
.sustain-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sustain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* ---- Partner Logos ---- */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---- Form Styles ---- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #C2566E;
  box-shadow: 0 0 0 3px rgba(194, 86, 110, 0.1);
}

/* ---- Decorative Accent Line ---- */
.accent-line {
  width: 48px;
  height: 2px;
  background-color: #C2566E;
}

/* ---- Badge / Tag ---- */
.badge-upcoming {
  background-color: rgba(194, 86, 110, 0.1);
  color: #C2566E;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ---- Scroll Progress (optional) ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: #C2566E;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- Breadcrumbs ---- */
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin: 0 0.5rem;
  color: #9CA3AF;
}

/* ---- Image Shimmer Loading ---- */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Section Divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #E5E7EB, transparent);
}

/* ---- Blockquote Style ---- */
blockquote {
  border-left: 3px solid #C2566E;
  padding-left: 1.5rem;
  font-style: italic;
}

/* ---- Architectural / Blueprint Patterns ---- */

/* Dot grid background — evokes engineering graph paper */
.arch-dot-grid {
  background-image: radial-gradient(circle, #1B1B2F0A 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Fine crosshair grid — evokes CAD/drafting */
.arch-crosshair-grid {
  background-image:
    linear-gradient(rgba(27, 27, 47, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 27, 47, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Architectural section marker — thin vertical line with circle endpoints */
.arch-marker {
  position: relative;
}

.arch-marker::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -24px;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(194, 86, 110, 0.25), transparent);
}

/* Blueprint reference cross */
.arch-cross {
  position: relative;
  display: inline-block;
}

.arch-cross::before,
.arch-cross::after {
  content: '';
  position: absolute;
  background-color: rgba(194, 86, 110, 0.2);
}

.arch-cross::before {
  width: 16px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.arch-cross::after {
  width: 1px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Thin dimension line — horizontal rule with small ticks at ends */
.arch-dimension {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.arch-dimension-line {
  flex: 1;
  height: 1px;
  background-color: rgba(194, 86, 110, 0.2);
}

.arch-dimension-tick {
  width: 1px;
  height: 8px;
  background-color: rgba(194, 86, 110, 0.25);
}

/* Corner bracket — evokes architectural detail marks */
.arch-corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.arch-corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(194, 86, 110, 0.2);
  border-left: 1px solid rgba(194, 86, 110, 0.2);
}

.arch-corner-tr {
  top: -1px;
  right: -1px;
  border-top: 1px solid rgba(194, 86, 110, 0.2);
  border-right: 1px solid rgba(194, 86, 110, 0.2);
}

.arch-corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid rgba(194, 86, 110, 0.2);
  border-left: 1px solid rgba(194, 86, 110, 0.2);
}

.arch-corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid rgba(194, 86, 110, 0.2);
  border-right: 1px solid rgba(194, 86, 110, 0.2);
}

/* Section annotation label — small rotated text like blueprint notes */
.arch-annotation {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(194, 86, 110, 0.25);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
}

/* Blog / Journal card styles */
.journal-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
