/* Custom styles beyond Tailwind utilities */

html {
  scroll-behavior: smooth;
}

/* Site-wide mobile scale-down: shrinks every rem-based font size, padding,
   gap and rounded corner uniformly on small screens, without touching each
   page's utility classes individually. */
@media (max-width: 639px) {
  html {
    font-size: 87.5%;
  }
}

body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* ---------- Image placeholder pattern ---------- */
.img-placeholder {
  background-image: repeating-linear-gradient(
    45deg,
    #e2e8f0,
    #e2e8f0 10px,
    #f1f5f9 10px,
    #f1f5f9 20px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-align: center;
  gap: 0.5rem;
}

.img-placeholder svg {
  width: 2rem;
  height: 2rem;
  opacity: 0.7;
}

.img-placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 0.5rem;
}

/* ---------- Header shadow on scroll ---------- */
header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 61, 39, 0.08);
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#mobile-menu.open {
  max-height: 32rem;
}

/* ---------- Fade-in-up scroll animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Card hover elevation ---------- */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 61, 39, 0.12);
}

/* ---------- Hero gradient overlay ---------- */
.hero-overlay {
  background: linear-gradient(180deg, rgba(15,61,39,0.55) 0%, rgba(15,61,39,0.75) 100%);
}

/* ---------- Hero carousel ---------- */
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dot.active {
  background-color: rgba(255, 255, 255, 0.95);
}

.hero-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.hero-content.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Testimonials carousel ---------- */
.testimonial-avatar-btn {
  opacity: 0.55;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-avatar-btn:hover {
  opacity: 0.85;
}

.testimonial-avatar-btn.active {
  opacity: 1;
  transform: scale(1.15);
  border-color: #c9a227;
  box-shadow: 0 10px 24px rgba(15, 61, 39, 0.18);
}

.testimonial-quote-badge {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-avatar-btn.active .testimonial-quote-badge {
  opacity: 1;
  transform: scale(1);
}

.testimonial-slide {
  display: none;
  animation: testimonial-fade-in 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes testimonial-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Clickable photo cards (overlay + caption + lightbox trigger) ---------- */
.photo-card {
  cursor: zoom-in;
}

.photo-card-overlay {
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-card-overlay {
  opacity: 0.95;
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-card img {
  transition: transform 0.4s ease;
}

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 61, 39, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.25s ease;
  cursor: zoom-out;
}

#lightbox.active img {
  transform: scale(1);
}
