/* ============================================
   NEW CAMBODIA — Block Styles (×1.4 scaled)
   Home page + _template blocks
   ============================================ */

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; background: var(--color-bg-dark); overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0; background-size: cover;
    background-position: center; opacity: 0.4; will-change: transform;
}
.hero__gradient {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(12,22,40,0.75) 50%, var(--color-bg-dark) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 60px; }
.hero__grid { align-items: center; gap: var(--space-3xl); }
.hero__title {
    font-family: var(--font-heading); font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 1.1; font-weight: 700; color: #fff;
    margin-bottom: var(--space-lg); margin-top: var(--space-sm);
}
.hero__subtitle {
    font-size: 1.3rem; color: rgba(255, 255, 255, 0.85);
    line-height: 1.65; margin-bottom: var(--space-xl); max-width: 560px;
}
.hero__highlights { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--space-xl); }
.hero__highlight-item {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; line-height: 1.5;
}
.hero__highlight-icon { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.hero__cta-wrapper { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__investor-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.hero__investor-card {
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 164, 94, 0.12);
    border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__investor-value {
    font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700;
    color: var(--color-accent); line-height: 1;
}
.hero__investor-label {
    color: rgba(255, 255, 255, 0.7); font-size: 1rem; margin-top: 4px; line-height: 1.4;
}
.hero__label { font-size: 0.9rem; letter-spacing: 0.2em; }
.hero__full-width { max-width: 800px; }
.hero__subtitle--wide { font-size: 1.4rem; max-width: 600px; }
.hero__highlight-item--center { align-items: center; font-size: 1.2rem; }
.hero__highlight-icon--lg { font-size: 1.4rem; }

/* ========================================
   WHY CAMBODIA
   ======================================== */
.why-cb__grid { gap: var(--space-xl); }
.why-cb__card {
    padding: var(--space-xl); text-align: center; background: var(--color-bg);
    border-radius: var(--radius-lg); transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}
.why-cb__card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: rgba(200, 164, 94, 0.3);
}
.why-cb__icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.why-cb__icon svg { width: 36px; height: 36px; color: var(--color-accent); }
.why-cb__card-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin-bottom: var(--space-sm); }
.why-cb__card-text { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.55; }

/* ========================================
   COMPARISON TABLE
   ======================================== */
.comparison__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison__table { width: 100%; border-collapse: collapse; font-size: 1.1rem; min-width: 720px; }
.comparison__table th {
    background: var(--color-bg-dark); color: #fff; padding: 14px 16px;
    text-align: center; font-weight: 600; font-size: 1.05rem;
}
.comparison__table th:first-child { text-align: left; width: 200px; }
.comparison__table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--color-border); }
.comparison__table td:first-child { text-align: left; font-weight: 500; }
.comparison__table tr:last-child td { border-bottom: none; }
.comparison__cell-good { color: #16a34a; font-weight: 600; }
.comparison__cell-bad { color: #dc2626; }
.comparison__cell-neutral { color: var(--color-text-secondary); }
.comparison__header-row { text-align: center; }
.comparison__note { font-size: 1rem; margin-top: var(--space-lg); }

/* ========================================
   INVESTMENT PROBLEM
   ======================================== */
.invest-problem__grid { gap: var(--space-xl); }
.invest-problem__card {
    background: var(--color-bg); border-radius: var(--radius-lg);
    padding: var(--space-xl); border-left: 4px solid var(--color-accent);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.invest-problem__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.invest-problem__card-inner { display: flex; align-items: flex-start; gap: var(--space-md); }
.invest-problem__card-icon { font-size: 2rem; margin-bottom: var(--space-sm); flex-shrink: 0; }
.invest-problem__card-icon svg { width: 32px; height: 32px; color: var(--color-accent); }
.invest-problem__card-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin-bottom: var(--space-sm); }
.invest-problem__card-text { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.55; }

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-xl); }
.stats-bar__card {
    padding: var(--space-xl); text-align: center;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 164, 94, 0.12);
    border-radius: var(--radius-lg);
}
.stats-bar__value {
    font-family: var(--font-heading); font-weight: 700; color: var(--color-accent);
    line-height: 1; font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.stats-bar__label {
    color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; margin-top: var(--space-sm); line-height: 1.3;
}

/* ========================================
   PROJECT SHOWCASE
   ======================================== */
.project-showcase__grid { gap: var(--space-2xl); align-items: start; }
.project-showcase__desc { font-size: 1.2rem; line-height: 1.65; margin-bottom: var(--space-xl); color: var(--color-text-secondary); }
.project-showcase__subheading { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: var(--space-md); }
.project-showcase__subheading--mt { margin-top: var(--space-xl); }
.project-showcase__specs-table { width: 100%; border-collapse: collapse; font-size: 1.1rem; margin-top: var(--space-md); }
.project-showcase__specs-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.project-showcase__specs-table td:first-child { color: var(--color-text-muted); width: 45%; }
.project-showcase__specs-table td:last-child { font-weight: 500; }
.project-showcase__strong { color: var(--color-accent); font-weight: 600; }
.project-showcase__list { list-style: none; margin-top: var(--space-md); }
.project-showcase__list li {
    padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem; display: flex; align-items: flex-start; gap: 8px;
}
.project-showcase__list-marker { color: var(--color-accent); flex-shrink: 0; }
.project-showcase__potential-box {
    background: var(--color-bg-warm); border-radius: var(--radius-lg);
    padding: var(--space-xl); border: 1px solid var(--color-border);
}
.project-showcase__potential-heading { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: var(--space-lg); }
.project-showcase__cta-wrap { margin-top: var(--space-xl); }
.project-showcase__cta { width: 100%; }

/* ========================================
   PROJECTS GRID
   ======================================== */
.projects-grid__grid { gap: var(--space-xl); }
.projects-grid__card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; text-decoration: none; background: var(--color-bg-dark); }
.projects-grid__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.projects-grid__card:hover .projects-grid__img { transform: scale(1.05); }
.projects-grid__img-wrap { position: relative; height: 200px; overflow: hidden; }
.projects-grid__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-xl);
}
.projects-grid__badge {
    display: inline-block; padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 0.9rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: var(--space-sm);
    position: absolute; top: 12px; left: 12px;
}
.projects-grid__badge--gold { background: var(--color-accent); color: #000; }
.projects-grid__title { color: #fff; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; margin-bottom: 4px; }
.projects-grid__subtitle { color: var(--color-accent); font-size: 0.95rem; margin-bottom: 4px; }
.projects-grid__price { color: var(--color-accent); font-weight: 500; font-size: 1.1rem; }
.projects-grid__location { color: rgba(255, 255, 255, 0.6); font-size: 1.05rem; margin-bottom: 4px; }
.projects-grid__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; font-size: 1rem; color: rgba(255,255,255,0.9); }
.projects-grid__specs .text-muted { color: rgba(255,255,255,0.5) !important; }
.projects-grid__specs strong { color: #fff; }
.projects-grid__specs-full { grid-column: 1 / -1; }

/* ========================================
   HOW WE WORK
   ======================================== */
.how-work__step { position: relative; text-align: center; padding: var(--space-xl) var(--space-md); }
.how-work__number {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-heading); font-size: 5rem; font-weight: 700;
    color: var(--color-accent); opacity: 0.15; line-height: 1; pointer-events: none;
}
.how-work__step-title {
    font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600;
    margin-top: var(--space-md); margin-bottom: var(--space-sm); position: relative;
}
.how-work__step-text { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.55; }

/* ========================================
   ABOUT
   ======================================== */
.about__grid { gap: var(--space-xl); }
.about__card {
    padding: var(--space-xl); background: var(--color-bg);
    border-radius: var(--radius-lg); border: 1px solid var(--color-border); text-align: center;
}
.about__card-icon { font-size: 2.2rem; margin-bottom: var(--space-sm); }
.about__card-icon svg { width: 28px; height: 28px; color: var(--color-accent); }
.about__card-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; margin-bottom: var(--space-sm); }
.about__card-text { color: var(--color-text-secondary); font-size: 1.05rem; line-height: 1.55; }
.about__not-wrap { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.about__not-heading { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: var(--space-md); color: var(--color-accent-dark); }
.about__not-list { list-style: none; margin-top: var(--space-lg); }
.about__not-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--color-border); font-size: 1.05rem; color: var(--color-text-secondary);
}

/* ========================================
   FAQ
   ======================================== */
.faq__container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 var(--container-padding, 1rem);
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    text-align: left;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast);
    color: var(--color-text-primary);
    list-style: none; /* hide default details marker */
}

.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--color-accent); }
.faq__arrow {
    transition: transform var(--transition-base); flex-shrink: 0;
    font-size: 1rem; color: var(--color-accent);
}
.faq__answer {
    padding-bottom: var(--space-lg);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.65;
}

/* Arrow rotation when details is open */
.faq__item[open] .faq__arrow {
    transform: rotate(180deg);
}

/* ========================================
   LEAD FORM
   ======================================== */
.lead-form { background: var(--color-bg-dark); }
.lead-form__inner {
    max-width: 600px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-xl);
    padding: var(--space-2xl); border: 1px solid rgba(200, 164, 94, 0.1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.lead-form__title { text-align: center; margin-bottom: var(--space-xl); color: var(--color-text-inverse); }
.lead-form__select {
    width: 100%; padding: 18px 24px; font-family: var(--font-body); font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-md);
    background: var(--color-bg-dark); color: #fff; outline: none;
}
.lead-form__select option { background: var(--color-bg-dark); color: #fff; }
.lead-form__subtitle { opacity: 0.85; margin: 0 auto; }
.lead-form__consent-label { font-size: 1rem; }
.lead-form__general-error { display: block; margin-bottom: 12px; }
.lead-form__success { display: none; text-align: center; color: var(--color-success); font-weight: 500; margin-bottom: 12px; font-size: 1rem; }
.lead-form__submit { width: 100%; }
.lead-form__disclaimer { font-size: 0.9rem; color: rgba(255, 255, 255, 0.45); margin-top: 12px; }

/* ========================================
   CONTACTS
   ======================================== */
.contacts__grid { gap: var(--space-2xl); }
.contacts__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-lg); }
.contacts__item {
    display: flex; align-items: flex-start; gap: var(--space-lg);
    padding: var(--space-lg); background: var(--color-bg);
    border-radius: var(--radius-lg); border: 1px solid var(--color-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.contacts__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(200, 164, 94, 0.3); }
.contacts__item-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(200, 164, 94, 0.1); border-radius: var(--radius-full);
}
.contacts__item-icon svg { width: 22px; height: 22px; color: var(--color-accent); }
.contacts__item-title { font-weight: 600; margin-bottom: 2px; font-size: 1rem; }
.contacts__item-label { font-size: 0.9rem; color: var(--color-text-muted); }
.contacts__item-value { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.4; }
.contacts__item-value--strong { font-weight: 600; font-size: 1.25rem; }
.contacts__trust {
    margin-top: var(--space-2xl); padding: var(--space-xl);
    background: rgba(200, 164, 94, 0.04); border-radius: var(--radius-lg);
    border: 1px solid rgba(200, 164, 94, 0.1); text-align: center;
}
.contacts__trust-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contacts__trust-heading { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: var(--space-lg); }
.contacts__trust-item { display: flex; align-items: flex-start; gap: 10px; font-size: 1.1rem; color: var(--color-text-secondary); }
.contacts__trust-check { color: var(--color-success); flex-shrink: 0; }

/* ========================================
   TEMPLATE BLOCKS
   ======================================== */
.residences__price { font-weight: 700; color: var(--color-accent-dark); margin-top: 6px; font-size: 1.1rem; }
.location__content { max-width: 700px; margin: 0 auto; }
.location__desc { color: var(--color-text-secondary); font-size: 1.2rem; line-height: 1.7; text-align: center; margin-bottom: var(--space-xl); }
.location__nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); }
.location__nearby-item {
    padding: var(--space-md); background: var(--color-bg-alt);
    border-radius: var(--radius-md); text-align: center; font-size: 1.05rem;
}
.nc-accordion { border-bottom: 1px solid var(--color-border); }
.nc-accordion__summary {
    padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 1.2rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    color: var(--color-text-primary);
}
.nc-accordion__arrow { color: var(--color-accent); font-size: 1.3rem; transition: transform var(--transition-base); }
.nc-accordion[open] .nc-accordion__arrow { transform: rotate(180deg); }
.nc-accordion__content {
    padding-bottom: 18px; color: var(--color-text-secondary);
    font-size: 1.1rem; line-height: 1.65; overflow: hidden;
    transition: height var(--transition-base);
}

/* ========================================
   SCROLL-TO-TOP
   ======================================== */
.scroll-top-btn {
    position: fixed; bottom: 32px; right: 32px; z-index: 99;
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid rgba(200, 164, 94, 0.3); background: rgba(0, 0, 0, 0.85);
    color: var(--color-accent); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover {
    background: var(--color-accent); color: var(--color-primary);
    border-color: var(--color-accent); box-shadow: 0 6px 28px rgba(200, 164, 94, 0.35);
    transform: translateY(-3px);
}
@media (max-width: 767px) { .scroll-top-btn { bottom: 20px; right: 20px; width: 44px; height: 44px; } }

/* ========================================
   GLASSMORPHISM
   ======================================== */
.section--dark .card,
.section--dark .stats-bar__card,
.section--dark .hero__investor-card {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
}
.section--dark .card:hover,
.section--dark .stats-bar__card:hover,
.section--dark .hero__investor-card:hover {
    background: rgba(255, 255, 255, 0.06); border-color: rgba(200, 164, 94, 0.25);
    box-shadow: 0 8px 32px rgba(200, 164, 94, 0.08); transform: translateY(-3px);
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger > *:nth-child(9) { transition-delay: 640ms; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .reveal-stagger > * { transition-delay: 0ms; }
}

/* ========================================
   SECTION overrides
   ======================================== */
.hero + .section { position: relative; z-index: 2; }
