/* Global Custom Properties for Breakpoints and Transitions */
:root {
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* Grid utilities */
.grid-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.column {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.xsmall-12 { width: 100%; }

@media (min-width: 1200px) {
    .xlarge-10 { width: 83.33333%; }
    .offset-xlarge-1 { margin-left: 8.33333%; }
}

/* Navigation */
.el-NavBarTransparentOverlayAlt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 40px 0;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.el-NavBarTransparentOverlayAlt__contentColumn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.el-NavBarTransparentOverlayAlt__leftNav,
.el-NavBarTransparentOverlayAlt__rightNav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .el-NavBarTransparentOverlayAlt__leftNav,
    .el-NavBarTransparentOverlayAlt__rightNav {
        display: flex;
        margin: 0 60px;
    }
}

.el-NavBarTransparentOverlayAlt__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.el-NavBarTransparentOverlayAlt__link {
    color: #fffcf5;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    transition: opacity 0.3s;
    position: relative;
}

.el-NavBarTransparentOverlayAlt__link::after {
    content: '';
    position: absolute;
    width: calc(100% - 40px);
    height: 1px;
    bottom: 5px;
    left: 20px;
    background-color: #fffcf5;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.el-NavBarTransparentOverlayAlt__link:hover::after {
    transform: scaleX(1);
}

.el-NavBarTransparentOverlayAlt__link:hover {
    opacity: 0.8;
}

.el-NavBarTransparentOverlayAlt__hamburgerWrapper {
    position: fixed;
    right: 24px;
    top: 40px;
    z-index: 1001;
}

.el-NavBarTransparentOverlayAlt__hamburger {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    display: block;
}

.el-NavBarTransparentOverlayAlt__hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fffcf5;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    pointer-events: none;
}

.el-NavBarTransparentOverlayAlt__hamburger span:nth-child(1) { top: 0px; }
.el-NavBarTransparentOverlayAlt__hamburger span:nth-child(2) { top: 10px; }
.el-NavBarTransparentOverlayAlt__hamburger span:nth-child(3) { top: 20px; }

/* Overlay Menu */
.comp-NavOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(43, 55, 71, 0.95);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.comp-NavOverlay.is-active {
    opacity: 1;
    visibility: visible;
}

.comp-NavOverlay__navBar {
    position: relative;
    padding: 20px;
    padding-left: 8.33333%;
    z-index: 1100;
}

.comp-NavOverlay__logo {
    position: relative;
    display: inline-block;
}

.comp-NavOverlay__contentWrapper {
    padding-left: 8.33333%;
    margin-top: 80px;
}

.comp-NavOverlay__closeX {
    position: absolute;
    right: 24px;
    top: 20px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1200;
}

.comp-NavOverlay__closeX:before,
.comp-NavOverlay__closeX:after {
    position: absolute;
    left: 0;
    top: 15px;
    content: '';
    width: 32px;
    height: 2px;
    background-color: #fffcf5;
}

.comp-NavOverlay__closeX:before {
    transform: rotate(45deg);
}

.comp-NavOverlay__closeX:after {
    transform: rotate(-45deg);
}

.atom-NavigationPrimary {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.atom-NavigationPrimary__link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    padding: 12px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
}

.atom-NavigationPrimary__link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 8px;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.atom-NavigationPrimary__link:hover::after {
    transform: scaleX(1);
}

.atom-NavigationPrimary__link--active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.atom-NavigationPrimary__link:hover {
    opacity: 0.8;
}

/* Hero section */
.comp-HeroHomepage {
    height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.comp-HeroHomepage__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
}

.comp-HeroHomepage:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

/* Form Section */
.comp-FormWithTextContent {
    background-color: #F9FAFB;
    padding: 80px 0;
}

.comp-FormWithTextContent__textColumn {
    margin-bottom: 48px;
}

.comp-FormWithTextContent__heading {
    font-family: serif;
    font-size: 2.5rem;
    color: #2B3747;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.comp-FormWithTextContent__textContent {
    color: #4B5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.comp-FormWithTextContent__textContent a {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comp-FormWithTextContent__textContent a:hover {
    color: #1F2937;
}

.comp-FormWithTextContent__formWrapper {
    max-width: 100%;
}

.comp-FormWithTextContent__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #9CA3AF;
}

.form-input::placeholder {
    color: #6B7280;
}

.form-submit {
    display: inline-block;
    background-color: #2B3747;
    color: #FFFFFF;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.form-submit:hover {
    background-color: rgba(43, 55, 71, 0.9);
}

@media (min-width: 768px) {
    .comp-FormWithTextContent__textColumn {
        margin-bottom: 0;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Internal Pages Structure */
.internal-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100px;
}

.internal-content {
    padding-top: 160px;
}

/* Internal Pages Navigation — dark hamburger scoped to internal-header only */
.internal-header .el-NavBarTransparentOverlayAlt__hamburger span {
    background: #45484b;
}

/* The hamburger icon is position:fixed at right:24px and is always visible,
   independent of viewport width. The top-bar nav links (Tailwind "hidden lg:flex")
   appear starting at the 1024px breakpoint, but the extra right-side inset that
   keeps content clear of the hamburger only kicks in at the 1200px "xlarge"
   breakpoint (see .xlarge-10 / .offset-xlarge-1 above). Between 1024px and
   1200px the nav links have zero reserved space and visually collide with the
   hamburger. Reserve room for it explicitly so the two never overlap. */
@media (min-width: 1024px) {
    .internal-header ul.hidden.lg\:flex,
    #scrolled-header ul.hidden.lg\:flex {
        padding-right: 64px;
    }
}

/* Page Title Styles */
.page-title-area {
    margin-bottom: 4rem;
    text-align: left;
}

.page-title {
    font-family: serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2B3747;
}

.page-description {
    max-width: 2xl;
    margin: 0;
    color: #6B7280;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Timeline Component */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #2B3747;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 1.5rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: #E5E7EB;
}

.timeline-item:last-child::after {
    display: none;
}

/* ── Chinese (Simplified) Typography — Sprint 08 ──────────────────────────── */
/* Browsers fall back to a system CJK font automatically, but an explicit
   stack keeps weight/spacing consistent with our Latin type instead of
   whatever the visitor's OS happens to default to. */
:lang(zh) {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Heiti SC", sans-serif;
}

:lang(zh) .comp-FormWithTextContent__heading,
:lang(zh) .page-title {
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

/* Latin letter-spacing/tracking reads as broken kerning on CJK glyphs */
:lang(zh) .atom-NavigationPrimary__link,
:lang(zh) .el-NavBarTransparentOverlayAlt__link {
    letter-spacing: normal;
}
