/* ===== RESET & VARIABLES ===== */
:root {
  --primary: #0f2b3d;
  --primary-light: #1a4057;
  --secondary: #bc3d06;
  --secondary-light: #bc3d06;
  --accent: #6e1c05f9;
  --light-bg: #f4f6f9;
  --text-dark: #1e2a3a;
  --text-light: #6c7a89;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: var(--text-dark);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e9ecef; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== SPINNER ===== */
.spinner-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}
.spinner-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}
.spinner-wrapper .spinner-border {
  width: 4rem;
  height: 4rem;
  color: var(--secondary);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
  box-shadow: 0 10px 45px rgba(37, 211, 102, 0.6);
}
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 50px rgba(37, 211, 102, 0.7); }
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background: var(--primary);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}
.navbar-custom .navbar-brand .logo-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  padding: 2px;
  transition: transform 0.3s ease;
}
.navbar-custom .navbar-brand .logo-img:hover {
  transform: rotate(10deg) scale(1.05);
}
.navbar-custom .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar-custom .brand-text .brand-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--secondary-light);
  letter-spacing: 1px;
}
.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--white) !important;
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}
.navbar-custom .nav-link.active {
  background: var(--secondary);
  color: var(--white) !important;
}
.navbar-toggler {
  border: 2px solid var(--secondary);
  padding: 6px 12px;
  border-radius: 8px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4a017' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== PAGE SECTIONS ===== */
.page-section {
  padding-top: 90px;
  min-height: 100vh;
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 10px;
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ===== HOME SLIDER ===== */
.hero-slider {
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.hero-slider .carousel-item {
  height: 88vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slider .carousel-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 43, 61, 0.85) 0%, rgba(15, 43, 61, 0.4) 100%);
  z-index: 1;
}
.hero-slider .carousel-item .slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}
.hero-slider .carousel-item .slide-content h1 {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}
.hero-slider .carousel-item .slide-content h1 .highlight {
  color: var(--secondary-light);
}
.hero-slider .carousel-item .slide-content p {
  font-size: 1.3rem;
  max-width: 700px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}
.hero-slider .carousel-item .slide-content .btn-hero {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(212, 160, 23, 0.4);
}
.hero-slider .carousel-item .slide-content .btn-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 35px rgba(212, 160, 23, 0.6);
  background: var(--secondary-light);
}
.hero-slider .carousel-indicators button {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  margin: 0 6px;
}
.hero-slider .carousel-indicators button.active {
  background: var(--secondary);
  border-color: var(--secondary);
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 50px; height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* ===== ABOUT ===== */
.about-img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}
.about-img-wrapper:hover { transform: scale(1.01); }
.about-img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.about-stats .stat-item {
  background: var(--white);
  padding: 20px 10px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 4px solid var(--secondary);
  transition: all 0.3s ease;
}
.about-stats .stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.about-stats .stat-item .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}
.about-stats .stat-item .label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== SERVICES ===== */
.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 35px 25px 30px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.4s ease;
  height: 100%;
  border-bottom: 5px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--secondary);
}
.service-card .icon-wrapper {
  width: 80px; height: 80px;
  background: rgba(212, 160, 23, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  color: var(--secondary);
  transition: all 0.4s ease;
}
.service-card:hover .icon-wrapper {
  background: var(--secondary);
  color: var(--white);
  transform: rotateY(180deg);
}
.service-card h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== SECTORS ===== */
.sector-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.4s ease;
  height: 100%;
  border-left: 6px solid var(--secondary);
  position: relative;
  overflow: hidden;
}
.sector-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.6s ease;
}
.sector-card:hover::after { transform: scale(2); }
.sector-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}
.sector-card .sector-icon {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}
.sector-card h5 {
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 1;
}
.sector-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.sector-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  position: relative;
  z-index: 1;
}
.sector-card ul li {
  padding: 4px 0;
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sector-card ul li i {
  color: var(--secondary);
  font-size: 0.7rem;
}

/* ===== CONTACT ===== */
.contact-info-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--secondary);
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  box-sizing: border-box;
  min-height: 160px;
  height: auto;
}
.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}
.contact-info-card .ci-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 160, 23, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
  flex-shrink: 0; /* Prevent icon from shrinking */
}
.contact-info-card h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-info-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
}
.contact-form-wrapper .form-control {
  border-radius: 12px;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.contact-form-wrapper .form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.15);
}
.contact-form-wrapper .btn-submit {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.contact-form-wrapper .btn-submit:hover {
  background: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.4);
}

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}
.map-wrapper iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ===== FOOTER ===== */
.footer-custom {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 20px;
  margin-top: 60px;
}
.footer-custom h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-custom h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 10px;
}
.footer-custom .footer-links {
  list-style: none;
  padding: 0;
}
.footer-custom .footer-links li {
  padding: 6px 0;
}
.footer-custom .footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}
.footer-custom .footer-links li a:hover {
  color: var(--secondary-light);
  padding-left: 6px;
}
.footer-custom .social-icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.footer-custom .social-icons a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-custom .social-icons a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 25px rgba(212, 160, 23, 0.4);
  border-color: var(--secondary);
}
.footer-custom .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== UTILITIES ===== */
.bg-soft-gold { background: rgba(212, 160, 23, 0.06); }
.text-gold { color: var(--secondary); }
.shadow-soft { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .navbar-custom .navbar-brand { font-size: 1rem; }
  .navbar-custom .navbar-brand .logo-img { width: 40px; height: 40px; }
  .hero-slider .carousel-item { height: 70vh; min-height: 350px; }
  .hero-slider .carousel-item .slide-content h1 { font-size: 2.6rem; }
  .hero-slider .carousel-item .slide-content p { font-size: 1rem; }
  .section-title { font-size: 2rem; }
}
@media (max-width: 768px) {
  .hero-slider .carousel-item { height: 60vh; min-height: 300px; }
  .hero-slider .carousel-item .slide-content h1 { font-size: 2rem; }
  .hero-slider .carousel-item .slide-content p { font-size: 0.9rem; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { width: 36px; height: 36px; }
  .hero-slider .carousel-control-prev-icon,
  .hero-slider .carousel-control-next-icon { width: 16px; height: 16px; }
  .about-img-wrapper img { height: 250px; }
  .contact-form-wrapper { padding: 20px 16px; }
  .map-wrapper iframe { height: 250px; }
}
@media (max-width: 576px) {
  .navbar-custom .brand-text .brand-sub { font-size: 0.5rem; }
  .hero-slider .carousel-item { height: 50vh; min-height: 280px; }
  .hero-slider .carousel-item .slide-content h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.7rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-custom { padding: 30px 0 15px; }
}