@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ===================== Base ===================== */
:root {
  --primary: #3b5d50;
  --primary-dark: #314d43;
  --accent: #f9bf29;
  --bg: #eff2f1;
  --text: #6a6a6a;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  overflow-x: hidden;
  position: relative;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 28px;
  color: var(--text);
  font-size: 14px;
  background-color: var(--bg);
}

/* Links */
a {
  text-decoration: underline;
  color: #2f2f2f;
  transition: .3s all ease;
}
a:hover { text-decoration: none; color: #2f2f2f; }
a.more { font-weight: 600; }

/* ===================== NAVBAR ===================== */
/* Core navbar container (kept as custom to preserve theme overrides) */
.custom-navbar {
  background: var(--primary) !important;
  padding: 18px 0;
  transition: all 0.3s ease;
  z-index: 999;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Brand */
.navbar-brand {
  font-size: 1.8rem !important;
  letter-spacing: 1px;
}
.navbar-nav .nav-link {
  font-size: 1.1rem;
  font-weight: 500;
}
.custom-navbar .navbar-brand span { opacity: 0.4; }

/* Nav links */
.custom-navbar .custom-navbar-nav li { margin: 0 10px; }
.custom-navbar .custom-navbar-nav li a {
  position: relative;
  font-weight: 500;
  color: var(--white) !important;
  opacity: 0.7;
  text-decoration: none;
  transition: all 0.3s ease;
  padding-bottom: 4px;
}

/* Hover underline effect */
.custom-navbar .custom-navbar-nav li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--accent);
  width: 0;
  opacity: 1;
  visibility: visible;
  transition: width 0.2s ease-out;
}
.custom-navbar .custom-navbar-nav li a:hover { opacity: 1; }
.custom-navbar .custom-navbar-nav li a:hover::after { width: calc(100% - 16px); }

/* Active state */
.custom-navbar .custom-navbar-nav li.active a { opacity: 1; }
.custom-navbar .custom-navbar-nav li.active a::after { width: calc(100% - 16px); }

/* Cart area */
.custom-navbar .custom-navbar-cta {
  margin-left: 0 !important;
  display: flex;
  align-items: center;
  gap: 15px;
}
@media (min-width: 768px) {
  .custom-navbar .custom-navbar-cta { margin-left: 40px !important; }
}
.custom-navbar .custom-navbar-cta li { position: relative; }
.custom-navbar .custom-navbar-cta li img {
  width: 22px;
  filter: brightness(100%) invert(0);
  transition: transform 0.3s ease;
}
.custom-navbar .custom-navbar-cta li img:hover { transform: scale(1.1); }

/* badge cart */
#cart-count {
  font-size: 10px;
  position: absolute;
  top: 0;
  right: -5px;
  transform: translate(50%, -50%);
}

/* ===== NAVBAR MOBILE FIXES =====
   Ensure toggler icon visible and collapse area styled for mobile.
   These do not change core colors, only guarantee visibility & smoothness. */
.navbar-toggler {
  transform: scale(1.3);
}
.navbar-dark .navbar-toggler-icon {
  /* white hamburger icon (data URI) to ensure visibility on dark bg */
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-collapse {
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

/* Mobile-specific navbar (kept consistent with original theme) */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #2e5d50;
    padding: 1rem;
    border-radius: 10px;
  }

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


/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("../images/bg2.png") center center / cover no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 2rem;
}
.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(60%);
}
.hero .intro-excerpt { position: relative; z-index: 2; max-width: 550px; }
.hero h1 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.2;
}
.hero p {
  color: rgba(255,255,255,0.932);
  font-size: clamp(0.8rem, 4vw, 1.9rem);
  margin-bottom: 1rem;
  line-height: 1.5;
}
@media (min-width: 992px) {
  .hero { padding-left: 6rem; padding-right: 6rem; }
  .hero .intro-excerpt { max-width: 500px; }
}
@media (max-width: 767.98px) {
  .hero { background-attachment: scroll; padding: 0 1.5rem; }
  .hero .intro-excerpt { max-width: 100%; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
}

/* === WHY CHOOSE SECTION === */
.why-choose-section {
  overflow: visible !important;
}

.why-choose-section .row.align-items-stretch {
  align-items: flex-start !important;
}

/* Gambar kiri */
.why-choose-section .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.why-choose-section .img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.why-choose-section .img-wrap img.active {
  opacity: 1;
  position: relative;
}

/* Kontainer teks */
.why-choose-section .col-12.col-lg-7 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto !important;
  overflow: visible !important;
}

/* Fitur 2 kolom × 2 baris */
.why-choose-section .row.g-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.why-choose-section .feature {
  flex: 0 0 calc(50% - 0.5rem);
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: auto !important;
  min-height: 120px;
  transition: all 0.3s ease;
}

.why-choose-section .feature:hover {
  transform: translateY(-3px);
}

/* Responsif di HP */
@media (max-width: 576px) {
  .why-choose-section .feature {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 0.8rem;
  }

  .why-choose-section h6 {
    font-size: 0.9rem;
  }

  .why-choose-section p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .why-choose-section .img-wrap img {
    height: auto;
  }
}


/* Carousel fade helpers (kept from original) */
.hero .hero-img-wrap .carousel { position: relative; overflow: hidden; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); z-index: 3; }
.hero .hero-img-wrap .carousel-inner img { width: 100%; height: auto; border-radius: 20px; object-fit: cover; display: block; position: relative; }
.carousel.carousel-fade .carousel-item { opacity: 0; transition: opacity 1s ease-in-out; }
.carousel.carousel-fade .carousel-item.active,
.carousel.carousel-fade .carousel-item-next.carousel-item-start,
.carousel.carousel-fade .carousel-item-prev.carousel-item-end { opacity: 1; z-index: 2; }
.carousel.carousel-fade .active.carousel-item-start,
.carousel.carousel-fade .active.carousel-item-end { transition: none; opacity: 0; z-index: 1; }
.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon { filter: invert(1) brightness(1.4); }
.hero .carousel-control-prev,
.hero .carousel-control-next { width: 10%; }

/* ===================== BUTTONS ===================== */
.btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  color: #fff;
  background: #2f2f2f;
  border-color: #2f2f2f;
  transition: background .2s ease;
}
.btn:hover { background: #222; color: #fff; border-color: #222; }
.btn:active, .btn:focus { outline: none !important; box-shadow: none; }
.btn.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.btn-secondary { color: #2f2f2f; background: var(--accent); border-color: var(--accent); }
.btn.btn-secondary:hover { background: #f8b810; border-color: #f8b810; }
.btn.btn-white-outline { background: transparent; border-width: 2px; border-color: rgba(255,255,255,0.3); }
.btn.btn-white-outline:hover { border-color: #fff; color: #fff; }

/* ===================== PRODUCT SECTION ===================== */
.section-title { color: #2f2f2f; }

.product-section {
  padding: 7rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.product-section .product-item {
  text-align: center;
  display: block;
  position: relative;
  padding-bottom: 50px;
  cursor: pointer;
}
.product-section .product-item .product-thumbnail {
  margin-bottom: 30px;
  position: relative;
  top: 0;
  transition: .3s all ease;
}
.product-section .product-item h3 { font-weight: 600; font-size: 16px; color: #2f2f2f; }
.product-section .product-item strong { font-weight: 800 !important; font-size: 18px !important; color: #2f2f2f; }

/* hover reveal background & lift */
.product-section .product-item:before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #dce5e4;
  height: 0%;
  z-index: -1;
  border-radius: 10px;
  transition: .3s all ease;
}
.product-section .product-item:hover .product-thumbnail { top: -25px; }
.product-section .product-item:hover:before { height: 70%; }

/* Responsive untuk product section */
@media (max-width: 767px) {
  .product-section .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .product-section .row {
    margin-left: 0;
    margin-right: 0;
  }
  .product-section .col-md-12.col-lg-3,
  .product-section .col-12.col-md-4.col-lg-3 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===================== FEATURE (WHY CHOOSE) ===================== */
.feature { text-align: center; margin-bottom: 30px; }
.feature .icon { display: inline-block; position: relative; margin-bottom: 20px; }
.feature .icon:before {
  content: "";
  width: 33px; height: 33px;
  position: absolute;
  background: rgba(59,93,80,0.2);
  border-radius: 50%;
  right: -8px; bottom: 0;
}
.feature h3 { font-size: 20px; color: #2f2f2f; }
.feature p { font-size: 16px; line-height: 22px; color: var(--text); }

/* ===================== WE HELP GRID ===================== */
.we-help-section {
  padding: 7rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.we-help-section .imgs-grid:before {
  position: absolute;
  content: "";
  width: 255px; height: 217px;
  background-image: url("../images/dots-green.svg");
  background-size: contain; background-repeat: no-repeat;
  transform: translate(-40%, -40%);
  z-index: -1;
}
.we-help-section .imgs-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: masonry;
  gap: 20px;
  padding: 20px;
  position: relative;
  background-color: #f9fbfb;
  border-radius: 24px;
}
.we-help-section .imgs-grid .grid {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease-in-out;
}
.we-help-section .imgs-grid .grid img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.we-help-section .imgs-grid .grid:hover img { transform: scale(1.05); filter: brightness(105%) saturate(110%); }

/* grid placements (kept original spans) */
.we-help-section .imgs-grid .grid.grid-1 { grid-column: span 6; grid-row: span 4; }
.we-help-section .imgs-grid .grid.grid-2 { grid-column: span 6; grid-row: span 3; }
.we-help-section .imgs-grid .grid.grid-3 { grid-column: span 6; grid-row: span 4; }
.we-help-section .imgs-grid .grid.grid-4 { grid-column: span 6; grid-row: span 5; }

@media (max-width: 767px) {
  .we-help-section .imgs-grid { grid-template-columns: 1fr; }
}

/* ===================== LOCATION LIST ===================== */
.custom-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  font-size: 30px;
  color: #333;
}
.custom-list li {
  background: #f8f9fa;
  border-left: 5px solid #0b0b0b;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.custom-list li:hover { background: #e6f0ff; transform: translateX(5px); }
.custom-list li strong { display: block; font-size: 20px; color: #111; }
.custom-list li br { line-height: 2; }
@media (max-width: 768px) {
  .custom-list { font-size: 14px; }
  .custom-list li { padding: 12px 15px; }
}

/* ===================== POPULAR PRODUCT SMALL ===================== */
.popular-product {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.popular-product .product-item-sm { display: flex; align-items: center; }
.popular-product .product-item-sm .thumbnail { flex: 0 0 150px; position: relative; margin-right: 15px; }
.popular-product .product-item-sm .thumbnail img { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; }
.popular-product .product-item-sm .thumbnail:before { width: 140px; height: 140px; border-radius: 18px; background: #dce5e4; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; }
@media (max-width: 768px) {
  .popular-product .product-item-sm { flex-direction: column; text-align: center; }
  .popular-product .product-item-sm .thumbnail { margin: 0 0 10px 0; flex: 0 0 auto; }
  .popular-product .product-item-sm .thumbnail img { width: 120px; height: 120px; }
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-section {
  padding: 3rem 0 7rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.testimonial-slider-wrap { position: relative; }
.testimonial-slider-wrap .tns-inner { padding-top: 30px; }
.testimonial-slider-wrap .item .testimonial-block blockquote { font-size: 16px; }
@media (min-width: 768px) {
  .testimonial-slider-wrap .item .testimonial-block blockquote { line-height: 32px; font-size: 18px; }
}
.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic { margin-bottom: 20px; }
.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic img { max-width: 80px; border-radius: 50%; }
.testimonial-slider-wrap .item .testimonial-block .author-info h3 { font-size: 14px; font-weight: 700; color: #2f2f2f; margin-bottom: 0; }

/* testimonial nav */
.testimonial-slider-wrap #testimonial-nav { position: absolute; top: 50%; z-index: 99; width: 100%; display: none; }
@media (min-width: 768px) { .testimonial-slider-wrap #testimonial-nav { display: block; } }
.testimonial-slider-wrap #testimonial-nav > span {
  cursor: pointer;
  position: absolute;
  width: 58px; height: 58px; line-height: 58px;
  border-radius: 50%;
  background: rgba(59,93,80,0.1);
  color: #2f2f2f;
  transition: .3s all ease;
}
.testimonial-slider-wrap #testimonial-nav > span:hover { background: var(--primary); color: #fff; }
.testimonial-slider-wrap #testimonial-nav .prev { left: -10px; }
.testimonial-slider-wrap #testimonial-nav .next { right: 0; }

/* tns nav dots */
.testimonial-slider-wrap .tns-nav { position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); }
.testimonial-slider-wrap .tns-nav button { background: none; border: none; position: relative; width: 0 !important; height: 7px !important; margin: 2px; }
.testimonial-slider-wrap .tns-nav button:before {
  content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; transition: .3s; background-color: #d6d6d6;
}
.testimonial-slider-wrap .tns-nav button:hover:before,
.testimonial-slider-wrap .tns-nav button.tns-nav-active:before { background-color: var(--primary); }

/* ===================== BLOG / POST ===================== */
.before-footer-section { padding: 7rem 0 12rem 0 !important; }
.blog-section {
  padding: 7rem 0 12rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.blog-section .post-entry a { text-decoration: none; }
.blog-section .post-entry .post-thumbnail { display: block; margin-bottom: 20px; }
.blog-section .post-entry .post-thumbnail img { border-radius: 20px; transition: .3s all ease; }
.blog-section .post-entry .post-content-entry { padding-left: 15px; padding-right: 15px; }
.blog-section .post-entry .post-content-entry h3 { font-size: 16px; margin-bottom: 7px; font-weight: 600; }
.blog-section .post-entry .post-content-entry .meta { font-size: 14px; }
.blog-section .post-entry .post-content-entry .meta a { font-weight: 600; }
.blog-section .post-entry:hover .post-thumbnail img,
.blog-section .post-entry:focus .post-thumbnail img { opacity: .7; }

/* Make first post larger visually (kept original effect) */
.blog-section .post-entry:first-child { flex: 0 0 120%; max-width: 120%; margin: 0 auto; }
.blog-section .post-entry:first-child .post-thumbnail img {
  width: 100%; height: auto; transform: scale(1.08); border-radius: 24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.blog-section .post-entry:first-child:hover .post-thumbnail img {
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(249,191,41,0.5);
}
@media (max-width: 768px) {
  .blog-section .post-entry:first-child { flex: 0 0 100%; max-width: 100%; }
  .blog-section .post-entry:first-child .post-thumbnail img { transform: scale(1.03); }
}

/* ===================== FOOTER ===================== */
.footer-section { padding: 80px 0; background: #fff; }
.footer-section .relative { position: relative; }
.footer-section a { text-decoration: none; color: #2f2f2f; transition: .3s; }
.footer-section a:hover { color: rgba(47,47,47,0.5); }
.footer-section .subscription-form { margin-bottom: 40px; position: relative; z-index: 2; margin-top: 100px; }
@media (min-width: 992px) { .footer-section .subscription-form { margin-top: 0; margin-bottom: 80px; } }
.footer-section .subscription-form h3 { font-size: 18px; font-weight: 500; color: var(--primary); }
.footer-section .subscription-form .form-control {
  height: 50px; border-radius: 10px; font-family: "Inter", sans-serif;
  box-shadow: none;
}
.footer-section .subscription-form .form-control:focus { border-color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.footer-section .subscription-form .btn { border-radius: 10px !important; }

.footer-section .sofa-img { position: absolute; top: -200px; z-index: 1; right: 0; }
.footer-section .sofa-img img { max-width: 380px; }

.footer-section .footer-logo-wrap .footer-logo { font-size: 32px; font-weight: 500; text-decoration: none; color: var(--primary); }
.footer-section .custom-social li { margin: 2px; display: inline-block; }
.footer-section .custom-social li a {
  width: 40px; height: 40px; text-align: center; line-height: 40px; display: inline-block;
  background: #dce5e4; color: var(--primary); border-radius: 50%;
}
.footer-section .custom-social li a:hover { background: var(--primary); color: #fff; }
.footer-section .border-top { border-color: #dce5e4; }
.footer-section .border-top.copyright { font-size: 14px !important; }

/* ===================== FORM CONTROLS, TABLES, UTILITIES ===================== */
.untree_co-section { padding: 7rem 0; }
.form-control {
  height: 50px; border-radius: 10px; font-family: "Inter", sans-serif;
  box-shadow: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
textarea { height: auto !important; }

.site-blocks-table { overflow: auto; }
.site-blocks-table .product-thumbnail { width: 200px; }
.site-blocks-table .btn { padding: 2px 10px; background: none !important; color: #000; border: none; height: auto !important; }
.site-blocks-table thead th {
  padding: 30px; text-align: center; border-width: 0 !important; vertical-align: middle;
  color: rgba(0,0,0,0.8); font-size: 18px;
}
.site-blocks-table td { padding: 20px; text-align: center; vertical-align: middle; color: rgba(0,0,0,0.8); }
.site-blocks-table tbody tr:first-child td { border-top: 1px solid var(--primary) !important; }

/* order table */
.site-block-order-table th { border-top: none !important; border-bottom-width: 1px !important; }
.site-block-order-table td, .site-block-order-table th { color: #000; }

/* coupon input */
.couponcode-wrap input { border-radius: 10px !important; }

/* text primary */
.text-primary { color: var(--primary) !important; }

/* thankyou icon */
.thankyou-icon { position: relative; color: var(--primary); }
.thankyou-icon:before { position: absolute; content: ""; width: 50px; height: 50px; border-radius: 50%; background: rgba(59,93,80,0.2); }

/* ===================== ENLARGEABLE / LIGHTBOX ===================== */
.enlargeable {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
  border-radius: 20px;
}
.enlargeable.active {
  transform: scale(1.6); z-index: 1000; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.4); cursor: zoom-out;
}
@media (max-width: 768px) { .enlargeable.active { transform: scale(1.2); } }

#lightbox-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
  display: none; justify-content: center; align-items: center; z-index: 9999;
}
#lightbox-overlay img {
  max-width: 90%; max-height: 90%; border-radius: 12px; box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transition: transform 0.3s ease;
}
#lightbox-close {
  position: absolute; top: 20px; right: 40px; font-size: 2rem; color: #fff; cursor: pointer; transition: 0.3s;
}
#lightbox-close:hover { color: #ff6666; }

/* ===================== MISC ===================== */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
