@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #eaeaea;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.reference {
  width: 100%;
  position: relative;
  margin: auto;
}

.reference section {
  margin: 0;
  padding: 0;
}

.reference section img {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot,
.field {
  position: absolute;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
}

.hotspot {
  cursor: pointer;
}

.hotspot:focus-visible {
  outline: 2px solid #fbc900;
  outline-offset: 2px;
  border-radius: 6px;
}

.field {
  font: clamp(7px, .8vw, 16px) 'Plus Jakarta Sans', Arial, sans-serif;
  color: #111;
  resize: none;
  border-radius: 8px;
  padding: 0 .65%;
  outline: none;
}

.field:focus,
.field:not(:placeholder-shown):focus {
  background: #fffde8;
  box-shadow: 0 0 0 1px #e5b900;
}

.field.filled {
  background: #fffde8;
}

.services {
  z-index: 30;
}

.enquiry {
  display: contents;
}

/* =========================================================
   Premium Services Mega Menu
   ========================================================= */
.mega {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(96%, 1320px);
  padding-top: 10px;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s ease;
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow:
    0 24px 56px -12px rgba(15, 23, 42, 0.18),
    0 8px 20px -6px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
}

/* Subtle Rootz gold top hairline accent */
.mega-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbc900 0%, #f5b700 50%, #141414 100%);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 22px 14px 18px;
}

.mega-col {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mega-col + .mega-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.03) 0%, rgba(17, 17, 17, 0.08) 50%, rgba(17, 17, 17, 0.03) 100%);
}

.mega-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #52525b;
  white-space: nowrap;
}

.mega-heading::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbc900;
  flex-shrink: 0;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 13px;
  text-decoration: none;
  color: #141414;
  border: 1px solid transparent;
  transition: background-color 0.18s ease,
              border-color 0.18s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease;
}

.mega-item:hover,
.mega-item:focus-visible {
  background: #fffdf2;
  border-color: rgba(251, 201, 0, 0.45);
  box-shadow: 0 4px 12px -4px rgba(17, 17, 17, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.mega-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f4f6;
  border: 1px solid rgba(17, 17, 17, 0.05);
  color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease,
              transform 0.18s ease;
}

.mega-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mega-item:hover .mega-icon,
.mega-item:focus-visible .mega-icon {
  background: #fbc900;
  border-color: #f0be00;
  color: #111111;
  transform: scale(1.04);
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.mega-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #111111;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mega-arrow {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: translateX(-4px);
  color: #111111;
  flex-shrink: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mega-item:hover .mega-arrow,
.mega-item:focus-visible .mega-arrow {
  opacity: 0.75;
  transform: translateX(0);
}

.mega-desc {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.38;
  color: #6b7280;
}

/* Bottom conversion bar */
.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #f8f8fa;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.mega-footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #52525b;
}

.mega-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7cc;
  color: #854d0e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mega-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #eab308;
}

.mega-footer-info strong {
  color: #111111;
  font-weight: 600;
}

.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #141414;
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mega-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.mega-cta:hover,
.mega-cta:focus-visible {
  background: #fbc900;
  color: #111111;
  box-shadow: 0 6px 16px -4px rgba(251, 201, 0, 0.55);
  transform: translateY(-1px);
  outline: none;
}

.mega-cta:hover svg,
.mega-cta:focus-visible svg {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 1240px) {
  .mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
    padding: 20px 14px 18px;
  }

  .mega-col + .mega-col::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .mega {
    width: 95%;
    padding-top: 6px;
  }

  .mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 10px 14px;
    row-gap: 14px;
  }

  .mega-col {
    padding: 0 8px;
  }

  .mega-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }
}

@media (max-width: 520px) {
  .mega-grid {
    grid-template-columns: 1fr;
  }
}
