/* ==========================================================================
   Casona Andino - Custom Professional Overrides
   ========================================================================== */

/* --- Smooth scroll & base --- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- WhatsApp floating button --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  left: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
}

.whatsapp-float .whatsapp-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.3);
  animation: whatsappPulse 2s infinite;
  z-index: -1;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --- Hero slider enhancements --- */
.swiper-slider-corporate .swiper-slide-caption {
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
}

.swiper-slider-corporate h2 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.swiper-slider-corporate h6 {
  letter-spacing: 3px;
  font-size: 13px;
  opacity: 0.9;
}

.button-default-outline.button-ujarak {
  border-width: 2px;
  padding: 14px 36px;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 13px;
  transition: all 0.4s ease;
}

/* --- Section headings --- */
h3 {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 30px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #83311b, #b5542e);
  border-radius: 2px;
}

.text-center h3::after,
h3.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.oh-desktop h3::after,
.title-block::after {
  left: 0;
}

/* --- Feature cards (CTA boxes) --- */
.box-categories-list li {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.box-categories-list li:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.box-categories-list li img {
  transition: transform 0.6s ease;
}

.box-categories-list li:hover img {
  transform: scale(1.05);
}

.box-categories-title {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* --- Service cards --- */
.box-icon-classic {
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.box-icon-classic:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.box-icon-classic-title {
  color: #2c2c2c;
  font-weight: 600;
}

.box-icon-classic-text {
  line-height: 1.7;
  color: #555;
}

.box-icon-classic .unit-left img {
  transition: transform 0.3s ease;
}

.box-icon-classic:hover .unit-left img {
  transform: scale(1.15);
}

/* --- Facilities (product-big) --- */
.product-big {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-big:hover {
  box-shadow: 0 10px 35px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.product-big-figure img {
  transition: transform 0.5s ease;
}

.product-big:hover .product-big-figure img {
  transform: scale(1.03);
}

.product-big-title {
  font-weight: 600;
  color: #2c2c2c;
}

.product-big-text {
  line-height: 1.75;
  color: #555;
}

/* --- Team section --- */
.team-modern {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.team-modern-figure img.img-circles {
  border: 3px solid #83311b;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-modern:hover .team-modern-figure img.img-circles {
  border-color: #b5542e;
  transform: scale(1.05);
}

.team-modern-name {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.team-modern-status {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

/* --- Parallax quote section --- */
.parallax-content .heading-2 {
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
  line-height: 1.4;
  letter-spacing: 0.3px;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 479px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(131, 49, 27, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-overlay span {
  color: #fff;
  font-size: 28px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* --- Lightbox --- */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999999;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.3s ease;
}

.gallery-lightbox.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox-content img.lightbox-fade-out {
  opacity: 0;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.15);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 16px 20px;
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(131, 49, 27, 0.6);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 15px;
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
}

@media (max-width: 767px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    padding: 12px 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 32px;
  }

  .lightbox-content img {
    max-width: 95vw;
    max-height: 75vh;
  }
}

/* --- About section (tabs) --- */
.tabs-line-style-2 .nav-link.active {
  border-bottom-color: #83311b;
  color: #83311b;
}

.tab-pane p {
  line-height: 1.8;
  color: #555;
}

/* --- Video section --- */
iframe[src*="youtube"] {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* --- Footer enhancements --- */
.footer-corporate {
  border-top: 3px solid #83311b;
}

.footer-corporate h6 {
  color: #b5542e !important;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 15px;
}

.footer-contacts li {
  transition: transform 0.2s ease;
}

.footer-contacts li:hover {
  transform: translateX(4px);
}

.footer-contacts a {
  transition: color 0.3s ease;
}

.footer-contacts a:hover {
  color: #b5542e !important;
}

.footer-social-list-2 a {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-list-2 a:hover {
  transform: scale(1.2);
  color: #b5542e !important;
}

.gmap_canvas {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Navbar refinements --- */
.rd-navbar-corporate .rd-navbar-nav-wrap .rd-navbar-nav > li > .rd-nav-link {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.rd-navbar-corporate-contacts a {
  transition: color 0.3s ease;
}

.rd-navbar-corporate-contacts a:hover {
  color: #83311b;
}

/* --- Section spacing improvements --- */
.section-sm {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* --- Selection color --- */
::selection {
  background-color: #83311b;
  color: #fff;
}

::-moz-selection {
  background-color: #83311b;
  color: #fff;
}

/* --- Loading screen refinement --- */
.preloader {
  background: #fff;
}

.cssload-speeding-wheel {
  border-top-color: #83311b !important;
  border-left-color: #83311b !important;
}

/* --- Responsive refinements --- */
@media (max-width: 767px) {
  .box-categories-list li {
    border-radius: 8px;
  }

  .box-icon-classic,
  .product-big,
  .team-modern {
    border-radius: 8px;
  }

  h3::after {
    width: 40px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    left: 18px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float .whatsapp-pulse {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 992px) {
  .box-icon-classic {
    min-height: 100%;
  }
}
