/* =====================================================
   KROMOLIN — TASARIM SİSTEMİ
   Renkler admin panelinden PHP ile enjekte edilir
   ===================================================== */

/* Fallback değerler — PHP'den override edilir */
:root {
  --km-primary: #D50060;
  --km-primary-rgb: 213,0,96;
  --km-secondary: #4A4A5A;
  --km-secondary-rgb: 74,74,90;
  --km-accent: #FF4095;
  --km-dark: #111827;
  --km-light: #F9FAFB;
  --km-white: #ffffff;
  --km-gray-100: #F3F4F6;
  --km-gray-200: #E5E7EB;
  --km-gray-500: #6B7280;
  --km-gray-700: #374151;
  --km-border: #E2E8F0;
  --km-shadow: 0 4px 24px rgba(0,0,0,.08);
  --km-shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --km-radius: 12px;
  --km-radius-lg: 20px;
  --km-transition: .3s cubic-bezier(.4,0,.2,1);
  --km-font: 'Inter', system-ui, sans-serif;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--km-font);
  color: var(--km-gray-700);
  background: var(--km-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--km-primary); text-decoration: none; transition: color var(--km-transition); }
a:hover { color: var(--km-accent); }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--km-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--km-dark);
}
.km-display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.km-heading-xl { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
.km-heading-lg { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; }
.km-heading-md { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; }
.km-text-lg { font-size: 1.125rem; line-height: 1.8; }
.km-text-sm { font-size: .875rem; }
.km-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--km-primary);
}

/* ===== COLORS ===== */
.text-primary { color: var(--km-primary) !important; }
.text-dark { color: var(--km-dark) !important; }
.text-gray { color: var(--km-gray-500) !important; }
.bg-primary { background: var(--km-primary) !important; }
.bg-dark { background: var(--km-dark) !important; }
.bg-light { background: var(--km-light) !important; }

/* ===== BUTTONS ===== */
.km-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--km-transition);
  text-decoration: none;
  white-space: nowrap;
}
.km-btn-primary {
  background: var(--km-primary);
  color: #fff;
  border-color: var(--km-primary);
}
.km-btn-primary:hover {
  background: transparent;
  color: var(--km-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--km-primary-rgb),.3);
}
.km-btn-outline {
  background: transparent;
  color: var(--km-primary);
  border-color: var(--km-primary);
}
.km-btn-outline:hover {
  background: var(--km-primary);
  color: #fff;
  transform: translateY(-2px);
}
.km-btn-dark {
  background: var(--km-dark);
  color: #fff;
  border-color: var(--km-dark);
}
.km-btn-dark:hover {
  background: transparent;
  color: var(--km-dark);
  transform: translateY(-2px);
}
.km-btn-white {
  background: #fff;
  color: var(--km-primary);
  border-color: #fff;
}
.km-btn-white:hover { background: var(--km-light); color: var(--km-primary); }
.km-btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.km-btn-sm { padding: .55rem 1.25rem; font-size: .85rem; }

/* ===== HEADER ===== */
#km-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--km-transition);
}
.km-header-topbar {
  background: var(--km-dark);
  color: rgba(255,255,255,.7);
  padding: .4rem 0;
  font-size: .8rem;
}
.km-header-topbar a { color: rgba(255,255,255,.7); }
.km-header-topbar a:hover { color: var(--km-primary); }
.km-header-topbar-left span { margin-right: 1.5rem; }
.km-header-topbar-left i { color: var(--km-primary); margin-right: .35rem; }
.km-header-main {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: .9rem 0;
}
#km-header.scrolled .km-header-topbar { display: none; }
#km-header.scrolled .km-header-main {
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.km-logo img { height: 44px; width: auto; }
.km-nav { display: flex; align-items: center; gap: .25rem; }
.km-nav-item { position: relative; }
.km-nav-link {
  display: block;
  padding: .6rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--km-dark);
  border-radius: 6px;
  transition: all var(--km-transition);
  white-space: nowrap;
}
.km-nav-link:hover, .km-nav-link.active {
  color: var(--km-primary);
  background: rgba(var(--km-primary-rgb),.06);
}
.km-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: #fff;
  border: 1px solid var(--km-border);
  border-radius: var(--km-radius);
  box-shadow: var(--km-shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--km-transition);
  z-index: 100;
  padding: .5rem;
}
.km-nav-item:hover .km-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.km-dropdown a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .9rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--km-gray-700);
  border-radius: 8px;
  transition: all var(--km-transition);
}
.km-dropdown a:hover {
  background: rgba(var(--km-primary-rgb),.06);
  color: var(--km-primary);
}
.km-dropdown a i {
  width: 1.1rem;
  text-align: center;
  color: var(--km-primary);
  font-size: .8rem;
}
.km-mega-menu {
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 800px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 1rem;
}
.km-nav-item:hover .km-mega-menu {
  transform: translateX(-50%) translateY(0);
}
.km-mega-col { padding: .5rem; }
.km-mega-col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--km-primary);
  padding: .4rem .9rem;
  margin-bottom: .25rem;
}
.km-header-actions { display: flex; align-items: center; gap: .75rem; }
.km-header-cta { font-size: .85rem !important; padding: .65rem 1.4rem !important; }
.km-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border: none;
  background: none;
}
.km-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--km-dark);
  transition: all var(--km-transition);
}

/* ===== HERO ===== */
.km-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--km-dark);
  padding-top: 120px;
}
.km-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.km-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(17,24,39,.95) 0%,
    rgba(17,24,39,.7) 50%,
    rgba(var(--km-primary-rgb),.15) 100%);
}
.km-hero-content { position: relative; z-index: 2; }
.km-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(var(--km-primary-rgb),.15);
  border: 1px solid rgba(var(--km-primary-rgb),.3);
  color: var(--km-accent);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.km-hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.km-hero-title .highlight { color: var(--km-primary); }
.km-hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.km-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.km-hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.km-hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.km-hero-img {
  position: relative;
  z-index: 2;
}
.km-hero-img img {
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.km-hero-card {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  color: #fff;
}
.km-hero-card-bottom {
  bottom: -1.5rem;
  left: -2rem;
}
.km-hero-card-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--km-primary);
}
.km-hero-card-label { font-size: .75rem; color: rgba(255,255,255,.7); }

/* ===== SECTION LAYOUTS ===== */
.km-section { padding: 100px 0; }
.km-section-sm { padding: 60px 0; }
.km-section-lg { padding: 140px 0; }
.km-section-dark { background: var(--km-dark); }
.km-section-light { background: var(--km-light); }
.km-section-primary { background: var(--km-primary); }
.km-section-header { margin-bottom: 60px; }
.km-section-header.t-center { text-align: center; margin-inline: auto; max-width: 680px; }

/* ===== CATEGORY CARDS ===== */
.km-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.km-cat-card {
  position: relative;
  border-radius: var(--km-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.km-cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.km-cat-card:hover .km-cat-card-img { transform: scale(1.07); }
.km-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%);
  transition: all var(--km-transition);
}
.km-cat-card:hover .km-cat-card-overlay { background: linear-gradient(to top, rgba(var(--km-primary-rgb),.9) 0%, rgba(17,24,39,.3) 100%); }
.km-cat-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(0);
  transition: all var(--km-transition);
}
.km-cat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--km-primary-rgb),.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .75rem;
  border: 1px solid rgba(255,255,255,.15);
}
.km-cat-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.km-cat-card-count {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.km-cat-card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--km-transition);
}
.km-cat-card:hover .km-cat-card-arrow { opacity: 1; transform: translateX(0); }

/* ===== PRODUCT CARDS ===== */
.km-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.km-product-card {
  background: #fff;
  border: 1px solid var(--km-border);
  border-radius: var(--km-radius-lg);
  overflow: hidden;
  transition: all var(--km-transition);
}
.km-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--km-shadow-lg);
  border-color: rgba(var(--km-primary-rgb),.2);
}
.km-product-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.km-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.km-product-card:hover .km-product-img img { transform: scale(1.05); }
.km-product-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .7rem;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.km-product-badge-new { background: var(--km-primary); color: #fff; }
.km-product-badge-online { background: #059669; color: #fff; }
.km-product-badge-quote { background: #D97706; color: #fff; }
.km-product-body { padding: 1.25rem; }
.km-product-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--km-primary);
  margin-bottom: .4rem;
}
.km-product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--km-dark);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.km-product-desc {
  font-size: .85rem;
  color: var(--km-gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.km-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.km-product-price { font-size: 1rem; font-weight: 700; color: var(--km-dark); }
.km-product-price small { font-size: .7rem; color: var(--km-gray-500); font-weight: 400; display: block; }

/* ===== PRICE CALCULATOR ===== */
.km-calc-wrap {
  background: #fff;
  border-radius: var(--km-radius-lg);
  box-shadow: var(--km-shadow-lg);
  overflow: hidden;
}
.km-calc-header {
  background: var(--km-dark);
  padding: 1.5rem 2rem;
  color: #fff;
}
.km-calc-body { padding: 2rem; }
.km-calc-group { margin-bottom: 1.5rem; }
.km-calc-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--km-gray-500);
  margin-bottom: .6rem;
}
.km-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.km-option-pill {
  padding: .5rem 1rem;
  border: 2px solid var(--km-border);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--km-transition);
  background: #fff;
  color: var(--km-gray-700);
}
.km-option-pill:hover, .km-option-pill.active {
  border-color: var(--km-primary);
  background: rgba(var(--km-primary-rgb),.06);
  color: var(--km-primary);
}
.km-qty-selector {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.km-qty-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--km-border);
  border-radius: 8px;
  background: #fff;
  color: var(--km-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--km-transition);
}
.km-qty-btn:hover { border-color: var(--km-primary); color: var(--km-primary); }
.km-qty-input {
  width: 80px;
  text-align: center;
  border: 2px solid var(--km-border);
  border-radius: 8px;
  padding: .4rem;
  font-size: 1rem;
  font-weight: 600;
}
.km-price-display {
  background: var(--km-light);
  border: 2px solid var(--km-border);
  border-radius: var(--km-radius);
  padding: 1.5rem;
  text-align: center;
}
.km-price-total {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--km-primary);
  line-height: 1;
}
.km-price-unit { font-size: .85rem; color: var(--km-gray-500); margin-top: .25rem; }

/* ===== ACCORDION / FAQ ===== */
.km-accordion-item {
  border: 1px solid var(--km-border);
  border-radius: var(--km-radius);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow var(--km-transition);
}
.km-accordion-item.open {
  box-shadow: 0 4px 20px rgba(var(--km-primary-rgb),.1);
  border-color: rgba(var(--km-primary-rgb),.3);
}
.km-accordion-header {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--km-dark);
  background: #fff;
  transition: all var(--km-transition);
  user-select: none;
}
.km-accordion-header:hover { color: var(--km-primary); }
.km-accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--km-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--km-transition);
  color: var(--km-gray-500);
  font-size: .8rem;
}
.km-accordion-item.open .km-accordion-icon {
  background: var(--km-primary);
  color: #fff;
  transform: rotate(45deg);
}
.km-accordion-body {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.km-accordion-body.open {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}
.km-accordion-body p {
  color: var(--km-gray-500);
  font-size: .9rem;
  line-height: 1.8;
}

/* ===== TESTIMONIALS ===== */
.km-testimonial-card {
  background: #fff;
  border: 1px solid var(--km-border);
  border-radius: var(--km-radius-lg);
  padding: 2rem;
  transition: all var(--km-transition);
}
.km-testimonial-card:hover {
  box-shadow: var(--km-shadow-lg);
  border-color: rgba(var(--km-primary-rgb),.2);
  transform: translateY(-4px);
}
.km-testimonial-stars { color: #F59E0B; margin-bottom: 1rem; font-size: .9rem; }
.km-testimonial-text {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--km-gray-500);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.km-testimonial-quote {
  font-size: 4rem;
  line-height: 0;
  color: var(--km-primary);
  opacity: .15;
  font-family: Georgia, serif;
  margin-bottom: 1rem;
}
.km-testimonial-author { display: flex; align-items: center; gap: .75rem; }
.km-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--km-border);
}
.km-testimonial-name { font-weight: 700; font-size: .9rem; color: var(--km-dark); }
.km-testimonial-pos { font-size: .8rem; color: var(--km-gray-500); }

/* ===== CTA SECTION ===== */
.km-cta-section {
  background: linear-gradient(135deg, var(--km-primary) 0%, #9B004C 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.km-cta-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 40px 40px;
}

/* ===== FOOTER ===== */
#km-footer {
  background: #0D1117;
  color: rgba(255,255,255,.6);
  padding: 80px 0 0;
}
.km-footer-logo { height: 40px; filter: brightness(0) invert(1); }
.km-footer-desc {
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.5);
  max-width: 300px;
  margin: 1rem 0;
}
.km-footer-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--km-primary);
  margin-bottom: 1.25rem;
}
.km-footer-links { list-style: none; padding: 0; margin: 0; }
.km-footer-links li { margin-bottom: .6rem; }
.km-footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  transition: all var(--km-transition);
}
.km-footer-links a:hover { color: var(--km-primary); padding-left: .4rem; }
.km-footer-contact { list-style: none; padding: 0; }
.km-footer-contact li {
  display: flex;
  gap: .75rem;
  margin-bottom: .85rem;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}
.km-footer-contact i { color: var(--km-primary); margin-top: .15rem; flex-shrink: 0; }
.km-footer-contact a { color: rgba(255,255,255,.5); }
.km-footer-contact a:hover { color: var(--km-primary); }
.km-footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.km-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: all var(--km-transition);
}
.km-footer-social a:hover {
  background: var(--km-primary);
  border-color: var(--km-primary);
  color: #fff;
  transform: translateY(-3px);
}
.km-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 0;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.km-footer-bottom-text { font-size: .8rem; color: rgba(255,255,255,.3); }
.km-footer-bottom-links { display: flex; gap: 1.5rem; }
.km-footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.3); }
.km-footer-bottom-links a:hover { color: var(--km-primary); }

/* ===== FORMS ===== */
.km-form-group { margin-bottom: 1.25rem; }
.km-form-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--km-gray-500);
  margin-bottom: .5rem;
}
.km-form-control {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 2px solid var(--km-border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--km-font);
  color: var(--km-dark);
  background: #fff;
  transition: all var(--km-transition);
  outline: none;
}
.km-form-control:focus {
  border-color: var(--km-primary);
  box-shadow: 0 0 0 3px rgba(var(--km-primary-rgb),.1);
}
.km-form-control::placeholder { color: var(--km-gray-200); }
textarea.km-form-control { resize: vertical; min-height: 130px; }
select.km-form-control { cursor: pointer; }
.km-input-icon { position: relative; }
.km-input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--km-gray-500);
}
.km-input-icon .km-form-control { padding-left: 2.75rem; }

/* ===== FILE UPLOAD ===== */
.km-file-upload {
  border: 2px dashed var(--km-border);
  border-radius: var(--km-radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--km-transition);
  background: var(--km-light);
}
.km-file-upload:hover, .km-file-upload.dragover {
  border-color: var(--km-primary);
  background: rgba(var(--km-primary-rgb),.04);
}
.km-file-upload-icon { font-size: 2rem; color: var(--km-primary); margin-bottom: .75rem; }
.km-file-upload-title { font-weight: 600; color: var(--km-dark); margin-bottom: .25rem; }
.km-file-upload-sub { font-size: .8rem; color: var(--km-gray-500); }

/* ===== BREADCRUMB ===== */
.km-breadcrumb-section {
  background: var(--km-dark);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.km-breadcrumb-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,.05);
}
.km-breadcrumb-title { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.km-breadcrumb-nav { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.km-breadcrumb-nav a { font-size: .85rem; color: rgba(255,255,255,.5); }
.km-breadcrumb-nav a:hover { color: var(--km-primary); }
.km-breadcrumb-nav .sep { color: rgba(255,255,255,.2); font-size: .7rem; }
.km-breadcrumb-nav .current { font-size: .85rem; color: var(--km-primary); }

/* ===== BADGES / TAGS ===== */
.km-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.km-badge-primary { background: rgba(var(--km-primary-rgb),.1); color: var(--km-primary); }
.km-badge-success { background: rgba(5,150,105,.1); color: #059669; }
.km-badge-warning { background: rgba(217,119,6,.1); color: #D97706; }
.km-badge-info { background: rgba(59,130,246,.1); color: #3B82F6; }

/* ===== LOADING / PRELOADER ===== */
#km-preloader {
  position: fixed;
  inset: 0;
  background: var(--km-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#km-preloader.done { opacity: 0; pointer-events: none; }
.km-preloader-logo { height: 50px; filter: brightness(0) invert(1); margin-bottom: 2rem; animation: km-pulse 1s infinite; }
.km-preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.km-preloader-progress {
  height: 100%;
  background: var(--km-primary);
  border-radius: 2px;
  animation: km-load 1.5s ease forwards;
}
@keyframes km-load { from { width: 0; } to { width: 100%; } }
@keyframes km-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ===== BACK TO TOP ===== */
#km-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--km-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--km-transition);
  z-index: 900;
  border: none;
  box-shadow: 0 4px 16px rgba(var(--km-primary-rgb),.4);
}
#km-back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#km-back-top:hover { background: var(--km-dark); transform: translateY(-2px); }

/* ===== PROCESS STEPS ===== */
.km-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.km-process-item { text-align: center; position: relative; }
.km-process-num {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(var(--km-primary-rgb),.1);
  border: 2px solid rgba(var(--km-primary-rgb),.2);
  color: var(--km-primary);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.km-process-title { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.km-process-text { font-size: .875rem; color: var(--km-gray-500); line-height: 1.7; }

/* ===== STATS / COUNTER ===== */
.km-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.km-stat-item { text-align: center; }
.km-stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--km-primary);
  line-height: 1;
  margin-bottom: .4rem;
}
.km-stat-label { font-size: .85rem; color: var(--km-gray-500); text-transform: uppercase; letter-spacing: .06em; }

/* ===== MOBILE MENU ===== */
.km-mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  height: 100vh;
  background: var(--km-dark);
  z-index: 2000;
  padding: 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.km-mobile-nav.open { transform: translateX(0); }
.km-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1999;
  opacity: 0;
  transition: opacity .3s;
}
.km-mobile-overlay.open { display: block; opacity: 1; }
.km-mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.km-mobile-nav-links { margin-top: 4rem; }
.km-mobile-nav-links a {
  display: block;
  padding: .9rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: all var(--km-transition);
}
.km-mobile-nav-links a:hover { color: var(--km-primary); padding-left: .5rem; }

/* ===== ANIMATIONS ===== */
.km-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.km-fade-up.visible { opacity: 1; transform: translateY(0); }
.km-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}
.km-fade-left.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.km-delay-1 { transition-delay: .1s; }
.km-delay-2 { transition-delay: .2s; }
.km-delay-3 { transition-delay: .3s; }
.km-delay-4 { transition-delay: .4s; }
.km-delay-5 { transition-delay: .5s; }

/* ===== UTILITIES ===== */
.km-divider {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--km-primary);
  margin: 1rem 0;
}
.km-divider-center { margin-inline: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-fluid { padding: 0 2rem; }
.km-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.km-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.km-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.mt-auto { margin-top: auto; }
.p-relative { position: relative; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.t-center { text-align: center; } .t-right { text-align: right; }
.w-100 { width: 100%; }
.hide { display: none !important; }
.show { display: block !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Swiper overrides */
.swiper-pagination-bullet-active { background: var(--km-primary) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--km-primary) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .km-mega-menu { width: 600px; grid-template-columns: repeat(3, 1fr); }
  .km-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .km-section { padding: 70px 0; }
  .km-nav { display: none; }
  .km-mobile-toggle { display: flex; }
  .km-header-topbar { display: none; }
  .km-hero { padding-top: 90px; }
  .km-hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .km-grid-2, .km-grid-3, .km-grid-4 { grid-template-columns: 1fr; }
  .km-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .km-hero-img { display: none; }
  .km-footer-bottom { flex-direction: column; text-align: center; }
  .km-calc-body { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .km-hero-title { font-size: 2.2rem; }
  .km-display { font-size: 2rem; }
  .km-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .km-section-header { margin-bottom: 40px; }
  .km-cat-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== WHATSAPP FLOAT ===== */
.km-whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  z-index: 900;
  animation: km-whatsapp-pulse 2s infinite;
  transition: all var(--km-transition);
}
.km-whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes km-whatsapp-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.4); }
  50% { box-shadow: 0 6px 40px rgba(37,211,102,.7); }
}

/* ===== ALERT MESSAGES ===== */
.km-alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.km-alert-success { background: rgba(5,150,105,.08); border: 1px solid rgba(5,150,105,.2); color: #065F46; }
.km-alert-error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #991B1B; }
.km-alert-info { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); color: #1E3A8A; }
.km-alert i { margin-top: .1rem; flex-shrink: 0; }
