/* ============================================================
   MB Gold Jewelry - Design System
   Modern, polished & fully responsive
   ============================================================ */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #1B1813;
  line-height: 1.6;
  background-color: #FFFFFF;
}

img {
  max-width: 100%;
  height: auto;
}

video,
iframe,
embed {
  max-width: 100%;
}

::selection {
  background: rgba(201, 162, 39, 0.25);
}

:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.5);
  outline-offset: 2px;
}

.font-serif {
  font-family: "Fraunces", serif;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #C9A227;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 7s ease-out forwards;
}

/* Readability gradient overlay */
.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(27, 24, 19, .50) 0%, rgba(27, 24, 19, .28) 42%, rgba(27, 24, 19, .60) 100%);
  z-index: 1;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-text-shadow {
  text-shadow: 0 2px 12px rgba(27, 24, 19, 0.6), 0 0 2px rgba(27, 24, 19, 0.3);
}

.hero-prev,
.hero-next {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background: #C9A227;
  color: #1B1813;
  /* transform: scale(1.08); */
}

.hero-prev:active,
.hero-next:active {
  transform: scale(.96);
}

.hero-dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, .4);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
}

.hero-dot:hover {
  background: rgba(201, 162, 39, .85);
}

.hero-dot.active {
  width: 1.7rem;
  border-radius: 9999px;
  background: #C9A227;
}

/* ---------- Buttons (unified) ---------- */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .8rem 1.9rem;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.btn-primary {
  background: #C9A227;
  color: #1B1813;
  box-shadow: 0 6px 16px -4px rgba(201, 162, 39, .35);
}

.btn-primary:hover {
  background: #A67F1A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -4px rgba(201, 162, 39, .45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #1B1813;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(27, 24, 19, .35);
}

.btn-secondary:hover {
  background: #2a241d;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -8px rgba(27, 24, 19, .4);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(27, 24, 19, .35);
  color: #1B1813;
}

.btn-outline:hover {
  border-color: #C9A227;
  color: #C9A227;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(27, 24, 19, .65);
}

.btn-outline-light:hover {
  border-color: #C9A227;
  color: #C9A227;
  background: rgba(201, 162, 39, .14);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.premium-card {
  background: #fff;
  border: 1px solid rgba(27, 24, 19, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px -10px rgba(27, 24, 19, 0.12);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 30px -12px rgba(27, 24, 19, 0.22);
}

/* ---------- 3D Flip Cards ---------- */
.flip-card {
  perspective: 1000px;
  min-height: 400px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1rem;
  overflow: hidden;
}

.flip-card-front {
  background: #FFFFFF;
}

.flip-card-back {
  background: #1B1813;
  color: #FFFFFF;
  transform: rotateY(180deg);
  padding: 2.25rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid rgba(27, 24, 19, 0.14);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.faq-item.active {
  border-color: #C9A227;
  box-shadow: 0 10px 22px -10px rgba(201, 162, 39, .4);
}

.faq-question {
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.15rem;
  font-weight: 600;
  text-align: left;
  background: transparent;
  transition: background .3s ease;
}

.faq-question:hover {
  background: rgba(201, 162, 39, .06);
}

.faq-question i {
  color: #C9A227;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease;
  color: #6E675C;
}

.faq-item.active .faq-answer {
  max-height: 1200px;
}

/* ---------- Forms ---------- */
.form-input {
  width: 100%;
  padding: .8rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(27, 24, 19, .18);
  border-radius: .6rem;
  background: #fff;
  color: #1B1813;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.form-input::placeholder {
  color: #a99e90;
}

.form-input:focus {
  outline: none;
  border-color: #C9A227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}

/* ---------- Image zoom ---------- */
.image-zoom {
  overflow: hidden;
  position: relative;
}

.image-zoom img {
  transition: transform .6s ease, filter .6s ease;
}

.image-zoom:hover img {
  transform: scale(1.08);
}

/* ---------- About Section Image Constraints ---------- */
.about-img-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(27, 24, 19, 0.18);
}

.about-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Header ---------- */
#main-header {
  box-shadow: 0 6px 18px -10px rgba(27, 24, 19, .15);
}

#main-header.scrolled {
  box-shadow: 0 14px 26px -12px rgba(27, 24, 19, .28);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: #C9A227;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease;
}

.mobile-menu.open {
  max-height: 560px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(27, 24, 19, .12);
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border-radius: .6rem;
  color: #1B1813;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}

.mobile-menu-link:hover {
  background: #FAF6EE;
}

.mobile-menu-link.active {
  background: rgba(201, 162, 39, .12);
  color: #A67F1A;
  font-weight: 600;
}

.mobile-menu-link i {
  width: 1.3rem;
  text-align: center;
  color: #C9A227;
}

/* ---------- Footer social icons ---------- */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  transition: all .3s ease;
}

.social-icon:hover {
  background: #C9A227;
  color: #1B1813;
  border-color: #C9A227;
  transform: translateY(-2px);
}

/* ---------- Fixed side action buttons (Call / Enquiry) ---------- */
/* Vertically centered on the right side of the viewport. The
   small downward offset keeps them clear of the hero slider's
   next/prev buttons, which sit at the viewport centre. */
#side-actions {
  top: calc(80% + 3rem);
  transform: translateY(-50%);
}

.side-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .6rem 1.15rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 12px 26px -10px rgba(27, 24, 19, .55);
  transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}

.side-action-btn i {
  font-size: 1rem;
}

.side-action-btn-call {
  background: #C9A227;
  color: #1B1813;
}

.side-action-btn-call:hover {
  background: #A67F1A;
  color: #fff;
  transform: translateX(-4px);
}

.side-action-btn-enquiry {
  background: #1B1813;
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

.side-action-btn-enquiry:hover {
  background: #C9A227;
  color: #1B1813;
  transform: translateX(-4px);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .hero-slider {
    height: 82vh;
    min-height: 460px;
  }

  .hero-slide h2 {
    font-size: 1.9rem;
  }

  .hero-slide p {
    font-size: 1.05rem;
  }

  .flip-card {
    min-height: 470px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-prev,
  .hero-next {
    width: 2.6rem;
    height: 2.6rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-slider {
    height: 88vh;
    min-height: 520px;
  }

  .flip-card {
    min-height: 440px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide-bg {
    animation: none;
  }

  .image-zoom img,
  .premium-card,
  .flip-card-inner {
    transition: none;
  }
}

/* Inner page headers - scale down on small phones */
@media (max-width: 640px) {
  section.bg-ink h1 {
    font-size: 2.1rem;
  }
}