/*======================================================================
   1. Base Configuration
======================================================================*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #777777;
  -webkit-font-smoothing: antialiased;
}

/*======================================================================
   2. Hero Section
======================================================================*/
.hero-section {
  height: 100vh;
  min-height: 550px;
  background-image: url("/assets/images/methodologie-hero.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10% 10% 6%;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(6.08rem, 5.5vw, 7.68rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/*======================================================================
   3. Section 
======================================================================*/
.content-section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.content-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.main-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(4.0rem, 5.0vw, 5.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #777777;
  margin-bottom: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
}

.erp-tag {
  color: #ee0e19;
  font-size: 0.40em;
  font-weight: 400;
  margin-left: 2px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8%;
  align-items: start;
}

.text-column {
  max-width: 460px;
  align-self: end;
}

.text-column p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.92rem, 1.05vw, 2.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: #777777;
  margin-bottom: 30px;
}

.text-column p:last-child {
  margin-bottom: 0;
}

.text-column p strong {
  font-weight: 600;
  color: #777777;
}

.image-column {
  width: calc(100% + max(5vw, (99vw - 1200px) / 2));
}

.image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/*======================================================================
   Section 2
======================================================================*/
.methodology-section {
  background-color: #f8f9fa;
  padding: clamp(60px, 8vw, 100px) 0;
}

.text-blocks-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(50px, 6vw, 80px);
}

.text-block-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.block-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(4.0rem, 4.0vw, 5.6rem);
  font-weight: 400;
  color: #4b4b4b;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-block-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.92rem, 1.05vw, 2.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: #777777;
}

.text-block-item p.highlight-text {
  margin-top: 10px;
  font-size: clamp(2.01rem, 1.20vw, 2.25rem);
}

/*======================================================================
   Section 3
======================================================================*/
.image-overlay-section {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background-image: url("/assets/images/methodologie-banner.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: start;
  justify-content: flex-end;
  padding: 8%;
}

.overlay-title {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  text-align: right;
  font-size: clamp(4.8rem, 6.5vw, 9.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.overlay-subtitle {
  font-weight: 700;
  font-size: 0.85em;
}

/*======================================================================
   Section 4
======================================================================*/
.dictionary-section {
  padding: clamp(60px, 8vw, 120px) 0;
  background-color: #f8f8f8;
}

.dict-header {
  max-width: 1200px;
  margin-bottom: 40px;
}

.dict-main-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(4.0rem, 5.0vw, 5.6rem);
  font-weight: 400;
  color: #c0c0c0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dict-divider {
  width: 360px;
  height: 2px;
  background-color: #c0c0c0;
  margin: 25px 0;
}

.dict-etymology {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.92rem, 1.5vw, 2.08rem);
  font-weight: 400;
  line-height: 1.6;
  color: #c0c0c0;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.dict-body {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
  margin-bottom: clamp(50px, 7vw, 90px);
}

.dict-body p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.84rem, 1.1vw, 2.08rem);
  font-weight: 400;
  line-height: 1.7;
  color: #4b4b4b;
}

.dict-body p strong {
  font-weight: 600;
  color: #4b4b4b;
}

.highlight-banner {
  position: relative;
  background-color: #d8d5cf;
  padding: clamp(40px, 5vw, 60px) 0;
  margin-bottom: clamp(50px, 7vw, 90px);
}

.banner-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.56rem, 1.5vw, 3.04rem);
  font-weight: 500;
  line-height: 1.6;
  color: #777777;
}

.banner-text strong {
  font-weight: 800;
  color: #777777;
}

.pillars-wrapper {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 70px);
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pillar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3.52rem, 4.0vw, 4.0rem);
  font-weight: 400;
  color: #4b4b4b;
  letter-spacing: 0.05em;
}

.pillar-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.92rem, 1vw, 2.56rem);
  font-weight: 700;
  color: #777777;
  letter-spacing: -0.01em;
}

.pillar-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.76rem, 1.05vw, 2.0rem);
  font-weight: 400;
  line-height: 1.7;
  color: #777777;
}

/*======================================================================
   Section 5
======================================================================*/
.product-modeling-section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.modeling-header, .carousel-header {
  max-width: 1200px;
  margin: 0 auto clamp(40px, 6vw, 70px) auto;
  text-align: center;
}

.modeling-title, .carousel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(4.48rem, 5.0vw, 6.72rem);
  font-weight: 700;
  color: #4b4b4b;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
}

.modeling-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.76rem, 1.25vw, 2.16rem);
  font-weight: 400;
  color: #777777;
  line-height: 1.5;
}

.diagram-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block;
}

.diagram-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.image-overlay-text {
  display: block;
  position: absolute;
  bottom: clamp(20px, 5vw, 45px);
  right: clamp(20px, 5vw, 45px);
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-size: clamp(2.88rem, 4.2vw, 6.08rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: right;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/*======================================================================
   Modern Fade-In Styles
======================================================================*/
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.0s cubic-bezier(0.215, 0.610, 0.355, 1.000),
    transform 1.0s cubic-bezier(0.215, 0.610, 0.355, 1.000);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.text-column p:nth-child(2) {
  transition-delay: 0.15s;
}

.text-column p:nth-child(3) {
  transition-delay: 0.3s;
}

.text-blocks-wrapper .text-block-item:nth-child(2) {
  transition-delay: 0.2s;
}

.text-blocks-wrapper .text-block-item:nth-child(3) {
  transition-delay: 0.4s;
}

.dict-body p:nth-child(2) {
  transition-delay: 0.2s;
}

.pillars-wrapper .pillar-item:nth-child(2) {
  transition-delay: 0.2s;
}

.pillars-wrapper .pillar-item:nth-child(3) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/*======================================================================
   Responsive
======================================================================*/
@media (max-width: 992px) {

  .hero-section,
  .image-overlay-section {
    height: 75vh;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .text-column {
    max-width: 100%;
    align-self: start;
  }

  .image-column {
    width: 100%;
  }

  .main-heading {
    margin-bottom: 40px;
  }

  .image-overlay-section {
    padding: 15% 6%;
  }

  .highlight-banner {
    padding: 40px 0;
  }

  .product-modeling-section {
    padding: 60px 0;
  }

  .diagram-wrapper {
    max-width: 100%;
    padding: 0 5%;
  }

  .image-overlay-text {
    font-size: clamp(4.8rem, 4.5vw, 6.08rem);
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 100vh;
    align-items: start;
    justify-content: center;
  }

  .hero-container {
    padding: 15% 6% 10% 6%;
    display: flex;
    justify-content: center;
  }

  .hero-title {
    text-align: left;
    width: 100%;
    font-size: clamp(4.48rem, 5.5vw, 7.68rem);
  }

  .methodology-section {
    padding: 60px 0;
  }

  .image-overlay-section {
    height: 70vh;
    min-height: 400px;
    padding: 15% 6%;
    justify-content: center;
  }

  .overlay-title {
    text-align: center;
    width: 100%;
    font-size: clamp(4.32rem, 5.5vw, 7.2rem);
  }

  .dict-divider {
    margin: 15px 0;
  }

  .pillars-wrapper {
    gap: 45px;
  }

  .image-overlay-text {
    font-size: clamp(3.52rem, 4.2vw, 6.08rem);
  }

  .pillar-subtext {
    display: block;
    margin-top: 5px;
  }
}

@media (max-width: 380px) {
  .content-container {
    width: 88%;
  }

  .hero-container {
    padding: 15% 4% 8% 4%;
    display: flex;
    justify-content: center;
  }

  .hero-title {
    font-size: 4.0rem;
    line-height: 1.2;
  }

  .main-heading {
    font-size: 2.88rem !important;
    line-height: 1.3;
  }

  .block-title {
    font-size: 2.56rem !important;
    line-height: 1.25;
  }

  .image-overlay-section {
    min-height: 320px;
    padding: 12% 6% !important;
  }

  .overlay-title {
    font-size: 3.52rem !important;
    line-height: 1.1;
  }

  .dict-main-title {
    font-size: 4.48rem !important;
  }

  .dict-divider {
    width: 100px;
  }

  .highlight-banner {
    padding: 30px 0;
  }

  .banner-text {
    font-size: 1.76rem !important;
    line-height: 1.5;
  }

  .pillar-title {
    font-size: 2.4rem !important;
  }

  .pillar-subtitle {
    font-size: 1.52rem !important;
  }

  .modeling-title, .carousel-title {
    font-size: 3.00rem !important;
  }

  .diagram-wrapper {
    padding: 0 2% !important;
  }

  .image-overlay-text {
    font-size: 3.2rem !important;
    bottom: 15px !important;
    right: 15px !important;
  }
}