/* ============================================================
   PROJECT DETAIL PAGES — shared stylesheet
   Used by p3.php and every client project page (project-*.php).
   Extracted from p3.php so the design lives in ONE place;
   edit here and every project page updates together.
   ============================================================ */

:root{
    --dark-blue:#00468B;
    --deep-navy:#002B55;
    --navy-ink:#0B1B2E;
    --cyan:#00A8EA;
    --cyan-soft:rgba(0,168,234,.12);
    --bg:#F5F8FC;
    --card:#FFFFFF;
    --text:#22303F;
    --muted:#5A6B7D;
    --line:rgba(0,70,139,.12);
    --radius:18px;
    --shadow:0 10px 30px rgba(0,43,85,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
}

body.no-scroll{
    overflow:hidden;
}

h1,h2,h3,.eyebrow{
    font-family:'Poppins',sans-serif;
}

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

.container{
    width:min(1200px,90%);
    margin-inline:auto;
}

/* ========== HERO ========== */

.hero{
    position:relative;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(0,168,234,.25), transparent 60%),
        linear-gradient(160deg, var(--deep-navy) 0%, var(--dark-blue) 70%, #005AA9 100%);
    color:#fff;
    padding:56px 0 130px;
    overflow:hidden;
}

/* faint grid — parang distribution network map */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size:56px 56px;
    mask-image:radial-gradient(ellipse at 70% 20%, #000 30%, transparent 75%);
    -webkit-mask-image:radial-gradient(ellipse at 70% 20%, #000 30%, transparent 75%);
    pointer-events:none;
}

.hero > .container{
    position:relative;
    z-index:1;
}

.back-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    padding:9px 18px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:999px;
    transition:background .25s ease, border-color .25s ease;
}

.back-btn:hover{
    background:rgba(255,255,255,.12);
    border-color:#fff;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:56px;
    align-items:center;
    margin-top:48px;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:12.5px;
    font-weight:600;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#8FD9F8;
    margin-bottom:18px;
}

.eyebrow::before{
    content:"";
    width:28px;
    height:2px;
    background:var(--cyan);
}

.hero h1{
    font-size:clamp(30px,4.2vw,52px);
    line-height:1.12;
    font-weight:700;
    margin-bottom:18px;
}

.hero-sub{
    max-width:560px;
    line-height:1.8;
    color:rgba(255,255,255,.85);
    margin-bottom:28px;
}

.hero-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.hero-tags span{
    font-size:13px;
    font-weight:500;
    padding:8px 16px;
    border-radius:999px;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter:blur(4px);
}

.hero-photo{
    position:relative;
}

.hero-photo img{
    width:100%;
    height:490px;
    object-fit:cover;
    border-radius:var(--radius);
    box-shadow:0 24px 60px rgba(0,0,0,.35);
}

/* logo-style hero images (most client pages only have a logo,
   not a photo) — show them whole on a white card instead of cropping */
.hero-photo.is-logo img{
    object-fit:contain;
    background:#fff;
    padding:32px;
    height:380px;
}

.hero-photo::after{
    content:"";
    position:absolute;
    inset:14px -14px -14px 14px;
    border:2px solid rgba(0,168,234,.45);
    border-radius:var(--radius);
    z-index:-1;
}

/* ========== AVAILED SERVICES STRIP (highlight) ========== */

.availed{
    margin-top:-70px;
    position:relative;
    z-index:2;
}

.availed-box{
    background:var(--card);
    box-shadow:var(--shadow);
    padding:30px clamp(20px,3vw,38px) 34px;
    border:1px solid var(--line);
}

.availed-label{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:24px;
}

.availed-label span{
    font-family:'Poppins',sans-serif;
    font-size:14px;
    font-weight:600;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--dark-blue);
    white-space:nowrap;
}

.availed-label::before,
.availed-label::after{
    content:"";
    height:1px;
    flex:1;
    background:var(--line);
}

.availed-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

/* pages with fewer availed services still center nicely */
.availed-grid.cols-3{grid-template-columns:repeat(3,1fr);}
.availed-grid.cols-2{grid-template-columns:repeat(2,1fr);}
/* single-service pages: one centered card instead of a full-width stretch */
.availed-grid.cols-1{grid-template-columns:minmax(0,640px); justify-content:center;}

/* ...and shrink the whole white box around it so there's no big empty
   slab left and right of the lone card. :has() is supported by all
   modern browsers; older ones just keep the full-width box. */
.availed-box:has(.availed-grid.cols-1){
    max-width:760px;
    margin-inline:auto;
}

.availed-item{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px 20px;
    border-radius:14px;
    background:var(--bg);
    border:1px solid transparent;
    transition:transform .25s ease, border-color .25s ease, background .25s ease;
}

.availed-item:hover{
    transform:translateY(-3px);
    border-color:var(--cyan);
    background:#fff;
}

.availed-icon{
    flex:0 0 auto;
    width:64px;
    height:64px;
    border-radius:12px;
    background:linear-gradient(135deg, var(--dark-blue), var(--cyan));
    color:#fff;
    display:grid;
    place-items:center;
}

.availed-icon svg{
    width:26px;
    height:26px;
}

.availed-item h2{
    font-size:17px;
    line-height:1.35;
    color:var(--deep-navy);
    font-weight:600;
}

.availed-item small{
    display:block;
    font-size:13.5px;
    color:var(--muted);
    font-weight:400;
    margin-top:3px;
}

/* ========== SECTION HEADERS ========== */

.section{
    padding:80px 0 0;
}

.section-head{
    max-width:640px;
    margin-bottom:44px;
}

.section-head.center{
    margin-inline:auto;
    text-align:center;
}

.section-head .eyebrow{
    color:var(--cyan);
}

.section-head h2{
    font-size:clamp(26px,3.2vw,38px);
    color:var(--deep-navy);
    line-height:1.2;
    margin-bottom:14px;
}

.section-head p{
    color:var(--muted);
    line-height:1.8;
}

/* ========== ABOUT ========== */

.about-grid{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:56px;
    align-items:center;
}

/* (the old .about-grid.solo text-only variant was removed — every
   project page now uses the photo + copy layout like Negros Power) */

.about-photo{
    position:relative;
}

.about-photo img{
    width:100%;
    height:400px;
    object-fit:cover;
    box-shadow:var(--shadow);
}

/* illustration in the about slot: show the whole graphic on white
   instead of cropping it like a photo (same idea as .hero-photo.is-logo) */
.about-photo.is-illus img{
    object-fit:contain;
    background:#fff;
    padding:28px;
}

.about-badge{
    position:absolute;
    bottom:-22px;
    right:-14px;
    background:var(--dark-blue);
    color:#fff;
    border-radius:14px;
    padding:16px 22px;
    box-shadow:0 14px 34px rgba(0,43,85,.3);
}

.about-badge strong{
    display:block;
    font-family:'Poppins',sans-serif;
    font-size:22px;
    color:#8FD9F8;
}

.about-badge span{
    font-size:12.5px;
    opacity:.85;
}

.about-copy .eyebrow{
    color:var(--cyan);
}

.about-copy h2{
    font-size:clamp(26px,3.2vw,38px);
    color:var(--deep-navy);
    margin-bottom:20px;
    line-height:1.2;
}

.about-copy p{
    line-height:1.9;
    color:var(--muted);
    margin-bottom:16px;
    /* justified on every viewport — no mobile override resets this */
    text-align:justify;
}

.about-points{
    margin-top:26px;
    display:grid;
    gap:14px;
}

.about-points li{
    list-style:none;
    display:flex;
    gap:14px;
    align-items:flex-start;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:14px;
    padding:16px 18px;
}

.about-points .dot{
    flex:0 0 auto;
    width:34px;
    height:34px;
    border-radius:10px;
    background:var(--cyan-soft);
    color:var(--dark-blue);
    display:grid;
    place-items:center;
    font-weight:700;
    font-size:15px;
}

.about-points strong{
    display:block;
    color:var(--deep-navy);
    font-size:15px;
    margin-bottom:3px;
}

.about-points span{
    font-size:14px;
    color:var(--muted);
    line-height:1.6;
}

/* ========== TIMELINE (signature) ========== */

.timeline-wrap{
    background:linear-gradient(160deg, var(--deep-navy), var(--dark-blue));
    border-radius:calc(var(--radius) + 6px);
    padding:64px clamp(24px,5vw,64px);
    color:#fff;
    position:relative;
    overflow:hidden;
}

.timeline-wrap::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size:56px 56px;
    pointer-events:none;
}

.timeline-wrap .section-head{
    position:relative;
    z-index:1;
}

.timeline-wrap .section-head h2{
    color:#fff;
}

.timeline-wrap .section-head p{
    color:rgba(255,255,255,.75);
}

.timeline{
    position:relative;
    z-index:1;
    margin-top:10px;
    padding-left:26px;
}

/* the "power line" */
.timeline::before{
    content:"";
    position:absolute;
    left:7px;
    top:8px;
    bottom:8px;
    width:2px;
    background:linear-gradient(to bottom, var(--cyan), rgba(0,168,234,.15));
}

.milestone{
    position:relative;
    padding:0 0 36px 26px;
}

.milestone:last-child{
    padding-bottom:0;
}

/* node na parang insulator sa poste */
.milestone::before{
    content:"";
    position:absolute;
    left:-26px;
    top:6px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:var(--deep-navy);
    border:3px solid var(--cyan);
    box-shadow:0 0 0 5px rgba(0,168,234,.18);
}

.milestone time{
    display:inline-block;
    font-family:'Poppins',sans-serif;
    font-size:12.5px;
    font-weight:600;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:#8FD9F8;
    margin-bottom:8px;
}

.milestone h3{
    font-size:19px;
    margin-bottom:8px;
}

.milestone p{
    max-width:640px;
    line-height:1.8;
    color:rgba(255,255,255,.78);
    font-size:14.5px;
}

/* ========== COVERAGE ========== */

.coverage-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:22px;
}

.area-card{
    background:var(--card);
    border:1px solid var(--line);
    overflow:hidden;
    text-align:left;
    box-shadow:0 6px 18px rgba(0,43,85,.05);
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.area-media{
    position:relative;
    height:150px;
    overflow:hidden;
    background:linear-gradient(135deg, var(--deep-navy), var(--dark-blue));
}

.area-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.area-card:hover .area-media img{
    transform:scale(1.08);
}

.area-media::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,27,55,.55) 0%, rgba(0,27,55,0) 55%);
}

.area-tag{
    position:absolute;
    top:12px;
    left:12px;
    z-index:1;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#fff;
    background:rgba(0,43,85,.55);
    border:1px solid rgba(255,255,255,.35);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter:blur(3px);
    padding:5px 10px;
    border-radius:999px;
}

.area-body{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    border-top:1px solid var(--line);
}

.area-body .pin{
    flex:0 0 auto;
    width:38px;
    height:38px;
    border-radius:10px;
    background:var(--cyan-soft);
    color:var(--dark-blue);
    display:grid;
    place-items:center;
}

.area-body .pin svg{
    width:18px;
    height:18px;
}

.area-info{
    min-width:0;
}

.area-card h3{
    font-size:15.5px;
    color:var(--deep-navy);
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.area-card .area-type{
    display:block;
    font-size:12.5px;
    color:var(--muted);
    margin-top:2px;
}

/* audience variant (service pages): walang photo — centered icon card.
   Ang default .area-card ay dinisenyo para sa project pages na may
   .area-media litrato; ang variant na ito ang gamitin kapag icon lang. */
.area-card.is-audience{
    text-align:center;
    padding:30px 20px 26px;
    border-radius:14px;
}

.area-card.is-audience:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
    border-color:rgba(0,168,234,.45);
}

.area-card.is-audience .pin{
    width:54px;
    height:54px;
    margin:0 auto 16px;
    border-radius:14px;
    background:linear-gradient(135deg, var(--dark-blue), var(--cyan));
    color:#fff;
    display:grid;
    place-items:center;
}

.area-card.is-audience .pin svg{
    width:24px;
    height:24px;
}

.area-card.is-audience h3{
    white-space:normal;
    overflow:visible;
    margin-bottom:5px;
}

.area-card.is-audience > span{
    display:block;
    font-size:13px;
    color:var(--muted);
    line-height:1.5;
}

/* ========== SERVICES ========== */

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:22px;
}

.service-card{
    background:var(--card);
    border:1px solid var(--line);
    padding:30px 28px;
    position:relative;
    overflow:hidden;
    transition:transform .25s ease, box-shadow .25s ease;
}

.service-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg, var(--dark-blue), var(--cyan));
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .35s ease;
}

.service-icon{
    width:52px;
    height:52px;
    border-radius:14px;
    background:var(--cyan-soft);
    display:grid;
    place-items:center;
    margin-bottom:18px;
    color:var(--dark-blue);
}

.service-icon svg{
    width:26px;
    height:26px;
}

.service-card h3{
    color:var(--deep-navy);
    font-size:18px;
    margin-bottom:10px;
}

.service-card p{
    color:var(--muted);
    line-height:1.75;
    font-size:14.5px;
}

/* ========== GALLERY ========== */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.gallery-item{
    position:relative;
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    cursor:zoom-in;
}

.gallery-item img{
    width:100%;
    height:270px;
    object-fit:cover;
    transition:transform .5s ease;
}

.gallery-item:hover img{
    transform:scale(1.06);
}

.gallery-item figcaption{
    position:absolute;
    inset:auto 0 0 0;
    padding:36px 18px 16px;
    background:linear-gradient(to top, rgba(0,27,55,.85), transparent);
    color:#fff;
    font-size:13.5px;
    font-weight:500;
    pointer-events:none;
}

/* clickable images cursor */
.hero-photo img,
.about-photo img{
    cursor:zoom-in;
}

/* ========== LIGHTBOX ========== */

.lightbox{
    position:fixed;
    inset:0;
    z-index:99998;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:16px;
    padding:32px 20px;
    background:rgba(8,16,26,.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    opacity:0;
    visibility:hidden;
    transition:opacity .35s ease, visibility .35s ease;
}

.lightbox.open{
    opacity:1;
    visibility:visible;
}

.lightbox img{
    max-width:min(1000px,92vw);
    max-height:80vh;
    object-fit:contain;
    border-radius:14px;
    box-shadow:0 30px 80px rgba(0,0,0,.55);
    transform:scale(.92) translateY(12px);
    transition:transform .35s ease;
}

.lightbox.open img{
    transform:scale(1) translateY(0);
}

.lightbox-caption{
    color:rgba(255,255,255,.85);
    font-size:14px;
    font-weight:500;
    text-align:center;
    max-width:640px;
    opacity:0;
    transform:translateY(8px);
    transition:opacity .35s ease .1s, transform .35s ease .1s;
}

.lightbox.open .lightbox-caption{
    opacity:1;
    transform:translateY(0);
}

.lightbox-caption:empty{
    display:none;
}

.lightbox-close{
    position:absolute;
    top:22px;
    right:26px;
    width:44px;
    height:44px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.35);
    background:rgba(255,255,255,.08);
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
    transition:background .25s ease, border-color .25s ease, transform .25s ease;
}

.lightbox-close:hover{
    background:rgba(255,255,255,.18);
    border-color:#fff;
    transform:rotate(90deg);
}

.lightbox-close svg{
    width:20px;
    height:20px;
}

/* ========== CTA ========== */

.cta{
    margin:60px 0 70px;
}

/* centered column — a stacked, capped-width box instead of a full-width
   flex row, so short CTA copy never leaves a big empty slab beside it */
.cta-box{
    background:var(--card);
    border:1px solid var(--line);
    max-width:760px;
    margin-inline:auto;
    padding:40px clamp(24px,5vw,52px);
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:24px;
    box-shadow:var(--shadow);
}

.cta-box h2{
    font-size:clamp(22px,2.8vw,30px);
    color:var(--deep-navy);
    margin-bottom:8px;
}

.cta-box p{
    color:var(--muted);
    line-height:1.7;
    max-width:520px;
    margin-inline:auto;
}

.cta-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content:center;
}

.btn{
    display:inline-block;
    text-decoration:none;
    font-weight:600;
    font-size:14.5px;
    padding:14px 28px;
    border-radius:999px;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary{
    background:linear-gradient(120deg, var(--dark-blue), var(--cyan));
    color:#fff;
}

.btn-primary:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 26px rgba(0,168,234,.35);
}

.btn-outline{
    border:1.5px solid var(--dark-blue);
    color:var(--dark-blue);
}

.btn-outline:hover{
    background:var(--dark-blue);
    color:#fff;
}

/* ========== FOOTER ========== */

.footer{
    background:#000;
    color:#fff;
    padding:60px 8% 20px;
}

.footer-container{
    display:flex;
    /* centered na may bounded gap — ang dating space-between ay
       naghihiwalay ng columns hanggang dulo sa malalapad na screen */
    justify-content:center;
    gap:clamp(48px, 9vw, 120px);
    flex-wrap:wrap;
    border-bottom:1px solid rgba(255,255,255,0.15);
    padding-bottom:30px;
}

.footer-brand{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.footer-logo{
    width:120px;
    margin-bottom:12px;
}

.footer h3,
.footer h4{
    color:#00a8ea;
    margin-bottom:15px;
}

.footer p,
.footer a{
    color:#ccc;
    font-size:14px;
    text-decoration:none;
    display:block;
    margin-bottom:8px;
}

.footer a:hover{
    color:#00a8ea;
}

/* contact column — inline SVG icons (walang Font Awesome ang mga
   standalone page, kaya SVG ang gamit imbes na <i class="fas ...">) */
.footer .contact-info p{
    display:flex;
    align-items:flex-start;
    gap:9px;
}

.footer .contact-info svg{
    flex:0 0 auto;
    width:15px;
    height:15px;
    margin-top:2px;
    color:#00a8ea;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    margin-top:15px;
    font-size:13px;
}

/* ========== SCROLL REVEAL ========== */

.reveal{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .7s ease, transform .7s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    .reveal{opacity:1;transform:none;transition:none;}
    .gallery-item img,
    .service-card,
    .area-card,
    .availed-item,
    .lightbox,
    .lightbox img,
    .lightbox-caption{transition:none;}
}

/* ========== RESPONSIVE ========== */

@media(max-width:992px){

.hero-grid{
    grid-template-columns:1fr;
    gap:36px;
}

.hero-photo img{
    height:280px;
}

.availed-grid,
.availed-grid.cols-3{
    grid-template-columns:repeat(2,1fr);
}

.about-grid{
    grid-template-columns:1fr;
    gap:48px;
}

.about-photo img{
    height:300px;
}

.gallery-grid{
    grid-template-columns:1fr;
}

}

@media(max-width:600px){

.hero{
    padding:40px 0 110px;
}

.availed-grid,
.availed-grid.cols-3,
.availed-grid.cols-2{
    grid-template-columns:1fr;
}

.footer-container{
    flex-direction:column;
}

.lightbox-close{
    top:14px;
    right:14px;
}

}

/* ========== LOADER ==========
   Moved to the shared assets/css/preloader.css — every project
   page now links that file alongside this one (single copy for
   the whole site; behavior in assets/js/preloader.js). */
