/* =====================================================================
   DOVA ECOTECH - SECTIONS.CSS
   Section-specific styling: Hero, Story, Collection, Tech, Journal, Join
   ===================================================================== */

/* ---------------------------------------------------------------------
   SECTION 01 - HERO / BRAND INTRODUCTION
   --------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--ivory);
}

/* Nền tối phía bên phải làm nổi bật 3D, cắt xéo an toàn không bao giờ chạm vào văn bản */
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 44vw;
  min-width: 380px;
  max-width: 50vw;
  height: 100%;
  background: linear-gradient(135deg, #24140C 0%, #150B07 100%);
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-content {
  max-width: 560px;
  color: var(--chocolate);
  position: relative;
  z-index: 6;
}

.hero-slogan {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  color: var(--caramel);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  display: block;
}

.hero-headline {
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--chocolate);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
  color: var(--cocoa);
  margin-bottom: 2.25rem;
  max-width: 510px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  position: relative;
  z-index: 6;
}

.hero-cta-group .btn-secondary {
  background: rgba(246, 239, 224, 0.9);
  color: var(--chocolate);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.hero-cta-group .btn-secondary:hover {
  background: var(--parchment);
  color: var(--caramel);
  border-color: var(--caramel);
}

.hero-canvas-container {
  position: relative;
  width: 100%;
  height: clamp(480px, 68vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-3d-canvas {
  width: 100%;
  height: 100%;
  outline: none;
  display: block;
}

.hero-canvas-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.hero-canvas-fallback img {
  max-height: 90%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-canvas-overlay-tag {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   SECTION 02 - OUR STORY
   --------------------------------------------------------------------- */
.story-header-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(3.5rem, 6vw, 5.5rem);
}

.story-header-center .section-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 1.25rem;
}

.story-header-center .section-subtitle {
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.88;
}

/* 4 Chapters with Progress Indicator */
.story-chapters-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 10vw, 9rem);
}

.chapter-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.chapter-item.reverse {
  direction: rtl;
}

.chapter-item.reverse > * {
  direction: ltr;
}

.chapter-img-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(176, 141, 87, 0.3);
  background-color: var(--espresso);
}

.chapter-img-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 1.2s var(--ease-smooth);
}

.chapter-item:hover .chapter-img-box img {
  transform: scale(1.03);
}

.chapter-num-badge {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--caramel);
  margin-bottom: 0.75rem;
  display: block;
}

.chapter-title {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.chapter-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Core Values 3-card Grid */
.core-values-section {
  margin-top: clamp(5rem, 9vw, 8rem);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

/* ---------------------------------------------------------------------
   SECTION 04 - PRODUCT COLLECTION
   --------------------------------------------------------------------- */
.collection-product-block {
  margin-bottom: clamp(5rem, 10vw, 8.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
}

.collection-product-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

.product-viewer-wrap {
  position: relative;
  background: radial-gradient(circle at center, rgba(181, 113, 47, 0.12) 0%, rgba(26, 15, 10, 0.05) 70%);
  border-radius: 18px;
  border: 1px solid rgba(176, 141, 87, 0.25);
  padding: 1.5rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-dark .product-viewer-wrap {
  background: radial-gradient(circle at center, rgba(181, 113, 47, 0.18) 0%, rgba(20, 11, 7, 0.6) 80%);
}

.product-canvas-holder {
  width: 100%;
  height: 380px;
  position: relative;
}

.product-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  z-index: 5;
}

.btn-rotate-hint {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Detail Staggered 3-Image Grid */
.detail-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.detail-photo-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.25);
  background-color: var(--espresso);
  aspect-ratio: 1/1;
}

.detail-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.detail-photo-card:hover img {
  transform: scale(1.08);
}

.detail-photo-caption {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  text-align: center;
  color: var(--caramel);
}

/* Product Specs Table */
.specs-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.specs-table tr {
  border-bottom: 1px solid rgba(176, 141, 87, 0.2);
}

.specs-table td {
  padding: 0.65rem 0;
}

.specs-table td:first-child {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel);
  width: 38%;
}

.specs-table td:last-child {
  color: inherit;
  opacity: 0.92;
}

.badge-pending {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(176, 141, 87, 0.15);
  color: var(--caramel);
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  border: 1px dashed var(--gold);
}

/* Feature List with Icons */
.feature-checklist {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-check-icon {
  width: 20px;
  height: 20px;
  color: var(--caramel);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------------------------------------------------------------------
   SECTION 05 - TECHNOLOGY & MATERIAL (EXPLODED VIEW)
   --------------------------------------------------------------------- */
.tech-interactive-wrapper {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(circle at center, #23140C 0%, #150B07 100%);
  border: 1px solid rgba(176, 141, 87, 0.35);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  overflow: visible;
  color: var(--ivory);
}

.tech-grid-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.tech-explode-stage {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

#tech-explode-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

/* Tech Stage DOM Fallback / Visual Layers */
.tech-layers-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.layer-slice-item {
  position: relative;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: rgba(43, 26, 18, 0.75);
  border: 1px solid rgba(176, 141, 87, 0.35);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.layer-slice-item:hover {
  border-color: var(--sand);
  background: rgba(55, 33, 22, 0.82);
}

.layer-slice-item.active {
  border-color: var(--caramel-lt);
  box-shadow: 0 0 24px rgba(214, 154, 75, 0.4);
  background: rgba(74, 44, 28, 0.9);
  transform: scale(1.02);
}

.layer-slice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
}

.layer-slice-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ivory);
}

.layer-slice-tag {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-lt);
}

.layer-slice-item[data-layer="2"] .layer-slice-tag {
  padding-right: 1.5rem;
}

.layer-slice-desc {
  font-size: 0.86rem;
  color: var(--aged);
  line-height: 1.5;
}

.layer-ping-wave {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--caramel-lt);
  box-shadow: 0 0 0 0 rgba(214, 154, 75, 0.7);
  animation: pingPulse 2s infinite cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   SECTION 07 - JOURNAL LISTING & DETAIL
   --------------------------------------------------------------------- */
.journal-magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.journal-hero-article {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1.25fr;
  background-color: var(--ivory);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--aged);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--chocolate);
  margin-bottom: 2rem;
  max-height: 420px;
}

.journal-hero-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.journal-hero-img-box {
  position: relative;
  height: 100%;
  min-height: 300px;
  max-height: 420px;
  background-color: #171513;
  overflow: hidden;
}

.journal-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform var(--transition-slow);
}

.journal-hero-article:hover .journal-hero-img-box img {
  transform: scale(1.04);
}

.journal-hero-body {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.journal-hero-title {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.journal-grid-item {
  grid-column: span 4;
}

/* Single Journal Article Page */
.article-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.article-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.article-lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--cocoa);
  font-style: italic;
  margin-bottom: 2rem;
}

.article-featured-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--aged);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.article-content-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-content-body h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content-body blockquote {
  border-left: 3px solid var(--caramel);
  padding-left: 1.5rem;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cocoa);
  margin: 2rem 0;
}

/* ---------------------------------------------------------------------
   SECTION 08 - JOIN THE JOURNEY
   --------------------------------------------------------------------- */
.join-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.join-slogan {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  color: var(--caramel);
  margin-bottom: 0.5rem;
}
