/* ============================================
   Cielo Mhdju Inc — Astomy-style Layout
   ============================================ */

:root {
  --primary: #4b4295;
  --primary-dark: #3a3478;
  --primary-light: #6b61b8;
  --accent: #ff4a17;
  --accent-gold: #febd11;
  --dark: #000000;
  --dark-card: #101010;
  --title-color: #030925;
  --text-muted: #737374;
  --text-light: #a0a0a0;
  --white: #ffffff;
  --border-dark: #222222;
  --transition: 0.4s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--white);
  background: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sofia Sans', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-dark {
  background: var(--dark);
  padding: 90px 0;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: 24px;
  text-transform: capitalize;
}

.section-header-center .section-label,
.section-header-center .section-title {
  color: var(--white);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 40px;
  max-width: 100%;
}

.navbar-brand {
  font-family: 'Sofia Sans', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-light);
}

.navbar-collapse {
  justify-self: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-icon-btn,
.header-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.header-icon-btn:hover,
.header-menu-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  text-transform: capitalize;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}

.btn-primary {
  background: var(--primary);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  padding: 14px 36px;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* ---- Hero Carousel ---- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 6s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-slide-content {
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  z-index: 2;
  padding-bottom: 20px;
}

.hero-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  max-width: 700px;
  margin-bottom: 28px;
  line-height: 1.15;
}

.btn-hero {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  transition: background var(--transition);
}

.btn-hero:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(75, 66, 149, 0.85);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.hero-arrow:hover {
  background: var(--primary);
}

.hero-arrow-prev {
  left: 30px;
}

.hero-arrow-next {
  right: 30px;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.hero-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- About ---- */
.about-section .section-title {
  margin-bottom: 30px;
}

.about-img-vertical-wrap {
  margin-top: 10px;
}

.about-img-vertical {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.about-right-col {
  padding-top: 0;
}

.about-img-horizontal-wrap {
  margin-bottom: 28px;
}

.about-img-horizontal {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.about-text strong {
  color: var(--white);
}

.btn-about {
  margin-top: 10px;
}

/* ---- Services ---- */
.services-section {
  padding-top: 0;
}

.service-card {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-dark);
  height: 100%;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 18px;
}

.service-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Why Choose Us ---- */
.catalog-item {
  height: 100%;
}

.catalog-img {
  overflow: hidden;
  margin-bottom: 20px;
}

.catalog-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.catalog-item:hover .catalog-img img {
  transform: scale(1.04);
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.catalog-head h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0;
  text-transform: capitalize;
}

.catalog-head a {
  width: 36px;
  height: 36px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.catalog-head a:hover {
  background: var(--primary);
}

.catalog-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

/* ---- How We Work ---- */
.process-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.process-stats .stat-block h3 {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 6px;
  font-family: 'Sofia Sans', sans-serif;
}

.process-stats .stat-block p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

.process-carousel {
  position: relative;
  overflow: hidden;
}

.process-slide {
  display: none;
}

.process-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

.process-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.process-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(75, 66, 149, 0.9);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
}

.process-arrow:hover {
  background: var(--primary);
}

.process-arrow-prev {
  left: 15px;
}

.process-arrow-next {
  right: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Contact ---- */
.contact-section {
  overflow: hidden;
}

.contact-info-col {
  background: var(--dark-card);
  min-height: 560px;
}

.contact-info-inner {
  padding: 80px 60px;
  height: 100%;
}

.contact-intro {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 36px;
  max-width: 440px;
}

.contact-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-details-list i {
  color: var(--white);
  font-size: 1.1rem;
  margin-top: 3px;
}

.contact-details-list a {
  color: var(--white);
}

.contact-details-list a:hover {
  color: var(--primary-light);
}

.contact-form-col {
  position: relative;
  min-height: 560px;
  background: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?w=1200&h=800&fit=crop') center/cover no-repeat;
}

.contact-form-wrap {
  position: relative;
  z-index: 1;
  padding: 80px 60px;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.contact-form-title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 36px;
}

.contact-form-minimal .form-field {
  margin-bottom: 28px;
}

.contact-form-minimal label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact-form-minimal input,
.contact-form-minimal textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.95rem;
  outline: none;
  resize: none;
  transition: border-color var(--transition);
}

.contact-form-minimal input:focus,
.contact-form-minimal textarea:focus {
  border-bottom-color: var(--primary-light);
}

.contact-form-minimal input.is-invalid,
.contact-form-minimal textarea.is-invalid {
  border-bottom-color: var(--accent);
}

.btn-contact-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px;
  margin-top: 10px;
  transition: background var(--transition);
}

.btn-contact-submit:hover {
  background: var(--primary-dark);
}

.form-success {
  text-align: center;
  padding: 24px;
  margin-top: 20px;
  color: var(--white);
}

.form-success i {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.form-success p {
  margin: 0;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1920&h=600&fit=crop') center/cover no-repeat;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: 'Sofia Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-heading {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  color: var(--primary);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-contact-list i {
  color: var(--white);
  margin-top: 3px;
}

.footer-contact-list a {
  color: var(--text-light);
}

.footer-contact-list a:hover {
  color: var(--white);
}

.footer-hours {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-bottom {
  margin-top: 50px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--text-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 20px;
  }

  .navbar-brand {
    margin-right: auto;
  }

  .navbar-collapse {
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 16px;
    margin-top: 12px;
    border-radius: 4px;
    justify-self: stretch;
  }

  .nav-link {
    padding: 10px 0 !important;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-arrow-prev {
    left: 15px;
  }

  .hero-arrow-next {
    right: 15px;
  }

  .about-right-col {
    padding-top: 20px;
  }

  .contact-info-inner,
  .contact-form-wrap {
    padding: 50px 30px;
  }

  .process-slide img {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .section-dark {
    padding: 60px 0;
  }

  .hero-slide-content {
    bottom: 18%;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .process-stats .stat-block h3 {
    font-size: 1.6rem;
  }

  .contact-info-inner,
  .contact-form-wrap {
    padding: 40px 24px;
  }
}
