/*
Theme Name: Tech4Power Engineering V5.9
Theme URI: https://tech4power.fr/
Author: Tech4Power Engineering
Author URI: https://tech4power.fr/
Description: Thème WordPress bilingue FR/EN de Tech4Power Engineering avec logo vectoriel, architecture système, électronique de puissance, IVVQ et industrialisation.
Version: 5.9.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tech4power
Tags: custom-logo, custom-menu, block-styles, wide-blocks
*/

:root {
    --t4p-black: #050706;
    --t4p-black-soft: #090c0a;
    --t4p-panel: #111612;
    --t4p-panel-2: #171d18;
    --t4p-line: #2c352d;
    --t4p-green: #65c91c;
    --t4p-green-bright: #91e43e;
    --t4p-green-dark: #348f0d;
    --t4p-white: #f3f6f3;
    --t4p-paper: #f5f7f5;
    --t4p-ink: #121713;
    --t4p-muted: #aeb8b0;
    --t4p-muted-dark: #5f6a61;
    --t4p-danger: #b42318;
    --t4p-success: #177245;
    --t4p-shadow: 0 24px 70px rgba(0, 0, 0, 0.17);
    --t4p-radius: 12px;
    --t4p-radius-small: 7px;
    --t4p-wide: 1280px;
    --t4p-content: 820px;
    --t4p-header-height: 86px;
    --t4p-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --t4p-display: Bahnschrift, "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--t4p-header-height) + 22px); }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--t4p-black);
    color: var(--t4p-white);
    font-family: var(--t4p-font);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
::selection { background: var(--t4p-green); color: #071006; }

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: var(--t4p-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.15rem, 4vw, 4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.65rem); }
p { margin-top: 0; }

.t4p-container,
.wp-site-blocks > .alignwide,
.entry-content > .alignwide {
    width: min(var(--t4p-wide), calc(100% - 48px));
    margin-inline: auto;
}
.alignfull { width: 100%; max-width: none; margin-inline: 0; }
.alignwide { width: min(var(--t4p-wide), calc(100% - 48px)); max-width: var(--t4p-wide); margin-inline: auto; }
.site-main { min-height: 60vh; }
.site-main > *:first-child { margin-top: 0; }
.site-main > *:last-child { margin-bottom: 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
    z-index: 999999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px 18px;
    background: var(--t4p-green);
    color: #061006;
    font-weight: 800;
}
:focus-visible { outline: 3px solid var(--t4p-green-bright); outline-offset: 4px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--t4p-header-height);
    border-bottom: 1px solid rgba(145, 228, 62, .12);
    background: rgba(3, 5, 4, .93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.site-header__inner {
    min-height: var(--t4p-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo-link,
.t4p-fallback-logo { display: inline-flex; align-items: center; text-decoration: none; }
.custom-logo,
.t4p-fallback-logo img {
    width: 270px;
    max-height: 76px;
    object-fit: contain;
    object-position: left center;
}
.site-navigation-panel { display: flex; align-items: center; gap: 28px; }
.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.t4p-menu { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.t4p-menu a {
    position: relative;
    display: inline-flex;
    padding: 31px 0 29px;
    color: #e8ede9;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-decoration: none;
    text-transform: uppercase;
}
.t4p-menu a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 19px;
    left: 50%;
    height: 2px;
    background: var(--t4p-green);
    transition: right .2s ease, left .2s ease;
}
.t4p-menu a:hover,
.t4p-menu .current-menu-item > a,
.t4p-menu .current_page_item > a { color: var(--t4p-green-bright); }
.t4p-menu a:hover::after,
.t4p-menu .current-menu-item > a::after,
.t4p-menu .current_page_item > a::after { right: 0; left: 0; }
.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--t4p-green);
    border-radius: 5px;
    color: var(--t4p-white);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.header-contact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.header-contact:hover,
.header-contact.is-current { background: var(--t4p-green); color: #071006; transform: translateY(-1px); }
.menu-toggle {
    display: none;
    align-items: center;
    gap: 11px;
    border: 0;
    background: transparent;
    color: var(--t4p-white);
    cursor: pointer;
}
.menu-toggle__label { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle__icon { display: grid; gap: 5px; width: 26px; }
.menu-toggle__icon span { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Core text and controls */
.t4p-eyebrow {
    margin-bottom: 13px;
    color: var(--t4p-green-bright);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.t4p-accent { color: var(--t4p-green); }
.t4p-kicker {
    margin-bottom: 10px;
    color: var(--t4p-green-dark);
    font-size: .73rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.t4p-section--dark .t4p-kicker,
.t4p-section--panel .t4p-kicker { color: var(--t4p-green-bright); }
.wp-block-button__link,
.t4p-inline-button,
.t4p-submit {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .065em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.wp-block-button__link:hover,
.t4p-inline-button:hover,
.t4p-submit:hover { transform: translateY(-2px); text-decoration: none; }
.t4p-button-primary .wp-block-button__link,
.t4p-inline-button,
.t4p-submit {
    background: linear-gradient(100deg, var(--t4p-green-dark), var(--t4p-green));
    color: #fff;
    box-shadow: 0 12px 30px rgba(80, 187, 18, .22);
}
.t4p-button-primary .wp-block-button__link:hover,
.t4p-submit:hover { box-shadow: 0 16px 38px rgba(80, 187, 18, .32); }
.t4p-button-secondary .wp-block-button__link {
    border-color: var(--t4p-green);
    background: rgba(0, 0, 0, .18);
    color: #fff;
}
.t4p-section--light .t4p-button-secondary .wp-block-button__link { color: var(--t4p-ink); }
.t4p-button-secondary .wp-block-button__link:hover { background: var(--t4p-green); color: #071006; }
.t4p-button-dark .wp-block-button__link { background: var(--t4p-black); color: #fff; }
.t4p-button-dark .wp-block-button__link:hover { background: #151b16; }
.t4p-buttons { gap: 14px; margin-top: 30px; }
.t4p-buttons--center { justify-content: center; margin-top: 42px; }
.t4p-text-link { color: var(--t4p-green-dark); font-weight: 800; }

/* Hero */
.t4p-hero {
    position: relative;
    isolation: isolate;
    min-height: 720px;
    margin: 0;
    background: var(--t4p-black);
}
.t4p-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 4, 3, .99) 0%, rgba(2, 4, 3, .95) 34%, rgba(2, 4, 3, .55) 58%, rgba(2, 4, 3, .14) 100%),
        linear-gradient(0deg, rgba(3, 6, 4, .62), transparent 42%);
    pointer-events: none;
}
.t4p-hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 7%;
    bottom: -56px;
    width: 330px;
    height: 330px;
    background: url("assets/branding/tech4power-mark.svg") center / contain no-repeat;
    opacity: .035;
    filter: grayscale(1);
    pointer-events: none;
}
.t4p-hero .wp-block-cover__background { opacity: .14 !important; }
.t4p-hero .wp-block-cover__image-background { object-position: 72% center; }
.t4p-hero .wp-block-cover__inner-container { position: relative; z-index: 3; width: 100%; }
.t4p-hero__inner { width: min(var(--t4p-wide), calc(100% - 48px)); margin-inline: auto; }
.t4p-hero__inner > * { max-width: 760px; margin-left: 0 !important; }
.t4p-hero__title { margin-bottom: 24px; max-width: 800px !important; text-wrap: balance; }
.t4p-hero__lead { max-width: 690px !important; color: #d2d9d3; font-size: clamp(1.05rem, 1.5vw, 1.24rem); }

/* Proof strip */
.t4p-proof-strip {
    padding: 0;
    border-top: 1px solid rgba(145, 228, 62, .14);
    border-bottom: 1px solid rgba(145, 228, 62, .12);
    background: #080b09;
}
.t4p-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.t4p-proof { position: relative; min-height: 130px; padding: 27px 28px; border-right: 1px solid var(--t4p-line); }
.t4p-proof:last-child { border-right: 0; }
.t4p-proof::before { content: ""; position: absolute; top: 0; left: 28px; width: 42px; height: 2px; background: var(--t4p-green); }
.t4p-proof h3 { margin-bottom: 8px; color: var(--t4p-white); font-size: 1.18rem; letter-spacing: -.01em; }
.t4p-proof p { margin: 0; color: var(--t4p-muted); font-size: .88rem; }

/* Sections */
.t4p-section { padding: 100px 0; }
.t4p-section--light { background: var(--t4p-paper); color: var(--t4p-ink); }
.t4p-section--dark { background: var(--t4p-black-soft); color: var(--t4p-white); }
.t4p-section--panel { background: linear-gradient(135deg, #0c100d, #171d18); color: var(--t4p-white); }
.t4p-section-heading { margin-bottom: 48px; }
.t4p-section-heading > h2 { max-width: 980px; margin-bottom: 18px; text-wrap: balance; }
.t4p-section-heading > p:last-child { max-width: 790px; color: var(--t4p-muted-dark); font-size: 1.05rem; }
.t4p-section--dark .t4p-section-heading > p:last-child,
.t4p-section--panel .t4p-section-heading > p:last-child { color: var(--t4p-muted); }
.t4p-section-heading--center { text-align: center; }
.t4p-section-heading--center > * { margin-right: auto; margin-left: auto; }

/* Grids and cards */
.t4p-grid { display: grid; gap: 20px; }
.t4p-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t4p-grid--values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t4p-grid--expertise { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.t4p-grid--expertise > * { grid-column: span 2; }
.t4p-grid--expertise > *:nth-child(5) { grid-column: 2 / span 2; }
.t4p-card {
    position: relative;
    min-width: 0;
    padding: 31px;
    border: 1px solid #d7ddd8;
    border-radius: var(--t4p-radius);
    background: #fff;
    color: var(--t4p-ink);
    box-shadow: 0 12px 38px rgba(15, 25, 17, .055);
    transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease;
}
.t4p-card:hover { transform: translateY(-4px); border-color: rgba(83, 182, 19, .58); box-shadow: var(--t4p-shadow); }
.t4p-section--dark .t4p-card,
.t4p-section--panel .t4p-card {
    border-color: var(--t4p-line);
    background: linear-gradient(150deg, var(--t4p-panel-2), #0d110e);
    color: var(--t4p-white);
    box-shadow: none;
}
.t4p-section--dark .t4p-card:hover,
.t4p-section--panel .t4p-card:hover { border-color: var(--t4p-green); box-shadow: 0 24px 65px rgba(0, 0, 0, .28); }
.t4p-card h2,
.t4p-card h3 { margin-bottom: 14px; }
.t4p-card p { color: var(--t4p-muted-dark); }
.t4p-section--dark .t4p-card p,
.t4p-section--panel .t4p-card p { color: #bdc7bf; }
.t4p-card ul { margin: 20px 0 0; padding-left: 20px; }
.t4p-card li { margin: 7px 0; color: var(--t4p-muted-dark); }
.t4p-section--dark .t4p-card li { color: #bdc7bf; }
.t4p-card__icon { width: 58px; height: 58px; margin: 0 0 23px !important; }
.t4p-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.t4p-card--service { min-height: 100%; }
.t4p-card--featured { border-color: var(--t4p-green); background: linear-gradient(145deg, #f7fff2, #fff); }
.t4p-section--dark .t4p-card--featured { background: linear-gradient(145deg, #14240f, #0c110d); }
.t4p-card--expertise { min-height: 300px; padding: 26px; }
.t4p-card--expertise h3 { font-size: 1.22rem; }
.t4p-card--expertise p { margin-bottom: 0; font-size: .92rem; }
.t4p-card--sector { min-height: 290px; }
.t4p-value { padding: 25px; border-left: 2px solid var(--t4p-green); background: #fff; }
.t4p-value h3 { font-size: 1.15rem; }
.t4p-value p { margin-bottom: 0; color: var(--t4p-muted-dark); font-size: .9rem; }

/* Method */
.t4p-method-layout { gap: clamp(40px, 6vw, 86px); }
.t4p-method-layout > .wp-block-column:first-child { position: sticky; top: 130px; }
.t4p-method-layout p { color: var(--t4p-muted); }
.t4p-process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t4p-process-step { position: relative; min-height: 178px; padding: 25px; border: 1px solid #344035; background: rgba(0, 0, 0, .16); }
.t4p-process-step:last-child { grid-column: 1 / -1; }
.t4p-process-step__number { margin-bottom: 14px !important; color: var(--t4p-green-bright) !important; font-family: var(--t4p-display); font-weight: 800; }
.t4p-process-step h3 { margin-bottom: 8px; font-size: 1.08rem; text-transform: uppercase; }
.t4p-process-step p:last-child { margin-bottom: 0; font-size: .88rem; }

/* About and CTA */
.t4p-about-layout { gap: clamp(40px, 7vw, 100px); }
.t4p-about-layout > .wp-block-column:first-child p { color: var(--t4p-muted-dark); }
.t4p-stat-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.t4p-stat { min-height: 150px; padding: 25px; border: 1px solid #d4dbd5; background: #fff; }
.t4p-stat h3 { margin-bottom: 8px; color: var(--t4p-green-dark); font-size: clamp(1.8rem, 3vw, 2.55rem); }
.t4p-stat p { margin: 0; color: var(--t4p-muted-dark); font-size: .86rem; }
.t4p-cta {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background: linear-gradient(105deg, #12320d 0%, #4eae14 70%, #70cd20 100%);
    color: #fff;
}
.t4p-cta::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -110px;
    width: 370px;
    height: 370px;
    background: url("assets/branding/tech4power-mark.svg") center / contain no-repeat;
    opacity: .12;
    filter: brightness(0) invert(1);
}
.t4p-cta__inner { position: relative; z-index: 1; gap: 38px; }
.t4p-cta__copy { flex: 1 1 760px; }
.t4p-cta h2 { max-width: 900px; margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.7rem); text-wrap: balance; }
.t4p-cta p { max-width: 760px; margin-bottom: 0; color: rgba(255,255,255,.9); }
.t4p-cta .t4p-eyebrow { color: #fff; }

/* Inner page hero */
.t4p-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 10vw, 150px) 0 90px;
    border-bottom: 1px solid var(--t4p-line);
    background:
        radial-gradient(circle at 80% 30%, rgba(91, 196, 24, .15), transparent 27%),
        linear-gradient(135deg, #050706, #0d120e);
    color: var(--t4p-white);
}
.t4p-page-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -70px;
    width: 320px;
    height: 320px;
    background: url("assets/branding/tech4power-mark.svg") center / contain no-repeat;
    opacity: .055;
}
.t4p-page-hero__inner { position: relative; z-index: 1; }
.t4p-page-hero h1 { max-width: 1080px; margin-bottom: 22px; font-size: clamp(3rem, 6vw, 5.6rem); text-wrap: balance; }
.t4p-page-hero__lead { max-width: 850px; margin-bottom: 0; color: #c4cec6; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }

/* Detailed pages */
.t4p-deliverables { gap: 30px; }
.t4p-deliverables ul { margin: 0; padding: 30px 30px 30px 54px; border: 1px solid var(--t4p-line); background: var(--t4p-panel); }
.t4p-deliverables li { margin: 10px 0; }
.t4p-expertise-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.t4p-expertise-detail {
    padding: 34px;
    border: 1px solid #d5ddd6;
    border-radius: var(--t4p-radius);
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 25, 17, .055);
}
.t4p-expertise-detail:last-child { grid-column: 1 / -1; }
.t4p-expertise-detail__head { gap: 18px; margin-bottom: 18px; }
.t4p-expertise-detail__head .t4p-card__icon { flex: 0 0 62px; margin: 0 !important; }
.t4p-expertise-detail__head h2 { margin: 0; font-size: clamp(1.6rem, 2.5vw, 2.35rem); }
.t4p-expertise-detail__lead { color: var(--t4p-muted-dark); font-size: 1.02rem; }
.t4p-check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.t4p-check-list li { position: relative; padding-left: 25px; color: var(--t4p-muted-dark); }
.t4p-check-list li::before { content: ""; position: absolute; top: .68em; left: 0; width: 10px; height: 6px; border-bottom: 2px solid var(--t4p-green-dark); border-left: 2px solid var(--t4p-green-dark); transform: rotate(-45deg); }
.t4p-timeline { max-width: 1050px; margin-inline: auto; }
.t4p-timeline-step { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 35px 0; border-bottom: 1px solid var(--t4p-line); }
.t4p-timeline-step:last-child { border-bottom: 0; }
.t4p-timeline-step__number { display: grid; width: 72px; height: 72px; place-items: center; margin: 0 !important; border: 1px solid var(--t4p-green); border-radius: 50%; color: var(--t4p-green-bright); font-family: var(--t4p-display); font-size: 1.15rem; font-weight: 800; }
.t4p-timeline-step h2 { margin-bottom: 8px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.t4p-timeline-step p { margin: 0; color: var(--t4p-muted); }
.t4p-sector-list { display: grid; gap: 22px; }
.t4p-sector-detail { display: grid; grid-template-columns: 100px 1fr; gap: 34px; padding: 42px; border: 1px solid #d7ddd8; border-radius: var(--t4p-radius); background: #fff; }
.t4p-sector-detail .t4p-card__icon { width: 78px; height: 78px; margin: 0 !important; }
.t4p-sector-detail h2 { margin-bottom: 12px; }

/* Contact form */
.t4p-contact-layout { gap: clamp(40px, 7vw, 90px); }
.t4p-contact-details { margin-top: 34px; padding-top: 28px; border-top: 1px solid #cfd7d0; }
.t4p-contact-details p { margin-bottom: 20px; }
.t4p-contact-details a { color: var(--t4p-green-dark); font-weight: 750; }
.t4p-legal-content > * { max-width: 880px; }
.t4p-legal-content h2 { margin-top: 2.1em; color: var(--t4p-ink); font-size: clamp(1.65rem, 3vw, 2.25rem); }
.t4p-legal-note { padding: 22px 24px; border-left: 4px solid var(--t4p-green-dark); background: #e8eee9; color: #273029; }
.t4p-legal-content a { color: var(--t4p-green-dark); }
.t4p-fallback-logo picture { display: inline-flex; align-items: center; }
.t4p-form-panel { padding: clamp(28px, 4vw, 48px); border: 1px solid #d4dcd5; border-radius: var(--t4p-radius); background: #fff; box-shadow: var(--t4p-shadow); }
.t4p-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.t4p-field { margin-bottom: 20px; }
.t4p-field label { display: block; margin-bottom: 8px; color: var(--t4p-ink); font-size: .9rem; font-weight: 750; }
.t4p-field input[type="text"],
.t4p-field input[type="email"],
.t4p-field input[type="tel"],
.t4p-field select,
.t4p-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #b9c3bb;
    border-radius: 5px;
    background: #fbfcfb;
    color: var(--t4p-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.t4p-field textarea { min-height: 170px; resize: vertical; }
.t4p-field input:focus,
.t4p-field select:focus,
.t4p-field textarea:focus { border-color: var(--t4p-green-dark); outline: 0; box-shadow: 0 0 0 4px rgba(101, 201, 28, .14); }
.t4p-field--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.t4p-field--checkbox input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--t4p-green-dark); }
.t4p-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.t4p-form-submit { margin: 28px 0 10px; }
.t4p-submit { cursor: pointer; }
.t4p-form-help { margin-bottom: 0; color: var(--t4p-muted-dark); font-size: .82rem; }
.t4p-form-notice { margin-bottom: 24px; padding: 16px 18px; border-left: 4px solid currentColor; border-radius: 4px; }
.t4p-form-notice--success { background: #eaf8ef; color: var(--t4p-success); }
.t4p-form-notice--error { background: #fff1f0; color: var(--t4p-danger); }

/* Content and posts */
.t4p-content-area { padding: 100px 0; background: var(--t4p-paper); color: var(--t4p-ink); }
.t4p-archive-header { margin-bottom: 50px; }
.t4p-post-card h2 { font-size: 1.6rem; }
.t4p-post-card h2 a { text-decoration: none; }
.t4p-post-card__image { display: block; margin: -31px -31px 26px; overflow: hidden; border-radius: var(--t4p-radius) var(--t4p-radius) 0 0; }
.t4p-post-card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.t4p-article-wrap { max-width: 980px; }
.t4p-article__header { margin-bottom: 42px; }
.t4p-article__header h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.t4p-article__image { margin-bottom: 42px; }
.t4p-article__content { max-width: var(--t4p-content); font-size: 1.05rem; }
.t4p-article__content h2 { margin-top: 2.2em; font-size: 2.2rem; }
.t4p-error-page { display: grid; min-height: 70vh; align-items: center; padding: 100px 0; background: var(--t4p-black); }
.t4p-error-page h1 { max-width: 800px; }

/* Footer */
.site-footer { padding: 66px 0 25px; border-top: 1px solid #1f2721; background: #020302; color: var(--t4p-muted); }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr .8fr 1fr; gap: clamp(38px, 6vw, 90px); }
.t4p-footer-logo { display: inline-block; }
.t4p-footer-logo img { width: 255px; max-height: 88px; object-fit: contain; object-position: left center; }
.site-footer__brand p { max-width: 520px; margin: 22px 0 0; }
.site-footer h2 { margin-bottom: 20px; color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-menu { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-menu a,
.site-footer__contact a { color: #d0d8d2; text-decoration: none; }
.footer-menu a:hover,
.site-footer__contact a:hover { color: var(--t4p-green-bright); }
.site-footer__contact p { margin-bottom: 10px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #202821; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }

/* Pagination */
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; border: 1px solid #cdd5ce; text-decoration: none; }
.page-numbers.current,
.page-numbers:hover { border-color: var(--t4p-green-dark); background: var(--t4p-green-dark); color: #fff; }

@media (max-width: 1180px) {
    .site-navigation-panel { gap: 18px; }
    .t4p-menu { gap: 18px; }
    .t4p-menu a { font-size: .71rem; }
    .custom-logo,
    .t4p-fallback-logo img { width: 235px; }
    .t4p-grid--expertise { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .t4p-grid--expertise > *,
    .t4p-grid--expertise > *:nth-child(5) { grid-column: auto; }
    .t4p-card--expertise { min-height: 280px; }
}

@media (max-width: 980px) {
    body.admin-bar .site-header { top: 46px; }
    .menu-toggle { display: inline-flex; }
    .site-navigation-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - var(--t4p-header-height));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px;
        border-top: 1px solid var(--t4p-line);
        border-bottom: 1px solid var(--t4p-line);
        background: rgba(5, 7, 6, .99);
        box-shadow: 0 30px 60px rgba(0,0,0,.4);
    }
    .site-navigation-panel.is-open { display: flex; }
    .t4p-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .t4p-menu a { display: flex; padding: 13px 2px; font-size: .82rem; }
    .t4p-menu a::after { display: none; }
    .header-contact { justify-content: center; }
    .t4p-hero { min-height: 680px !important; }
    .t4p-hero::before { background: linear-gradient(90deg, rgba(2,4,3,.97), rgba(2,4,3,.75)); }
    .t4p-hero .wp-block-cover__image-background { opacity: .62; object-position: 68% center; }
    .t4p-proof-grid { grid-template-columns: repeat(2, 1fr); }
    .t4p-proof:nth-child(2) { border-right: 0; }
    .t4p-proof:nth-child(-n+2) { border-bottom: 1px solid var(--t4p-line); }
    .t4p-grid--3,
    .t4p-grid--values { grid-template-columns: 1fr; }
    .t4p-grid--expertise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t4p-method-layout { flex-wrap: wrap !important; }
    .t4p-method-layout > .wp-block-column { flex-basis: 100% !important; }
    .t4p-method-layout > .wp-block-column:first-child { position: static; }
    .t4p-about-layout { flex-wrap: wrap !important; }
    .t4p-about-layout > .wp-block-column { flex-basis: 100% !important; }
    .t4p-expertise-list { grid-template-columns: 1fr; }
    .t4p-expertise-detail:last-child { grid-column: auto; }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr; }
    .site-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    :root { --t4p-header-height: 76px; }
    .t4p-container,
    .alignwide,
    .t4p-hero__inner { width: min(var(--t4p-wide), calc(100% - 28px)); }
    body { font-size: 16px; }
    .site-header__inner { min-height: var(--t4p-header-height); }
    .custom-logo,
    .t4p-fallback-logo img { width: 198px; max-height: 60px; }
    .menu-toggle__label { display: none; }
    .t4p-hero { min-height: 640px !important; }
    .t4p-hero__title { font-size: clamp(2.65rem, 12vw, 4.2rem); }
    .t4p-hero__lead { font-size: 1rem; }
    .t4p-buttons,
    .wp-block-buttons { align-items: stretch; }
    .t4p-buttons .wp-block-button,
    .t4p-buttons .wp-block-button__link { width: 100%; }
    .t4p-proof-grid { grid-template-columns: 1fr; }
    .t4p-proof { min-height: auto; border-right: 0; border-bottom: 1px solid var(--t4p-line); }
    .t4p-proof:last-child { border-bottom: 0; }
    .t4p-section { padding: 72px 0; }
    .t4p-grid--expertise,
    .t4p-process-grid,
    .t4p-stat-panel,
    .t4p-form-grid { grid-template-columns: 1fr; }
    .t4p-process-step:last-child { grid-column: auto; }
    .t4p-card { padding: 26px; }
    .t4p-card--expertise { min-height: auto; }
    .t4p-page-hero { padding: 86px 0 66px; }
    .t4p-page-hero h1 { font-size: clamp(2.55rem, 12vw, 4.1rem); }
    .t4p-check-list { grid-template-columns: 1fr; }
    .t4p-timeline-step { grid-template-columns: 1fr; gap: 18px; }
    .t4p-timeline-step__number { width: 58px; height: 58px; }
    .t4p-sector-detail { grid-template-columns: 1fr; padding: 28px; }
    .t4p-contact-layout { flex-wrap: wrap !important; }
    .t4p-contact-layout > .wp-block-column { flex-basis: 100% !important; }
    .t4p-form-panel { padding: 24px 18px; }
    .t4p-cta { padding: 60px 0; }
    .t4p-cta__inner { align-items: flex-start !important; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__contact { grid-column: auto; }
    .site-footer__bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Subtle states driven by the lightweight navigation script. */
.site-header.is-scrolled {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
@media (max-width: 980px) {
    body.menu-is-open { overflow: hidden; }
}
.site-footer__legal-wrap { display: grid; gap: 7px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__legal a { color: #cbd4cd; text-decoration: none; }
.site-footer__legal a:hover { color: var(--t4p-green-bright); }


/* V5 additions */
.site-header__actions{display:flex;align-items:center;gap:14px;}
.lang-switch{display:flex;align-items:center;gap:8px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:#aeb7af;}
.lang-switch a{color:#aeb7af;text-decoration:none;}
.lang-switch a.is-current{color:#5fc718;font-weight:700;}
.t4p-service-card{height:100%;padding:28px;border:1px solid rgba(95,199,24,.22);border-radius:18px;background:rgba(16,20,16,.78);box-shadow:0 12px 28px rgba(0,0,0,.18);}
.t4p-service-card h3{margin-top:0;margin-bottom:14px;}
@media (max-width: 960px){.site-header__actions{margin-top:18px;justify-content:space-between;width:100%;}.lang-switch{margin-left:auto;}}


/* V5.2 contact-page readability fixes */
.t4p-contact-details,
.t4p-contact-form-wrap {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(95, 199, 24, .18);
    border-radius: var(--t4p-radius);
    background: #ffffff;
    box-shadow: var(--t4p-shadow);
}
.t4p-contact-details {
    margin-top: 28px;
    border-top: 0;
}
.t4p-contact-details p,
.t4p-contact-details strong,
.t4p-contact-details a,
.t4p-contact-details {
    color: var(--t4p-ink);
}
.t4p-contact-details a {
    color: var(--t4p-green-dark);
    font-weight: 750;
    overflow-wrap: anywhere;
}
.t4p-contact-form-wrap .t4p-field label,
.t4p-contact-form-wrap .t4p-form-help,
.t4p-contact-form-wrap .t4p-field--checkbox label,
.t4p-contact-form-wrap .t4p-field--checkbox label a {
    color: var(--t4p-ink);
}
.t4p-contact-form-wrap .t4p-field input[type="text"],
.t4p-contact-form-wrap .t4p-field input[type="email"],
.t4p-contact-form-wrap .t4p-field input[type="tel"],
.t4p-contact-form-wrap .t4p-field select,
.t4p-contact-form-wrap .t4p-field textarea {
    background: #fbfcfb;
    color: var(--t4p-ink);
}
.t4p-contact-form-wrap .t4p-field select option {
    color: var(--t4p-ink);
}
.t4p-contact-form-wrap .t4p-submit {
    width: 100%;
    justify-content: center;
}
@media (max-width: 782px) {
    .t4p-contact-layout { gap: 26px; }
    .t4p-contact-details,
    .t4p-contact-form-wrap,
    .t4p-form-panel {
        padding: 22px 18px;
    }
    .t4p-contact-details a {
        font-size: 1rem;
        line-height: 1.45;
    }
}


/* V5.4 — outline lightning branding and mobile polish */
.custom-logo,
.t4p-fallback-logo img {
    width: 286px;
    max-height: 74px;
    object-fit: contain;
    object-position: left center;
}
.site-footer__brand .t4p-footer-logo img {
    width: min(330px, 100%);
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
}
.t4p-hero {
    isolation: isolate;
}
.t4p-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 34%, rgba(120, 217, 42, .13), transparent 28%),
        linear-gradient(90deg, rgba(2, 4, 3, .96) 0%, rgba(2, 4, 3, .78) 48%, rgba(2, 4, 3, .22) 100%);
}
.t4p-hero .wp-block-cover__inner-container { position: relative; z-index: 1; }
.t4p-card--expertise {
    border-color: rgba(120, 217, 42, .30);
    background: linear-gradient(145deg, rgba(17, 24, 19, .98), rgba(7, 11, 8, .98));
}
.t4p-card--expertise:hover {
    border-color: var(--t4p-green-bright);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .30), 0 0 0 1px rgba(120, 217, 42, .08);
}
@media (max-width: 1180px) {
    .custom-logo,
    .t4p-fallback-logo img { width: 245px; }
}
@media (max-width: 980px) {
    .site-header__inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
    .site-navigation-panel { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .site-header__actions { align-items: center; }
}
@media (max-width: 680px) {
    :root { --t4p-header-height: 72px; }
    .custom-logo,
    .t4p-fallback-logo img { width: 205px; max-height: 56px; }
    .site-header__inner { gap: 12px; }
    .menu-toggle__icon { width: 29px; }
    .t4p-hero { min-height: 590px !important; }
    .t4p-hero__title { font-size: clamp(2.35rem, 11vw, 3.65rem); line-height: 1.04; }
    .t4p-page-hero { padding-top: 70px; }
    .t4p-card--expertise { padding: 25px 23px; }
    .site-footer__brand .t4p-footer-logo img { width: 265px; }
}
@media (max-width: 390px) {
    .custom-logo,
    .t4p-fallback-logo img { width: 184px; }
    .t4p-container,
    .alignwide,
    .t4p-hero__inner { width: min(var(--t4p-wide), calc(100% - 22px)); }
}

/* V5.4 logo alignment corrections */
@media (max-width: 680px){.custom-logo,.t4p-fallback-logo img{width:220px;max-height:59px;}}
@media (max-width:390px){.custom-logo,.t4p-fallback-logo img{width:198px;max-height:54px;}}
