/* ═══════════════════════════════════════════════
   力銘建設 — 素雅留白風格 (Washi Paper Aesthetic)
   Inspired by 永裕居 / Artistic Mansion
   ═══════════════════════════════════════════════ */

:root {
    --primary-color: #2D1F14;
    --secondary-color: #C9956C;
    --text-color: #3D3028;
    --text-muted: #8A7060;
    --text-light: rgba(61, 48, 40, 0.55);
    --light-bg: #F7F3EE;
    --mid-bg: #F0EAE2;
    --white: #FEFCF9;
    --pure-white: #FFFFFF;
    --gold-light: rgba(201, 149, 108, 0.12);
    --gold-border: rgba(201, 149, 108, 0.3);
    --shadow-sm: 0 4px 24px rgba(45, 31, 20, 0.04);
    --shadow-md: 0 12px 48px rgba(45, 31, 20, 0.06);
    --shadow-lg: 0 24px 64px rgba(45, 31, 20, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 4px;
    --radius-lg: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    line-height: 1.9;
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-wide {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ═══ Typography — Clear & Refined ═══ */

h1, h2, h3 {
    font-weight: 500;
}

.section-eng {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 400;
}

.section-eng.light {
    color: rgba(255, 255, 255, 0.6);
}

.section-title {
    font-size: 2.3rem;
    color: var(--primary-color);
    letter-spacing: 5px;
    font-weight: 500;
    margin-bottom: 0;
}

.title-line {
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    margin: 20px 0 24px;
    opacity: 0.6;
}

.title-line.center {
    margin-left: auto;
    margin-right: auto;
}

.title-line.light {
    background: rgba(255, 255, 255, 0.3);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 2;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 32px;
    font-weight: 400;
    letter-spacing: 1.5px;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mb-5 { margin-bottom: 3rem; }

.text-block p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text-color);
    letter-spacing: 0.3px;
}

.bold-intro {
    font-weight: 400;
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text-color);
}

/* ═══ Buttons ═══ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    border: 1px solid transparent;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.btn-gold {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 2px;
    font-size: 0.9rem;
}

.btn-gold:hover {
    background-color: #B07D55;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(201, 149, 108, 0.25);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 36px;
    letter-spacing: 2px;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.read-more-btn:hover {
    border-bottom-color: var(--secondary-color);
    letter-spacing: 3px;
}

.read-more-btn .material-symbols-outlined {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* ═══ Washi Paper Texture Backgrounds ═══ */

.washi-bg {
    background-image: url('assets/images/texture_washi.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.washi-warm-bg {
    background-image: url('assets/images/texture_washi_warm.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ═══ Main Top Navigation Bar ═══ */

.main-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(45, 31, 20, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    border-bottom: 1px solid rgba(201, 149, 108, 0.12);
}

.main-topnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-topnav-brand {
    text-decoration: none;
    color: var(--white);
    font-size: 1.15rem;
    letter-spacing: 3px;
    font-weight: 500;
    flex-shrink: 0;
}

.main-topnav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.main-topnav-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 2px;
    transition: var(--transition);
    font-weight: 400;
    white-space: nowrap;
    position: relative;
}

.main-topnav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.main-topnav-links a.active {
    color: var(--secondary-color);
}

.main-topnav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 1.5px;
    background: var(--secondary-color);
    border-radius: 1px;
}

/* Mobile hamburger in top nav */
.main-topnav-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.main-topnav-menu .bar {
    width: 20px;
    height: 1.5px;
    background-color: var(--white);
    transition: var(--transition);
}

.main-topnav-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.main-topnav-menu.active .bar:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ═══ Mobile Navigation Overlay ═══ */

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 31, 20, 0.96);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-links-overlay {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 36px;
}

.nav-link-item {
    font-size: 1.6rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 5px;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.nav-overlay.active .nav-link-item {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.nav-overlay.active .nav-link-item:nth-child(2) { transition-delay: 0.28s; }
.nav-overlay.active .nav-link-item:nth-child(3) { transition-delay: 0.36s; }
.nav-overlay.active .nav-link-item:nth-child(4) { transition-delay: 0.44s; }
.nav-overlay.active .nav-link-item:nth-child(5) { transition-delay: 0.52s; }
.nav-overlay.active .nav-link-item:nth-child(6) { transition-delay: 0.60s; }
.nav-overlay.active .nav-link-item:nth-child(7) { transition-delay: 0.68s; }

.nav-link-item:hover {
    color: var(--secondary-color);
    letter-spacing: 10px;
}

/* ═══ Loading Screen ═══ */

#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-brand {
    text-align: center;
    margin-bottom: 40px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: logoSpin 2.5s ease-in-out infinite;
}

@keyframes logoSpin {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.8) rotate(360deg); opacity: 0.3; }
}

.loading-brand-cn {
    font-size: 2rem;
    letter-spacing: 10px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 12px;
}

.loading-brand-en {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--text-muted);
}

.loading-line-wrap {
    width: 120px;
    height: 1px;
    background: var(--light-bg);
    overflow: hidden;
}

.loading-line {
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    animation: loadingSlide 1.5s ease-in-out infinite;
    transform-origin: left;
}

@keyframes loadingSlide {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.01% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* ═══ Hero Section ═══ */

.hero {
    height: calc(100vh - 60px);
    margin-top: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    overflow: hidden;
}

/* Legacy video wrap (kept for reference) */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s;
}

.hero-video-wrap video.active {
    opacity: 1;
}

/* Hero Image Slides with Ken Burns Effect */
.hero-slides-wrap {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-slide.active .hero-slide-img {
    animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12);
    }
}

/* Keep slideshow styles for renewal page */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 10, 5, 0.1) 0%,
        rgba(30, 18, 10, 0.15) 40%,
        rgba(45, 31, 20, 0.55) 100%
    );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.hero-eng {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-title {
    font-size: 3.6rem;
    letter-spacing: 14px;
    margin-bottom: 20px;
    font-weight: 300;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

.hero-sub {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    color: rgba(255, 255, 255, 0.45);
}

.hero-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 4px;
    font-family: 'Playfair Display', serif;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollMouse 2s ease-in-out infinite;
}

@keyframes scrollMouse {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* Hero fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ About Hero (Homepage Fullwidth Parallax) ═══ */

.about-hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    color: var(--pure-white);
    overflow: hidden;
    padding: 0;
    background: #1a1a1a;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 18, 11, 0.05) 0%, rgba(26, 18, 11, 0.25) 55%, rgba(26, 18, 11, 0.5) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 50px 80px;
    margin-right: 120px;
    background: rgba(20, 14, 8, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 1px solid rgba(201, 149, 108, 0.25);
}

.about-hero-title {
    font-size: 2.6rem;
    letter-spacing: 8px;
    font-weight: 500;
    color: var(--pure-white);
    margin-bottom: 0;
}

.about-hero-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 2.2;
    letter-spacing: 1px;
    font-weight: 400;
}

/* ═══ Page Hero (sub-pages) ═══ */

.page-hero {
    height: 45vh;
    min-height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    overflow: hidden;
    margin-top: 60px;
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 11, 0.5);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: 2.8rem;
    letter-spacing: 8px;
    font-weight: 500;
}

/* ═══ Section Transitions ═══ */

.section-transition {
    height: 80px;
    position: relative;
    z-index: 1;
}

.section-transition.dark-to-light {
    background: linear-gradient(180deg,
        rgba(45, 31, 20, 0.6) 0%,
        rgba(250, 247, 240, 0.3) 40%,
        rgba(250, 247, 240, 1) 100%);
}

.section-transition.cool-to-warm {
    background: linear-gradient(180deg,
        rgb(250, 247, 240) 0%,
        rgb(248, 243, 232) 100%);
}

.section-transition.warm-to-cool {
    background: linear-gradient(180deg,
        rgb(248, 243, 232) 0%,
        rgb(250, 247, 240) 100%);
}

.section-transition.warm-to-dark {
    background: linear-gradient(180deg,
        rgb(248, 243, 232) 0%,
        rgba(45, 31, 20, 0.15) 60%,
        rgba(45, 31, 20, 1) 100%);
    height: 100px;
}

.transition-deco-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(201, 149, 108, 0.35) 50%,
        transparent 100%);
}

/* ═══ Sections General — Elegant Whitespace ═══ */

.section {
    padding: 0;
    overflow: hidden;
}

.section.spirit-section,
.section.projects-section {
    padding: 140px 0 160px;
}

.section.renewal-index-section {
    padding: 140px 0 160px;
}

.section-header {
    margin-bottom: 80px;
}

/* ═══ About / Founder / Vision — Elegant Row Layout ═══ */

.about-section,
.founder-section {
    padding: 0;
    overflow: hidden;
}

/* ═══ Vision Fullwidth Section ═══ */
.vision-fullwidth {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding: 0;
}

.vision-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 18, 11, 0.1) 0%, rgba(26, 18, 11, 0.55) 60%, rgba(26, 18, 11, 0.7) 100%);
    z-index: 1;
}

.vision-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin-right: 10%;
    background: rgba(45, 31, 20, 0.82);
    padding: 60px 50px;
    border-radius: 6px;
    text-align: center;
}

.vision-title {
    font-size: 2.4rem;
    color: var(--white);
    letter-spacing: 6px;
    font-weight: 500;
    margin-bottom: 0;
}

.vision-subtitle {
    font-size: 1.05rem;
    color: var(--secondary-color);
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.vision-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 2.2;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.vision-read-more {
    color: var(--secondary-color);
    border-bottom-color: transparent;
}

.vision-read-more:hover {
    border-bottom-color: var(--secondary-color);
}

.row-elegant {
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: stretch;
    min-height: 600px;
}

.row-elegant.reverse {
    grid-template-columns: 48% 52%;
}

.row-elegant.reverse .col-text-elegant {
    order: -1;
}

.col-img-elegant {
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

.col-img-elegant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.col-img-elegant:hover img {
    transform: scale(1.03);
}

.col-text-elegant {
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ═══ Spirit Section ═══ */

.spirit-intro-lines {
    margin-top: 20px;
}

.spirit-intro-lines p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 2.2;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.spirit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(201, 149, 108, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Spirit Layout — left text + right wheel */
.spirit-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 60px;
}

.spirit-text-col {
    flex: 0 0 380px;
    background: rgba(45, 31, 20, 0.88);
    padding: 50px 48px;
    border-radius: 6px;
    position: relative;
    z-index: 3;
    text-align: center;
}

.spirit-text-col .section-eng {
    color: rgba(201, 149, 108, 0.7);
}

.spirit-text-col .section-title {
    color: var(--white);
}

.spirit-text-col .title-line {
    background: rgba(201, 149, 108, 0.5);
    margin-left: auto;
    margin-right: auto;
}

.spirit-text-col .subtitle {
    color: var(--secondary-color);
}

.spirit-text-col .text-block p {
    color: rgba(255, 255, 255, 0.7);
}

/* Spirit Wheel — Ferris wheel layout (JS driven) */
.spirit-wheel-wrap {
    position: relative;
    flex: 1;
    height: 620px;
}

/* Center logo — stays still */
.spirit-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 130px;
    height: 130px;
}

.spirit-wheel-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.55;
}

/* Decorative orbit ring */
.spirit-wheel-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(201, 149, 108, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

/* Wheel container */
.spirit-wheel {
    position: absolute;
    inset: 0;
}

/* Each item — positioned by JS */
.spirit-wheel-item {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 16px rgba(45, 31, 20, 0.06);
    border: 1px solid rgba(201, 149, 108, 0.15);
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s;
    text-align: center;
    will-change: transform;
}

.spirit-wheel-item:hover {
    box-shadow: 0 4px 24px rgba(201, 149, 108, 0.2);
    border-color: rgba(201, 149, 108, 0.4);
}

.spirit-wicon {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.spirit-wlabel {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 2px;
    line-height: 1.3;
}

.spirit-item {
    background: var(--white);
    padding: 55px 40px;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.spirit-item:hover {
    background: rgba(247, 243, 238, 0.8);
}

.spirit-num {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: transparent;
    -webkit-text-stroke: 1px rgba(201, 149, 108, 0.2);
    position: absolute;
    top: 18px;
    right: 24px;
    line-height: 1;
    font-weight: 400;
}

.spirit-content {
    position: relative;
    z-index: 2;
}

.spirit-icon {
    font-size: 2.2rem !important;
    color: var(--secondary-color);
    margin-bottom: 16px;
    display: block;
    opacity: 0.7;
}

.spirit-content h3 {
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.spirit-eng {
    font-family: 'Playfair Display', serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.spirit-content p:not(.spirit-eng) {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2;
}

.spirit-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 16px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.spirit-item:hover .spirit-read-more {
    letter-spacing: 2px;
}

.spirit-read-more .material-symbols-outlined {
    font-size: 0.9rem;
}

/* ═══ Projects Section ═══ */

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-item {
    display: flex;
    align-items: center;
}

.project-item.reverse {
    flex-direction: row-reverse;
}

.project-img {
    flex: 1.5;
    height: 440px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-img img {
    transform: scale(1.04);
}

.project-info {
    flex: 1;
    padding: 50px 55px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    margin-left: -60px;
    z-index: 10;
    border-radius: var(--radius);
    position: relative;
}

.project-item.reverse .project-info {
    margin-left: 0;
    margin-right: -60px;
}

.project-eng {
    font-family: 'Playfair Display', serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 8px;
}

.project-info h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 500;
}

.project-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.project-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ═══ Renewal Summary Section ═══ */

.renewal-summary {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.renewal-summary-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.renewal-intro-icon {
    margin-bottom: 16px;
}

.renewal-intro-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.6;
}

.renewal-intro-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 2;
    font-weight: 400;
}

.renewal-case-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-top: 30px;
    border-top: 1px solid rgba(201, 149, 108, 0.1);
}

.renewal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: 2px;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--text-color);
    letter-spacing: 1px;
    font-weight: 400;
}

.renewal-tag:hover {
    background: var(--gold-light);
    border-color: var(--secondary-color);
}

.renewal-tag .material-symbols-outlined {
    color: var(--secondary-color);
    font-size: 1.1rem;
    opacity: 0.7;
}

/* ═══ Renewal Index — Enlarged Layout ═══ */

.renewal-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.renewal-stat {
    text-align: center;
}

.renewal-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 6px;
    font-weight: 400;
}

.renewal-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.renewal-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(201, 149, 108, 0.2);
}

.renewal-summary-lg {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 70px 80px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.renewal-summary-lg .renewal-summary-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.renewal-summary-text {
    text-align: center;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 2.2;
    font-weight: 400;
    margin-bottom: 40px;
}

.renewal-case-tags-lg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 36px;
    border-top: 1px solid rgba(201, 149, 108, 0.12);
}

.renewal-tag-lg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--light-bg);
    border: 1px solid rgba(201, 149, 108, 0.15);
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text-color);
    letter-spacing: 1px;
    font-weight: 400;
}

.renewal-tag-lg:hover {
    background: var(--gold-light);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 149, 108, 0.12);
}

.renewal-tag-lg .material-symbols-outlined {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.btn-lg {
    padding: 16px 44px;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* ═══ Contact Section ═══ */

.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 140px 0;
    overflow: hidden;
    position: relative;
}

.contact-box {
    text-align: center;
}

.contact-box .section-title {
    letter-spacing: 6px;
    margin-bottom: 0;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    text-align: left;
    flex-wrap: wrap;
}

.contact-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 2;
    font-weight: 400;
}

.contact-info strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 400px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid rgba(201, 149, 108, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: var(--transition);
    font-weight: 300;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(201, 149, 108, 0.08);
}

/* ═══ Footer ═══ */

footer {
    background: #2C2F33;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(201, 149, 108, 0.08);
    font-weight: 400;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    padding: 60px 60px 40px;
}

.footer-heading {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-brand-en {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-desc {
    line-height: 1.8;
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact-list li {
    color: rgba(255, 255, 255, 0.72);
}

/* Footer Sub Group */
.footer-sub-group {
    margin-top: 4px;
}

.footer-sub-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.footer-sub-links {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 12px;
}

.footer-sub-links li {
    margin-bottom: 8px;
}

.footer-sub-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-sub-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ═══ Mobile Bottom Action Bar ═══ */

.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--white);
    border-top: 1px solid rgba(201, 149, 108, 0.15);
    box-shadow: 0 -4px 20px rgba(45, 31, 20, 0.08);
}

.action-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.65rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.action-bar-item .material-symbols-outlined {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.action-bar-item:hover {
    background: var(--gold-light);
}

/* ═══ Modals ═══ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 31, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 40px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 60px;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--radius);
}

.modal-container.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 8px;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-eng {
    font-family: 'Playfair Display', serif;
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 8px;
}

.modal-header h3 {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 400;
}

.modal-body p.quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--secondary-color);
    border-left: 2px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 24px;
    line-height: 2.2;
}

.modal-spirit .modal-header {
    text-align: center;
}

.modal-spirit .modal-header .spirit-icon {
    font-size: 2.5rem !important;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 16px;
    opacity: 0.7;
}

.modal-spirit .modal-body {
    text-align: center;
}

.modal-spirit .modal-body p {
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ═══ Section Texture (for renewal page compatibility) ═══ */

.section-texture {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.section-texture-overlay,
.contact-texture-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(254, 252, 249, 0.85), rgba(254, 252, 249, 0.95));
    z-index: 1;
}

/* ═══ Responsive Design ═══ */

@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .row-elegant,
    .row-elegant.reverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .row-elegant.reverse .col-text-elegant {
        order: 0;
    }

    .col-img-elegant {
        min-height: 300px;
        max-height: 400px;
    }

    .col-text-elegant {
        padding: 60px 50px;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 10px;
    }

    .spirit-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .project-item,
    .project-item.reverse {
        flex-direction: column;
    }

    .project-img {
        height: 320px;
        width: 100%;
    }

    .project-info,
    .project-item.reverse .project-info {
        margin: -40px 20px 0;
        padding: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding: 50px 40px 36px;
    }

}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 24px 30px;
    }

    .spirit-layout {
        flex-direction: column;
        text-align: center;
        padding-left: 0;
    }

    .spirit-text-col {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .spirit-text-col .title-line {
        margin-left: auto;
        margin-right: auto;
    }

    .spirit-wheel-wrap {
        width: 100%;
        max-width: 420px;
        height: 420px;
        min-height: 420px;
        margin: 0 auto;
    }

    .spirit-wheel-item {
        width: 110px;
        height: 110px;
    }

    .spirit-wheel-orbit {
        width: 320px;
        height: 320px;
    }

    .spirit-wheel-center {
        width: 80px;
        height: 80px;
    }

    .section.spirit-section,
    .section.projects-section,
    .section.renewal-index-section {
        padding: 100px 0 120px;
    }

    .contact-section {
        padding: 100px 0;
    }

    /* Vision Fullwidth — mobile */
    .vision-fullwidth {
        min-height: 80vh;
        justify-content: center;
    }

    .vision-overlay {
        background: rgba(26, 18, 11, 0.5);
    }

    .vision-content {
        margin: 20px;
        margin-right: 20px;
        padding: 40px 30px;
        max-width: 100%;
    }

    .vision-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    /* About Hero — mobile */
    .about-hero-section {
        height: auto;
        min-height: 80vh;
        justify-content: center;
        text-align: center;
    }

    .about-hero-overlay {
        background: rgba(26, 18, 11, 0.45);
    }

    .about-hero-content {
        margin-right: 0;
        margin: 20px;
        padding: 40px 30px;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid rgba(201, 149, 108, 0.25);
    }

    .about-hero-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .about-hero-text p {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 6px;
    }

    .hero-eng {
        font-size: 0.65rem;
        letter-spacing: 5px;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .section-eng {
        font-size: 0.65rem;
        letter-spacing: 4px;
    }

    .row-elegant,
    .row-elegant.reverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .col-text-elegant {
        padding: 40px 24px;
    }

    .col-img-elegant {
        min-height: 240px;
        max-height: 320px;
    }

    .spirit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }

    .spirit-item {
        padding: 35px 24px;
    }

    .spirit-num {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .project-img {
        height: 240px;
    }

    .project-info,
    .project-item.reverse .project-info {
        margin: -30px 16px 0;
        padding: 30px 24px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .contact-form {
        width: 100%;
        max-width: 400px;
    }

    .renewal-summary {
        padding: 40px 24px;
    }

    .renewal-stats-row {
        gap: 24px;
    }

    .renewal-stat-num {
        font-size: 1.8rem;
    }

    .renewal-summary-lg {
        padding: 40px 24px;
    }

    .renewal-case-tags-lg {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .renewal-tag-lg {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .section-transition {
        height: 50px;
    }

    .section-transition.warm-to-dark {
        height: 60px;
    }

    .transition-deco-line {
        height: 24px;
    }

    .modal-container {
        padding: 40px 28px;
    }

    /* Top nav: hide links, show hamburger */
    .main-topnav-links {
        display: none;
    }

    .main-topnav-menu {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .spirit-grid {
        grid-template-columns: 1fr;
    }

    .spirit-wheel-wrap {
        max-width: 320px;
        height: 320px;
        min-height: 320px;
    }

    .spirit-wheel-item {
        width: 85px;
        height: 85px;
    }

    .spirit-wheel-orbit {
        width: 240px;
        height: 240px;
    }

    .spirit-wheel-center {
        width: 55px;
        height: 55px;
    }

    .spirit-wicon { font-size: 1.3rem; }
    .spirit-wlabel { font-size: 0.72rem; letter-spacing: 1px; }


    .col-img-elegant {
        min-height: 240px;
    }

    .renewal-case-tags {
        gap: 8px;
    }

    .renewal-case-tags-lg {
        grid-template-columns: 1fr;
    }

    .renewal-stats-row {
        flex-direction: column;
        gap: 16px;
    }

    .renewal-stat-divider {
        width: 30px;
        height: 1px;
    }

    .renewal-tag {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ═══ Utility classes for renewal page ═══ */

.renewal-section {
    background-color: var(--white);
}

.renewal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.renewal-card {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.renewal-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.renewal-card-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-grow: 1;
}

.renewal-card-header .material-symbols-outlined {
    font-size: 2rem;
    color: var(--secondary-color);
}

.renewal-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.renewal-info-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.renewal-info-table td {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.renewal-info-table td:first-child {
    color: rgb(154, 128, 112);
    width: 30%;
}

.renewal-timeline-mini {
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Keep reveal classes for compatibility with renewal page */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.from-left { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.from-bottom { transform: translateY(30px); }
.reveal.scale-in { transform: scale(0.95); }

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ════════════════════════════════════════════════════
   RENEWAL PAGE — Complete Styles
   ════════════════════════════════════════════════════ */

/* Top Navigation Bar (Renewal) */
.renewal-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(45, 31, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid rgba(201, 149, 108, 0.15);
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    font-size: 0.95rem;
    letter-spacing: 2px;
    font-weight: 400;
}

.topnav-brand .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.topnav-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.topnav-links {
    display: flex;
    gap: 30px;
}

.topnav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    font-weight: 400;
}

.topnav-links a:hover {
    color: var(--secondary-color);
}

.topnav-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
}

.topnav-menu-btn .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Mobile Menu Overlay (Renewal) */
.topnav-mobile-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(45, 31, 20, 0.98);
    z-index: 9998;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.topnav-mobile-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.topnav-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.topnav-mobile-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 8px 0;
    transition: var(--transition);
}

.topnav-mobile-links a:hover {
    color: var(--secondary-color);
}

/* Renewal Hero (Single Image + Slow Zoom) */
.renewal-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 60px;
}

.renewal-hero-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.renewal-hero .overlay {
    z-index: 1;
    background: rgba(20, 10, 5, 0.45);
}

.renewal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroSlowZoom 20s ease-in-out infinite alternate;
}

@keyframes heroSlowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.renewal-hero-deco {
    position: absolute;
    inset: 30px;
    z-index: 2;
    pointer-events: none;
}

.deco-line {
    position: absolute;
    background: rgba(201, 149, 108, 0.2);
}

.deco-line-1 {
    top: 0;
    left: 50%;
    width: 1px;
    height: 40px;
    transform: translateX(-50%);
}

.deco-line-2 {
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 40px;
    transform: translateX(-50%);
}

.deco-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(201, 149, 108, 0.25);
    border-style: solid;
}

.deco-corner-tl {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.deco-corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

.renewal-hero-content {
    position: relative;
    z-index: 3;
    background: rgba(26, 18, 11, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 50px 80px;
    border: 1px solid rgba(201, 149, 108, 0.15);
}

.renewal-hero-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 16px;
}

.renewal-hero-content h1 {
    font-size: 2.8rem;
    letter-spacing: 8px;
    font-weight: 300;
    margin-bottom: 16px;
}

.renewal-hero-divider {
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    margin: 0 auto 16px;
    opacity: 0.6;
}

.renewal-hero-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 3px;
    font-weight: 300;
}

.renewal-hero-desc {
    margin-top: 40px;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.renewal-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.hero-stat-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}


/* Renewal Intro Section */
.renewal-intro-section {
    padding: 80px 0;
    background: var(--white);
}

.renewal-intro-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.renewal-intro-section .renewal-intro-icon {
    margin-bottom: 20px;
}

.renewal-intro-section .renewal-intro-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.6;
}

.renewal-intro-section .renewal-intro-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 2;
    font-weight: 400;
}

.renewal-intro-line {
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    margin: 30px auto 0;
    opacity: 0.4;
}

/* Renewal Map Section */
.renewal-map-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.renewal-map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.renewal-map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Renewal Map V2 — light bg, text overlaid on map */
.renewal-map-section-v2 {
    padding: 60px 20px 50px;
    background: #ffffff;
    text-align: center;
}

.renewal-map-v2-header {
    display: none; /* text moved inside map */
}

.renewal-map-v2-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.renewal-map-v2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px 20px 12px;
    z-index: 2;
}

.renewal-map-v2-overlay .section-eng {
    color: rgba(120, 90, 60, 0.6);
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-bottom: 2px;
}

.renewal-map-v2-overlay .section-title {
    color: #3a2e24;
    font-size: 1.5rem;
    margin-top: 0;
    letter-spacing: 2px;
}

.renewal-map-v2-overlay .title-line {
    background: var(--accent-gold);
    margin: 6px auto;
}

.renewal-map-v2-sub {
    color: rgba(60, 46, 36, 0.55);
    letter-spacing: 2px;
    font-size: 0.82rem;
    margin-top: 0;
}

.renewal-map-v2-img {
    margin-top: 60px;
}

.renewal-map-v2-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

.renewal-map-v2-scroll {
    overflow: visible;
}

.map-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 12px 0 4px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .map-scroll-hint {
        display: block;
    }
}

/* Renewal Cases Section */
.renewal-cases-section {
    padding: 80px 0;
    background: var(--white);
}

/* ═══ Contact Page ═══ */

.contact-page {
    position: relative;
    min-height: 100vh;
    padding: 140px 20px 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle overlay */
.contact-page-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 50px 50px 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 16px;
    opacity: 0.8;
}

.contact-main-title {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 6px;
    color: #1a1410;
}

.contact-intro {
    color: #3a2e24;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

/* Contact Info — horizontal layout */
.contact-info-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.contact-info-item {
    flex: 1;
    text-align: center;
    padding: 18px 16px;
}

.contact-info-label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    color: #7a5c3a;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-info-value {
    display: block;
    font-size: 1.1rem;
    color: #1a1410;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.5;
}

.contact-info-divider {
    width: 1px;
    height: 40px;
    background: rgba(201, 149, 108, 0.25);
    flex-shrink: 0;
}

/* Hours */
.contact-hours {
    text-align: center;
    padding: 16px 0 0;
    border-top: 1px solid rgba(201, 149, 108, 0.15);
}

.contact-hours .contact-info-label {
    font-size: 0.75rem;
}

.contact-hours-value {
    display: block;
    font-size: 0.95rem;
    color: #3a2e24;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* Section eng & title-line inside contact */
.contact-page .section-eng {
    color: #5a4a3a;
}

.contact-page .title-line {
    background: rgba(201, 149, 108, 0.4);
}

@media (max-width: 768px) {
    .contact-page {
        padding: 100px 20px 60px;
    }

    .contact-info-grid {
        flex-direction: column;
    }

    .contact-info-divider {
        width: 40px;
        height: 1px;
    }
}

/* Renewal Case Card */
.renewal-case-card {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(201, 149, 108, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.renewal-case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.renewal-case-img {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--light-bg);
}

.renewal-case-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    background: var(--light-bg);
}

.renewal-case-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.renewal-case-body {
    flex: 1;
    padding: 35px 40px;
}

.renewal-case-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 149, 108, 0.15);
}

/* Renewal Timeline */
.renewal-timeline-mini h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 500;
}

.renewal-timeline-mini h4 .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.renewal-timeline-mini ul {
    list-style: none;
    padding: 0;
    position: relative;
}

.renewal-timeline-mini li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.renewal-timeline-mini li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: -8px;
    width: 1px;
    background: rgba(201, 149, 108, 0.2);
}

.renewal-timeline-mini li:last-child::before {
    display: none;
}

.renewal-timeline-mini .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 12px;
    flex-shrink: 0;
}

.renewal-timeline-mini li.done .dot {
    background: var(--secondary-color);
}

.renewal-timeline-mini li.active .dot {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 149, 108, 0.15);
}

.renewal-timeline-mini li.pending .dot {
    background: #ddd;
}

.renewal-timeline-mini li strong {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.renewal-timeline-mini li time {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.renewal-case-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(201, 149, 108, 0.1);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 10px 24px;
}

/* Download Modal */
.download-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 31, 20, 0.8);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    padding: 40px;
}

.download-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.download-modal {
    background: var(--white);
    max-width: 580px;
    width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(201, 149, 108, 0.12);
    background: var(--light-bg);
}

.download-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.download-modal-header h3 .material-symbols-outlined {
    color: var(--secondary-color);
}

.download-modal-header .modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    transition: var(--transition);
}

.download-modal-header .modal-close:hover {
    color: var(--primary-color);
}

.download-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.download-list {
    display: none;
}

.download-case-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: 500;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.download-item:last-child {
    border-bottom: none;
}

.download-item > .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--secondary-color);
    opacity: 0.7;
    flex-shrink: 0;
}

.download-item div {
    flex: 1;
}

.download-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 2px;
    font-weight: 400;
}

.download-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-file {
    padding: 6px 18px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-file:hover {
    background: #B07D55;
    transform: translateY(-1px);
}

/* Section Headers for Active / Developing */
.renewal-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.renewal-section-header .section-eng {
    display: block;
    margin-bottom: 8px;
}
.renewal-section-header .section-title {
    margin-bottom: 12px;
}
.renewal-section-header .section-sub {
    color: #888;
    font-size: 0.95rem;
}

.renewal-case-badge.filed {
    background: rgba(39, 145, 90, 0.9);
}
.renewal-case-badge.developing {
    background: rgba(52, 120, 180, 0.9);
}

/* Simplified card status label */
.renewal-case-status {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(52, 120, 180, 0.1);
    color: #3478b4;
    border: 1px solid rgba(52, 120, 180, 0.3);
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    margin: 16px 0;
}

/* Password gate in download modal */
.download-password-gate {
    text-align: center;
    padding: 30px 20px;
}
.download-password-gate h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}
.download-pw-input-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.download-pw-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.download-pw-input:focus {
    border-color: var(--primary-color, #b8860b);
}
.download-pw-btn {
    padding: 10px 24px;
    background: var(--primary-color, #b8860b);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}
.download-pw-btn:hover {
    background: var(--secondary-color, #d4a528);
}
.download-pw-note {
    color: #999;
    font-size: 0.82rem;
    margin-top: 8px;
}
.download-pw-error {
    color: #e74c3c;
    font-size: 0.88rem;
    margin-top: 10px;
    display: none;
}
.download-pw-error.show {
    display: block;
}
.download-files-area {
    display: none;
}
.download-files-area.unlocked {
    display: block;
}

/* Section separator */
.renewal-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    margin: 30px 0 60px;
}

/* Back to Top */
.renewal-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 31, 20, 0.2);
    z-index: 9000;
}

.renewal-back-top.show {
    opacity: 1;
    transform: translateY(0);
}

.renewal-back-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.renewal-back-top .material-symbols-outlined {
    font-size: 1.2rem;
}

/* ════════════════════════════════════════════════════
   RENEWAL PAGE — Responsive
   ════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .renewal-case-card {
        flex-direction: column;
    }

    .renewal-case-img {
        flex: none;
        max-height: 280px;
    }

    .renewal-case-img img {
        object-fit: contain;
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .topnav-links {
        display: none;
    }

    .topnav-menu-btn {
        display: block;
    }

    .renewal-topnav {
        padding: 0 20px;
    }

    .renewal-hero {
        height: auto;
        min-height: 100vh;
        margin-top: 60px;
    }

    .renewal-hero-content {
        padding: 36px 24px;
        margin: 0 16px;
    }

    .renewal-hero-content h1 {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .renewal-hero-stats {
        gap: 20px;
    }

    .hero-stat-num {
        font-size: 1.5rem;
    }

    .renewal-hero-desc {
        font-size: 0.85rem !important;
    }

    .renewal-hero-desc br {
        display: none;
    }

    .renewal-map-section-v2 {
        padding: 40px 16px 30px;
    }

    .renewal-map-v2-overlay .section-title {
        font-size: 1.4rem;
    }

    /* Title stays centered above scrollable area */
    .renewal-map-v2-overlay {
        position: relative;
        padding: 0 16px 12px;
    }

    /* Scrollable map container */
    .renewal-map-v2-wrap {
        overflow: visible;
    }

    .renewal-map-v2-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .renewal-map-v2-img {
        min-width: 700px;
        width: 700px;
        margin-top: 10px;
    }

    .renewal-intro-section,
    .renewal-map-section,
    .renewal-cases-section {
        padding: 50px 0;
    }

    .renewal-case-card {
        flex-direction: column;
    }

    .renewal-case-img {
        flex: none;
        max-height: 240px;
    }

    .renewal-case-img img {
        object-fit: contain;
        max-height: 240px;
    }

    .renewal-case-body {
        padding: 24px 20px;
    }

    .renewal-case-title {
        font-size: 1.2rem;
    }

    .download-modal-overlay {
        padding: 16px;
    }

    .download-modal-body {
        padding: 16px 20px;
    }

    .renewal-back-top {
        bottom: 80px;
        right: 16px;
    }

    .renewal-grid {
        grid-template-columns: 1fr;
    }
}
