/* ── SYSTEM FOUNDATIONS ── */
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  /* Removed overflow-y: hidden — this was masking the horizontal overflow bug */
}

* {
  box-sizing: border-box;
}

.max-w-7xl {
  width: 100%;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  width: 100%;
  max-width: 100vw;

  z-index: 50;

  padding: 1rem 0;
  transition: all 0.3s ease;
  overflow-x: clip; /* KEY FIX for right-side overflow */
}

.float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  overflow: visible;
}

.hero-bg {
  background-image:
    linear-gradient(to bottom right, rgba(0, 0, 0, 0.55), rgba(234, 88, 12, 0.35)),
    url(images/banner.png);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* clip the glow blobs inside the hero */
  position: relative;
}

/* ── TYPOGRAPHY & DESIGN ELEMENTS ── */
.accent-line {
  position: relative;
  display: inline-block;
}

.accent-line::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #F97316;
  border-radius: 2px;
}

/* Full-width premium orange underline for the Tailwind Header */
.accent-line2 {
  position: relative;
  padding-bottom: 24px;
}

.accent-line2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #f59e0b;
  border-radius: 2px;
}

/* ── INTERACTION REVEALS & CARDS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-cta {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.stat-card {
  border-left: 4px solid #F97316;
}

.container-safe {
  max-width: 100%;
  overflow-x: hidden;
}

#mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(340px, 90vw);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
}

#mobile-menu.open {
  max-height: 70vh;
  opacity: 1;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-top: 1px solid rgba(255, 140, 0, 0.12);
}


.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

/* ── PORTFOLIO CARD ── */
.portfolio-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.portfolio-card img.hidden-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.portfolio-card img.hidden-img.show {
  opacity: 1;
}

.portfolio-card img.base-img.hide {
  opacity: 0;
}

/* This container keeps everything grouped */
.card-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 30px;
}

.card-text {
  padding-top: 15px;
  text-align: left;
}

.card-text h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  font-style: italic;
}

.card-text p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

.is-hidden {
  display: none !important;
}

#gallery-toggle-btn {
  display: table;
  margin: 20px auto;
  text-align: center;
  cursor: pointer;

  background-color: #ffffff;
  color: #ff6600;
  border: 2px solid #ff6600;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;

  transition: all 0.3s ease;
}

#gallery-toggle-btn:hover {
  background-color: #cc5200;
  border-color: #cc5200;
  color: #ffffff;
}

/* Badge showing BEFORE / AFTER */
.img-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
}

/* Reviews section */
.reviews-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}
/* horizontal scroll container */
.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
    max-width: 100%;
  width: 100%;
  box-sizing: border-box;

  flex-wrap: nowrap;
}

.reviews-wrapper,
.reviews-track {
  min-width: 0;
}

/* hide scrollbar (clean look) */
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* each card becomes fixed width */
.review-card {
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 340px;
}

/* arrows */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  color: #F97316;
}

.scroll-btn.left  { left: 0; }
.scroll-btn.right { right: 0; }

.scroll-btn:hover {
  background: #F97316;
  color: white;
}

/* Arrow toggle button */
.flip-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.flip-btn:hover {
  background: #F97316;
  transform: scale(1.08);
}

.flip-btn:hover svg { color: white; }

.flip-btn svg {
  width: 18px;
  height: 18px;
  color: #F97316;
  transition: color 0.2s, transform 0.35s ease;
}

.flip-btn.flipped svg {
  transform: rotate(180deg);
}

#whyus {
  overflow: hidden;
  position: relative;
}