/********** KAVION CONSULT THEME CSS **********/
:root {
  --primary: #D6A83F;
  --primary-dark: #9C6D14;
  --primary-light: #F5D77A;
  --secondary: #F8F6F0;
  --light: #FFFFFF;
  --dark: #0A0D14;
  --dark-block: #101622;
  --text-muted: #625946;
  --text-muted-light: #CBBFA9;
  --border-gold: rgba(214, 168, 63, 0.35);
  --glass: rgba(16, 22, 34, 0.85);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #2b271d;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.font-weight-bold {
  font-family: 'Barlow', sans-serif;
  font-weight: 700 !important;
}

.font-weight-semi-bold {
  font-family: 'Barlow', sans-serif;
  font-weight: 600 !important;
}

.font-weight-medium {
  font-family: 'Barlow', sans-serif;
  font-weight: 500 !important;
}

.pt-6 { padding-top: 90px; }
.pb-6 { padding-bottom: 90px; }
.py-6 { padding-top: 90px; padding-bottom: 90px; }

::selection {
  background: var(--primary);
  color: #000000;
}

/* Color Utilities */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-dark-block { background-color: var(--dark-block) !important; }
.bg-gold { background-color: var(--primary) !important; }
.bg-glass { background-color: var(--glass) !important; backdrop-filter: blur(10px); }
.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--primary-light) !important; }
.text-muted-light { color: var(--text-muted-light) !important; }
.border-gold { border: 1px solid var(--border-gold) !important; }
.rounded-18 { border-radius: 18px !important; }
.bg-gold-tag { background: rgba(214, 168, 63, 0.25); border: 1px solid var(--primary); color: var(--primary-light); }

/* Buttons */
.btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  transition: all 0.35s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
  border: none !important;
  color: #080808 !important;
  box-shadow: 0 10px 24px rgba(174, 124, 25, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fff0ad, #c18a21) !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(174, 124, 25, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid var(--border-gold) !important;
  color: var(--primary-light) !important;
}

.btn-secondary:hover {
  background: var(--primary) !important;
  color: #000000 !important;
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--dark-block) !important;
  color: var(--primary-light) !important;
  border: 1px solid var(--border-gold) !important;
}

.btn-dark:hover {
  background: var(--primary) !important;
  color: #000000 !important;
}

.btn-square { width: 36px; height: 36px; padding: 0; text-align: center; }
.btn-sm-square { width: 28px; height: 28px; padding: 0; text-align: center; }
.btn-lg-square { width: 46px; height: 46px; padding: 0; text-align: center; display: inline-flex; align-items: center; justify-content: center; }

/* Enhanced Topbar & Navbar */
.topbar-enhanced {
  background-color: #06080D !important;
  border-bottom: 1px solid rgba(214, 168, 63, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.topbar-chip {
  background: rgba(214, 168, 63, 0.12);
  border: 1px solid rgba(214, 168, 63, 0.35);
  color: var(--primary-light) !important;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.topbar-chip:hover {
  background: var(--primary);
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(214, 168, 63, 0.35);
}

.bg-gold-badge {
  background: var(--primary-light) !important;
  color: #080808 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 30px;
  padding: 3px 7px;
}

.border-gold-subtle {
  border-color: rgba(214, 168, 63, 0.25) !important;
}

.border-dark-subtle {
  border-color: rgba(0, 0, 0, 0.2) !important;
}

.top-shape-gold {
  background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
  box-shadow: 0 4px 15px rgba(214, 168, 63, 0.3);
}

.top-shape-gold::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 100%;
  top: 0;
  left: -17px;
  background: var(--primary-light);
  transform: skew(40deg);
}

.navbar-luxury {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(214, 168, 63, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand-logo-frame {
  filter: drop-shadow(0 4px 12px rgba(214, 168, 63, 0.35));
}

.brand-logo-img {
  height: 54px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo-frame:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-main-name {
  font-size: 21px;
  letter-spacing: -0.5px;
  color: #0C0F17 !important;
  line-height: 1;
}

.brand-sub-name {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800 !important;
  color: #9C6D14 !important;
  margin-top: 2px;
}

.nav-link-gold {
  position: relative;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 700 !important;
  text-transform: uppercase;
  color: #0F1622 !important;
  padding: 28px 16px !important;
  transition: all 0.3s ease;
}

.nav-link-gold::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5D77A, #9C6D14);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.nav-link-gold:hover::after,
.nav-link-gold.active::after {
  width: 70%;
}

.nav-link-gold:hover,
.nav-link-gold.active {
  color: #9C6D14 !important;
}

/* Dropdown Menu Gold */
.dropdown-menu-gold {
  background: #0B0E14 !important;
  border: 1px solid rgba(214, 168, 63, 0.4) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-menu-gold .dropdown-item {
  color: #E2D8C7 !important;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
}

.dropdown-menu-gold .dropdown-item:hover {
  background: rgba(214, 168, 63, 0.15) !important;
  color: #F5D77A !important;
  transform: translateX(6px);
}

.btn-gold-cta {
  background: linear-gradient(135deg, #F5D77A 0%, #D6A83F 50%, #9C6D14 100%) !important;
  border: none !important;
  color: #080808 !important;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  border-radius: 50px !important;
  box-shadow: 0 8px 25px rgba(214, 168, 63, 0.35);
  transition: all 0.35s ease;
}

.btn-gold-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(214, 168, 63, 0.5);
  color: #000000 !important;
}

.pulse-icon {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); color: #000000; }
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-dark);
}

/* Hero Carousel */
.carousel-bg-img {
  height: 650px;
  object-fit: cover;
}

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 13, 20, 0.92) 0%, rgba(16, 22, 34, 0.85) 100%);
  z-index: 1;
}

.hero-btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* About Side-by-Side */
.about-hero-img {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border-gold);
}

/* Service Division Cards */
.service-item {
  position: relative;
  transition: all 0.35s ease;
  cursor: pointer;
  border: 1px solid rgba(214, 168, 63, 0.2);
}

.service-item:hover {
  transform: translateY(-8px);
  background: #ffffff !important;
  box-shadow: 0 20px 45px rgba(40, 31, 14, 0.12) !important;
  border-color: var(--primary);
}

.service-circle-icon {
  width: 80px;
  height: 80px;
  transition: all 0.35s ease;
  box-shadow: 0 10px 24px rgba(214, 168, 63, 0.3);
}

.service-item:hover .service-circle-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-dark) !important;
  color: #ffffff !important;
}

.hover-detail-link {
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.service-item:hover .hover-detail-link {
  transform: translateX(4px);
}

/* Corporate Leadership & Team Cards */
.team-card {
  transition: all 0.35s ease;
  border: 1px solid rgba(214, 168, 63, 0.25);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(214, 168, 63, 0.2) !important;
  border-color: var(--primary) !important;
}

.team-avatar-frame {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 8px 25px rgba(214, 168, 63, 0.3);
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
}

/* Corporate Testimonials */
.testimonial-card {
  transition: all 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light) !important;
  box-shadow: 0 15px 35px rgba(214, 168, 63, 0.25);
}

/* Why Choose Kavion */
.advantage-box {
  transition: all 0.35s ease;
  height: 100%;
}

.advantage-box:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light) !important;
  box-shadow: 0 18px 40px rgba(214, 168, 63, 0.2);
}

/* Solutions Portfolio Overlays */
.solution-thumb-img {
  height: 280px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-item:hover .solution-thumb-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.1) 0%, rgba(10, 13, 20, 0.88) 100%);
  transition: all 0.35s ease;
}

/* FAQ Accordion */
.faq-card {
  transition: all 0.3s ease;
}

.faq-card.active {
  border-color: var(--primary) !important;
  box-shadow: 0 12px 30px rgba(40, 31, 14, 0.08) !important;
}

.faq-header {
  user-select: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--dark-block);
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px 30px;
  position: relative;
  color: #ffffff;
  transform: scale(0.92);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--primary-light);
  font-size: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: #000000;
}

.modal-title {
  font-family: 'Barlow', sans-serif;
  font-size: 28px;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-muted-light);
  margin-bottom: 20px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.modal-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(214, 168, 63, 0.15);
  font-size: 15px;
  color: #e2d9c8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-list li i {
  color: var(--primary);
}

/* Footer & WhatsApp */
.footer-logo {
  max-width: 180px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  padding: 3px;
}

.footer-links a {
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary-light) !important;
  transform: translateX(4px);
}

.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: grid;
  place-items: center;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}

.cursor-pointer { cursor: pointer; }

/* Comprehensive Mobile & Tablet Responsive Styles */
@media (max-width: 991.98px) {
  /* Navbar Mobile & Tablet Drawer */
  .navbar-collapse {
    background: #0B0E14 !important;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 22px 20px;
    margin-top: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  .nav-link-gold {
    color: #ffffff !important;
    padding: 12px 10px !important;
    border-bottom: 1px solid rgba(214, 168, 63, 0.15);
  }

  .nav-link-gold::after {
    display: none;
  }

  .nav-link-gold:hover,
  .nav-link-gold.active {
    color: var(--primary-light) !important;
  }

  .dropdown-menu-gold {
    background: rgba(255, 255, 255, 0.04) !important;
    border: none !important;
    padding-left: 15px;
  }

  .dropdown-menu-gold .dropdown-item {
    color: var(--primary-light) !important;
    padding: 8px 10px;
  }

  /* Section Spacing & Typography */
  .py-6 {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .px-5 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .carousel-bg-img {
    height: 500px;
  }

  .display-3 {
    font-size: 2.2rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  /* About Side-by-Side Mobile Stacking */
  .bg-dark-block {
    padding: 40px 25px !important;
  }

  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.2) 0%, rgba(10, 13, 20, 0.92) 100%);
  }
}

@media (max-width: 767.98px) {
  /* Tablet & Mobile Landscape */
  .carousel-bg-img {
    height: 440px;
  }

  .display-3 {
    font-size: 1.85rem;
  }

  .hero-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn-group a {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 12px;
    text-align: center;
    justify-content: center;
  }

  .service-item {
    padding: 28px 20px;
  }

  .service-circle-icon {
    width: 70px;
    height: 70px;
  }

  .modal-card {
    max-width: 94vw;
    padding: 28px 20px;
    border-radius: 18px;
  }

  .modal-title {
    font-size: 22px;
  }
}

@media (max-width: 575.98px) {
  /* Mobile Portrait */
  .navbar-luxury {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .brand-logo-img {
    height: 42px;
  }

  .brand-main-name {
    font-size: 17px;
  }

  .brand-sub-name {
    font-size: 9.5px;
  }

  .carousel-bg-img {
    height: 380px;
  }

  .display-3 {
    font-size: 1.55rem;
  }

  .display-5 {
    font-size: 1.7rem;
  }

  .px-5 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .advantage-box {
    padding: 22px 18px;
  }

  .faq-header h4 {
    font-size: 15px;
  }

  .whatsapp {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Reduce topbar padding and font size */
  .topbar-enhanced { padding-top: 5px !important; padding-bottom: 5px !important; }
  .topbar-chip { font-size: 10px; padding: 3px 8px; }
  .brand-main-name { font-size: 15px; }
  .brand-sub-name { font-size: 8px; }
  .nav-link-gold { font-size: 13px; padding: 12px 8px; }
  .navbar-brand { margin-left: 5px; }
  .carousel-bg-img { height: 300px; }
  .display-3 { font-size: 1.3rem; }
  .display-5 { font-size: 1.5rem; }
  .hero-btn-group a { width: 100%; margin-bottom: 8px; }
  .service-item { padding: 20px 15px; }
  .service-circle-icon { width: 60px; height: 60px; }
  .portfolio-item .solution-thumb-img { height: 200px; }
  .contact-form .form-control { font-size: 0.9rem; padding: 8px; }
  .footer-links a { font-size: 0.85rem; }
  .whatsapp { right: 12px; bottom: 12px; width: 44px; height: 44px; font-size: 20px; }
}
