/*
Theme Name: 4PAM V7.3 Gutenberg Editable
Theme URI: https://4pam.org/
Author: 4PAM
Description: Editable Gutenberg WordPress theme for 4PAM.
Version: 7.3.0
Text Domain: fourpam-v5
*/
:root{--bg:#03070a;--panel:#091116;--text:#f5fbff;--muted:#aab8c1;--blue:#1e8cff;--green:#62d74f;--orange:#ff9d28;--cyan:#31d6d9;--max:1200px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Montserrat,Arial,sans-serif;line-height:1.55}a{color:inherit}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(3,7,10,.94);border-bottom:1px solid #17242c}.header-in{height:92px;display:flex;align-items:center;gap:28px}.brand img{width:185px;max-height:70px;object-fit:contain}.nav{margin-left:auto;display:flex;gap:22px}.nav a{text-decoration:none;font-weight:700;font-size:14px}.hero{min-height:650px;display:grid;align-items:end;background:linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.2)),url('assets/images/hero.jpg') center/cover;padding:90px 0}.eyebrow{font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--cyan);font-size:13px}h1,h2,h3{font-family:'League Spartan',Montserrat,Arial,sans-serif;line-height:1.02}.hero h1{font-size:clamp(48px,7vw,92px);max-width:850px}.green{color:var(--green)}.lead{font-size:clamp(18px,2vw,24px);max-width:780px;color:#d7e2e8}.ctas{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:32px}.btn{padding:18px;border-radius:12px;text-decoration:none;font-weight:800;text-align:center;display:inline-block}.b1{background:var(--blue)}.b2{background:var(--green);color:#061006}.b3{background:var(--orange);color:#140b00}.b4{background:var(--cyan);color:#001113}section{padding:90px 0;border-top:1px solid #101a20}h2{font-size:clamp(38px,5vw,64px)}.two{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}.photo{width:100%;border-radius:24px}.copy p{color:#c7d3da;font-size:18px}.spar-panel,.ptay-panel{background:#fff;border-radius:24px;padding:18px}.spar-panel img,.ptay-panel img{width:100%;display:block}.ptay-panel{max-width:520px;margin:auto}.cards,.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px}.card,.post{background:var(--panel);border:1px solid #172630;border-radius:18px;padding:24px}.card p,.post p{color:var(--muted)}.road{background:linear-gradient(90deg,rgba(3,7,10,.94),rgba(3,7,10,.35)),url('assets/images/road.jpg') center/cover}.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.pillar{background:rgba(4,12,16,.86);border:1px solid #29414d;border-radius:14px;padding:20px;font-weight:800}.meta{color:var(--cyan);font-size:13px;font-weight:800}.article{max-width:850px;margin:auto;padding:70px 20px}.article img{max-width:100%;height:auto}.site-footer{padding:45px 0;border-top:1px solid #17242c;color:#9cadb7}.footer-in{display:flex;justify-content:space-between}@media(max-width:850px){.nav{display:none}.two,.cards,.media-grid,.pillars{grid-template-columns:1fr}.ctas{grid-template-columns:1fr 1fr}.hero{min-height:620px}}
.entry-content{width:min(1200px,calc(100% - 40px));margin:auto}.entry-content>.alignfull{width:100vw;margin-left:calc(50% - 50vw);max-width:none}
.wp-block-cover.hero-editable{min-height:650px}.wp-block-cover.hero-editable h1{font-size:clamp(48px,7vw,88px)}
.wp-block-group.section-editable{padding-top:80px;padding-bottom:80px}
.spar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.spar-box{padding:24px;border-radius:18px;background:#091116;border:1px solid #1d313a}
@media(max-width:850px){.spar-grid{grid-template-columns:1fr}.entry-content{width:min(100% - 28px,1200px)}}


/* =========================================================
   4PAM V7.1 — Production homepage refinements
   ========================================================= */

/* Do not print the WordPress page title above the designed homepage. */
body.home main > .page-title,
body.home main > h1.entry-title,
body.home .entry-header {
    display:none !important;
}

/* Homepage content remains editable in Pages > Home. */
body.home .entry-content {
    width:100%;
    max-width:none;
    margin:0;
}

/* HERO */
body.home .hero-editable.wp-block-cover {
    min-height:620px !important;
    padding:72px max(5vw,32px) !important;
    overflow:hidden;
    position:relative;
    background:#03070a;
}

/* Keep the transport visual on the right, with a readable dark field on left. */
body.home .hero-editable .wp-block-cover__image-background {
    width:58% !important;
    height:100% !important;
    left:auto !important;
    right:0 !important;
    object-fit:cover !important;
    object-position:center center !important;
    opacity:.82;
}

body.home .hero-editable .wp-block-cover__background {
    background:linear-gradient(
        90deg,
        rgba(3,7,10,.99) 0%,
        rgba(3,7,10,.97) 38%,
        rgba(3,7,10,.72) 56%,
        rgba(3,7,10,.22) 100%
    ) !important;
    opacity:1 !important;
}

body.home .hero-editable .wp-block-cover__inner-container {
    position:relative;
    z-index:2;
    width:min(1200px,100%);
    margin:0 auto;
}

body.home .hero-editable h1 {
    max-width:690px;
    margin:0 0 26px !important;
    font-size:clamp(48px,5vw,76px) !important;
    line-height:.98 !important;
    letter-spacing:-.035em;
    color:#fff !important;
}

/* Green emphasis without requiring a fragile nested custom block. */
body.home .hero-editable h1 .drive-less,
body.home .hero-editable h1 mark {
    color:#62d74f !important;
    background:transparent !important;
}

body.home .hero-editable p {
    max-width:720px;
    margin:0 0 30px !important;
    font-size:clamp(19px,2vw,27px) !important;
    line-height:1.35 !important;
    color:#eef6f8 !important;
}

body.home .hero-editable .wp-block-buttons {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    max-width:760px;
}

body.home .hero-editable .wp-block-button__link {
    min-width:150px;
    padding:14px 22px !important;
    border-radius:999px !important;
    color:#061014 !important;
    font-weight:800 !important;
    text-align:center;
    border:0 !important;
}

/* Four CTA colours */
body.home .hero-editable .wp-block-button:nth-child(1) .wp-block-button__link {background:#1e8cff !important;color:#fff !important;}
body.home .hero-editable .wp-block-button:nth-child(2) .wp-block-button__link {background:#62d74f !important;}
body.home .hero-editable .wp-block-button:nth-child(3) .wp-block-button__link {background:#ff9d28 !important;}
body.home .hero-editable .wp-block-button:nth-child(4) .wp-block-button__link {background:#31d6d9 !important;}

/* General homepage section spacing */
body.home .section-editable {
    width:min(1200px,calc(100% - 48px));
    margin-left:auto;
    margin-right:auto;
    padding-top:84px !important;
    padding-bottom:84px !important;
}

body.home .section-editable h2 {
    font-size:clamp(38px,4vw,58px);
    margin-bottom:24px;
}

/* SPAR cards */
body.home #spar .wp-block-columns {
    gap:16px;
    margin-top:28px;
}
body.home #spar .wp-block-column {
    padding:24px;
    border-radius:18px;
    border:1px solid #1d313a;
    background:#091116;
}
body.home #spar .wp-block-column:nth-child(1){border-top:5px solid #1e8cff;}
body.home #spar .wp-block-column:nth-child(2){border-top:5px solid #62d74f;}
body.home #spar .wp-block-column:nth-child(3){border-top:5px solid #ff9d28;}
body.home #spar .wp-block-column:nth-child(4){border-top:5px solid #31d6d9;}

/* Media */
body.home #media .wp-block-latest-posts {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    padding:0;
}
body.home #media .wp-block-latest-posts > li {
    list-style:none;
    padding:22px;
    border:1px solid #1d313a;
    border-radius:16px;
    background:#091116;
}

/* Mobile */
@media(max-width:900px){
    body.home .hero-editable.wp-block-cover {
        min-height:700px !important;
        padding:54px 24px 330px !important;
        align-items:flex-start;
    }
    body.home .hero-editable .wp-block-cover__image-background {
        width:100% !important;
        height:330px !important;
        top:auto !important;
        bottom:0 !important;
        object-position:center center !important;
        opacity:.78;
    }
    body.home .hero-editable .wp-block-cover__background {
        background:linear-gradient(
            180deg,
            rgba(3,7,10,1) 0%,
            rgba(3,7,10,.98) 52%,
            rgba(3,7,10,.35) 100%
        ) !important;
    }
    body.home .hero-editable h1 {
        font-size:clamp(42px,11vw,62px) !important;
        max-width:100%;
    }
    body.home .hero-editable p {
        font-size:20px !important;
    }
    body.home .hero-editable .wp-block-buttons {
        display:grid;
        grid-template-columns:1fr 1fr;
        width:100%;
    }
    body.home .hero-editable .wp-block-button,
    body.home .hero-editable .wp-block-button__link {
        width:100%;
    }
    body.home .section-editable {
        width:min(100% - 30px,1200px);
        padding-top:58px !important;
        padding-bottom:58px !important;
    }
    body.home #media .wp-block-latest-posts {
        grid-template-columns:1fr;
    }
}


/* =========================================================
   4PAM V7.2 — Hero visual refinement
   Stable V7 Gutenberg architecture retained.
   ========================================================= */

body.home .hero-editable.wp-block-cover {
    min-height:650px !important;
    padding:64px max(5vw,32px) !important;
}

/* Larger transport visual on the right. */
body.home .hero-editable .wp-block-cover__image-background {
    width:48% !important;
    height:76% !important;
    left:auto !important;
    right:5vw !important;
    top:12% !important;
    bottom:auto !important;
    object-fit:cover !important;
    object-position:center center !important;
    border-radius:4px;
    opacity:.94 !important;
}

/* Preserve a clean black reading field while allowing the image to breathe. */
body.home .hero-editable .wp-block-cover__background {
    background:linear-gradient(
        90deg,
        rgba(3,7,10,1) 0%,
        rgba(3,7,10,.99) 43%,
        rgba(3,7,10,.74) 54%,
        rgba(3,7,10,.10) 75%,
        rgba(3,7,10,0) 100%
    ) !important;
    opacity:1 !important;
}

body.home .hero-editable .wp-block-cover__inner-container {
    width:min(1450px,100%) !important;
    margin:0 auto !important;
}

body.home .hero-editable h1 {
    max-width:720px !important;
    font-size:clamp(52px,4.7vw,74px) !important;
    line-height:1.02 !important;
    letter-spacing:-.035em !important;
    margin-bottom:28px !important;
}

/* Exact 3-line hero structure. */
body.home .hero-editable h1 .hero-line {
    display:block;
}
body.home .hero-editable h1 .drive-less {
    display:block;
    color:#62d74f !important;
}

body.home .hero-editable p {
    max-width:720px !important;
    font-size:clamp(20px,1.65vw,27px) !important;
    line-height:1.42 !important;
    margin-bottom:32px !important;
}

body.home .hero-editable .wp-block-buttons {
    max-width:760px !important;
    gap:12px !important;
}

body.home .hero-editable .wp-block-button__link {
    padding:14px 25px !important;
    min-width:0 !important;
    white-space:nowrap;
}

/* Tablet */
@media (max-width:1100px) and (min-width:901px){
    body.home .hero-editable .wp-block-cover__image-background{
        width:44% !important;
        right:2.5vw !important;
        height:68% !important;
        top:16% !important;
    }
    body.home .hero-editable h1{
        max-width:600px !important;
        font-size:clamp(48px,5.4vw,64px) !important;
    }
    body.home .hero-editable p{
        max-width:590px !important;
        font-size:21px !important;
    }
}

/* Mobile: text first, large image below. */
@media(max-width:900px){
    body.home .hero-editable.wp-block-cover {
        min-height:860px !important;
        padding:48px 24px 390px !important;
    }
    body.home .hero-editable .wp-block-cover__image-background {
        width:calc(100% - 32px) !important;
        height:350px !important;
        left:16px !important;
        right:auto !important;
        top:auto !important;
        bottom:18px !important;
        border-radius:12px;
        object-position:center center !important;
    }
    body.home .hero-editable .wp-block-cover__background {
        background:linear-gradient(
            180deg,
            rgba(3,7,10,1) 0%,
            rgba(3,7,10,1) 56%,
            rgba(3,7,10,.62) 75%,
            rgba(3,7,10,.18) 100%
        ) !important;
    }
    body.home .hero-editable h1 {
        max-width:100% !important;
        font-size:clamp(42px,11vw,60px) !important;
        line-height:1.02 !important;
    }
    body.home .hero-editable p {
        max-width:100% !important;
        font-size:19px !important;
    }
}

@media(max-width:560px){
    body.home .hero-editable.wp-block-cover {
        min-height:940px !important;
        padding-bottom:370px !important;
    }
    body.home .hero-editable .wp-block-buttons{
        grid-template-columns:1fr !important;
    }
    body.home .hero-editable .wp-block-button__link{
        width:100% !important;
    }
}

/* V7.3 native Gutenberg hero */
body.home .hero-v73{width:100%;max-width:none;margin:0;padding:72px max(5vw,32px);background:#03070a;color:#fff}
body.home .hero-v73>.wp-block-columns{width:min(1450px,100%);margin:auto;gap:clamp(36px,5vw,78px);align-items:center}
body.home .hero-v73 .hero-copy{flex-basis:52%!important}
body.home .hero-v73 .hero-visual{flex-basis:48%!important}
body.home .hero-v73 .hero-heading,body.home .hero-v73 .hero-heading-green{margin:0!important;font-size:clamp(52px,4.7vw,74px)!important;line-height:.98!important;letter-spacing:-.035em!important}
body.home .hero-v73 .hero-heading{color:#fff!important}
body.home .hero-v73 .hero-heading-green{color:#62d74f!important}
body.home .hero-v73 .hero-heading-last{margin-bottom:30px!important}
body.home .hero-v73 .hero-intro{max-width:720px;margin:0 0 32px!important;font-size:clamp(20px,1.65vw,27px)!important;line-height:1.42!important;color:#eef6f8!important}
body.home .hero-v73 .hero-visual img{width:100%!important;min-height:470px;max-height:570px;object-fit:cover;border-radius:16px;display:block}
body.home .hero-v73 .wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px}
body.home .hero-v73 .wp-block-button__link{padding:14px 24px!important;border-radius:999px!important;font-weight:800!important;white-space:nowrap;border:0!important}
body.home .hero-v73 .wp-block-button:nth-child(1) .wp-block-button__link{background:#1e8cff!important;color:#fff!important}
body.home .hero-v73 .wp-block-button:nth-child(2) .wp-block-button__link{background:#62d74f!important;color:#061014!important}
body.home .hero-v73 .wp-block-button:nth-child(3) .wp-block-button__link{background:#ff9d28!important;color:#061014!important}
body.home .hero-v73 .wp-block-button:nth-child(4) .wp-block-button__link{background:#31d6d9!important;color:#061014!important}
.editor-styles-wrapper .hero-v73{background:#03070a!important;color:#fff!important;padding:48px!important}
.editor-styles-wrapper .hero-v73 .hero-heading{color:#fff!important}
.editor-styles-wrapper .hero-v73 .hero-heading-green{color:#62d74f!important}
.editor-styles-wrapper .hero-v73 .hero-intro{color:#eef6f8!important}
@media(max-width:900px){
body.home .hero-v73{padding:52px 24px}
body.home .hero-v73>.wp-block-columns{display:flex;flex-direction:column;gap:34px}
body.home .hero-v73 .hero-copy,body.home .hero-v73 .hero-visual{flex-basis:100%!important;width:100%}
body.home .hero-v73 .hero-heading,body.home .hero-v73 .hero-heading-green{font-size:clamp(42px,11vw,60px)!important}
body.home .hero-v73 .hero-visual img{min-height:0;max-height:none;aspect-ratio:16/10}
body.home .hero-v73 .wp-block-buttons{display:grid;grid-template-columns:1fr 1fr}
body.home .hero-v73 .wp-block-button,body.home .hero-v73 .wp-block-button__link{width:100%;text-align:center}}
@media(max-width:560px){body.home .hero-v73 .wp-block-buttons{grid-template-columns:1fr}}
