/* ============================================================
   Ancordi — Data Center Construction
   Editorial layer: DM Serif Display / DM Sans / Bebas Neue
   ============================================================ */

.page-construction {
    --white: #FFFFFF;
    --off: #F4F5F7;
    --off2: #ECEEF2;
    --navy: #0B1F40;
    --navy2: #1A3461;
    --blue: #1D59C4;
    --blue-lt: #EBF1FB;
    --red: #D93B1B;
    --steel: #5C7EA8;
    --text: #1A2640;
    --text-md: #4A5C7A;
    --text-lt: #8A9AB8;
    --border: #D8DEEA;
    --shadow: 0 4px 24px rgba(11, 31, 64, 0.08);
    --shadow-lg: 0 16px 60px rgba(11, 31, 64, 0.14);
    --font-serif: 'DM Serif Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-disp: 'Bebas Neue', sans-serif;
    --max: 1240px;

    font-family: var(--font-body);
    background: var(--white);
    color: var(--text);
    line-height: 1.65;
}

.page-construction ::-webkit-scrollbar { width: 4px; }
.page-construction ::-webkit-scrollbar-track { background: var(--off); }
.page-construction ::-webkit-scrollbar-thumb { background: var(--blue); }

/* ── HERO ── */
#hero {
    min-height: calc(100vh - var(--a-header-h));
    display: flex; align-items: center;
    padding: 80px 5%;
    position: relative; overflow: hidden;
    background: var(--white);
}
.hero-blueprint {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--off2) 1px, transparent 1px),
        linear-gradient(90deg, var(--off2) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .7;
}
.hero-diagonal {
    position: absolute; top: 0; right: 0;
    width: 45%; height: 100%;
    background: var(--off);
    clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-diagonal-inner {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(29, 89, 196, .05) 28px, rgba(29, 89, 196, .05) 30px);
    clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-spec-card {
    position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
    width: 320px;
    background: var(--white); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); z-index: 2; overflow: hidden;
}
.hsc-header { background: var(--navy); padding: 16px 20px; display: flex; align-items: center; gap: 10px; }
.hsc-header h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 700; color: var(--white); letter-spacing: 3px; }
.hsc-dot { width: 8px; height: 8px; border-radius: 50%; background: #3bffb0; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
.hsc-body { padding: 20px; }
.hsc-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--off2); font-size: .8rem; }
.hsc-row:last-child { border-bottom: none; }
.hsc-label { color: var(--text-md); }
.hsc-val { font-weight: 700; color: var(--navy); }
.hsc-val.good { color: #1aaa64; }
.hsc-val.warn { color: var(--red); }
.hsc-bar { margin-top: 12px; }
.hsc-bar-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-lt); margin-bottom: 6px; }
.hsc-bar-track { height: 4px; background: var(--off2); border-radius: 2px; overflow: hidden; }
.hsc-bar-fill { height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--blue), #1aaa64); transition: width 1.5s ease .3s; }

.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .72rem; font-weight: 700; letter-spacing: 4px;
    color: var(--blue); margin-bottom: 24px;
    padding-bottom: 12px; border-bottom: 2px solid var(--blue);
}
.hero-eyebrow::before { content: '02'; font-family: var(--font-disp); font-size: 1rem; color: var(--text-lt); }
h1.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.4vw, 5rem);
    font-weight: 400; line-height: 1.05; color: var(--navy); margin-bottom: 10px;
}
h1.hero-title em { font-style: italic; color: var(--blue); display: block; }
.hero-en { font-family: var(--font-disp); font-size: clamp(1.2rem, 2.5vw, 2rem); letter-spacing: 6px; color: var(--text-lt); margin-bottom: 28px; line-height: 1; }
.hero-desc { font-size: 1rem; color: var(--text-md); line-height: 1.85; max-width: 500px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-dark {
    padding: 14px 32px; background: var(--navy); color: var(--white);
    font-weight: 700; font-size: .85rem; letter-spacing: 1.5px;
    text-decoration: none; display: inline-block; transition: all .3s; border: 2px solid var(--navy);
}
.btn-dark:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29, 89, 196, .3); }
.btn-ghost {
    padding: 12px 30px; border: 2px solid var(--border); color: var(--text-md);
    font-weight: 600; font-size: .85rem; letter-spacing: 1px;
    text-decoration: none; display: inline-block; transition: all .3s;
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.hero-numbers { display: flex; gap: 36px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-num-item .num { font-family: var(--font-disp); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.hero-num-item .num span { color: var(--blue); }
.hero-num-item .lbl { font-size: .77rem; color: var(--text-lt); margin-top: 4px; letter-spacing: .5px; }

/* ── SECTION COMMON ── */
.page-construction section { padding: 100px 5%; }
.page-construction .container { max-width: var(--max); margin: 0 auto; }

.sec-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: 4px; color: var(--blue); margin-bottom: 16px; }
.sec-tag::before { content: ''; width: 24px; height: 2px; background: var(--blue); }
h2.sec-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; color: var(--navy); line-height: 1.2; }
h2.sec-title em { font-style: italic; color: var(--blue); }
.sec-rule { width: 48px; height: 3px; background: var(--navy); margin: 20px 0 0; }

/* ── OVERVIEW STRIP ── */
#overview { background: var(--navy); padding: 60px 5%; }
.overview-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); }
.ov-item { background: var(--navy); padding: 40px 32px; position: relative; overflow: hidden; transition: background .3s; }
.ov-item:hover { background: var(--navy2); }
.ov-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.ov-item:hover::before { transform: scaleX(1); }
.ov-num { font-family: var(--font-disp); font-size: 3.5rem; color: var(--white); line-height: 1; margin-bottom: 8px; }
.ov-num span { color: var(--blue); }
.ov-label { font-size: .8rem; color: rgba(255, 255, 255, .5); letter-spacing: 1px; }
.ov-sub { font-size: .9rem; color: rgba(255, 255, 255, .75); margin-top: 8px; font-weight: 500; }

/* ── SERVICES 4-PILLAR ── */
#services { background: var(--white); }
.pillars-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; gap: 32px; flex-wrap: wrap; }
.pillar-tabs { display: flex; border: 1px solid var(--border); overflow: hidden; }
.ptab {
    padding: 10px 22px; font-size: .8rem; font-weight: 600;
    color: var(--text-md); cursor: pointer; letter-spacing: .5px;
    border-right: 1px solid var(--border); transition: all .25s; white-space: nowrap;
}
.ptab:last-child { border-right: none; }
.ptab.active { background: var(--navy); color: var(--white); }
.ptab:hover:not(.active) { background: var(--off); }

.pillar-panels { position: relative; }
.pillar-panel { display: none; }
.pillar-panel.active { display: grid; grid-template-columns: 1fr 1.1fr; }

.pp-left { padding: 56px 52px 56px 0; border-right: 1px solid var(--border); }
.pp-num { font-family: var(--font-disp); font-size: 5rem; line-height: 1; color: var(--off2); margin-bottom: -20px; letter-spacing: 2px; }
.pp-icon { font-size: 2rem; margin-bottom: 16px; }
.pp-title { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.pp-desc { color: var(--text-md); font-size: .92rem; line-height: 1.9; margin-bottom: 32px; }
.pp-features { display: flex; flex-direction: column; gap: 12px; }
.pp-feat { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--off); border-left: 3px solid transparent; transition: all .3s; }
.pp-feat:hover { border-left-color: var(--blue); background: var(--blue-lt); }
.pp-feat-icon { width: 36px; height: 36px; flex-shrink: 0; background: var(--white); border: 1px solid var(--border); display: grid; place-items: center; font-size: 1rem; }
.pp-feat-text h4 { font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.pp-feat-text p { font-size: .78rem; color: var(--text-md); line-height: 1.6; }

.pp-right { padding: 56px 0 56px 52px; }
.pp-right h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-md); margin-bottom: 24px; font-weight: 400; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pp-checklist { list-style: none; }
.pp-checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--off2); font-size: .88rem; color: var(--text); transition: all .2s; }
.pp-checklist li:last-child { border-bottom: none; }
.pp-checklist li:hover { color: var(--navy); padding-left: 8px; }
.pp-check { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; background: var(--navy); display: grid; place-items: center; font-size: .6rem; color: var(--white); }
.pp-highlight { margin-top: 28px; padding: 24px; background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.pp-highlight::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; background: rgba(255, 255, 255, .04); border-radius: 50%; }
.pp-highlight h4 { font-size: .7rem; letter-spacing: 3px; color: rgba(255, 255, 255, .5); margin-bottom: 8px; }
.pp-highlight p { font-size: .92rem; color: rgba(255, 255, 255, .85); line-height: 1.7; }
.pp-highlight .metric { display: flex; gap: 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pp-highlight .metric-item .val { font-family: var(--font-disp); font-size: 1.8rem; color: var(--white); line-height: 1; }
.pp-highlight .metric-item .lbl { font-size: .7rem; color: rgba(255, 255, 255, .45); margin-top: 2px; }

/* ── PROCESS TIMELINE ── */
#process { background: var(--off); }
.process-header { text-align: center; margin-bottom: 70px; }
.process-header .sec-rule { margin: 20px auto 0; }
.timeline { max-width: var(--max); margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--navy)); }
.tl-grid { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.tl-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; cursor: default; }
.tl-node {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--white); border: 3px solid var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-disp); font-size: .9rem; color: var(--navy);
    z-index: 1; transition: all .3s; position: relative;
}
.tl-item:hover .tl-node { background: var(--navy); color: var(--white); transform: scale(1.2); }
.tl-node.active { background: var(--navy); color: var(--white); }
.tl-connector { width: 2px; height: 28px; background: var(--border); }
.tl-card { background: var(--white); border: 1px solid var(--border); padding: 20px 16px; width: 100%; transition: all .3s; }
.tl-item:hover .tl-card { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-4px); }
.tl-phase { font-size: .65rem; font-weight: 700; letter-spacing: 3px; color: var(--blue); margin-bottom: 8px; }
.tl-title { font-family: var(--font-serif); font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.tl-desc { font-size: .75rem; color: var(--text-md); line-height: 1.7; }
.tl-duration { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--off2); font-size: .7rem; color: var(--text-lt); display: flex; align-items: center; justify-content: center; gap: 4px; }
.tl-duration::before { content: '⏱'; }

/* ── STANDARDS ── */
#standards { background: var(--off); padding: 80px 5%; }
.std-wrap { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center; }
.std-text p { color: var(--text-md); font-size: .92rem; line-height: 1.9; margin-top: 20px; }
.std-badges { display: flex; flex-wrap: wrap; gap: 16px; }
.std-badge { padding: 20px 24px; background: var(--white); border: 1px solid var(--border); text-align: center; min-width: 140px; transition: all .3s; flex: 1; }
.std-badge:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-3px); }
.std-badge-icon { font-size: 1.6rem; margin-bottom: 10px; }
.std-badge-name { font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: 4px; }
.std-badge-desc { font-size: .72rem; color: var(--text-lt); }

/* ── CTA ── */
#cta { background: var(--navy); padding: 100px 5%; position: relative; overflow: hidden; text-align: center; }
#cta::before {
    content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(29, 89, 196, .3) 0%, transparent 70%);
    pointer-events: none;
}
#cta .cta-body { position: relative; }
#cta .sec-tag { justify-content: center; color: rgba(255, 255, 255, .5); }
#cta .sec-tag::before { background: rgba(255, 255, 255, .3); }
#cta h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.4rem); color: var(--white); font-weight: 400; margin: 14px 0 20px; }
#cta h2 em { color: rgba(255, 255, 255, .45); font-style: italic; }
#cta p { color: rgba(255, 255, 255, .55); font-size: 1rem; max-width: 520px; margin: 0 auto 44px; line-height: 1.8; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { padding: 15px 38px; background: var(--white); color: var(--navy); font-weight: 700; font-size: .9rem; letter-spacing: 1.5px; text-decoration: none; display: inline-block; transition: all .3s; border: 2px solid var(--white); }
.btn-white:hover { background: transparent; color: var(--white); transform: translateY(-2px); }
.btn-outline-w { padding: 13px 36px; border: 2px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .7); font-weight: 600; font-size: .9rem; letter-spacing: 1px; text-decoration: none; display: inline-block; transition: all .3s; }
.btn-outline-w:hover { border-color: var(--white); color: var(--white); }
.cta-contact { display: flex; justify-content: center; gap: 48px; margin-top: 60px; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.cta-c-item { text-align: center; }
.cta-c-item .label { font-size: .7rem; letter-spacing: 3px; color: rgba(255, 255, 255, .35); margin-bottom: 6px; }
.cta-c-item .val { font-size: 1rem; font-weight: 600; color: var(--white); }
.cta-c-item .val a { text-decoration: none; }
.cta-c-item .val a:hover { color: var(--blue); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: all .65s ease; }
.reveal.up { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .hero-spec-card { display: none; }
    .hero-diagonal, .hero-diagonal-inner { width: 0; }
    .pillar-panel.active { grid-template-columns: 1fr; }
    .pp-left { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 40px; margin-bottom: 40px; }
    .pp-right { padding-left: 0; padding-top: 0; }
    .std-wrap { grid-template-columns: 1fr; gap: 40px; }
    .tl-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
    .overview-grid { grid-template-columns: 1fr 1fr; }
    .timeline::before { display: none; }
}

@media (max-width: 768px) {
    .tl-grid { grid-template-columns: 1fr; }
    .pillars-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .pillar-tabs { flex-wrap: wrap; width: 100%; }
    .ptab { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); text-align: center; }
    .hero-numbers { gap: 20px; }
    .page-construction section { padding: 70px 5%; }
    .overview-grid { grid-template-columns: 1fr; }
}
