/* ============================================
   CANHOHANGHIEU.VN - SHARED STYLES FOR PROJECT PAGES
   ============================================ */

:root {
    --navy-deep: #0a0e27;
    --navy-mid: #1a1f3a;
    --navy-text: #1F2E47;
    --gold-primary: #c9a961;
    --gold-light: #d4b889;
    --gold-pale: #EBDDC2;
    --gold-dark: #a88b4a;
    --cream: #FBF8F3;
    --cream-warm: #F5EFE5;
    --white-soft: #FEFCF8;
    --text-body: #2C3343;
    --text-muted: #6B7280;
    --border-soft: rgba(14, 27, 44, 0.08);

    --font-display: 'Playfair Display', 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, serif;
    --font-sans: 'Jost', -apple-system, sans-serif;

    --content-width: 760px;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--gold-primary); color: var(--white-soft); }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    color: var(--text-body);
    background: var(--white-soft);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.22;
    color: var(--navy-deep);
    letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--navy-deep); font-weight: 600; }

.section p { text-align: justify; text-justify: inter-word; }
.section-header p { text-align: center; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}
.content-wrap { max-width: var(--content-width); margin: 0 auto; }

.section { padding: 90px 0; }
.section-tight { padding: 70px 0; }
.section-cream { background: var(--cream); }
.section-warm { background: var(--cream-warm); }
.section-dark { background: var(--navy-deep); color: rgba(255,255,255,0.85); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark strong { color: #fff; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 600;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 18px 0 22px;
    font-weight: 400;
}

.section-header .lead {
    color: var(--navy-mid);
    font-size: 1.08rem;
    line-height: 1.75;
    font-weight: 400;
}

.divider {
    width: 50px;
    height: 1px;
    background: var(--gold-primary);
    margin: 22px auto;
    display: block;
}

/* HEADER */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    transition: all 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header.scrolled {
    background: rgba(10, 14, 39, 0.98);
    padding: 10px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    flex-shrink: 0;
}
.logo-icon { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1;
    color: #fff;
}
.logo-text span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    color: var(--gold-light);
    margin-top: 6px;
    text-transform: uppercase;
    font-weight: 500;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}
.nav-menu a {
    color: rgba(255,255,255,0.82);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}
.nav-menu a:hover { color: var(--gold-light); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }
.header-cta {
    padding: 11px 22px;
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-radius: 2px;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.header-cta:hover { background: var(--gold-primary); color: var(--navy-deep); }
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 42px; height: 42px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* BREADCRUMB */
.breadcrumb {
    background: var(--navy-deep);
    padding: 90px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.breadcrumb-inner a { color: rgba(255,255,255,0.6); }
.breadcrumb-inner a:hover { color: var(--gold-light); }
.breadcrumb-inner .sep { color: rgba(255,255,255,0.3); }
.breadcrumb-inner .current { color: var(--gold-light); }

/* HERO */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-deep);
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,14,39,0.7), rgba(26,31,58,0.55));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    padding: 0 32px;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    color: #fff;
    margin: 22px 0 26px;
    line-height: 1.1;
    font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 36px 0;
    flex-wrap: wrap;
}
.hero-meta-item { text-align: center; }
.hero-meta-item .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold-light);
    line-height: 1;
    font-weight: 500;
}
.hero-meta-item .label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-top: 10px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-gold {
    padding: 17px 38px;
    background: var(--gold-primary);
    color: var(--navy-deep);
    border: 1px solid var(--gold-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
    padding: 17px 38px;
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-outline:hover { background: var(--gold-primary); color: var(--navy-deep); }

/* INFO TABLE */
.info-table {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}
.info-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid var(--border-soft);
}
.info-row:last-child { border-bottom: none; }
.info-label {
    background: var(--cream);
    padding: 18px 22px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}
.info-value {
    padding: 18px 24px;
    color: var(--navy-deep);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* HIGHLIGHT GRID */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}
.highlight-item {
    background: #fff;
    padding: 32px 28px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(10,14,39,0.08);
    border-color: rgba(201,169,97,0.4);
}
.highlight-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold-primary);
    font-weight: 500;
    margin-bottom: 14px;
}
.highlight-item h4 {
    font-size: 1.2rem;
    color: var(--navy-deep);
    margin-bottom: 14px;
    font-weight: 500;
}
.highlight-item p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.7;
    text-align: justify;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 40px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 4px;
}

/* TWO COL */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}
.two-col img { border-radius: 4px; }
.two-col-text h3 { font-size: 1.7rem; margin-bottom: 18px; }

/* FORM */
.register-section {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}
.register-section .eyebrow { color: var(--gold-light); }
.register-section h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin: 16px auto 22px;
    max-width: 760px;
    font-weight: 400;
}
.register-section > .container > p {
    color: rgba(255,255,255,0.82);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.75;
    font-size: 1rem;
}
.register-form {
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.register-form input, .register-form select, .register-form textarea {
    padding: 16px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(212,184,137,0.5);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border-radius: 3px;
    text-align: center;
}
.register-form input::placeholder, .register-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}
.register-form textarea {
    grid-column: span 2;
    resize: vertical;
    min-height: 90px;
}
.register-form .btn-gold { grid-column: span 2; margin-top: 8px; }
.form-note {
    margin-top: 22px;
    color: rgba(255,255,255,0.6);
    font-size: 0.86rem;
}
.form-note a { color: var(--gold-light); }

/* RELATED PROJECTS */
.related-projects {
    background: var(--cream);
    padding: 80px 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 40px;
}
.related-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 24px 22px;
    transition: all 0.3s ease;
    display: block;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10,14,39,0.1);
    border-color: rgba(201,169,97,0.4);
}
.related-dev {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.related-card h4 {
    font-size: 1.18rem;
    color: var(--navy-deep);
    margin-bottom: 6px;
    font-weight: 500;
}
.related-loc {
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* FOOTER */
.footer {
    background: #060818;
    color: rgba(255,255,255,0.7);
    padding: 70px 0 30px;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 500;
}
.footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.75; }
.footer h4 {
    color: #fff;
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
    font-family: var(--font-sans);
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.62); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--gold-light); }
.footer-bottom {
    text-align: center;
    padding-top: 28px;
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
}
.footer-bottom .disclaimer {
    margin-top: 10px;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.32);
    max-width: 920px;
    margin: 10px auto 0;
    line-height: 1.6;
}

/* FAB */
.fab-group {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900;
}
.fab {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 24px rgba(10,14,39,0.25);
    transition: transform 0.3s ease;
    font-weight: 600;
}
.fab:hover { transform: scale(1.1); }
.fab-zalo { background: #0068FF; color: #fff; font-size: 0.85rem; font-weight: 700; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .info-row { grid-template-columns: 1fr; }
    .info-label { padding: 12px 18px; }
    .info-value { padding: 14px 18px; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .header-cta { display: none; }
    .section { padding: 60px 0; }
    .hero { min-height: 80vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero-meta { gap: 28px; }
    .hero-meta-item .num { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .highlight-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .register-form { grid-template-columns: 1fr; }
    .register-form textarea, .register-form .btn-gold { grid-column: span 1; }
    .container { padding: 0 20px; }
}

.nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,14,39,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
