:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --dark: #1a1a2e;
  --darker: #16213e;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,.1);
  --transition: all .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-ring {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.preloader-inner span {
  color: var(--white); font-weight: 800; font-size: 1.2rem;
  letter-spacing: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(26,26,46,.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: .5rem 0;
  box-shadow: var(--shadow);
}
.navbar-brand img { height: 50px; }
.navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary) !important; }
.navbar .dropdown-menu {
  background: var(--dark);
  border: none;
  border-radius: .5rem;
  box-shadow: var(--shadow);
}
.navbar .dropdown-item {
  color: rgba(255,255,255,.8);
  padding: .5rem 1.5rem;
  transition: var(--transition);
}
.navbar .dropdown-item:hover {
  background: var(--primary);
  color: var(--white);
}
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }
.social-nav a {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  margin-left: .75rem;
  transition: var(--transition);
}
.social-nav a:hover { color: var(--primary); }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; }
.hero-slider .carousel-item {
  height: 100vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slider .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.55), rgba(0,0,0,.25));
}
.hero-slider .carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  text-align: left;
  max-width: 600px;
}
.hero-slider h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-slider h1 span { color: var(--primary); }
.hero-slider p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: .9;
  margin-bottom: 2rem;
}
.hero-slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(192,57,43,.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  margin: 0 1rem;
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { background: var(--primary); }

.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192,57,43,.3);
}

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}
.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-title .divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ===== SERVICE CARDS (ANIMATED) ===== */
.service-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px; background: var(--primary);
  transform: scaleX(0); transition: var(--transition);
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.service-icon {
  width: 80px; height: 80px; margin: 0 auto 1.5rem;
  background: rgba(192,57,43,.1);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.service-icon i { font-size: 2rem; color: var(--primary); transition: var(--transition); }
.service-card:hover .service-icon {
  background: var(--primary); transform: rotateY(180deg);
}
.service-card:hover .service-icon i { color: var(--white); }
.service-card h5 { font-weight: 700; margin-bottom: .5rem; }
.service-card p { color: var(--gray); font-size: .95rem; margin-bottom: 1.5rem; }
.service-link {
  color: var(--primary); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: var(--transition);
}
.service-link:hover { gap: 1rem; color: var(--primary-dark); }

/* ===== WHY US ===== */
.why-us-image { position: relative; border-radius: 1rem; overflow: hidden; }
.why-us-image img { width: 100%; height: 500px; object-fit: cover; border-radius: 1rem; }
.experience-badge {
  position: absolute; bottom: 2rem; right: 2rem;
  background: var(--primary); color: var(--white);
  padding: 1.5rem; border-radius: 1rem; text-align: center;
  box-shadow: 0 10px 40px rgba(192,57,43,.4);
}
.exp-number { display: block; font-size: 2.5rem; font-weight: 900; line-height: 1; }
.exp-text { font-size: .9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.why-us-content { padding-left: 2rem; }
.why-us-content h2 { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.lead-text { color: var(--gray); font-size: 1.05rem; margin-bottom: 2rem; }
.why-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; border-radius: .75rem; transition: var(--transition); }
.why-item:hover { background: var(--light); }
.why-icon {
  width: 50px; height: 50px; min-width: 50px;
  background: rgba(192,57,43,.1); border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.why-icon i { color: var(--primary); font-size: 1.2rem; }
.why-item h6 { font-weight: 700; margin-bottom: .25rem; color: var(--dark); }
.why-item p { color: var(--gray); font-size: .9rem; margin: 0; }

/* ===== CTA PARALLAX ===== */
.cta-parallax {
  background-size: cover; background-position: center;
  background-attachment: fixed; position: relative;
  padding: 6rem 0; color: var(--white);
}
.cta-parallax::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,26,46,.8);
}
.cta-parallax .container { position: relative; z-index: 1; }
.cta-parallax h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-parallax p { font-size: 1.15rem; opacity: .8; margin-bottom: 2rem; }

/* ===== SERVICE PAGE ===== */
.service-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center;
  color: var(--white); padding: 8rem 0 4rem;
  background-size: cover; background-position: center;
}
.service-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.85), rgba(26,26,46,.6));
}
.service-hero .container { position: relative; z-index: 1; }
.service-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 1.5rem; }
.service-hero h1 i { color: var(--primary); }
.service-hero p { font-size: 1.15rem; opacity: .9; max-width: 650px; line-height: 1.8; }
.service-hero .btn-primary-custom { margin-top: 1.5rem; }
.service-hero-sm { min-height: auto; padding: 7rem 0 3rem; }

/* Service features */
.service-features { background: var(--light); }
.feature-item {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--white); border-radius: 1rem;
  box-shadow: var(--shadow); height: 100%;
  transition: var(--transition);
}
.feature-item:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,.12); }
.feature-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.feature-item h5 { font-weight: 700; margin-bottom: .5rem; }
.feature-item p { color: var(--gray); font-size: .9rem; margin: 0; }

/* Service gallery grid */
.service-gallery { padding: 5rem 0; }
.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.service-gallery-item {
  border-radius: .75rem; overflow: hidden;
  position: relative; cursor: pointer;
}
.service-gallery-item img {
  width: 100%; height: 300px; object-fit: cover;
  transition: transform .5s ease;
}
.service-gallery-item:hover img { transform: scale(1.08); }
.service-gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.5), transparent);
  opacity: 0; transition: var(--transition);
}
.service-gallery-item:hover::after { opacity: 1; }

/* Service CTA */
.service-cta {
  position: relative; padding: 0; overflow: hidden;
}
.service-cta-inner {
  display: flex; align-items: stretch; min-height: 350px;
}
.service-cta-img {
  flex: 1; background-size: cover; background-position: center;
  position: relative;
}
.service-cta-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--dark) 100%);
}
.service-cta-content {
  flex: 1; color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3rem;
  background: #1e1e30;
}
.service-cta-content .cta-tag { color: var(--primary); }
.service-cta-content .cta-phone { color: rgba(255,255,255,.7); }
.service-cta-content .cta-phone:hover { color: var(--primary); }
.service-cta-content .cta-phone i { border-color: rgba(255,255,255,.2); }
.service-cta-content p { opacity: .6; }
.service-cta-content .cta-tag {
  display: inline-block; color: var(--primary); font-weight: 700;
  font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.service-cta-content h3 {
  font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: .75rem; line-height: 1.2;
}
.service-cta-content p { opacity: .6; margin-bottom: 2rem; font-size: 1rem; }
.service-cta-content .cta-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.service-cta-content .cta-phone {
  color: rgba(255,255,255,.7); text-decoration: none;
  display: flex; align-items: center; gap: .5rem; font-weight: 600;
  transition: var(--transition);
}
.service-cta-content .cta-phone:hover { color: var(--primary); }
.service-cta-content .cta-phone i {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.service-cta-content .cta-phone:hover i { border-color: var(--primary); }

@media (max-width: 767.98px) {
  .service-cta-inner { flex-direction: column; }
  .service-cta-img { min-height: 250px; }
  .service-cta-img::after { background: linear-gradient(to bottom, transparent 50%, var(--dark) 100%); }
  .service-cta-content { padding: 2.5rem 1.5rem; }
}

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex; justify-content: center; gap: .5rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.gallery-filters .btn {
  border-radius: 50px; padding: .5rem 1.5rem; font-weight: 500;
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent; transition: var(--transition);
}
.gallery-filters .btn.active,
.gallery-filters .btn:hover { background: var(--primary); color: var(--white); }
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: .75rem; margin-bottom: 1.5rem;
}
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
  position: absolute; inset: 0; background: rgba(192,57,43,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay a {
  color: var(--white); font-size: 1.5rem;
  width: 50px; height: 50px; border: 2px solid var(--white);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; text-decoration: none; transition: var(--transition);
}
.gallery-item .overlay a:hover { background: var(--white); color: var(--primary); }

/* ===== CONTACT ===== */
.contact-map-section { padding: 0; }
.contact-map-wrap { position: relative; width: 100%; height: 550px; }
.contact-map-wrap iframe { width: 100%; height: 100%; border: none; filter: saturate(.85) contrast(1.05); }
.contact-overlay-card {
  position: absolute; top: 50%; left: 5%; transform: translateY(-50%);
  background: rgba(26,26,46,.92); backdrop-filter: blur(12px);
  color: var(--white); padding: 2.5rem; border-radius: 1rem;
  max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.contact-overlay-card h3 { font-weight: 800; font-size: 1.4rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary); padding-bottom: .75rem; }
.contact-overlay-card ul { list-style: none; padding: 0; margin: 0; }
.contact-overlay-card ul li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; font-size: .95rem; line-height: 1.5; }
.contact-overlay-card ul li i { color: var(--primary); font-size: 1.1rem; margin-top: .2rem; flex-shrink: 0; }
.contact-overlay-social { display: flex; gap: .5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.contact-overlay-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center;
  color: var(--white); text-decoration: none; transition: var(--transition);
}
.contact-overlay-social a:hover { background: var(--primary); }
.contact-form-dark { background: var(--dark); padding: 5rem 0; }
.contact-form-dark h2 { color: var(--white); font-weight: 800; font-size: 2rem; }
.contact-form-dark .text-muted-light { color: rgba(255,255,255,.6); font-size: 1.05rem; }
.contact-form-modern .form-control {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: .5rem; padding: .9rem 1.2rem; color: var(--white);
  font-size: .95rem; transition: var(--transition);
}
.contact-form-modern .form-control::placeholder { color: rgba(255,255,255,.4); }
.contact-form-modern .form-control:focus {
  background: rgba(255,255,255,.12); border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(192,57,43,.2); color: var(--white);
}
.contact-info-card {
  background: var(--white); border-radius: 1rem; padding: 2rem;
  box-shadow: var(--shadow); text-align: center; height: 100%;
}
.contact-info-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.contact-info-card h5 { font-weight: 700; margin-bottom: .5rem; }
.contact-form-section {
  background: var(--light); padding: 5rem 0;
}
.contact-form-card {
  background: var(--white); border-radius: 1rem;
  padding: 3rem; box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
.contact-form-card h2 { font-weight: 800; color: var(--dark); }
.contact-form .form-control {
  border: 2px solid #e9ecef; border-radius: .5rem;
  padding: .75rem 1rem; transition: var(--transition);
}
.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(192,57,43,.15);
}
.contact-form label {
  font-weight: 600; margin-bottom: .25rem; color: var(--dark);
}
.map-container { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 400px; border: none; }

/* ===== BLOG ===== */
.blog-card {
  background: var(--white); border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); margin-bottom: 2rem;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card .date { color: var(--primary); font-weight: 600; font-size: .9rem; }
.blog-card h3 { font-size: 1.25rem; font-weight: 700; margin: .5rem 0; }
.blog-card p { color: var(--gray); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
footer a { color: rgba(255,255,255,.7); text-decoration: none; }
footer a:hover { color: var(--primary); }
footer .footer-brand img { height: 45px; margin-bottom: 1rem; }
footer h5 { color: var(--white); font-weight: 700; margin-bottom: 1rem; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: .5rem; }
footer .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); margin-right: .5rem;
  transition: var(--transition);
}
footer .social-links a:hover { background: var(--primary); color: var(--white); }
footer hr { border-color: rgba(255,255,255,.1); }
.footer-bottom { font-size: .9rem; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition);
  animation: pulse-wp 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); }
@keyframes pulse-wp {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,.6); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero-slider .carousel-item { height: 100vh; }
  .hero-slider .carousel-caption { max-width: 100%; padding: 0 1rem; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { display: none; }
  section { padding: 3rem 0; }
  .service-hero { padding: 6rem 0 3rem; }
  .why-us-content { padding-left: 0; margin-top: 2rem; }
  .why-us-image img { height: 350px; }
}
@media (max-width: 767.98px) {
  .hero-slider .carousel-item { height: 100vh; min-height: 400px; }
  .hero-slider .carousel-caption { text-align: center; }
  .navbar-brand img { height: 40px; }
  .gallery-item img { height: 200px; }
  .map-container iframe { height: 300px; }
  .contact-map-wrap { height: 700px; }
  .contact-overlay-card {
    position: relative; top: auto; left: auto; transform: none;
    max-width: 100%; border-radius: 0; margin-top: -1px;
  }
  .contact-map-wrap iframe { height: 350px; }
  .contact-map-wrap { height: auto; display: flex; flex-direction: column; }
  .why-us-image img { height: 280px; }
}
@media (max-width: 575.98px) {
  .hero-slider .carousel-item { height: 100vh; min-height: 350px; }
  .contact-info-card { margin-bottom: 1rem; }
}
