@charset "UTF-8";

/*
===============================================================================
玹翔旅遊｜V43 Enterprise Production
正式商業版 CSS｜Luxury Black Gold Design System

SYSTEM_VERSION：V43_Enterprise_Production
SYSTEM_OWNER：玹翔旅遊 Xuan Xiang Travel
ENVIRONMENT：Production
===============================================================================
*/
/* FILE：section-title.css */

/* =========================================================
   Xuan Xiang Travel
   Section Title
   V43_Enterprise_Production
========================================================= */

:root {
  --xx-title-color: #fff3c2;
  --xx-title-gold: #d8b56d;
  --xx-title-text: #d6ccb8;

  --xx-title-width: 980px;

  --xx-title-shadow:
    0 0 18px rgba(255, 240, 184, 0.18), 0 0 42px rgba(216, 181, 109, 0.1);
}

/* =========================================================
   Section Title
========================================================= */

.section-title {
  position: relative;

  width: min(92%, var(--xx-title-width));

  margin: 0 auto 72px;

  text-align: center;
}

/* =========================================================
   Accent Bar
========================================================= */

.section-title::before {
  content: "";

  display: block;

  width: 74px;
  height: 4px;

  margin: 0 auto 26px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    #fff0b8,
    var(--xx-title-gold),
    #fff0b8,
    transparent
  );

  box-shadow: 0 0 18px rgba(216, 181, 109, 0.45);
}

/* =========================================================
   Heading
========================================================= */

.section-title h2 {
  margin: 0;

  font-size: clamp(40px, 3vw, 60px);

  font-weight: 900;

  line-height: 1.15;

  letter-spacing: 0.04em;

  color: var(--xx-title-color);

  text-shadow: var(--xx-title-shadow);

  text-wrap: balance;
}

/* Gold Highlight */

.section-title h2 span {
  background: linear-gradient(180deg, #fff8dc, #f3d88d, #d8b56d);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

/* =========================================================
   Description
========================================================= */

.section-title p {
  margin: 18px auto 0;

  max-width: 760px;

  font-size: 18px;

  line-height: 1.95;

  letter-spacing: 0.03em;

  color: var(--xx-title-text);

  opacity: 0.92;

  text-wrap: pretty;
}

/* =========================================================
   Alignment Utilities
========================================================= */

.section-title.left {
  text-align: left;

  margin-left: 0;
}

.section-title.left::before {
  margin-left: 0;
}

.section-title.right {
  text-align: right;

  margin-right: 0;
}

.section-title.right::before {
  margin-left: auto;
  margin-right: 0;
}

/* =========================================================
   Dark Section Enhancement
========================================================= */

.dark-section .section-title h2,
.home-dark .section-title h2 {
  text-shadow:
    0 0 22px rgba(255, 240, 184, 0.2),
    0 0 55px rgba(216, 181, 109, 0.18);
}

/* =========================================================
   Animation Ready
========================================================= */

.section-title {
  opacity: 1;

  transform: translateY(0);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.section-title.is-hidden {
  opacity: 0;

  transform: translateY(40px);
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 980px) {
  .section-title {
    width: min(94%, var(--xx-title-width));

    margin: 0 auto 56px;
  }

  .section-title::before {
    width: 64px;

    margin-bottom: 22px;
  }

  .section-title h2 {
    font-size: clamp(34px, 5vw, 50px);
  }

  .section-title p {
    font-size: 17px;

    line-height: 1.9;
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {
  .section-title {
    width: min(94%, 100%);

    margin: 0 auto 46px;

    padding: 0 18px;
  }

  .section-title::before {
    width: 56px;

    height: 3px;

    margin-bottom: 18px;
  }

  .section-title h2 {
    font-size: clamp(30px, 8vw, 42px);

    line-height: 1.25;

    letter-spacing: 0.02em;
  }

  .section-title p {
    margin-top: 14px;

    font-size: 16px;

    line-height: 1.85;
  }
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {
  .section-title {
    margin-bottom: 40px;

    padding: 0 14px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .section-title p {
    font-size: 15px;

    line-height: 1.8;
  }
}
