/* =================================================================
   CovaiCare — PROJECTS PAGE
   Builds on about.css (banner, reveals, center-head, closing)
   ================================================================= */

.proj-section { background: var(--ivory); }
.proj-panel { scroll-margin-top: var(--hdr, 92px); }
.proj-panel:focus { outline: none; }

/* ---------- Tabs: big, clear, one tap ---------- */
.proj-tabs {
    display: flex; justify-content: center; gap: .6rem;
    width: fit-content;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding: .45rem;
    background: #fff;
    border: 1px solid rgba(82, 108, 87, .18);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 26px rgba(48, 53, 47, .07);
}
.proj-tab {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .9em 1.8em;
    border: 0; border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font: 700 clamp(1rem, .4vw + .92rem, 1.15rem)/1 var(--font-body);
    cursor: pointer;
    transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.proj-tab i { color: var(--sage); transition: color .35s ease; }
.proj-tab .count {
    display: grid; place-items: center;
    min-width: 1.75em; height: 1.75em; padding: 0 .4em;
    border-radius: 999px;
    background: var(--sage-cream); color: var(--ink);
    font-size: .8em;
    transition: background-color .35s ease;
}
.proj-tab:hover { background: var(--sage-cream); }
.proj-tab.is-active { background: var(--sage); color: #fff; box-shadow: 0 8px 18px rgba(82, 108, 87, .35); }
.proj-tab.is-active i { color: var(--yellow); }
.proj-tab.is-active .count { background: var(--yellow); color: var(--ink); }
.proj-tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* panel switch animation */
.proj-panel:not([hidden]) { animation: panelIn .6s cubic-bezier(.22, 1, .36, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Ongoing: large feature cards ---------- */
.proj-feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(48, 53, 47, .12);
}
.proj-feature + .proj-feature { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.proj-feature-media { position: relative; margin: 0; min-height: 380px; overflow: hidden; }
.proj-feature-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.proj-feature:hover .proj-feature-media img { transform: scale(1.05); }
.proj-status {
    position: absolute; top: 1.2rem; left: 1.2rem;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1rem;
    background: var(--yellow); color: var(--ink);
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: .95rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.proj-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(82, 108, 87, .6); } 100% { box-shadow: 0 0 0 10px rgba(82, 108, 87, 0); } }

.proj-feature-body { padding: clamp(1.5rem, 3.2vw, 2.75rem); }
.proj-name { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 2vw, 2.1rem); line-height: 1.15; color: var(--ink); margin-bottom: .4rem; }
.proj-loc { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: clamp(.95rem, .3vw + .88rem, 1.05rem); color: var(--ink); margin-bottom: .9rem; }
.proj-loc i { color: var(--sage); }
.proj-desc { font-size: clamp(1rem, .3vw + .92rem, 1.1rem); font-weight: 500; line-height: 1.7; color: var(--ink); margin-bottom: 1.2rem; }

.proj-facts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(82, 108, 87, .2);
    border-bottom: 1px solid rgba(82, 108, 87, .2);
    margin-bottom: 1.1rem;
}
.proj-facts dt { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); margin-bottom: .2rem; }
.proj-facts dd { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.1rem, 1.3vw, 1.3rem); color: var(--ink); }

.proj-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.proj-tags li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .85rem;
    background: var(--sage-cream);
    border-radius: var(--radius-pill);
    font-weight: 600; font-size: .92rem; color: var(--ink);
}
.proj-tags i { color: var(--sage); }

.proj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.proj-link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; color: var(--sage);
    text-decoration: underline; text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.proj-link .arw { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.proj-link:hover .arw { transform: translateX(4px); }

/* ---------- Completed: card grid ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(1.1rem, 2.2vw, 1.6rem); }
.proj-card-link {
    display: flex; flex-direction: column; height: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(48, 53, 47, .08);
    transition: transform .45s var(--ease), box-shadow .45s ease;
}
.proj-card-link:hover, .proj-card-link:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(48, 53, 47, .15); }
.proj-card-media { position: relative; margin: 0; overflow: hidden; }
.proj-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
.proj-card-link:hover .proj-card-media img { transform: scale(1.06); }
.proj-done {
    position: absolute; top: 1rem; left: 1rem;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .9rem;
    background: #fff; color: var(--ink);
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: .88rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}
.proj-done i { color: var(--sage); }
.proj-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem clamp(1.2rem, 2vw, 1.6rem) 1.5rem; }
.proj-card-desc { font-size: clamp(.98rem, .3vw + .9rem, 1.05rem); font-weight: 500; line-height: 1.65; color: var(--ink); margin-bottom: 1.2rem; }
.proj-card-foot { flex-wrap: wrap;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: auto; padding-top: 1rem;
    border-top: 1px solid rgba(82, 108, 87, .18);
}
.proj-res { font-weight: 600; color: var(--ink); }
.proj-res strong { font-family: var(--font-heading); font-size: 1.35rem; color: var(--sage); margin-right: .2rem; }
.proj-go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--sage); white-space: nowrap; }
.proj-go .arw { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.proj-card-link:hover .proj-go .arw { transform: translateX(4px); }

/* ---------- Numbers band ---------- */
.proj-stats-band { background: var(--sage); padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.proj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.proj-stats li + li { border-left: 1px solid rgba(255, 255, 255, .25); }
.proj-stats strong { display: block; font-family: var(--font-heading); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.1rem); color: var(--yellow); line-height: 1.1; }
.proj-stats span:not([data-count]) { font-weight: 600; color: #fff; font-size: clamp(.92rem, .3vw + .85rem, 1.05rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .proj-feature { grid-template-columns: 1fr; }
    .proj-feature-media { min-height: 0; aspect-ratio: 16 / 10; }
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .proj-stats { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
    .proj-stats li:nth-child(3) { border-left: 0; }
}
@media (max-width: 599px) {
    .proj-tabs { width: 100%; }
    .proj-tab { flex: 1; justify-content: center; padding: .9em .6em; }
    .proj-grid { grid-template-columns: 1fr; }
    .proj-facts { grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
}


/* =================================================================
   v38 — COMPLETED: zig-zag list with city filter
   ================================================================= */
.city-filter {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .55rem;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.city-filter-label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink); margin-right: .25rem; }
.city-filter-label i { color: var(--sage); }
.city-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.15rem;
    border: 2px solid rgba(82, 108, 87, .3);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font: 700 clamp(.95rem, .3vw + .88rem, 1.05rem)/1 var(--font-body);
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.city-chip span {
    display: grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em;
    border-radius: 999px; background: var(--sage-cream); font-size: .8em;
}
.city-chip:hover { border-color: var(--sage); }
.city-chip.is-on { background: var(--sage); border-color: var(--sage); color: #fff; }
.city-chip.is-on span { background: var(--yellow); color: var(--ink); }
.city-chip:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.done-list { display: grid; gap: clamp(1.5rem, 3.5vw, 2.75rem); }

.done-row {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
}
.done-row[hidden] { display: none; }
.done-row.is-in { animation: panelIn .6s cubic-bezier(.22, 1, .36, 1); }

.done-row-media {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(48, 53, 47, .16);
}
.done-row-media img {
    width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover;
    transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.done-row:hover .done-row-media img { transform: scale(1.06); }
.done-row-badge {
    position: absolute; top: 1.1rem; left: 1.1rem;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1rem;
    background: rgba(255, 255, 255, .95); color: var(--ink);
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: .92rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}
.done-row-badge i { color: var(--sage); }

/* content card overlaps the photo */
.done-row-body {
    position: relative; z-index: 1;
    margin-left: clamp(-5rem, -6vw, -2rem);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 22px 50px rgba(48, 53, 47, .13);
    border-bottom: 6px solid var(--yellow);
}
.done-row-num {
    position: absolute; top: clamp(.8rem, 2vw, 1.4rem); right: clamp(1rem, 2.4vw, 1.8rem);
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(82, 108, 87, .35);
}
.done-row-body .proj-name { padding-right: 4.5rem; }
.done-row-desc { font-size: clamp(1rem, .3vw + .92rem, 1.1rem); font-weight: 500; line-height: 1.7; color: var(--ink); margin-bottom: 1.2rem; }

.done-row-facts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
    margin-bottom: 1.4rem;
}
.done-row-facts li {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .75rem;
    background: var(--sage-cream);
    border-radius: 14px;
}
.done-row-facts i {
    flex: none; display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--sage); color: #fff; font-size: .9rem;
}
.done-row-facts span { font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.done-row-facts strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; }

/* zig-zag: every second row flips */
.done-row.is-alt { grid-template-columns: 1fr 1.1fr; }
.done-row.is-alt .done-row-media { order: 2; }
.done-row.is-alt .done-row-body { margin-left: 0; margin-right: clamp(-5rem, -6vw, -2rem); }

@media (max-width: 1024px) {
    .done-row, .done-row.is-alt { grid-template-columns: 1fr; }
    .done-row.is-alt .done-row-media { order: 0; }
    .done-row-body, .done-row.is-alt .done-row-body { margin: -3.5rem clamp(.75rem, 3vw, 1.5rem) 0; }
}
@media (max-width: 599px) {
    .done-row-facts { grid-template-columns: 1fr 1fr; }
    .done-row-facts li:last-child { grid-column: 1 / -1; }
    .done-row-btn { width: 100%; justify-content: center; }
    .city-filter-label { width: 100%; justify-content: center; }
}

.done-row > * { min-width: 0; }
.done-row-facts li { min-width: 0; }
.done-row-facts strong { overflow-wrap: anywhere; }
.done-row.is-alt .done-row-badge { left: auto; right: 1.1rem; }
@media (max-width: 1024px) {
    .done-row.is-alt .done-row-badge { right: auto; left: 1.1rem; }
}
@media (max-width: 599px) {
    .done-row-num { font-size: 2.2rem; -webkit-text-stroke-width: 1.5px; }
    .done-row-body .proj-name { padding-right: 3rem; }
    .done-row-body, .done-row.is-alt .done-row-body { margin: -2.5rem .6rem 0; padding: 1.3rem 1.1rem 1.4rem; }
}
@media (max-width: 599px) {
    .done-row-facts li:last-child { grid-column: auto; }
    .done-row-facts li:nth-child(2) { grid-column: 1 / -1; order: 3; }
    .done-row-facts strong { overflow-wrap: normal; }
}


/* =================================================================
   v39 — Two CTAs per project + Enquiry popup
   ================================================================= */
.btn-outline {
    --btn-bg: transparent;
    --btn-fg: var(--sage);
    border: 2px solid var(--sage);
    padding: calc(.78em - 2px) calc(1.5em - 2px);
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--sage); color: #fff; }
button.btn { border: 0; cursor: pointer; font-family: var(--font-body); }
button.btn.btn-outline { border: 2px solid var(--sage); }

.proj-actions, .done-row-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.done-row-actions { margin-top: .2rem; }
@media (max-width: 599px) {
    .proj-actions .btn, .done-row-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- popup ---------- */
html.enq-lock, html.enq-lock body { overflow: hidden; }

.enq-modal {
    width: min(720px, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    overflow: visible;
    color: var(--ink);
}
.enq-modal::backdrop { background: rgba(30, 33, 29, .62); backdrop-filter: blur(3px); }
.enq-modal[open] { animation: enqIn .45s cubic-bezier(.22, 1, .36, 1); }
.enq-modal:not(.is-open) { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .2s ease, transform .2s ease; }
@keyframes enqIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

.enq-box {
    position: relative;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: var(--radius-lg);
    border-top: 7px solid var(--yellow);
    padding: clamp(1.4rem, 3.5vw, 2.4rem);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.enq-close {
    position: absolute; top: .9rem; right: .9rem;
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--sage-cream); color: var(--ink);
    font-size: 1.3rem; cursor: pointer;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.enq-close:hover, .enq-close:focus-visible { background: var(--sage); color: #fff; transform: rotate(90deg); }

.enq-head { margin-bottom: 1.3rem; padding-right: 3rem; }
.enq-kicker { font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin-bottom: .35rem; }
.enq-head h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: .7rem; }
.enq-project {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .5rem 1rem;
    background: var(--sage-cream);
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 1rem;
}
.enq-project i { color: var(--sage); }

.enq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .enq-type legend { font-weight: 700; font-size: 1rem; color: var(--ink); }
.field label span, .enq-type legend span { color: #B3261E; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 2px solid rgba(48, 53, 47, .22);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 500 1.05rem/1.4 var(--font-body);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7068; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(82, 108, 87, .18);
}
.select-wrap { position: relative; }
.select-wrap::after {
    content: ""; position: absolute; right: 1.1rem; top: 50%;
    width: 9px; height: 9px; margin-top: -7px;
    border-right: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage);
    transform: rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }

/* resale / rental choice */
.enq-type { border: 0; padding: 0; margin: 0 0 1.1rem; }
.enq-type legend { margin-bottom: .5rem; }
.type-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.type-opt { position: relative; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; inset: 0; }
.type-opt span {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 1rem;
    border: 2px solid rgba(48, 53, 47, .22);
    border-radius: 14px;
    font-weight: 700; font-size: 1.1rem;
    transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.type-opt span i { color: var(--sage); font-size: 1.2rem; transition: color .25s ease; }
.type-opt:hover span { border-color: var(--sage); }
.type-opt input:checked + span { background: var(--sage); border-color: var(--sage); color: #fff; }
.type-opt input:checked + span i { color: var(--yellow); }
.type-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(226, 182, 74, .6); }

/* errors */
.has-error input, .has-error select, .has-error textarea { border-color: #B3261E; }
.has-error .type-opt span { border-color: #B3261E; }
.err { color: #B3261E; font-weight: 600; font-size: .92rem; }

.enq-submit { width: 100%; justify-content: center; margin-top: 1.3rem; font-size: 1.08rem; padding-block: 1em; }

.enq-foot {
    display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
    margin-top: 1.1rem; font-weight: 600; font-size: .98rem; color: var(--ink);
}
.enq-foot i { color: var(--sage); }
.enq-foot a { color: var(--sage); font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }

.enq-done { text-align: center; padding: 1rem 0 .5rem; }
.enq-done-icon { display: block; font-size: 3.4rem; color: var(--sage); margin-bottom: .6rem; animation: enqIn .6s cubic-bezier(.34, 1.56, .64, 1); }
.enq-done h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: .5rem; }
.enq-done p { font-size: 1.08rem; font-weight: 500; line-height: 1.6; margin-bottom: 1.3rem; }

@media (max-width: 599px) {
    .enq-grid { grid-template-columns: 1fr; }
    .enq-modal { width: calc(100vw - 1rem); }
}

/* v40 — compact popup: no visible labels, placeholders carry the field name */
.enq-box { padding: clamp(1.2rem, 3vw, 2rem); }
.enq-head { margin-bottom: 1rem; }
.enq-head h2 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); margin-bottom: .55rem; }
.enq-grid { gap: .75rem .85rem; }
.field { gap: 0; }
.field input, .field select, .field textarea { padding: .8rem 1rem; }
.field select:invalid, .field select option[value=""] { color: #6b7068; }
.field select option { color: var(--ink); }
.field textarea { min-height: 72px; }
.enq-type { margin-bottom: .8rem; }
.type-opt span { padding: .8rem; }
.enq-submit { margin-top: 1rem; }
.enq-foot { margin-top: .8rem; }
.err { margin-top: .3rem; font-size: .88rem; }
@media (max-width: 599px) {
    .enq-grid { gap: .65rem; }
    .enq-head h2 { font-size: 1.35rem; }
}


/* =================================================================
   v59 — Ongoing project client update: one-screen card, info popups
   ================================================================= */
/* ---------- Info popups (Projects page) ---------- */
.info-modal { width: min(920px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; overflow: visible; }
.info-modal::backdrop { background: rgba(30, 33, 29, .62); backdrop-filter: blur(3px); }
.info-modal[open] { animation: enqIn .45s cubic-bezier(.22, 1, .36, 1); }
.info-box { position: relative; max-height: calc(100dvh - 1.5rem); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); border-top: 7px solid var(--yellow); padding: clamp(1.3rem, 3vw, 2rem); }
.info-box h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--ink); margin-bottom: 1rem; padding-right: 3rem; }
.info-plans, .info-tour { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.info-tour { grid-template-columns: 1fr 1fr; }
.info-plans figure, .info-tour figure { margin: 0; background: var(--ivory); border-radius: 14px; overflow: hidden; }
.info-plans img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: contain; background: #fff; }
.info-tour img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.info-plans figcaption, .info-tour figcaption { padding: .55rem .6rem; font-weight: 700; font-size: .9rem; text-align: center; color: var(--ink); }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem; }
.info-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
.info-list li i { flex: none; margin-top: .2rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .7rem; }
.info-empty { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; padding: 2rem 1rem; background: var(--ivory); border-radius: 14px; }
.info-empty.is-wide { background: #fff; padding: clamp(2rem, 5vw, 3.5rem) 1rem; border-radius: var(--radius-lg); box-shadow: 0 12px 30px rgba(48, 53, 47, .08); }
.info-empty > i { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 1.8rem; }
.info-empty p { max-width: 48ch; font-size: 1.05rem; font-weight: 500; line-height: 1.6; color: var(--ink); }
.info-foot { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(48, 53, 47, .12); }
@media (max-width: 700px) { .info-plans { grid-template-columns: 1fr 1fr; } .info-list, .info-tour { grid-template-columns: 1fr; } }

/* ---------- Projects listing: heading + one-screen card ---------- */
.pl-card { padding-top: clamp(1.2rem, 2.5vw, 2rem); }
.pl-head { text-align: center; margin-bottom: 1rem; }
.pl-crumbs { justify-content: center; color: var(--ink); margin-bottom: .3rem; font-size: .9rem; }
.pl-crumbs a { color: var(--sage); }
.pl-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; color: var(--ink); }
.pl-card .proj-tabs { margin-bottom: 1.1rem; }
.proj-info { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.proj-info :is(button, a) { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .65rem .8rem; border: 2px solid rgba(82, 108, 87, .28); border-radius: 12px; background: #fff; color: var(--ink); font: 700 .95rem/1.25 var(--font-body); text-align: left; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.proj-info :is(button, a) i { color: var(--sage); transition: color .25s ease; }
.proj-info :is(button, a):hover, .proj-info :is(button, a):focus-visible { background: var(--sage); border-color: var(--sage); color: #fff; }
.proj-info :is(button, a):hover i, .proj-info :is(button, a):focus-visible i { color: var(--yellow); }
.pl-card .proj-actions { gap: .55rem; }
.pl-card .proj-actions .btn { padding: .7em 1.05em; }
.done-row-facts.is-four { grid-template-columns: repeat(4, 1fr); }
.done-row-facts.is-four li { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .65rem .6rem; }
.done-row-facts.is-four strong { font-size: 1.02rem; }
@media (min-width: 1025px) {
    .pl-card .proj-feature { height: clamp(390px, calc(100svh - var(--hdr, 92px) - 205px), 620px); }
    .pl-card .proj-feature-media { min-height: 0; height: 100%; }
    .pl-card .proj-feature-body { padding: clamp(1rem, 2.4vh, 2rem) clamp(1.3rem, 2.4vw, 2.2rem); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
    .pl-card .proj-name { margin-bottom: .2rem; }
    .pl-card .proj-loc { margin-bottom: .45rem; }
    .pl-card .proj-desc { margin-bottom: .6rem; }
    .pl-card .proj-facts { padding: .55rem 0; gap: .4rem 1.5rem; margin-bottom: .7rem; }
    .pl-card .proj-facts dt { margin-bottom: 0; }
    .pl-card .proj-facts dd { }
    .pl-card .proj-info { margin-bottom: .7rem; gap: .4rem; }
    .pl-card .proj-info :is(button, a) { padding: .5rem .7rem; }
}
@media (max-width: 767px) { .done-row-facts.is-four { grid-template-columns: 1fr 1fr; } .done-row-facts.is-four li:last-child, .done-row-facts.is-four li:nth-child(2) { grid-column: auto; order: 0; } }

/* Projects listing: title + tabs in one row, card fills the rest of the screen */
@media (min-width: 1025px) {
    .pl-card { padding-top: clamp(.8rem, 2.2vh, 1.6rem); }
    .pl-card > .container { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1.5rem; }
    .pl-card > .container > * { grid-column: 1 / -1; }
    .pl-card > .container > .pl-head { grid-column: 1; text-align: left; margin-bottom: clamp(.7rem, 2vh, 1.1rem); }
    .pl-card > .container > .proj-tabs { grid-column: 2; grid-row: 1; margin: 0 0 clamp(.7rem, 2vh, 1.1rem); }
    .pl-crumbs { display: none; }
    .pl-title { font-size: clamp(1.6rem, 4.6vh, 2.4rem); }
    .pl-card .proj-tab { padding: .7em 1.4em; }
    .pl-card .proj-feature { height: clamp(360px, calc(100svh - var(--hdr, 92px) - 125px), 640px); }
    .pl-card .proj-feature-body > * { flex: none; }
    .pl-card .proj-actions .btn { padding: .6em .95em; }
}
@media (min-width: 1025px) and (max-height: 700px) {
    .pl-card .proj-feature-body { padding-block: .8rem; }
    .pl-card .proj-loc { margin-bottom: .3rem; }
    .pl-card .proj-desc { margin-bottom: .45rem; }
    .pl-card .proj-facts { padding: .4rem 0; gap: .25rem 1.5rem; margin-bottom: .5rem; }
    .pl-card .proj-facts dd { }
    .pl-card .proj-info { margin-bottom: .5rem; gap: .35rem; }
    .pl-card .proj-info :is(button, a) { padding: .4rem .7rem; }
}

.pl-card > .container > .pl-head { align-self: center; }
.pl-head .pl-title { margin: 0; }
@media (max-width: 1024px) { .pl-head { margin-bottom: 1.1rem; } }

/* v60 — title and tabs keep their original centred design; only the ongoing card is sized to one screen */
.pl-card { padding-top: clamp(3.5rem, 7vw, 6.5rem); }
@media (min-width: 1025px) {
    .pl-card > .container { display: block; }
    .pl-card .proj-tabs { margin: 0 auto clamp(2rem, 4vw, 3rem); }
    .pl-card .proj-tab { padding: .9em 1.8em; }
    .pl-card .proj-feature { height: clamp(360px, calc(100svh - var(--hdr, 92px) - 48px), 640px); scroll-margin-top: calc(var(--hdr, 92px) + 24px); }
}
@media (min-width: 1025px) {
    .pl-card > .container > .proj-tabs { grid-column: auto; grid-row: auto; margin: 0 auto clamp(2rem, 4vw, 3rem); }
}

/* v61 — original font sizes; smaller photo, wider content column so the card still fits one screen */
@media (min-width: 1025px) {
    .pl-card .proj-feature { grid-template-columns: .72fr 1.28fr; }
    .pl-card .proj-facts { grid-template-columns: repeat(4, auto); justify-content: space-between; }
    .pl-card .proj-info { grid-template-columns: repeat(4, auto); justify-content: start; }
    .pl-card .proj-info :is(button, a) { white-space: nowrap; }
    .pl-card .proj-actions .btn { padding: .78em 1.5em; }
}
@media (min-width: 1025px) {
    .pl-card .proj-facts { padding: .9rem 0; margin-bottom: 1rem; }
    .pl-card .proj-info { gap: .55rem; margin-bottom: 1.1rem; }
    .pl-card .proj-info :is(button, a) { padding: .6rem .95rem; font-size: .95rem; }
    .pl-card .proj-desc { margin-bottom: 1rem; }
}

/* v62 — completed cards: four highlights; green strip lead line */
.done-row-facts.is-four { grid-template-columns: repeat(2, 1fr); }
.done-row-facts.is-four li { flex-direction: row; align-items: center; gap: .6rem; padding: .7rem .75rem; }
.done-row-facts.is-four strong { font-size: 1.15rem; }
.proj-stats-lead { text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: #fff; margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem); }
.proj-stats-lead::after { content: ""; display: block; width: 70px; height: 4px; border-radius: 4px; background: var(--yellow); margin: .7rem auto 0; }
@media (max-width: 599px) { .done-row-facts.is-four li, .done-row-facts.is-four li:last-child, .done-row-facts.is-four li:nth-child(2) { grid-column: auto; order: 0; } }

/* v63 — project gallery box (Life @ Covai) */
.fx { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(20, 22, 19, .985); opacity: 0; transition: opacity .25s ease; }
.fx[hidden] { display: none; }
.fx.is-open { opacity: 1; }
.fx-top { display: flex; align-items: center; gap: 1rem; padding: .8rem clamp(.8rem, 2vw, 1.5rem); color: #fff; }
.fx-title { flex: 1; min-width: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.fx-title em { display: block; font: 600 .82rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.fx-count { font-weight: 700; font-size: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.fx-close, .fx-nav { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.25rem; cursor: pointer; transition: background-color .25s ease; }
.fx-close:hover, .fx-nav:hover { background: var(--yellow); }
.fx-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, 1.5rem); padding: 0 clamp(.5rem, 2vw, 1.5rem); }
.fx-fig { margin: 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.fx-fig img { max-width: 100%; max-height: calc(100% - 2.4rem); object-fit: contain; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.fx-fig img.is-in { animation: fxIn .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes fxIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.fx-fig figcaption { color: #fff; font-weight: 600; font-size: 1.05rem; text-align: center; }
.fx-thumbs { display: flex; gap: .5rem; justify-content: safe center; padding: .8rem clamp(.8rem, 2vw, 1.5rem) 1rem; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; }
.fx-thumbs::-webkit-scrollbar { display: none; }
.fx-thumbs button { display: block; width: 92px; height: 64px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .55; transition: opacity .25s ease, border-color .25s ease; }
.fx-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.fx-thumbs button:hover { opacity: .9; }
.fx-thumbs button.is-on { opacity: 1; border-color: var(--yellow); }
@media (max-width: 767px) {
    .fx-stage { position: relative; padding: 0 .5rem; }
    .fx-nav { position: absolute; bottom: .4rem; z-index: 1; width: 46px; height: 46px; }
    .fx-prev { left: calc(50% - 56px); } .fx-next { right: calc(50% - 56px); }
    .fx-fig img { max-height: calc(100% - 6.5rem); }
    .fx-fig { justify-content: flex-start; padding-top: .5rem; }
    .fx-thumbs button { width: 70px; height: 50px; }
}
