/* ==========================================================================
   TOP HOMES — LUXURY OVERVIEW STYLESHEET
   Refined Architectural Digest Layout System for Overview Pages
   Applies to: dich-vu.html, du-an.html, goc-nhin.html
   ========================================================================== */

.overview-main {
  background: #faf8f5;
  color: #11141a;
  min-height: 100vh;
}

/* ==========================================================================
   1. HERO OVERVIEW BANNER
   ========================================================================== */
.overview-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 36vw, 480px);
  overflow: hidden;
  background: #121418;
}

.overview-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(0.92) contrast(1.05);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.overview-banner:hover img {
  transform: scale(1.025);
}

.overview-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 17, 21, 0.35) 0%,
    rgba(15, 17, 21, 0.1) 40%,
    rgba(15, 17, 21, 0.75) 100%
  );
  pointer-events: none;
}

.overview-banner-badge {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: rgba(18, 20, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 40px;
  color: #f1e5d3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.overview-banner-badge::before {
  content: '✦';
  color: #c5a059;
  font-size: 10px;
}

/* ==========================================================================
   2. OVERVIEW SHELL & HEADER
   ========================================================================== */
.overview-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px) 80px;
}

.overview-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.overview-heading > span {
  position: absolute;
  top: 0;
  scroll-margin-top: 100px;
}

.overview-heading-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9c7a3c;
  font-weight: 600;
}

.overview-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: #c5a059;
}

.overview-heading h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #11141a;
  margin: 0;
}

.overview-heading > p,
.overview-heading-desc {
  font-size: 16px;
  line-height: 1.85;
  color: #4b5563;
  max-width: 68ch;
  margin: 0;
  font-weight: 400;
}

/* ==========================================================================
   3. SECTION GROUPS & HEADINGS
   ========================================================================== */
.overview-group {
  padding: 60px 0 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scroll-margin-top: 96px;
}

.overview-group:last-of-type {
  border-bottom: none;
}

.overview-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.overview-group-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.overview-group-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  font-style: italic;
  color: #c5a059;
  letter-spacing: 0.05em;
  line-height: 1;
}

.overview-group-heading h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  color: #11141a;
  margin: 0;
  line-height: 1.2;
}

.overview-group-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #8c6b2d;
  text-decoration: none;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
  transition: all 0.25s ease;
}

.overview-group-direct-link:hover {
  color: #11141a;
  border-color: #11141a;
  transform: translateX(3px);
}

/* ==========================================================================
   4. PROJECT CARDS GRID & CARD SYSTEM
   ========================================================================== */
.category-project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 26px;
}

.category-project {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 12px 12px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.category-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(197, 160, 89, 0.45);
}

.category-project > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.category-project-banner {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f4;
}

.category-project-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-project:hover .category-project-banner img {
  transform: scale(1.05);
}

.category-project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 4px 4px;
  border-bottom: none;
  flex: 1;
}

.category-project-info > div {
  min-width: 0;
  flex: 1;
}

.category-project-info h2,
.overview-main .category-project-info h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  color: #11141a;
  margin: 0 0 6px;
  transition: color 0.25s ease;
}

.category-project:hover .category-project-info h2,
.category-project:hover .category-project-info h3 {
  color: #8c6b2d;
}

.category-project-info p {
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

.category-demo {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(197, 160, 89, 0.14);
  color: #8c6b2d;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-project-facts {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.category-project-facts > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.category-project-facts dt {
  color: #94a3b8;
  font-size: 11px;
}

.category-project-facts dd {
  margin: 0;
  color: #1e293b;
  font-weight: 500;
}

.category-project-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: #faf8f5;
  border-radius: 50%;
  font-size: 16px;
  color: #8c6b2d;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 2px;
}

.category-project:hover .category-project-arrow {
  background: #11141a;
  border-color: #11141a;
  color: #c5a059;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   5. SPECIAL STYLING FOR DECOR & PRODUCT CARDS
   ========================================================================== */
.product-card .category-project-banner {
  aspect-ratio: 1 / 1;
  background: #fbfbfb;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .category-project-banner img {
  object-fit: contain;
  max-height: 90%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.07));
}

.product-card .product-price {
  color: #8c6b2d;
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
}

/* ==========================================================================
   6. EDITORIAL JOURNAL OVERVIEW CARDS (goc-nhin.html)
   ========================================================================== */
.journal-overview-card .category-project-info {
  align-items: flex-start;
}

.journal-overview-card .category-project-info p {
  font-size: 13.5px;
  line-height: 1.75;
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  color: #4b5563;
  margin-top: 4px;
}

/* ==========================================================================
   7. NAVIGATION ACTION BUTTONS
   ========================================================================== */
.overview-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  min-width: 210px;
  height: 48px;
  padding: 0 30px;
  margin: 36px auto 0;
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.6);
  border-radius: 40px;
  color: #11141a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.overview-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #11141a;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.overview-more:hover::before {
  transform: translateY(0);
}

.overview-more span {
  position: relative;
  z-index: 1;
}

.overview-more:hover {
  color: #c5a059;
  border-color: #11141a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.overview-more:hover span[aria-hidden="true"] {
  transform: translate(3px, -3px);
  transition: transform 0.25s ease;
}

.overview-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .category-project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }
}

@media (max-width: 767px) {
  .overview-banner {
    height: 240px;
  }

  .overview-banner-badge {
    bottom: 20px;
    font-size: 10px;
    padding: 6px 16px;
  }

  .overview-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0 28px;
  }

  .overview-group {
    padding: 44px 0 32px;
  }

  .overview-group-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
  }

  .category-project-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .category-project-banner {
    aspect-ratio: 16 / 10;
  }

  .product-card .category-project-banner {
    aspect-ratio: 1 / 1;
  }

  .overview-shell {
    padding-bottom: 48px;
  }

  .overview-more {
    width: 100%;
    margin-top: 24px;
  }
}
