/* ============================================================
   🌿 KWITHU FURNITURE — MAIN STYLESHEET
   Clean, consistent, and brand-aligned
   Author: AVAN Media
   ============================================================ */

/* ================== GLOBAL SETTINGS ================== */
*,
*::after,
*::before {
  box-sizing: border-box;
  transition: var(--transition);
  font-family: "Titillium Web", serif !important;
  /* border: var(--border); */
}

:root {
  --transition: all 0.2s ease-in-out;
  --border: 1px solid red;

  --accent-color-subtle: rgba(242, 128, 13, 0.1);
  --accent-color: #f2800d;
  --accent-color-hover: #e17306;

  --accent-dark: #252323;
  --accent-dark-hover: #1b1a1a;
  --accent-dark-subtle: rgba(37, 35, 35, 0.05);

  --accent-light: #f9f9f9;
}

/* ================== BASE ELEMENTS ================== */
body {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background: var(--accent-light) !important;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  color: var(--accent-dark);
}

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

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 0 !important;
  padding: 0 !important;
}

p {
  margin: 0 !important;
  padding: 0 !important;
}

.bi {
  display: inline-block;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: center;
  /* border: var(--border); */
}

.text-accent { color: var(--accent-color) !important; }
.text-accent-dark { color: var(--accent-dark) !important; }
.text-accent-light { color: var(--accent-light) !important; }

.text-gapped {
  text-transform: uppercase;
  font-weight: 800 !important;
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
}

.text-gapped-light {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
}

.text-gapped-small {
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.2rem;
}

/* =========================================
   ✅ Fix checkbox shape (force perfect square)
   ========================================= */
.form-check-input {
  max-width: 1.2em !important;
  max-height: 1.2em !important;
  border-radius: 4px !important; /* change to 0 if you want sharp corners */
  margin: 0.5em;
  padding: .8rem !important;
  cursor: pointer;
}

.form-check-input img {
  padding: .5rem;
}

.text-small { font-size: 0.85rem; }

/* ================== COLOR & BACKGROUND HELPERS ================== */
.bg-accent { background: var(--accent-color) !important; }
.bg-accent-dark { background: var(--accent-dark) !important; }
.bg-accent-dark p { color: var(--accent-light) !important; }
.bg-accent-light { background: var(--accent-light) !important; }
.bg-brown { background: #998573 !important; }

.bg-accent-gradient {
  background: linear-gradient(to right, var(--accent-color), rgb(239, 60, 90)) !important;
}

.border-accent { border-color: var(--accent-color) !important; }
.border-accent-dark { border-color: var(--accent-dark) !important; }

/* ================== NAVBAR ================== */
body > header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}

header#nav {
  background: var(--accent-light);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header#nav.sticky { 
  border-bottom: 1px solid #eee;
  background-color: var(--accent-light);
}

.logo > img {
  max-height: 4rem;
  width: auto !important;
  height: 100%;
  object-fit: fill;
}

.navbar-nav .nav-link {
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  display: inline-block;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color);
}

.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
  border-bottom: 2px solid var(--accent-color);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

#mobileNav .nav-link.active {
  color: var(--accent-color) !important;
}

@media (max-width: 768px) {
  header#nav {
    padding: 0.5rem 1rem !important;
  }

  .navbar-collapse {
    background: var(--accent-light);
    border-radius: 0.5rem;
    padding: 1rem 0;
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0 !important;
  }
}

/* ================== BUTTONS ================== */
.btn-outline-accent {
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}

.btn-outline-accent:hover {
  background: var(--accent-color) !important;
  color: var(--accent-light) !important;
}

.btn-outline-accent-dark {
  border-color: var(--accent-dark) !important;
  color: var(--accent-dark) !important;
}

.btn-outline-accent-dark:hover {
  background: var(--accent-dark) !important;
  color: var(--accent-light) !important;
}

.btn-accent {
  background: var(--accent-color) !important;
  color: var(--accent-light) !important;
}

.btn-accent:hover {
  background: var(--accent-color-hover) !important;
  color: var(--accent-light) !important;
}

.btn-outline-accent {
  border-color: var(--accent-color) !important;
  background: transparent !important;
  color: var(--accent-color) !important;
}

.btn-outline-accent:hover {
  background: var(--accent-color) !important;
  color: var(--accent-light) !important;
}

.btn-accent-dark {
  background: var(--accent-dark) !important;
  color: var(--accent-light) !important;
}

.btn-accent-dark:hover {
  background: var(--accent-dark-hover) !important;
  color: var(--accent-light) !important;
}

/* ================== FORMS ================== */
input, textarea, select {
  border: 1px solid #ddd;
  background: white;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.1rem var(--accent-color-hover);
}

/* Custom Grids */

.grid-box {
  align-self: center;
  justify-self: center;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1;
  transition: var(--transition);
}

.grids-2 {
  grid-template-columns: repeat(auto-fill, minmax(auto, calc(50% - 0.5rem)));
  gap: 1rem;
  justify-content: center;
}

.grids-2-wide {
  grid-template-columns: repeat(auto-fill, minmax(calc(50% - 1rem), 1fr));
  gap: 2rem;
  justify-content: center;
}

.grids-3-sm {
  grid-template-columns: repeat(
    auto-fill,
    minmax(18rem, calc(33.33% - 0.6rem))
  );
  gap: 0.9rem;
  justify-content: center;
}

.grids-3 {
  grid-template-columns: repeat(auto-fill, minmax(calc(33.33% - 0.6rem), 1fr));
  gap: 0.9rem;
  justify-content: center;
}

.grids-4 {
  grid-template-columns: repeat(auto-fill, minmax(14rem, calc(25% - 0.75rem)));
  gap: 1rem;
  justify-content: center;
}

.grids-5 {
  grid-template-columns: repeat(5, minmax(auto, 1fr));
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.grids-6 {
  grid-template-columns: repeat(6, minmax(auto, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.grids-6 img {
  object-fit: fill;
  width: 100%;
  height: auto;
}

/* ================== MISC ================== */
.trans-box { background: var(--accent-dark-subtle); }
.trans-box-alt { background: var(--accent-color-subtle); }

.tiny-img {
  max-width: 3rem;
  overflow: hidden;
  border-radius: 50%;
}

.small-img {
  max-width: 6rem;
  overflow: hidden;
  border-radius: 50%;
}

.img-auto {
  width: auto !important;
  height: auto !important;
}

/* ================== MAP ================== */
#location-map {
  position: relative;
  width: 100%;
  height: 30rem;
  overflow: hidden;
}

#location-map > iframe {
  width: 100%;
  height: 100%;
  border: 0 !important;
}

/* ================== SCROLL TO TOP ================== */
#scrollToTopBtn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent-dark);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#scrollToTopBtn:hover {
  background-color: var(--accent-dark-hover);
}

/* ================== TEAM ================== */
.team-info {
  bottom: 0;
  opacity: 0.9;
}

/* ================== UTILITIES ================== */
.container {
  max-width: 1200px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--accent-dark), transparent);
}

.dropdown-item.active {
  background: var(--accent-color) !important;
  color: white !important;
}

.full {
  width: 100% !important;
  height: 100% !important;
  inset: 0 !important;
}

.full img {
  width: 100% !important;
  height: 100% !important;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Custom active input colors and pagination styles */
input:active, textarea:active, select:active, input:focus, textarea:focus, select:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 0.1rem var(--accent-color-subtle) !important;
}

.page-item.active .page-link {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.page-link {
  color: var(--accent-dark);
}

.page-link:hover {
  color: var(--accent-color);
}

.page-item.active .page-link:hover {
  color: var(--accent-light) !important;
  background-color: var(--accent-color-hover) !important;
}

body.menu-open {
  overflow: hidden;
}
