/* Shared styles for the standalone pages: products.html and product-*.html (no header / footer) */
.pg-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.pg-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.pg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,27,59,.96) 10%, rgba(6,27,59,.7) 55%, rgba(6,27,59,.35)); }
.pg-hero .container-xl { padding-block: clamp(4.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.pg-hero h1 { font-family: var(--ff-head); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.1; margin: 0 0 1rem; max-width: 16ch; }
.pg-hero h1 em { color: var(--teal-hi); font-weight: 400; }
.pg-hero .lead-l { max-width: 560px; color: rgba(255,255,255,.78); font-size: 0.98rem; }
.pg-crumbs { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 1.4rem; }
.pg-crumbs a { color: var(--teal-hi); }
.pg-sec { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.pg-sec.alt { background: #F5F8FA; }
.pg-sec.dark { background: linear-gradient(160deg, #003F67, #061B3B); color: #fff; }
.pg-hero {
    position: relative;
    color: #fff;
    background: var(--navy);
    overflow: hidden;
    isolation: isolate;

    padding-top: 40px; /* Space above the hero content */
}

/* listing */
.pl-tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.pl-tab { min-height: 44px; padding: 0 1.4rem; border: 1px solid #CBD7E0; background: #fff; color: var(--navy); font: 500 .74rem var(--ff-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: .3s var(--ease); }
.pl-tab:hover { border-color: var(--teal); color: var(--teal); }
.pl-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pl-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #DDE6EC; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; color: inherit; }
.pl-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -28px rgba(6,27,59,.45); border-color: var(--teal); color: inherit; }
.pl-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.pl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pl-card:hover .pl-media img { transform: scale(1.07); }
.pl-tag { position: absolute; left: 0; top: 1rem; padding: .3rem .8rem; background: var(--navy); color: #fff; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.pl-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pl-body h3 { font-family: var(--ff-head); font-size: 1.35rem; color: var(--navy); margin-bottom: .55rem; }
.pl-body p { color: #687587; font-size: .92rem; flex: 1; }
.pl-more { display: inline-flex; align-items: center; gap: .5rem; color: var(--teal); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; min-height: 36px; }
.pl-more i { transition: transform .35s var(--ease); }
.pl-card:hover .pl-more i { transform: translateX(5px); }
.pl-item[hidden] { display: none; }

/* detail */
.pd-gallery { position: relative; }
.pd-gallery .main { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -30px rgba(6,27,59,.5); }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-gallery::before { content: ""; position: absolute; top: -14px; right: -14px; width: 55%; height: 55%; border: 2px solid var(--teal); z-index: -1; }
.pd-gallery .badge-n { position: absolute; left: 0; bottom: 1.4rem; background: var(--teal); color: #fff; padding: .55rem 1.1rem; font-family: var(--ff-head); font-size: 1.4rem; }
.pd-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.pd-facts li { display: flex; gap: .8rem; align-items: flex-start; color: var(--navy); }
.pd-facts i { color: var(--teal); margin-top: .2rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.pd-card { height: 100%; background: #fff; border: 1px solid #DDE6EC; padding: 1.9rem 1.6rem; position: relative; transition: .45s var(--ease); }
.pd-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 24px 44px -28px rgba(6,27,59,.4); }
.pd-card .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: var(--teal); background: rgba(0,166,166,.1); margin-bottom: 1rem; }
.pd-card h3 { font-family: var(--ff-head); font-size: 1.2rem; color: var(--navy); }
.pd-card p { color: #687587; font-size: .92rem; margin: 0; }
.pd-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pd-steps li { position: relative; padding-top: 4.2rem; }
.pd-steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0; width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--teal-hi); border-radius: 28px 28px 0 0; font-family: var(--ff-head); font-size: 1.3rem; color: var(--teal-hi); }
.pd-steps h3 { font-family: var(--ff-head); font-size: 1.2rem; color: #fff; }
.pd-steps p { color: rgba(255,255,255,.72); font-size: .92rem; margin: 0; }
.pd-note { font-size: .85rem; color: #687587; border-left: 3px solid var(--teal); padding: .6rem 1rem; background: rgba(0,166,166,.06); margin-top: 1.5rem; }
.pd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pd-nav a { display: block; padding: 1.1rem 1.3rem; border: 1px solid #DDE6EC; background: #fff; color: var(--navy); min-height: 64px; transition: .35s var(--ease); }
.pd-nav a:hover { border-color: var(--teal); background: var(--navy); color: #fff; }
.pd-nav small { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.pd-nav .next { text-align: right; }
.pg-cta { text-align: center; background: linear-gradient(135deg, var(--navy), #003F67); color: #fff; }
.pg-cta h2 { font-family: var(--ff-head); font-size: clamp(1.8rem, 4.2vw, 3rem); }
.pg-cta h2 em { color: var(--teal-hi); }
.pg-cta .acts { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.6rem; }
.pg-back { position: fixed; left: 14px; bottom: 16px; z-index: 1040; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.pg-back:hover { color: #fff; background: var(--teal); }
.pg-main { overflow-x: clip; padding-bottom: 80px; }
@media (max-width: 575.98px) { .pd-nav { grid-template-columns: 1fr; } .pd-nav .next { text-align: left; } .pg-back { left: 12px; bottom: 12px; } }

/* projects */
.pj-note { display: flex; gap: .75rem; align-items: flex-start; max-width: 760px; margin: 0 auto 2rem; padding: .8rem 1.1rem; font-size: .85rem; color: #687587; border-left: 3px solid var(--teal); background: rgba(0,166,166,.07); }
.pj-note i { color: var(--teal); margin-top: .15rem; }
.pj-grid { columns: 3 280px; column-gap: 1.25rem; }
.pj-item { break-inside: avoid; margin: 0 0 1.25rem; position: relative; overflow: hidden; background: var(--navy); }
.pj-item[hidden] { display: none; }
.pj-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.pj-item img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease), opacity .4s; }
.pj-item:hover img { transform: scale(1.06); opacity: .85; }
.pj-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; text-align: left; color: #fff; background: linear-gradient(0deg, rgba(6,27,59,.92), transparent); transform: translateY(35%); opacity: 0; transition: .5s var(--ease); }
.pj-item:hover .pj-cap, .pj-item button:focus-visible .pj-cap { transform: none; opacity: 1; }
@media (hover: none) { .pj-cap { transform: none; opacity: 1; } }
.pj-cap small { display: block; color: var(--teal-hi); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.pj-cap b { font: 500 1.1rem var(--ff-head); }
.pj-type { height: 100%; padding: 1.8rem 1.5rem; background: #fff; border: 1px solid #DDE6EC; transition: .45s var(--ease); }
.pj-type:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 24px 44px -28px rgba(6,27,59,.4); }
.pj-type i { font-size: 1.6rem; color: var(--teal); }
.pj-type h3 { font-family: var(--ff-head); font-size: 1.2rem; color: var(--navy); margin: .8rem 0 .4rem; }
.pj-type p { color: #687587; font-size: .92rem; margin: 0; }
.lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(6,27,59,.94); }
.lb.is-open { display: flex; }
.lb figure { margin: 0; max-width: min(1100px, 100%); }
.lb img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; }
.lb figcaption { text-align: center; color: #fff; margin-top: .8rem; font-family: var(--ff-head); font-size: 1.15rem; }
.lb button { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; display: grid; place-items: center; cursor: pointer; transition: .3s; }
.lb button:hover { background: var(--teal); border-color: var(--teal); }
.lb .x { top: 16px; right: 16px; } .lb .pv { left: 16px; top: 50%; margin-top: -24px; } .lb .nx { right: 16px; top: 50%; margin-top: -24px; }

/* contact */
.ct-card { background: #fff; border: 1px solid #DDE6EC; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 30px 60px -36px rgba(6,27,59,.45); }
.ct-card h2 { font-family: var(--ff-head); font-size: 1.7rem; color: var(--navy); }
.ct-form label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: .45rem; font-weight: 500; }
.ct-form label span { color: #687587; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ct-form input, .ct-form select, .ct-form textarea { width: 100%; min-height: 50px; padding: .8rem 1rem; border: 1px solid #CBD7E0; background: #F8FAFB; color: var(--navy); font: 400 .95rem var(--ff-body); border-radius: 0; transition: .3s; }
.ct-form textarea { min-height: 130px; resize: vertical; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: 0; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(0,166,166,.16); }
.ct-form .is-invalid { border-color: #d64545; }
.ct-form .field-error { color: #c0392b; }
.ct-form .form-status.is-success { color: #0a7a5a; } .ct-form .form-status.is-error { color: #c0392b; } .ct-form .form-status.is-info { color: var(--navy); }
.ct-wa { display: flex; align-items: center; gap: .6rem; background: #25D366; color: #fff; border: 0; min-height: 54px; padding: 0 1.8rem; font: 600 .78rem var(--ff-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: .3s var(--ease); }
.ct-wa:hover { background: #1ebe5a; transform: translateY(-2px); }
.ct-note { font-size: .82rem; color: #687587; margin: .9rem 0 0; }
.ct-info a, .ct-info div.row-i { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.25rem; background: #fff; border: 1px solid #DDE6EC; color: var(--navy); transition: .35s var(--ease); margin-bottom: .9rem; }
.ct-info a:hover { border-color: var(--teal); transform: translateX(4px); color: var(--navy); }
.ct-info i { font-size: 1.35rem; color: var(--teal); margin-top: .1rem; }
.ct-info small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; color: #687587; }
.ct-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.ct-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.ct-steps li { position: relative; padding-top: 4.2rem; }
.ct-steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0; width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--teal-hi); border-radius: 28px 28px 0 0; font-family: var(--ff-head); font-size: 1.3rem; color: var(--teal-hi); }
.ct-steps h3 { font-family: var(--ff-head); font-size: 1.2rem; color: #fff; } .ct-steps p { color: rgba(255,255,255,.72); font-size: .92rem; margin: 0; }
