/* ============================================================
   Crystal Kitchen Studio — Custom Stylesheet
   Author: Crystal Kitchen Studio
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e2c47e;
  --gold-dark:   #a07830;
  --dark-rich:   #0f0f0f;
  --dark-card:   #1a1a1a;
  --dark-border: #2a2a2a;
  --cream:       #fdf8f2;
  --cream-dark:  #f0e8d8;
  --text-muted-light: rgba(255,255,255,0.6);
  --font-display: 'Playfair Display', serif;
  --font-body:    'Poppins', sans-serif;
  --transition:   0.35s ease;
  --radius:       12px;
  --radius-lg:    20px;
}

/* ---------- Base Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: #333;
  overflow-x: hidden;
  max-width: 100%;
  background: #fff;
}

img { max-width: 100%; display: block; }

/* ---------- Global Helpers ---------- */
.text-gold { color: var(--gold) !important; }
.bg-dark-rich { background-color: var(--dark-rich) !important; }
.bg-light-cream { background-color: var(--cream) !important; }
.text-muted-light { color: var(--text-muted-light) !important; }

.section-padding { padding: 90px 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50px;
  padding: 4px 16px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.section-body {
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 6px 24px rgba(201,168,76,0.5);
  transform: translateY(-2px);
}

/* ---------- NAVBAR ---------- */
#mainNavbar {
  background: transparent;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
  z-index: 1050;
}
#mainNavbar.scrolled {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.brand-icon { color: var(--gold); font-size: 1.4rem; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}
.brand-accent { color: var(--gold); }
.brand-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-top: 2px;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px !important;
  border-radius: 50px;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
  background: rgba(201,168,76,0.1);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100%;
}

#heroCarousel .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fallback gradient when no image is set */
#heroCarousel .carousel-item:nth-child(1) {
  background-image: linear-gradient(135deg, #1a0a00 0%, #3d2200 50%, #1a0a00 100%);
}
#heroCarousel .carousel-item:nth-child(2) {
  background-image: linear-gradient(135deg, #000d1a 0%, #002244 50%, #000d1a 100%);
}
#heroCarousel .carousel-item:nth-child(3) {
  background-image: linear-gradient(135deg, #0a0a00 0%, #2a2200 50%, #0a0a00 100%);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50px;
  padding: 4px 16px;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease 0.15s both;
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 32px;
  animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-content .d-flex {
  animation: fadeInUp 0.9s ease 0.45s both;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
.scroll-hint:hover { color: var(--gold); }

/* Carousel indicators overrides */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
  margin: 0 4px;
  transition: background-color var(--transition), transform var(--transition);
}
.carousel-indicators .active {
  background-color: var(--gold);
  transform: scale(1.3);
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
  background: #c9a84c;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stat-item { padding: 8px; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  margin-top: 4px;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

/* ---------- ABOUT SECTION ---------- */
.about-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.main-about-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.about-badge-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-left: 4px solid var(--gold);
}
.about-badge-card strong { display: block; font-size: 0.9rem; color: #222; }
.about-badge-card small  { color: #888; font-size: 0.75rem; }

.about-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.92rem;
  color: #444;
  border-bottom: 1px dashed #e0d8c8;
}

/* ---------- SERVICES ---------- */
.service-card-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  height: 220px;
}
.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.service-card:hover .service-card-img {
  transform: scale(1.05);
}
.service-card-body {
  padding: 28px 28px 24px;
}
.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dark);
  box-shadow: 0 12px 40px rgba(201,168,76,0.2);
}

.service-card--featured {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, #1a1200 0%, #2a1f00 100%);
}

.service-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
}
.service-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.service-link {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: gap var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { color: var(--gold-light); gap: 10px; }

/* ---------- WHY US ---------- */
.why-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(201,168,76,0.18);
  border-color: var(--gold);
}

.why-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(201,168,76,0.12);
  position: absolute;
  top: 16px; right: 24px;
  line-height: 1;
  user-select: none;
}
.why-icon {
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.why-card h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.why-card p {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0;
}

/* ---------- GALLERY ---------- */
.gallery-item { overflow: hidden; }

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-thumb:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
}
.gallery-thumb:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; }
.gallery-overlay span { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #444;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author strong {
  display: block;
  color: #1a1a1a;
  font-size: 0.95rem;
}
.testimonial-author small {
  color: #999;
  font-size: 0.8rem;
}

/* Testimonial dots */
.indicator-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: #ccc !important;
  border: none !important;
  margin: 0 4px;
  transition: background-color var(--transition);
}
.indicator-dot.active { background-color: var(--gold) !important; }

/* ---------- CONTACT ---------- */
.contact-info-wrap { display: flex; flex-direction: column; gap: 28px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h6 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info-item p,
.contact-info-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  text-decoration: none;
  margin: 0;
}
.contact-info-item a:hover { color: var(--gold); }



/* Contact Form */

.map-wrap { overflow: hidden; border-radius: var(--radius-lg); }

/* ---------- FOOTER ---------- */

/* ---------- FLOATING ACTION BUTTONS ---------- */
.floating-actions {
  position: fixed;
  bottom: 90px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: floatPulse 2.5s ease-in-out infinite;
}

.float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  color: #fff;
}

.float-whatsapp {
  background: #25d366;
  animation-delay: 0s;
}

.float-call {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  animation-delay: 0.4s;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
  50%       { box-shadow: 0 6px 28px rgba(0,0,0,0.4); }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(201,168,76,0.45);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

/* ---------- SERVICES & CONTACT — LIGHT THEME ---------- */
#services {
  background-color: #ffffff !important;
}
#services .text-white {
  color: #1a1a1a !important;
}
#services .text-muted-light {
  color: #555 !important;
}
#services .service-card {
  background: #fff;
  border-color: #e8dfc8;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
#services .service-card:hover {
  box-shadow: 0 12px 40px rgba(201,168,76,0.22);
  border-color: var(--gold);
}
#services .service-card--featured {
  background: linear-gradient(135deg, #1a1200 0%, #2a1f00 100%);
  border-color: var(--gold-dark);
}
#services .service-title {
  color: #1a1a1a;
}
#services .service-desc {
  color: #555;
}

#contact {
  background-color: #ffffff !important;
}
#contact .text-white {
  color: #1a1a1a !important;
}
#contact .text-muted-light {
  color: #555 !important;
}
#contact .contact-info-item p,
#contact .contact-info-item a {
  color: #444;
}
#contact .contact-info-item a:hover {
  color: var(--gold-dark);
}
#contact .contact-icon {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.4);
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 991.98px) {
  .about-badge-card { display: none; }
  .section-padding { padding: 60px 0; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 100svh; }
  .hero-content { padding: 0 8px; }
  .testimonial-card { padding: 28px 20px; }
  .contact-info-wrap { gap: 20px; }
  .service-card-body { padding: 22px 20px 20px; }
  .service-card-img-wrap { height: 190px; }
  .why-card { padding: 28px 22px; }
  .main-about-img { height: 300px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.8rem; }
  .hero-desc  { font-size: 0.88rem; }
  .stat-num   { font-size: 1.8rem; }
  .gallery-filters { gap: 8px; }
  .btn-filter { font-size: 0.75rem; padding: 5px 14px; }

  /* Prevent any element from causing horizontal overflow */
  * { max-width: 100%; }
  img, video, iframe { max-width: 100%; }
}
