/*
 * KAELEN GROUP - Style Sheet
 * Anti-Gravity White Theme - Pure Black & White Edition
 */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --white:           #FFFFFF;
  --off-white:       #F8F8F6;
  --surface:         #F2F2F0;
  --smoke:           #EAEAE8;
  --border-light:    #E0E0DC;
  --border-mid:      #CCCCC8;
  --light-gray:      #999999;
  --mid-gray:        #666666;
  --dark-gray:       #333333;
  --near-black:      #1A1A1A;
  --charcoal:        #0D0D0D;
  --pure-black:      #000000;
  --white-text:      #FFFFFF;
  --accent:          #1C8095;
  
  --shadow-xs:  0 1px 4px rgba(0,0,0,0.05);
  --shadow-sm:  0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 56px rgba(0,0,0,0.13);
  --shadow-xl:  0 36px 80px rgba(0,0,0,0.16);
  --shadow-card-hover: 0 24px 64px rgba(0,0,0,0.18);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #145e6e;
}

/* Custom Selection Highlight */
::selection {
  background: var(--accent);
  color: var(--white);
}
::-moz-selection {
  background: var(--accent);
  color: var(--white);
}

.text-accent {
  color: var(--accent) !important;
}
.bg-accent {
  background-color: var(--accent) !important;
}

body {
  background: var(--white);
  color: var(--near-black);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

/* Typography */
h1, h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--charcoal);
}
h3, h4, h5, h6, nav, button, label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* Section spacing & rhythms */
.section {
  padding: 104px 0;
  position: relative;
}
.section-sm {
  padding: 64px 0;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Backgrounds */
.bg-white { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-surface { background: var(--surface); }
.bg-black { background: var(--pure-black); }
.bg-charcoal { background: var(--charcoal); }

/* Floating Card */
.card-float {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
}
.card-float:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.card-float i {
  color: var(--accent) !important;
  transition: transform 0.3s ease;
}
.card-float:hover i {
  transform: scale(1.15);
}

/* Dark Card */
.card-dark {
  background: var(--near-black);
  border: 1px solid #2E2E2E;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.40);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
  color: var(--white-text);
}
.card-dark:hover {
  transform: translateY(-8px);
  border-color: #555555;
  box-shadow: 0 24px 64px rgba(0,0,0,0.60);
}
.card-dark p {
  color: var(--light-gray) !important;
}

/* Eyebrow label system */
.eyebrow {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow-rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 12px 0 24px;
}
.bg-black .eyebrow-rule,
.bg-charcoal .eyebrow-rule {
  background: var(--white);
}

/* Typographic Signature (Background numbers) */
.section-number {
  position: absolute;
  top: 40px;
  left: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 200px;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.bg-black .section-number,
.bg-charcoal .section-number {
  color: rgba(255, 255, 255, 0.04);
}

/* Buttons */
.btn-black {
  background: var(--pure-black);
  color: var(--white);
  border: 2px solid var(--pure-black);
  border-radius: 999px;
  padding: 16px 44px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-black:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--pure-black);
  border: 1.5px solid var(--pure-black);
  border-radius: 999px;
  padding: 15px 44px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-white {
  background: var(--white);
  color: var(--pure-black);
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: 16px 44px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  border-radius: 999px;
  padding: 15px 44px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-outline-white:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Section Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-mid), transparent);
}

/* Stat counter card layout */
.stat-counter-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.stat-counter-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 64px;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}
.stat-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--mid-gray);
  margin-left: 4px;
}
.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--light-gray);
  margin-top: 8px;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-collapse: collapse;
}
.spec-table thead th {
  background: var(--accent);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 24px;
  text-align: left;
}
.spec-table tbody tr:nth-child(odd) {
  background: var(--white);
}
.spec-table tbody tr:nth-child(even) {
  background: var(--off-white);
}
.spec-table tbody tr:hover {
  background: var(--surface);
}
.spec-table tbody td {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--near-black);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}
.spec-table tbody td i {
  color: var(--accent) !important;
}

/* Process Steps */
.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}
.bg-black .step-circle {
  background: var(--white);
  color: var(--pure-black);
}
.step-line-horizontal {
  height: 1px;
  border-top: 2px dashed var(--border-mid);
  flex: 1;
  margin: 26px 15px 0;
}
.step-line-vertical {
  width: 1px;
  border-left: 2px dashed var(--border-mid);
  height: 40px;
  margin: 10px auto;
}

/* Badges */
.badge-mono {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--dark-gray);
  text-transform: uppercase;
  display: inline-block;
}
.badge-dark {
  background: transparent;
  border: 1px solid #444444;
  color: #CCCCCC;
}

/* Icon Circle */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
  color: var(--accent);
}
.icon-circle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Feature List Item */
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.feature-bullet-square {
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.bg-black .feature-bullet-square {
  background: var(--white);
}
.feature-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}
.bg-black .feature-title,
.bg-charcoal .feature-title {
  color: var(--white);
}
.feature-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--mid-gray);
  margin-top: 4px;
}
.bg-black .feature-desc,
.bg-charcoal .feature-desc {
  color: var(--light-gray);
}

/* Form Styles */
.form-input-bw {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--white);
  color: var(--near-black);
  transition: border-color 0.25s ease;
}
.form-input-bw:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 128, 149, 0.15);
}
.form-label-bw {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 6px;
}

/* Accordion overrides */
.accordion-bw {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.accordion-item-bw {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
}
.accordion-button-bw {
  background-color: transparent !important;
  color: var(--charcoal) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 20px 0;
  border: none !important;
  box-shadow: none !important;
}
.accordion-button-bw:not(.collapsed) {
  color: var(--pure-black) !important;
}
.accordion-button-bw::after {
  filter: grayscale(1) brightness(0);
}
.accordion-body-bw {
  padding: 0 0 20px 0;
  color: var(--mid-gray);
  font-size: 14px;
}

/* Full color images with hover zoom */
.img-bw { filter: none; transition: transform 0.3s ease; }
.img-bw:hover { transform: scale(1.02); }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Customizations */
.navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  height: 70px;
  padding: 0;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-gray) !important;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.25s ease;
}
.nav-link:hover {
  color: var(--accent) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active-black {
  color: var(--accent) !important;
  font-weight: 700;
}
.nav-link.active-black::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 1040;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-overlay.open {
  transform: translateY(0);
}
.mobile-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--charcoal);
  text-decoration: none;
  padding: 16px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--smoke);
}

/* Circular Hero frame */
.circular-hero-frame {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid #333333;
  overflow: hidden;
  background: #111111;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.circular-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enhanced Hero Section Elements */
.circular-hero-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circular-hero-glow {
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.circular-hero-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s;
}
.circular-hero-frame:hover {
  transform: scale(1.03) rotate(1deg);
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.hero-stats-bar {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 30px;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.hero-stats-bar:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.hero-stat-item {
  transition: transform 0.3s;
}
.hero-stat-item:hover {
  transform: translateY(-4px);
}

/* Lightbox Modal */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--white);
  cursor: pointer;
  z-index: 1060;
}

/* Page Hero Banner System */
.page-hero-banner {
  min-height: 45vh;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.85)), url('../images/factory/factory-banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid #222222;
}

/* Full-Screen Hero Background Carousel */
.hero-bg-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-bg-carousel .carousel-inner,
.hero-bg-carousel .carousel-item {
  width: 100%;
  height: 100%;
}
.hero-bg-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 60px;
}

.footer-link {
  color: #888888;
  transition: color 0.25s ease;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--accent);
}
.footer-icon-link {
  color: #888888;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
.footer-icon-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.hover-underline {
  transition: color 0.25s ease;
}
.hover-underline:hover {
  color: var(--accent) !important;
}
footer a {
  transition: color 0.25s ease;
}
footer a:hover {
  color: var(--accent) !important;
}
footer a svg {
  transition: color 0.25s ease, transform 0.25s ease;
}
footer a:hover svg {
  color: var(--accent) !important;
  transform: translateY(-2px);
}
