/**
 * Kibajjo Agro Processors - Modern UI Styles
 * Inspired by Figma designs, Bootstrap 5, media-rich layout
 * No blue - earthy green, gold, brown palette only
 */

:root {
  --kibajjo-primary: #2E7D32;
  --kibajjo-primary-dark: #1B5E20;
  --kibajjo-secondary: #e8a838;
  --kibajjo-accent: #c45c26;
  --kibajjo-earth: #8b6914;
  --kibajjo-cream: #faf6f0;
  --kibajjo-dark: #1a2f17;
  --bs-primary: var(--kibajjo-primary);
  --bs-primary-rgb: 46, 125, 50;
  --bs-link-color: var(--kibajjo-primary);
  --bs-link-hover-color: var(--kibajjo-primary-dark);
}

/* Override Bootstrap blue - use green/earth tones everywhere */
a { color: var(--kibajjo-primary); }
a:hover { color: var(--kibajjo-primary-dark); }
.btn-link { color: var(--kibajjo-primary) !important; }
.btn-link:hover { color: var(--kibajjo-primary-dark) !important; }
.form-control:focus, .form-select:focus { border-color: var(--kibajjo-primary); box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.25); }
.form-check-input:checked { background-color: var(--kibajjo-primary); border-color: var(--kibajjo-primary); }
.form-check-input:focus { border-color: var(--kibajjo-primary); box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.25); }
.page-link { color: var(--kibajjo-primary) !important; }
.page-item.active .page-link { background-color: var(--kibajjo-primary); border-color: var(--kibajjo-primary); }
.accordion-button:not(.collapsed) { color: var(--kibajjo-primary); background-color: rgba(45, 90, 39, 0.1); }
.accordion-button:focus { box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.25); }
.nav-tabs .nav-link.active { color: var(--kibajjo-primary); border-color: var(--kibajjo-primary); }

/* Topbar */
.topbar {
  background: linear-gradient(135deg, var(--kibajjo-primary) 0%, var(--kibajjo-primary-dark) 100%);
  font-size: 0.875rem;
}

.topbar a {
  color: white !important;
}
.topbar a:hover {
  opacity: 1 !important;
  color: white !important;
}

/* Navbar */
.navbar .nav-link {
  color: var(--kibajjo-dark) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--kibajjo-primary) !important;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}
.footer-logo:hover {
  opacity: 1;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--kibajjo-primary), var(--kibajjo-secondary));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.text-primary {
  color: var(--kibajjo-primary) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--kibajjo-primary), var(--kibajjo-primary-dark));
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Hero Slider - Full & Short */
.hero-slider,
.hero-slider-short {
  position: relative;
  overflow: hidden;
}

.hero-slider .carousel-item,
.hero-slider-short .carousel-item {
  height: 85vh;
  min-height: 500px;
}

.hero-slider-short .carousel-item {
  height: 45vh;
  min-height: 280px;
}

.hero-slider .carousel-item img,
.hero-slider-short .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 47, 23, 0.3) 0%,
    rgba(26, 47, 23, 0.6) 50%,
    rgba(26, 47, 23, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-slider-short .hero-overlay {
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero-slider-short .hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-content .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* Carousel controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next,
.hero-slider-short .carousel-control-prev,
.hero-slider-short .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  opacity: 1;
  transition: all 0.3s;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover,
.hero-slider-short .carousel-control-prev:hover,
.hero-slider-short .carousel-control-next:hover {
  background: rgba(255,255,255,0.3);
  border-color: white;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  transition: all 0.3s;
}

.carousel-indicators .active {
  background: white;
  transform: scale(1.2);
}

/* Impact Hero - Premium Design */
.hero-impact {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.hero-impact .carousel-item {
  height: 55vh;
  min-height: 320px;
}
.hero-impact .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-overlay-premium {
  background: linear-gradient(
    135deg,
    rgba(26, 47, 23, 0.4) 0%,
    rgba(26, 47, 23, 0.25) 40%,
    rgba(26, 47, 23, 0.7) 100%
  ) !important;
  backdrop-filter: blur(1px);
}
.hero-content-box {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  max-width: 520px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.hero-content-box .hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.hero-content-box h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero-accent {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--kibajjo-secondary), var(--kibajjo-primary));
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-impact .carousel-control-prev,
.hero-impact .carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
}
.hero-impact .carousel-indicators {
  bottom: 1.5rem;
}
.hero-impact .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.4);
}
.hero-impact .carousel-indicators .active {
  background: var(--kibajjo-secondary);
  transform: scale(1.3);
}
@media (max-width: 768px) {
  .hero-impact { border-radius: 0 0 16px 16px; }
  .hero-impact .carousel-item { height: 48vh; min-height: 280px; }
  .hero-content-box { padding: 1.5rem 1.25rem; }
}

/* Section styles */
.section-title {
  font-weight: 800;
  color: var(--kibajjo-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--kibajjo-primary), var(--kibajjo-secondary));
  border-radius: 2px;
}

.bg-cream {
  background-color: var(--kibajjo-cream);
}

/* Ginger-shaped photo slider - Creating Ripple Effects */
.ginger-slider-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem;
}
.ginger-slider {
  position: relative;
  overflow: visible;
  padding-bottom: 2rem;
}
/* Ginger root shape from reference image - organic, multi-lobed, finger-like */
.ginger-slider .carousel-inner {
  -webkit-mask-image: url('../../images/ginger-shape.png');
  mask-image: url('../../images/ginger-shape.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
  -webkit-mask-mode: alpha;
  box-shadow: 0 16px 48px rgba(45, 90, 39, 0.22), 0 0 0 14px rgba(255,255,255,0.95);
}
.ginger-slider .carousel-item {
  aspect-ratio: 4 / 5;
  min-height: 280px;
}
.ginger-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ginger-slider .carousel-control-prev,
.ginger-slider .carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(45, 90, 39, 0.9);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}
.ginger-slider .carousel-control-prev { left: -1rem; }
.ginger-slider .carousel-control-next { right: -1rem; }
.ginger-slider .carousel-control-prev:hover,
.ginger-slider .carousel-control-next:hover {
  background: var(--kibajjo-primary);
}
.ginger-slider .carousel-indicators {
  bottom: -0.5rem;
}
.ginger-slider .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(45, 90, 39, 0.4);
}
.ginger-slider .carousel-indicators .active {
  background: var(--kibajjo-primary);
  transform: scale(1.2);
}
@media (max-width: 768px) {
  .ginger-slider-wrap { max-width: 300px; padding: 0.5rem; }
  .ginger-slider .carousel-item { min-height: 220px; }
  .ginger-slider .carousel-control-prev { left: 0.25rem; }
  .ginger-slider .carousel-control-next { right: 0.25rem; }
}

/* Media gallery / cards */
.media-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(45, 90, 39, 0.15);
}

.media-card img {
  object-fit: cover;
  width: 100%;
  height: 280px;
}

.media-card .card-body {
  padding: 1.25rem;
}

/* Stats / numbers */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--kibajjo-primary);
  line-height: 1;
}

/* Image overlays */
.img-overlay-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.img-overlay-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.img-overlay-card:hover img {
  transform: scale(1.08);
}

.img-overlay-card .overlay-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,47,23,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
}

/* Footer - keep white links, no blue */
.footer a {
  color: rgba(255,255,255,0.7) !important;
}
.footer a.hover-white:hover,
.footer a:hover {
  color: white !important;
}

.footer .text-primary {
  color: var(--kibajjo-secondary) !important;
}

/* Utilities */
.hover-opacity:hover {
  opacity: 1 !important;
}

/* Homepage - Feature boxes */
.feature-box {
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid rgba(45,90,39,0.08);
}
.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45,90,39,0.12);
  border-color: rgba(45,90,39,0.15);
}
.feature-box .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,90,39,0.12), rgba(232,168,56,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--kibajjo-primary);
  margin-bottom: 1rem;
}

/* Stat card enhanced */
.stat-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: all 0.3s;
  border: 1px solid rgba(45,90,39,0.06);
}
.stat-card:hover {
  box-shadow: 0 8px 30px rgba(45,90,39,0.1);
}

/* Quote / testimonial block */
.quote-block {
  position: relative;
  padding: 3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--kibajjo-primary) 0%, var(--kibajjo-primary-dark) 100%);
  color: white;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  opacity: 0.3;
  line-height: 1;
}

/* Customer chips */
.customer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--kibajjo-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.2s;
}
.customer-chip:hover {
  box-shadow: 0 4px 20px rgba(45,90,39,0.15);
  color: var(--kibajjo-primary);
}

/* 6-Step Process Flow (Harvesting → Cleaning → Slicing → Drying → Grinding → Packaging) */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  padding: 2rem 0;
}
.process-step {
  flex: 1 1 auto;
  min-width: 100px;
  max-width: 160px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step .step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--kibajjo-primary);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.process-step .step-circle.step-1 { background: var(--kibajjo-primary); border-color: var(--kibajjo-primary); }
.process-step .step-circle.step-2 { background: var(--kibajjo-accent); border-color: var(--kibajjo-primary); }
.process-step .step-circle.step-3 { background: #b8451e; border-color: var(--kibajjo-primary); }
.process-step .step-circle.step-4 { background: var(--kibajjo-secondary); border-color: var(--kibajjo-primary); }
.process-step .step-circle.step-5 { background: var(--kibajjo-earth); border-color: var(--kibajjo-primary); }
.process-step .step-circle.step-6 { background: var(--kibajjo-dark); border-color: var(--kibajjo-primary); }
.process-step .step-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--kibajjo-dark);
}
.process-step .step-desc {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}
.process-flow-connector {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kibajjo-primary), var(--kibajjo-secondary));
  border-radius: 2px;
  z-index: 0;
  margin: 0 10%;
}
@media (max-width: 768px) {
  .process-flow { flex-direction: column; align-items: center; gap: 2rem; padding: 1rem 0; }
  .process-flow-connector {
    width: 4px;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    margin: 0;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--kibajjo-primary), var(--kibajjo-secondary));
  }
  .process-step { max-width: none; min-width: auto; }
}

/* Process flow - 6 steps (no blue, green/earth tones) */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid var(--kibajjo-primary);
  background: white;
  color: var(--kibajjo-dark);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.process-step-num.step-1 { background: var(--kibajjo-primary); color: white; border-color: var(--kibajjo-primary); }
.process-step-num.step-2 { background: var(--kibajjo-accent); color: white; border-color: var(--kibajjo-primary); }
.process-step-num.step-3 { background: #a04020; color: white; border-color: var(--kibajjo-primary); }
.process-step-num.step-4 { background: var(--kibajjo-secondary); color: var(--kibajjo-dark); border-color: var(--kibajjo-primary); }
.process-step-num.step-5 { background: var(--kibajjo-earth); color: white; border-color: var(--kibajjo-primary); }
.process-step-num.step-6 { background: var(--kibajjo-dark); color: white; border-color: var(--kibajjo-primary); }
.process-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kibajjo-dark);
  text-align: center;
}
.process-connector {
  width: 24px;
  height: 4px;
  background: linear-gradient(90deg, var(--kibajjo-primary), var(--kibajjo-secondary));
  border-radius: 2px;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 576px) {
  .process-connector { display: block; }
}
@media (min-width: 768px) {
  .process-connector { width: 32px; }
}
@media (min-width: 992px) {
  .process-connector { width: 40px; }
}
@media (max-width: 575px) {
  .process-flow { gap: 0.75rem; padding: 1.5rem 0; }
  .process-step-num { width: 48px; height: 48px; font-size: 1rem; }
  .process-step-label { font-size: 0.75rem; }
}

/* Process page - Figma-style cards with image sliders */
.process-step-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(45,90,39,0.06);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.process-step-card:hover {
  box-shadow: 0 12px 40px rgba(45,90,39,0.08), 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.process-step-card .process-slider {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--kibajjo-cream);
}
.process-step-card .process-slider img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.process-step-card .process-slider .carousel-control-prev,
.process-step-card .process-slider .carousel-control-next {
  width: 36px;
  height: 36px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  opacity: 1;
  border: none;
}
.process-step-card .process-slider .carousel-control-prev { left: 8px; }
.process-step-card .process-slider .carousel-control-next { right: 8px; }
.process-step-card .process-slider .carousel-control-prev-icon,
.process-step-card .process-slider .carousel-control-next-icon {
  filter: invert(1);
  opacity: 0.7;
}
.process-step-card .process-card-body {
  padding: 1.5rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.process-step-card .process-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1rem;
}
.process-step-card .process-step-badge.step-1 { background: var(--kibajjo-primary); }
.process-step-card .process-step-badge.step-2 { background: var(--kibajjo-accent); }
.process-step-card .process-step-badge.step-3 { background: #a04020; }
.process-step-card .process-step-badge.step-4 { background: var(--kibajjo-secondary); color: var(--kibajjo-dark); }
.process-step-card .process-step-badge.step-5 { background: var(--kibajjo-earth); }
.process-step-card .process-step-badge.step-6 { background: var(--kibajjo-dark); }

/* Process gallery - Figma polish */
.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(45,90,39,0.12);
}

/* Process page section spacing */
.process-page .container { max-width: 1200px; }

/* Intro block with image */
.intro-block {
  position: relative;
  overflow: hidden;
}
.intro-block .intro-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(45,90,39,0.1);
  color: var(--kibajjo-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ========================================
   MOBILE-FIRST & RESPONSIVE
   ======================================== */

/* Base: prevent horizontal scroll, improve touch */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* Safe area for notched devices (iPhone X+) - navbar */
@supports (padding: max(0px)) {
  .navbar .container { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .container { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}

/* Touch-friendly minimum sizes */
.navbar-nav .nav-link {
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.btn-lg {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
}
.hero-btns .btn {
  min-width: 160px;
}

/* Tablet & below */
@media (max-width: 991px) {
  .section-title { font-size: 1.75rem; }
  .feature-box { padding: 1.5rem 1rem; }
  .quote-block { padding: 2rem 1.5rem; }
  .quote-block::before { font-size: 3rem; top: 0.5rem; left: 1rem; }
  .media-card img { height: 240px; }
}

/* Mobile landscape & below */
@media (max-width: 768px) {
  .hero-slider .carousel-item {
    height: 65vh;
    min-height: 360px;
  }
  .hero-slider-short .carousel-item {
    height: 40vh;
    min-height: 240px;
  }
  .hero-overlay { padding: 1.5rem 1rem; }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-btns .btn { width: 100%; margin: 0 !important; }
  
  .stat-number { font-size: 2rem; }
  .stat-card { padding: 1rem 0.75rem; }
  
  .section-title { font-size: 1.5rem; }
  .section-title::after { width: 40px; }
  
  .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  
  .quote-block { padding: 1.75rem 1.25rem; }
  .quote-block .lead { font-size: 1rem; }
  
  .media-card img { height: 200px; }
  .media-card .card-body { padding: 1rem; }
  
  .carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
  }
  .carousel-indicators [data-bs-target] { width: 10px; height: 10px; }
}

/* Small mobile */
@media (max-width: 576px) {
  .hero-slider .carousel-item {
    height: 60vh;
    min-height: 320px;
  }
  .hero-slider-short .carousel-item {
    height: 35vh;
    min-height: 200px;
  }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-slider-short .hero-content h1 { font-size: 1.35rem; }
  .hero-content .lead { font-size: 0.95rem; margin-bottom: 1rem; }
  
  .stat-number { font-size: 1.75rem; }
  
  .section-title { font-size: 1.35rem; }
  
  .customer-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
  
  .intro-badge { font-size: 0.75rem; padding: 0.25rem 0.75rem; }
  
  .container { padding-left: 1rem; padding-right: 1rem; }
  
  .img-overlay-card .overlay-content { padding: 1rem; }
  .img-overlay-card .overlay-content h6 { font-size: 0.9rem; }
}

/* Customer chips: wrap on small screens */
.customer-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* Hero buttons: stack on mobile */
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* CTA section mobile */
@media (max-width: 767px) {
  .cta-buttons {
    flex-direction: column !important;
  }
  .cta-buttons .btn {
    width: 100%;
    margin: 0.25rem 0 !important;
  }
}

/* Topbar mobile: compact */
@media (max-width: 576px) {
  .topbar { padding: 0.5rem 0 !important; font-size: 0.8rem; }
  .topbar .gap-3 { gap: 0.5rem !important; }
}

/* Navbar brand: shorter on mobile */
@media (max-width: 400px) {
  .navbar-brand span:last-child { font-size: 0.9rem; }
  .logo-icon { width: 36px; height: 36px; font-size: 0.8rem; }
}

/* Prevent card hover transform on touch (reduces layout shift) */
@media (hover: none) {
  .media-card:hover,
  .feature-box:hover,
  .stat-card:hover,
  .process-step-card:hover { transform: none; }
}
