/*
Theme Name: Dynamic Fuel Systems — Consulting v2
Author: Dynamic Fuel Systems
Description: Four-page DFS consulting review theme. Native block content and draft setup.
Version: 2.4.2
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: dfs-v2
*/
:root{--navy:#071E32;--blue:#169FE3;--silver:#D7DCE0;--red:#E3262E;--ink:#132b3c;--muted:#4b5d6a;--paper:#f3f5f6}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.6;background:white}h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.12}h1{font-size:clamp(42px,5.2vw,78px);font-weight:700;letter-spacing:-.04em;max-width:1000px}h2{font-size:clamp(32px,3.2vw,46px);letter-spacing:-.035em}h3{font-size:23px;letter-spacing:-.015em}p+p{margin-top:20px}img{display:block;width:100%;height:auto}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a,button{touch-action:manipulation}a:focus-visible,button:focus-visible{outline:3px solid var(--blue);outline-offset:5px}a:hover{text-decoration:underline}button:hover{background:var(--navy);color:white}.wrap{width:min(1240px,calc(100% - 96px));margin-inline:auto}.skip-link{position:absolute;left:16px;top:-100px;z-index:99;background:white;padding:12px}.skip-link:focus{top:12px}.site-header{background:var(--navy);color:white;border-bottom:5px solid var(--blue);position:relative}.site-header:before{content:'';position:absolute;right:0;top:0;width:36%;height:105px;background:linear-gradient(115deg,#f2f3f4,var(--silver));clip-path:polygon(85px 0,100% 0,100% 100%,0 100%)}.header-top{display:flex;justify-content:space-between;align-items:center;min-height:105px;position:relative;gap:24px}.site-brand{display:flex;align-items:center;gap:21px;text-decoration:none!important}.symbol-plate{width:72px;height:72px;background:white;padding:7px;flex:none}.brand-name{font-size:23px;line-height:1.1;letter-spacing:.04em;font-weight:700;text-transform:uppercase}.brand-name small{display:block;font-size:10px;letter-spacing:.16em;margin-top:12px;border-top:2px solid var(--red);padding-top:8px}.top-tagline{font-size:12px;color:var(--navy);font-weight:700;letter-spacing:.1em;text-align:right;max-width:250px}.nav-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff24;min-height:62px;gap:24px}.site-nav{display:flex;gap:30px;align-items:center;font-size:14px}.site-nav a{padding:18px 0;border-bottom:2px solid transparent}.site-nav a[aria-current]{color:#6ecfff;border-color:var(--red)}.nav-cta{font-size:13px;font-weight:bold;color:white}.hero{position:relative;min-height:600px;background:var(--navy);color:white;display:flex;align-items:center;isolation:isolate;overflow:hidden}.hero-photo{position:absolute;inset:0;z-index:-2}.hero-photo img{height:100%;width:100%;object-fit:cover}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,30,50,.93),rgba(7,30,50,.48) 65%,rgba(7,30,50,.12));z-index:-1}.hero-inner{padding-top:90px;padding-bottom:90px}.eyebrow{font-size:11px;line-height:1.6;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:20px}.hero .eyebrow{color:#83d5ff}.hero-description{font-size:20px;max-width:590px;margin-top:26px;margin-bottom:30px}.button{display:inline-flex;align-items:center;gap:25px;background:var(--navy);color:white;border:1px solid var(--navy);font-size:14px;font-weight:bold;padding:16px 22px;line-height:1.3;text-decoration:none!important}.button:hover{background:#0a466a}.hero .button,.cta-band .button{background:var(--blue);border-color:var(--blue);color:var(--navy)}.button span{font-size:20px}.brand-strip{background:var(--silver);padding:20px 0;font-size:12px;font-weight:bold;letter-spacing:.16em}.brand-strip span{color:var(--red);padding:0 22px}.section{padding-top:90px;padding-bottom:90px}.intro-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px}.lead{font-size:21px;line-height:1.55;color:var(--muted);max-width:790px;margin-top:24px}.intro-grid .lead{margin-top:0}.text-link{display:inline-block;font-weight:bold;border-bottom:1px solid var(--blue);margin-top:28px;padding-bottom:6px;font-size:15px}.service-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:45px;border-top:1px solid #bcc8d0;border-bottom:1px solid #bcc8d0}.service-card{padding:32px 26px;border-right:1px solid #bcc8d0;display:flex;flex-direction:column}.service-card:first-child{padding-left:0}.service-card:last-child{border-right:0}.number{font-size:12px;font-weight:bold;color:#176890;margin-bottom:35px}.service-card h3{min-height:58px}.service-card p:not(.number){margin-top:20px;font-size:15px;color:var(--muted)}.service-card .text-link{align-self:flex-start;margin-top:auto;padding-top:28px}.feature-split{display:grid;grid-template-columns:1fr 1fr;background:var(--navy);color:white}.feature-split figure img{height:100%;min-height:470px;object-fit:cover}.feature-copy{padding:72px clamp(36px,6vw,100px)}.feature-copy p:not(.eyebrow){margin-top:24px;margin-bottom:32px;color:var(--silver)}.feature-copy .button{background:var(--blue);color:var(--navy)}.gallery-section{overflow:hidden;background:var(--paper)}.gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:35px}.gallery-heading h2{max-width:700px}.gallery-controls{display:flex;gap:10px}.gallery-controls button{border:1px solid #aab6bf;background:white;width:48px;height:48px;border-radius:50%;font-size:23px}.gallery-controls button:hover{background:var(--navy)}.gallery-controls button:disabled{opacity:.35;cursor:default;background:white;color:var(--navy)}.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:26px;padding:0 max(48px,calc((100vw - 1240px)/2)) 20px;scrollbar-width:thin;scrollbar-color:#92a5b2 transparent}.gallery-card{flex:0 0 370px;scroll-snap-align:center;background:white}.gallery-card figure img{height:260px;object-fit:cover}.card-body{padding:28px}.card-body h3{font-size:24px}.card-body p{margin-top:18px;font-size:15px;color:var(--muted)}.cta-band{background:var(--navy);color:white;padding:65px 0;border-top:4px solid var(--blue);position:relative}.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:50px}.cta-inner p:not(.eyebrow){color:var(--silver);margin-top:20px;max-width:650px}.cta-inner .button{flex:none}.site-footer{background:var(--navy);color:var(--silver);padding:35px 0 26px;position:relative;border-top:1px solid #ffffff26;overflow:hidden}.site-footer:after{content:'';position:absolute;right:-40px;bottom:0;width:28%;height:9px;background:var(--blue);transform:skewX(-35deg)}.footer-row{display:flex;justify-content:space-between;gap:40px;align-items:end;font-size:12px}.footer-brand{font-weight:bold;letter-spacing:.07em;color:white}.footer-brand:before{content:'';display:block;width:52px;height:3px;background:var(--red);margin-bottom:20px}.footer-row p+p{margin-top:8px}.footer-links{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:12px}.footer-email{overflow-wrap:anywhere}.jump-links{padding:28px 0;border-bottom:1px solid var(--silver)}.jump-links nav{display:flex;justify-content:space-between;gap:25px;font-size:14px;font-weight:bold}.service-detail{display:grid;grid-template-columns:.85fr 1.15fr;gap:75px;border-bottom:1px solid var(--silver);align-items:start}.service-detail figure{position:sticky;top:30px}.service-detail figure img{height:570px;object-fit:cover}.service-detail.reverse figure{order:2}.service-copy h2{margin-bottom:35px}.service-copy h3,.configuration h3{font-size:16px;margin:24px 0 10px}.service-copy p,.configuration p{color:var(--muted)}.service-copy .decision,.configuration .decision{font-size:20px;color:var(--navy)}.service-copy .button,.configuration .button{margin-top:28px}.configuration-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px}.configuration{background:var(--paper);padding:44px;border-top:4px solid var(--blue)}.configuration:nth-child(2){border-top-color:var(--red)}.configuration h2{font-size:34px}.configuration .fuel-label{font-size:22px;color:#12658f;margin:14px 0 30px;font-weight:bold}.sector-detail{display:grid;grid-template-columns:1fr 1fr;gap:100px;border-bottom:1px solid var(--silver);padding-top:65px;padding-bottom:65px}.sector-copy p{margin-top:20px;color:var(--muted)}.sector-copy .button{margin-top:25px}.caption{font-size:12px;color:var(--muted);padding:25px 0}.wp-block-image{margin:0}.wp-block-list{padding-left:20px}.wp-block-list li{padding:8px 0}.menu-button{display:none}
@media(min-width:1600px){.hero{min-height:680px}}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.site-nav{gap:20px;font-size:13px}.intro-grid,.service-detail,.sector-detail{gap:45px}.service-grid{grid-template-columns:1fr 1fr}.service-card:nth-child(2){border-right:0}.service-card:nth-child(3){padding-left:0;border-top:1px solid var(--silver)}.service-card:nth-child(4){border-top:1px solid var(--silver)}.service-card h3{min-height:0}.gallery-track{padding-inline:28px}.configuration{padding:30px}.nav-cta{display:none}}
@media(max-width:700px){.wrap{width:calc(100% - 40px)}.site-header:before,.top-tagline{display:none}.header-top{min-height:100px}.symbol-plate{width:61px;height:61px}.site-brand{gap:14px}.brand-name{font-size:17px}.brand-name small{font-size:8px;letter-spacing:.1em}.nav-row{display:block;min-height:0;padding:12px 0}.site-nav{display:flex;gap:8px 20px;flex-wrap:wrap;font-size:12px}.site-nav a{padding:4px 0}.hero{min-height:570px}.hero-inner{padding:70px 0}.hero-description{font-size:18px}.hero:after{background:linear-gradient(90deg,rgba(7,30,50,.90),rgba(7,30,50,.60))}.section{padding-top:58px;padding-bottom:58px}.intro-grid,.feature-split,.service-detail,.configuration-grid,.sector-detail{grid-template-columns:1fr;gap:30px}.lead{font-size:19px}.brand-strip{font-size:9px;letter-spacing:.07em}.brand-strip span{padding:0 8px}.service-grid{grid-template-columns:1fr}.service-card,.service-card:first-child,.service-card:nth-child(3){padding:27px 0;border-right:0;border-bottom:1px solid var(--silver);border-top:0}.service-card:last-child{border-bottom:0}.number{margin-bottom:16px}.service-card .text-link{padding-top:18px}.feature-split figure img{min-height:0;height:300px}.feature-copy{padding:42px 24px}.gallery-track{padding-inline:20px;gap:18px}.gallery-card{flex-basis:84vw;max-width:370px}.gallery-card figure img{height:230px}.gallery-heading{align-items:flex-end}.gallery-heading h2{font-size:29px}.gallery-controls button{width:38px;height:38px}.cta-inner{display:block}.cta-inner .button{margin-top:30px}.footer-row{display:block}.footer-links{margin-top:24px}.service-detail figure{position:static}.service-detail figure img{height:280px}.service-detail.reverse figure{order:0}.jump-links nav{flex-wrap:wrap;justify-content:start;font-size:12px;gap:14px 22px}.configuration{padding:30px 24px}.configuration h2{font-size:29px}.sector-detail{padding-top:48px;padding-bottom:48px}.cta-band{padding:50px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.gallery-track{scroll-behavior:auto}}

/* Self-hosted video presentation. Poster images remain visible before playback. */
.dfs-video-frame{position:relative;margin:0;background:var(--navy);overflow:hidden}
.dfs-video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.dfs-video-toggle{position:absolute;left:16px;top:16px;z-index:4;border:1px solid #ffffffb3;border-radius:3px;background:#071e32e6;color:white;padding:9px 14px;font-size:13px;line-height:1.3;min-height:40px}
.dfs-video-toggle:hover{background:#12658f;color:white}
.dfs-video-toggle:focus-visible{outline:3px solid white;outline-offset:3px}
.dfs-hero-video{overflow:visible}
.dfs-hero-video .dfs-video{height:100%;width:100%;object-fit:cover;aspect-ratio:auto}
.dfs-hero-video .dfs-video-toggle{top:auto;bottom:22px;left:auto;right:24px;pointer-events:auto}
.hero .dfs-hero-video{z-index:auto}
.hero .dfs-hero-video video{position:absolute;inset:0;z-index:0}
.hero .hero-inner{pointer-events:none}
.hero .hero-inner a{pointer-events:auto}
.gallery-card .dfs-video{height:260px;aspect-ratio:auto}
.feature-split .dfs-video-frame{height:100%;min-height:470px}
.feature-split .dfs-video{height:100%;position:absolute;inset:0;aspect-ratio:auto}
.service-detail .dfs-video-frame{align-self:start}
.service-detail .dfs-portrait-video .dfs-video{aspect-ratio:9/16;max-height:570px;object-fit:contain}
@media(max-width:700px){.gallery-card .dfs-video{height:230px}.feature-split .dfs-video-frame{min-height:300px;height:300px}.service-detail .dfs-portrait-video .dfs-video{max-height:480px}.dfs-hero-video .dfs-video-toggle{right:20px;bottom:18px}}
.hero:after{z-index:1;pointer-events:none}
.hero .hero-inner{position:relative;z-index:2}
.hero .dfs-hero-video{position:absolute;inset:0}

/* Transparent, theme-matched media controls and section photography. */
.dfs-video-toggle{width:48px;height:48px;min-height:48px;padding:8px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#fff;filter:drop-shadow(0 1px 2px #071e32) drop-shadow(0 0 4px #071e32);transition:color .15s,transform .15s}
.dfs-video-toggle:hover{background:transparent;color:#77d3ff;transform:scale(1.08)}
.dfs-video-toggle svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dfs-video-toggle .dfs-pause-icon{display:none}
.is-playing .dfs-video-toggle .dfs-play-icon{display:none}
.is-playing .dfs-video-toggle .dfs-pause-icon{display:initial}
.dfs-section-image{margin:24px 0 0;overflow:hidden}
.dfs-section-image img{width:100%;aspect-ratio:4/3;object-fit:cover;height:auto}
.service-card .dfs-section-image{margin-top:24px;margin-bottom:24px}
.sector-title .dfs-section-image{max-width:480px}
.sector-title .dfs-section-image img{aspect-ratio:4/3}
.dfs-top-row{display:flex;justify-content:flex-end;margin-top:28px}
.dfs-back-top{width:48px;height:48px;display:grid;place-items:center;color:white;border:1px solid #6e8595;border-radius:50%;transition:color .15s,border-color .15s}
.dfs-back-top:hover{color:#77d3ff;border-color:#77d3ff}
.dfs-back-top svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.dfs-video-toggle,.dfs-back-top{transition:none}}

/* Equal image dimensions and shared baselines across each consulting row. */
.service-grid{grid-auto-rows:auto}
.service-grid .service-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;padding:32px 26px;min-width:0}
.service-card h3{min-height:0}
.service-card .dfs-section-image{margin:24px 0 0;align-self:end;width:100%}
.service-card .dfs-section-image img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.service-card .text-link{margin-top:0;padding-top:28px;justify-self:start;align-self:start}
/* Align sector copy to the photograph, independently of the title height. */
@media(min-width:701px){
 .sector-detail{grid-template-rows:auto auto auto;row-gap:20px}
 .sector-title{display:contents}
 .sector-title>.eyebrow{grid-column:1;grid-row:1;margin:0}
 .sector-title>h2{grid-column:1;grid-row:2}
 .sector-title>.dfs-section-image{grid-column:1;grid-row:3;margin:4px 0 0}
 .sector-copy{grid-column:2;grid-row:3;align-self:center}
}
@media(max-width:700px){
 .service-grid .service-card{display:flex;grid-row:auto;padding:27px 0}
 .service-card .text-link{padding-top:24px}
}
@media(min-width:701px){.service-grid .service-card{border-right:1px solid #bcc8d0}.service-grid .service-card:last-child{border-right-color:transparent}}
@media(min-width:701px) and (max-width:1050px){.service-grid .service-card:nth-child(2){border-right-color:transparent}}
