/* ==========================================================
   SUI DHAGA BOUTIQUE — Shared Stylesheet
   Palette drawn from the brand logo:
   Maroon #6E1B2A · Gold #B98A3C · Cream #F7F1E4 · Ink #3A2B27
   ========================================================== */

:root {
  --maroon: #6e1b2a;
  --maroon-deep: #57141f;
  --maroon-soft: #8a2f3f;
  --gold: #b98a3c;
  --gold-light: #d9b976;
  --cream: #f7f1e4;
  --cream-dark: #efe6d2;
  --ink: #3a2b27;
  --ink-soft: #6f5c55;
  --white: #fffdf8;

  --font-display: "Cormorant Garamond", serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Jost", sans-serif;

  --shadow-soft: 0 10px 30px rgba(110, 27, 42, 0.08);
  --shadow-lift: 0 18px 45px rgba(110, 27, 42, 0.16);
  --radius: 14px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.3, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  /* subtle linen texture */
  background-image:
    repeating-linear-gradient(0deg, rgba(110,27,42,0.015) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110,27,42,0.015) 0 1px, transparent 1px 3px);
  overflow-x: hidden;
  font-size: 1.02rem;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.2;
}

.script-accent {
  font-family: var(--font-script);
  color: var(--gold);
  font-weight: 400;
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.15em;
}

.section-title { font-size: clamp(2rem, 4vw, 3rem); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--maroon-soft);
  font-weight: 500;
}

.text-gold { color: var(--gold) !important; }
.text-maroon { color: var(--maroon) !important; }
.bg-maroon { background-color: var(--maroon) !important; }
.bg-cream-dark { background-color: var(--cream-dark) !important; }

section { padding: 90px 0; position: relative; }

/* ---------- Signature: running stitch divider ---------- */
.stitch-divider {
  width: 160px;
  height: 14px;
  margin: 18px auto 0;
  position: relative;
}
.stitch-divider svg { width: 100%; height: 100%; overflow: visible; }
.stitch-divider .thread {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 9 7;   /* the running stitch */
  fill: none;
  stroke-linecap: round;
}
.stitch-divider.start-left { margin-left: 0; }

/* draw-in animation when revealed */
.stitch-animate .thread {
  stroke-dashoffset: 320;
  animation: stitchDraw 1.6s ease forwards;
}
@keyframes stitchDraw { to { stroke-dashoffset: 0; } }

/* ---------- Navbar ---------- */
.navbar-sd {
  background: rgba(247, 241, 228, 0.92);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 14px 0;
  border-bottom: 1px solid rgba(185, 138, 60, 0.25);
}
.navbar-sd.scrolled {
  padding: 6px 0;
  box-shadow: var(--shadow-soft);
  background: rgba(247, 241, 228, 0.98);
}
.navbar-sd .navbar-brand img {
  height: 56px;
  width: auto;
  border-radius: 8px;
  transition: var(--transition);
}
.navbar-sd.scrolled .navbar-brand img { height: 44px; }

.navbar-sd .nav-link {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 10px;
  position: relative;
  padding-bottom: 6px;
}
.navbar-sd .nav-link::after {          /* stitch underline */
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  border-bottom: 2px dashed var(--gold);
  transition: right 0.35s ease;
}
.navbar-sd .nav-link:hover::after,
.navbar-sd .nav-link.active::after { right: 0; }
.navbar-sd .nav-link.active { color: var(--maroon); }

/* ---------- Buttons ---------- */
.btn-sd {
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 14px 34px;
  border: 1px solid var(--maroon);
  border-radius: 50rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition);
}
.btn-sd::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
  z-index: -1;
}
.btn-sd:hover { color: var(--white); border-color: var(--gold); }
.btn-sd:hover::before { transform: translateX(0); }

.btn-sd-outline {
  background: transparent;
  color: var(--maroon);
  border: 1px solid var(--gold);
}
.btn-sd-outline:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  background:
    linear-gradient(100deg,
      rgba(247, 241, 228, 0.97) 0%,
      rgba(247, 241, 228, 0.92) 42%,
      rgba(247, 241, 228, 0.55) 75%,
      rgba(247, 241, 228, 0.35) 100%),
    url("../assets/logo.jpeg") center / cover no-repeat;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--maroon);
}
.hero .lead {
  color: var(--ink-soft);
  max-width: 520px;
  font-size: 1.08rem;
}

/* hero visual: framed logo on fabric card */
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.5deg);
  transition: var(--transition);
}
.hero-visual:hover { transform: rotate(0deg) scale(1.015); }
.hero-visual img { width: 100%; display: block; }
.hero-visual::after {                 /* stitched border inset */
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255, 253, 248, 0.85);
  border-radius: 10px;
  pointer-events: none;
}

/* floating thread spools (ambient) */
.float-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ---------- Cards ---------- */
.card-sd {
  background: var(--white);
  border: 1px solid rgba(185, 138, 60, 0.28);
  border-radius: var(--radius);
  padding: 40px 30px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card-sd::before {                    /* top stitch line */
  content: "";
  position: absolute;
  top: 14px; left: 22px; right: 22px;
  border-top: 2px dashed rgba(185, 138, 60, 0.4);
  transition: var(--transition);
}
.card-sd:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
}
.card-sd .icon-ring {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-soft));
  color: var(--gold-light);
  font-size: 1.7rem;
  margin-bottom: 22px;
  border: 2px solid var(--gold-light);
  transition: var(--transition);
}
.card-sd:hover .icon-ring {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--maroon-deep);
}
.card-sd h4 { font-size: 1.45rem; margin-bottom: 12px; }
.card-sd p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* photo on top of a card — bleeds to the card edges */
.card-sd .card-photo {
  width: calc(100% + 60px);
  margin: -40px -30px 26px;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
}
.card-sd:hover .card-photo { transform: scale(1.03); }
.card-sd.has-photo { overflow: hidden; }
.card-sd.has-photo::before { display: none; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(217,185,118,0.15), transparent 55%),
    var(--maroon-deep);
  color: var(--cream);
  padding: 70px 0;
}
.stats-strip .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--gold-light);
}
.stats-strip .label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  opacity: 0.85;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(185,138,60,0.25);
  padding: 38px 32px;
  height: 100%;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--gold-light);
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 3px; }
.testimonial-card .name { font-weight: 600; color: var(--maroon); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 170px 0 90px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(87, 20, 31, 0.93), rgba(110, 27, 42, 0.88)),
    url("../assets/logo.jpeg") center / cover no-repeat;
  color: var(--cream);
}
.page-header h1 { color: var(--cream); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-header .script-accent { color: var(--gold-light); }
.page-header .breadcrumb { justify-content: center; margin: 14px 0 0; }
.page-header .breadcrumb a { color: var(--gold-light); text-decoration: none; }
.page-header .breadcrumb-item.active { color: rgba(247,241,228,0.75); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(247,241,228,0.5); }

/* ---------- Process timeline (About) ---------- */
.process-step { text-align: center; position: relative; padding: 0 14px; }
.process-step .step-ring {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--maroon);
  background: var(--white);
  transition: var(--transition);
}
.process-step:hover .step-ring {
  transform: rotate(360deg);
  background: var(--maroon);
  color: var(--gold-light);
  transition: transform 0.9s ease, background 0.4s, color 0.4s;
}
.process-step h5 { font-size: 1.25rem; }
.process-step p { font-size: 0.9rem; color: var(--ink-soft); }
.process-connector {
  position: absolute;
  top: 46px; right: -50%;
  width: 100%;
  border-top: 2px dashed rgba(185,138,60,0.5);
  z-index: -1;
}

/* ---------- Services page ---------- */
.service-block {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(185,138,60,0.25);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.service-block:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.service-block .service-top {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon-soft));
  color: var(--cream);
  padding: 30px 28px;
  position: relative;
}
.service-block .service-top i { font-size: 2rem; color: var(--gold-light); }
.service-block .service-top h4 { color: var(--cream); margin: 10px 0 0; }
.service-block ul { list-style: none; margin: 0; padding: 26px 28px; }
.service-block ul li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(185,138,60,0.35);
  font-size: 0.95rem;
}
.service-block ul li:last-child { border-bottom: none; }
.service-block ul li .price { color: var(--maroon); font-weight: 600; white-space: nowrap; }

/* ---------- Gallery ---------- */
.filter-btns .btn-filter {
  background: transparent;
  border: 1px solid rgba(185,138,60,0.5);
  color: var(--ink);
  border-radius: 50rem;
  padding: 9px 26px;
  margin: 5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: var(--transition);
}
.filter-btns .btn-filter:hover,
.filter-btns .btn-filter.active {
  background: var(--maroon);
  color: var(--cream);
  border-color: var(--maroon);
}

.gallery-item { transition: var(--transition); }
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 3.6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--cream);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.gallery-card i { font-size: 2.6rem; color: var(--gold-light); margin-bottom: 12px; }

/* real photo inside a gallery card */
.gallery-card .g-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-card:hover .g-photo { transform: scale(1.06); }
.gallery-card .g-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(45, 8, 15, 0.88) 100%);
}
.gallery-card i,
.gallery-card .g-title,
.gallery-card .g-tag { position: relative; z-index: 2; }
.gallery-card.has-photo { justify-content: flex-end; padding-bottom: 24px; }
.gallery-card.has-photo i { display: none; }
.gallery-card .g-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.gallery-card .g-tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  opacity: 0.8;
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(247,241,228,0.55);
  border-radius: 10px;
  transition: var(--transition);
  pointer-events: none;
  z-index: 3;
}
.gallery-card:hover::after { inset: 16px; }
.gallery-card:hover { box-shadow: var(--shadow-lift); }

/* fabric gradients for placeholder cards — replace with real photos anytime */
.g-fab-1 { background: linear-gradient(150deg, #6e1b2a, #a34255); }
.g-fab-2 { background: linear-gradient(150deg, #7d5a1f, #c9a24b); }
.g-fab-3 { background: linear-gradient(150deg, #4a2c2a, #8a5a44); }
.g-fab-4 { background: linear-gradient(150deg, #57141f, #8a2f3f); }
.g-fab-5 { background: linear-gradient(150deg, #8c6d2f, #d9b976); }
.g-fab-6 { background: linear-gradient(150deg, #3a2b27, #6f5c55); }

/* ---------- Contact ---------- */
.contact-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(185,138,60,0.25);
  padding: 44px 38px;
  box-shadow: var(--shadow-soft);
}
.form-control-sd {
  border: none;
  border-bottom: 2px dashed rgba(185,138,60,0.5);
  border-radius: 0;
  background: transparent;
  padding: 12px 4px;
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control-sd:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
  border-bottom: 2px solid var(--maroon);
}
.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.contact-info-item .ci-icon {
  width: 52px; height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-info-item h6 { margin-bottom: 3px; font-size: 1.05rem; }
.contact-info-item p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    linear-gradient(120deg, rgba(87, 20, 31, 0.94), rgba(110, 27, 42, 0.88)),
    url("../assets/logo.jpeg") center / cover no-repeat;
  border-radius: 20px;
  padding: 70px 40px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(217,185,118,0.45);
  border-radius: 14px;
  pointer-events: none;
}
.cta-banner h2 { color: var(--cream); font-size: clamp(1.9rem, 3.5vw, 2.8rem); }

/* ---------- Story section: fixed parallax background ---------- */
.story-parallax {
  background:
    linear-gradient(rgba(247, 241, 228, 0.82), rgba(247, 241, 228, 0.78)),
    url("../assets/logo.jpeg") center / cover no-repeat;
  background-attachment: fixed;   /* content scrolls over the pinned photo */
}

/* frosted-glass cards so the fabric photo shows through */
.story-parallax .card-sd {
  background: rgba(255, 253, 248, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(185, 138, 60, 0.45);
}
.story-parallax .card-sd:hover {
  background: rgba(255, 253, 248, 0.85);
}
.story-parallax .text-secondary { color: var(--ink) !important; }

/* iOS/mobile: fixed attachment is unsupported, fall back gracefully */
@media (max-width: 991.98px), (hover: none) {
  .story-parallax { background-attachment: scroll; }
}

/* ---------- Footer ---------- */
.footer-sd {
  background: var(--maroon-deep);
  color: rgba(247,241,228,0.82);
  padding: 70px 0 0;
  font-size: 0.94rem;
}
.footer-sd h5 {
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.footer-sd a {
  color: rgba(247,241,228,0.82);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 3px 0;
}
.footer-sd a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-sd .social a {
  width: 42px; height: 42px;
  border: 1px solid rgba(217,185,118,0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.footer-sd .social a:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  transform: translateY(-4px);
}
.footer-sd .footer-bottom {
  border-top: 1px dashed rgba(217,185,118,0.3);
  margin-top: 50px;
  padding: 20px 0;
  font-size: 0.8rem;
  text-align: center;
}
.footer-logo { height: 60px; border-radius: 8px; }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition);
}
#backToTop:hover { background: var(--gold); color: var(--maroon-deep); transform: translateY(-4px); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  left: 26px; bottom: 26px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
#preloader .needle {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--maroon);
}
#preloader .thread-line {
  width: 140px; height: 3px;
  border-top: 3px dashed var(--gold);
  animation: threadRun 1.1s linear infinite;
}
@keyframes threadRun { from { transform: translateX(-14px);} to { transform: translateX(0);} }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  section { padding: 64px 0; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .process-connector { display: none; }
  .navbar-sd .navbar-collapse {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 12px;
    box-shadow: var(--shadow-soft);
  }
}

/* ---------- Mobile hero polish ---------- */
@media (max-width: 767.98px) {
  .hero { padding: 108px 0 54px; text-align: center; }
  .hero {
    background:
      linear-gradient(180deg, rgba(247,241,228,0.95), rgba(247,241,228,0.9)),
      url("../assets/logo.jpeg") center / cover no-repeat;
  }

  /* remove floating decorations that crowd small screens */
  .hero .float-dot { display: none; }

  .hero h1 { font-size: clamp(2.1rem, 8.5vw, 2.7rem); }
  .hero .script-accent { font-size: 1.5rem; }
  .hero .lead {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* center the stitch divider and buttons */
  .hero .stitch-divider.start-left { margin-left: auto; margin-right: auto; }
  .hero .d-flex.flex-wrap.gap-3 { justify-content: center; }
  .hero .d-flex.align-items-center.gap-4 { justify-content: center; }

  /* comfortable tap-size buttons, side by side or stacked neatly */
  .hero .btn-sd { padding: 13px 26px; font-size: 0.76rem; }

  /* smaller, straight logo card so it doesn't dominate the screen */
  .hero-visual {
    max-width: 330px !important;
    transform: rotate(0deg);
    margin-top: 8px;
  }
  .hero-visual::after { inset: 8px; }

  /* trust badges tighter */
  .hero .small { font-size: 0.8rem; }

  /* inner page headers a bit shorter on phones */
  .page-header { padding: 130px 0 60px; }

  /* CTA banner breathing room */
  .cta-banner { padding: 54px 22px; }
}

/* very small phones */
@media (max-width: 379.98px) {
  .hero h1 { font-size: 1.9rem; }
  .hero .btn-sd { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
