/* ══════════════════════════════════════════════════════════
   MEGAWAH — SECTIONS CSS
   Premium dark luxury styling for all new sections
   ══════════════════════════════════════════════════════════ */

:root {
  --section-bg: #050505;
  --section-bg-alt: #0a0a0a;
  --text-muted: #888;
  --border-color: rgba(255, 255, 255, 0.08);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-header .title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════
   SERVICES OVERVIEW
   ══════════════════════════════════════════════════════════ */
.services-overview {
  background: var(--section-bg);
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  transition: all 0.3s ease;
  cursor: default;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
  border-color: rgba(0, 168, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 168, 255, 0.05);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--blue-primary);
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   DETAILING CENTRE INFO
   ══════════════════════════════════════════════════════════ */
.detailing-info {
  background: var(--section-bg-alt);
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}

.detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.d-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.d-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.d-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.d-card:hover::before {
  opacity: 1;
}

.d-card h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.d-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   PARALLAX CRAFT SECTION
   ══════════════════════════════════════════════════════════ */
.craft-section {
  background: var(--section-bg);
  padding: 8rem 0;
  overflow: hidden;
}

.craft-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 10rem;
}

.craft-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.craft-item.reverse {
  direction: rtl;
}

.craft-item.reverse > * {
  direction: ltr;
}

.craft-img {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}

.craft-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.1s linear;
}

.craft-text {
  padding: 2rem 0;
}

.craft-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

.craft-text p {
  font-size: 1.1rem;
  color: #aaa;
  line-height: 1.7;
}

/* Parallax item fade effect */
.parallax-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.parallax-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   BEFORE / AFTER SLIDER
   ══════════════════════════════════════════════════════════ */
.ba-section {
  background: var(--section-bg-alt);
  padding: 8rem 0;
}

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after {
  z-index: 1;
}

.ba-before {
  z-index: 2;
  /* Clip-path will be updated by JS */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-label {
  position: absolute;
  top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.label-after { right: 1.5rem; z-index: 3; }
.label-before { left: 1.5rem; z-index: 3; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba-handle-line {
  position: absolute;
  top: 0; bottom: 0; left: 0; width: 100%;
  background: var(--blue-primary);
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
}

.ba-handle-button {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  transition: transform 0.1s;
}

.ba-slider:active .ba-handle-button {
  transform: scale(0.9);
}


/* ══════════════════════════════════════════════════════════
   ABOUT US
   ══════════════════════════════════════════════════════════ */
.about-section {
  background: var(--section-bg);
  padding: 8rem 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ddd;
  font-size: 1.1rem;
  font-weight: 500;
}

.about-features i {
  color: var(--blue-primary);
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: #020202;
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-logo:hover .footer-logo-img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.5));
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--blue-primary);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--blue-primary);
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-contact i {
  color: var(--blue-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #666;
  font-size: 0.9rem;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT
   ══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .booking-wrapper {
    grid-template-columns: 1fr;
    padding: 3rem;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .craft-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .craft-item.reverse {
    direction: ltr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .book-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal a {
    margin: 0 0.75rem;
  }
}
