/* =========================================================
   THEME CONFIG — SINGLE SOURCE OF TRUTH
   ========================================================= */
:root {
  /* Fonts */
  --font-primary: "Inter", sans-serif;
  --font-heading: "Inter", sans-serif;

  --fw-regular: 500;
  --fw-bold: 800;

  /* Brand Colors */
  --color-primary: #4a362b;
  --color-secondary: #d43747;
  --color-accent: #d4beae;
  --color-highlight: #d4beae;

  /* Text */
  --text-main:  #4a362b;
  --text-muted: #6c757d;
  --text-light: #ffffff;

  /* Backgrounds */
  --bg-light: #ffffff;
  --bg-muted: #faf4ec;
  --bg-section: #d4beae;
  --bg-dark: #000000;
  --bg-accent:#d4beae;

  /* UI */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --transition-fast: 0.3s ease;
  --transition-medium: 0.6s ease;
}

/* =========================================================
   BASE
   ========================================================= */
body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--text-main);
  background: var(--bg-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  letter-spacing: 0.5px;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
}

img {
  max-height: 450px;
  object-fit: contain;
}
 /* img {
  max-width: 100%;
  height: auto;
} */

.bg-accent{
  background-color: var(--bg-accent);
}
/* =========================================================
   NAVBAR
   ========================================================= */
.site-navbar {
  background-color: var(--bg-accent);
  border-bottom: 1px solid rgba(74,54,43,0.12);
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-navbar .container {
  display: flex;
  align-items: center;
}

.site-navbar.scrolled {
  background-color: rgba(212, 190, 174, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(74,54,43,0.12);
}

.navbar-logo {
  height: 54px;
  width: auto;
}

/* Desktop nav links */
.navbar-nav-desktop {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.navbar-actions-desktop {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-navbar .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  position: relative;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 1.5px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.site-navbar .nav-link.active {
  font-weight: 600;
  color: var(--color-primary);
}

/* Enquire Now button */
.btn-enquire {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-enquire:hover {
  background-color: #3a2a21;
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* =========================================================
   MOBILE OVERLAY
   ========================================================= */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: var(--bg-accent);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-overlay-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.5rem 2rem;
}

/* Overlay header */
.mobile-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(74,54,43,0.12);
}

.mobile-overlay-logo img {
  height: 46px;
  width: auto;
}

.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(74,54,43,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-primary);
  transition: background-color 0.2s ease;
}

.mobile-close-btn:hover {
  background-color: rgba(74,54,43,0.16);
}

/* Nav links */
.mobile-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 2rem;
  gap: 0;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 400;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(74,54,43,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease, padding-left 0.2s ease;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link::after {
  content: "→";
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--font-sans);
}

.mobile-nav-link:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.mobile-nav-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-link.active {
  color: var(--color-primary);
  font-weight: 500;
}

/* Staggered entrance animation */
.mobile-overlay.is-open .mobile-nav-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }

/* Overlay footer */
.mobile-overlay-footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(74,54,43,0.2);
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-social a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Responsive: show hamburger, hide desktop nav on mobile */
@media (max-width: 991px) {
  .navbar-logo { height: 44px; }
  .navbar-nav-desktop,
  .navbar-actions-desktop { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* Hide overlay on desktop */
@media (min-width: 992px) {
  .mobile-overlay { display: none; }
}
/* =========================================================
   MODAL FIX — INTERACTION & CLOSE BUTTON
   ========================================================= */

.modal,
.modal-dialog,
.modal-content {
  pointer-events: auto;
}

.modal-content {
  position: relative;
  z-index: 1060;
}

.modal .btn-close {
  pointer-events: auto;
  z-index: 1061;
  position: relative;
}

/* =========================================================
   TEXT HIGHLIGHT
   ========================================================= */
.text-highlight {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--color-primary);
  z-index: 1;
}

.text-highlight::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0.45em;
  background: var(--color-accent);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}

@media (max-width: 576px) { 
  .hero-banner-text{
    font-size: 1.1rem;
  }
  .main-text{
    font-size: 1.5rem;
  }
 }
/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  border-radius: 999px;
  transition: var(--transition-fast);
}

.btn-outline-secondary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-secondary:hover {
  background: var(--color-primary);
  color: var(--text-light);
}

/* =========================================================
   BACKGROUNDS & SECTIONS
   ========================================================= */
.bg-section { background: var(--bg-section); }
.bg-muted { background: var(--bg-muted); }

section hr,
hr {
  border-top: 2px solid var(--color-secondary);
}
.product-card img {
      object-fit: cover;
      height: 220px;
    }
    .bg-cover{
        background-position: center !important;
        background-size: cover !important;
    }
/* =========================================================
   MOSAIC / IMAGE GRID
   ========================================================= */
.mosaic-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.mosaic-card:hover img {
  transform: scale(1.05);
}

.mosaic-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  color: var(--text-light);
}
.mosaic-image {
    height: 100%;
    object-fit: cover;
    object-position: 48% 50%;
}
/* =========================================================
   ICON CARDS
   ========================================================= */
.icon-card { max-width: 260px; }

.icon-img img {
  max-width: 80px;
  padding: 12px;
}

/* =========================================================
   ACCORDION
   ========================================================= */
.accordion-button {
  font-weight: var(--fw-regular);
  padding: 1.25rem 0;
  background: var(--bg-accent) !important;
}

.accordion-item {
  border-bottom: 1px solid rgba(0,0,0,0.15);
  background-color: var(--bg-accent);
}

.accordion-body {
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   POPOVER / MODAL
   ========================================================= */
.popover-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
}

.popover-end {
  padding: 2rem;
}

.product-card-badges span {
  background: var(--color-primary);
  color: var(--text-light);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

/* =========================================================
   LOGO MARQUEE
   ========================================================= */
.logo-marquee {
  overflow: hidden;
}

.logo-track {
  display: flex;
  animation: marquee-rtl 35s linear infinite;
}

.logo-item {
  padding: 0 2.5rem;
}

.logo-item img {
  max-height: 65px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.logo-item img:hover {
  filter: none;
  opacity: 1;
}

@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */
.announcement-bar {
  background-color: var(--color-primary);
  padding: 10px 0;
}

.announcement-text {
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.85);
}

.announcement-cta {
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
}

.announcement-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
/* =========================================================
   PROMO CARD
   ========================================================= */
.promo-card {
  background: var(--bg-muted);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
}

.promo-card h4 {
  color: var(--color-primary);
}

.promo-card em {
  color: var(--color-secondary);
}
/* =========================================================
   BRICK IMAGE SECTIONS
   ========================================================= */

.brick-image {
  background-image: url("https://bespokely.cc/cdn/shop/files/Tech-NAB-E-1920X1300_c9f4fd73-6f62-481d-8cc3-ce47b68d4dbd.jpg");
}

.brick-image-left {
  background-image: url("https://bespokely.cc/cdn/shop/files/Scale_illustration.png?v=1677842685");
}

.brick-image-right {
  background-image: url("https://bespokely.cc/cdn/shop/files/Biologique-1200-900_54826aa8-6a3b-4c7f-81d1-c4fd6cb6310c.jpg?v=1676982199");
}

.brick-image,
.brick-image-left,
.brick-image-right {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
}
/* ===============================
   FORM STATES
   =============================== */

.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #198754; /* bootstrap success */
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: popIn 0.5s ease forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.icon-img{
  width: 40% !important;
}
.lazy-bg {
  background-color: #f4f4f4; /* placeholder */
  transition: opacity 0.4s ease;
  opacity: 0;
}

.lazy-bg.bg-loaded {
  opacity: 1;
}

/* =========================================================
   PRE-FOOTER CTA
   ========================================================= */
.prefooter-cta {
  background-color: var(--color-primary);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.prefooter-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.prefooter-heading {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.prefooter-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.btn-prefooter-cta {
  display: inline-block;
  background-color: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  letter-spacing: 0.2px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-prefooter-cta:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: #0f0f0f;
  color: rgba(255,255,255,0.85);
  padding: 72px 0 0;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-address {
  font-style: normal;
}

.footer-address p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  line-height: 1.65;
}

.footer-address a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-address a:hover {
  color: #fff;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  margin-top: 56px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
