/*
Theme Name: DME Solutions
Theme URI: https://dme-solutions.nl/
Description: Modern DME Solutions child theme for battery storage, renewable energy and charging infrastructure. Built on Spower.
Author: DME solutions
Version: 1.0.0
Template: spower
Text Domain: dme-solutions
Requires PHP: 7.4
Tested up to: 6.8
*/

:root {
    --dme-blue: #0574b9;
    --dme-blue-dark: #064d80;
    --dme-blue-soft: #eaf5fb;
    --dme-green: #58b62f;
    --dme-green-dark: #338b24;
    --dme-green-soft: #eef9e9;
    --dme-ink: #13202c;
    --dme-ink-2: #263440;
    --dme-muted: #63707c;
    --dme-line: #dce5ea;
    --dme-surface: #f6f9fa;
    --dme-white: #ffffff;
    --dme-radius-sm: 14px;
    --dme-radius: 24px;
    --dme-radius-lg: 34px;
    --dme-shadow: 0 22px 60px rgba(11, 49, 75, 0.12);
    --dme-container: 1240px;
    --dme-ease: cubic-bezier(.2, .75, .2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body.dme-brand-site {
    margin: 0;
    background: var(--dme-white);
    color: var(--dme-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.dme-brand-site * {
    box-sizing: border-box;
}

body.dme-brand-site img {
    max-width: 100%;
    height: auto;
}

body.dme-brand-site a {
    color: inherit;
    text-decoration: none;
}

body.dme-brand-site button,
body.dme-brand-site input,
body.dme-brand-site textarea,
body.dme-brand-site select {
    font: inherit;
}

.dme-site-shell {
    min-height: 100vh;
    overflow: clip;
    background: var(--dme-white);
}

.dme-container {
    width: min(calc(100% - 48px), var(--dme-container));
    margin-inline: auto;
}

/* Header */
.dme-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 999;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.admin-bar .dme-header {
    top: 32px;
}

.dme-header.is-scrolled,
body:not(.home) .dme-header {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(19,32,44,.08);
    box-shadow: 0 12px 34px rgba(10, 42, 65, .07);
}

.dme-header-inner {
    width: min(calc(100% - 48px), 1320px);
    min-height: 92px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 270px 1fr auto;
    align-items: center;
    gap: 30px;
}

.dme-brand {
    display: inline-flex;
    align-items: center;
    width: 250px;
    height: 72px;
}

.dme-brand img {
    display: block;
    width: 100%;
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}

.dme-navigation {
    justify-self: center;
}

.dme-menu,
.dme-navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dme-navigation li {
    margin: 0;
    padding: 0;
    position: relative;
}

.dme-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--dme-ink-2);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: color .2s ease;
}

.dme-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--dme-blue), var(--dme-green));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s var(--dme-ease);
}

.dme-navigation a:hover,
.dme-navigation a:focus-visible {
    color: var(--dme-blue-dark);
}

.dme-navigation a:hover::after,
.dme-navigation a:focus-visible::after {
    transform: scaleX(1);
}

.dme-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--dme-ink);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.dme-header-cta:hover {
    transform: translateY(-2px);
    background: var(--dme-blue-dark);
    box-shadow: 0 12px 24px rgba(6,77,128,.2);
}

.dme-header-cta span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dme-green);
    font-size: 14px;
}

.dme-menu-toggle {
    display: none;
    appearance: none;
    border: 0;
    background: transparent;
    width: 48px;
    height: 48px;
    padding: 12px;
    cursor: pointer;
}

.dme-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dme-ink);
    margin: 6px 0;
    transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.dme-main {
    display: block;
}

.dme-hero {
    position: relative;
    min-height: 820px;
    padding: 164px 0 0;
    background:
        radial-gradient(circle at 83% 19%, rgba(88,182,47,.14), transparent 26%),
        radial-gradient(circle at 67% 39%, rgba(5,116,185,.12), transparent 34%),
        linear-gradient(180deg, #fbfdfe 0%, #f3f8fa 100%);
}

.dme-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: -260px;
    top: -100px;
    border-radius: 50%;
    border: 1px solid rgba(5,116,185,.13);
    box-shadow: 0 0 0 68px rgba(5,116,185,.025), 0 0 0 136px rgba(88,182,47,.02);
    pointer-events: none;
}

.dme-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
    gap: 70px;
    align-items: center;
    min-height: 590px;
}

.dme-hero-copy {
    position: relative;
    z-index: 3;
    padding-bottom: 34px;
}

.dme-eyebrow,
.dme-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dme-blue-dark);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dme-eyebrow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dme-green);
    box-shadow: 0 0 0 6px rgba(88,182,47,.12);
}

.dme-hero h1 {
    max-width: 760px;
    margin: 24px 0 24px;
    color: var(--dme-ink);
    font-size: clamp(46px, 5.35vw, 78px);
    line-height: .99;
    font-weight: 830;
    letter-spacing: -.055em;
}

.dme-hero h1::after {
    content: "";
    display: inline-block;
    width: .22em;
    height: .22em;
    margin-left: .12em;
    border-radius: 50%;
    background: var(--dme-green);
    vertical-align: .08em;
}

.dme-hero-lead {
    max-width: 650px;
    margin: 0;
    color: var(--dme-muted);
    font-size: 18px;
    line-height: 1.7;
}

.dme-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.dme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.dme-btn:hover {
    transform: translateY(-2px);
}

.dme-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--dme-blue) 0%, var(--dme-blue-dark) 100%);
    box-shadow: 0 16px 32px rgba(5,116,185,.22);
}

.dme-btn-primary span,
.dme-btn-white span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dme-green);
    color: #fff;
}

.dme-btn-ghost {
    color: var(--dme-ink) !important;
    background: rgba(255,255,255,.75);
    border-color: var(--dme-line);
}

.dme-btn-ghost:hover {
    background: #fff;
    border-color: rgba(5,116,185,.35);
}

.dme-hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 700px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(19,32,44,.12);
}

.dme-hero-points > div {
    min-height: 54px;
    padding: 0 20px;
    border-left: 1px solid rgba(19,32,44,.11);
}

.dme-hero-points > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.dme-hero-points span {
    display: block;
    margin-bottom: 4px;
    color: var(--dme-green-dark);
    font-size: 11px;
    font-weight: 900;
}

.dme-hero-points strong {
    display: block;
    color: var(--dme-ink-2);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.dme-hero-visual {
    position: relative;
    min-height: 590px;
}

.dme-hero-orbit {
    position: absolute;
    width: 490px;
    height: 490px;
    right: 12px;
    top: 16px;
    border: 1px solid rgba(5,116,185,.16);
    border-radius: 50%;
}

.dme-hero-orbit::before,
.dme-hero-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.dme-hero-orbit::before {
    inset: 48px;
    border: 1px dashed rgba(88,182,47,.25);
}

.dme-hero-orbit::after {
    width: 14px;
    height: 14px;
    top: 61px;
    right: 62px;
    background: var(--dme-green);
    box-shadow: 0 0 0 9px rgba(88,182,47,.13);
}

.dme-hero-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: #dfe9ee;
    box-shadow: var(--dme-shadow);
}

.dme-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dme-hero-photo-main {
    width: min(88%, 520px);
    height: 500px;
    right: 0;
    top: 20px;
    border-radius: 40px 40px 90px 40px;
}

.dme-hero-photo-main img {
    object-position: center center;
}

.dme-hero-photo-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(4,26,40,.78) 100%);
    pointer-events: none;
}

.dme-hero-photo-main figcaption {
    position: absolute;
    z-index: 2;
    left: 30px;
    right: 30px;
    bottom: 28px;
    color: #fff;
}

.dme-hero-photo-main figcaption span {
    display: block;
    margin-bottom: 5px;
    color: #bde9a7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dme-hero-photo-main figcaption strong {
    display: block;
    font-size: 21px;
    line-height: 1.2;
}

.dme-hero-photo-small {
    z-index: 4;
    width: 200px;
    height: 255px;
    left: -24px;
    bottom: 4px;
    border: 8px solid #f4f9fa;
    border-radius: 28px;
}

.dme-energy-card {
    position: absolute;
    z-index: 5;
    right: 18px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 245px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 18px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 30px rgba(7,41,62,.13);
}

.dme-energy-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--dme-green), var(--dme-green-dark));
    color: #fff;
}

.dme-energy-card strong,
.dme-energy-card span {
    display: block;
}

.dme-energy-card strong {
    color: var(--dme-ink);
    font-size: 14px;
}

.dme-energy-card div span {
    margin-top: 2px;
    color: var(--dme-muted);
    font-size: 11px;
}

.dme-hero-band {
    margin-top: 58px;
    background: var(--dme-ink);
    color: #fff;
}

.dme-hero-band-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
}

.dme-hero-band span {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
}

.dme-hero-band i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--dme-green);
}

/* General sections */
.dme-section {
    padding: 110px 0;
}

.dme-section-heading {
    max-width: 760px;
    margin-bottom: 54px;
}

.dme-section-heading-split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr .7fr;
    gap: 90px;
    align-items: end;
}

.dme-section-heading h2,
.dme-about-copy h2,
.dme-contact-copy h2,
.dme-entry-header h1 {
    margin: 15px 0 0;
    color: var(--dme-ink);
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
    font-weight: 820;
    letter-spacing: -.045em;
}

.dme-section-heading p,
.dme-about-copy > p {
    margin: 0;
    color: var(--dme-muted);
    font-size: 17px;
}

/* Services */
.dme-solutions {
    position: relative;
    background: #fff;
}

.dme-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.dme-service-card {
    position: relative;
    min-height: 365px;
    padding: 28px;
    border: 1px solid var(--dme-line);
    border-radius: var(--dme-radius);
    background: #fff;
    overflow: hidden;
    transition: transform .3s var(--dme-ease), box-shadow .3s ease, border-color .3s ease;
}

.dme-service-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(5,116,185,.05);
    transition: transform .35s ease, background .35s ease;
}

.dme-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(5,116,185,.18);
    box-shadow: 0 22px 48px rgba(12,59,86,.10);
}

.dme-service-card:hover::after {
    transform: scale(1.35);
    background: rgba(88,182,47,.08);
}

.dme-service-card-featured {
    border-color: transparent;
    background: linear-gradient(145deg, #075a92 0%, #083c62 100%);
    color: #fff;
}

.dme-service-card-featured::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: rgba(88,182,47,.19);
}

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

.dme-service-card-featured .dme-service-icon {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.dme-service-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dme-service-number {
    position: absolute;
    top: 31px;
    right: 30px;
    color: #9aa8b2;
    font-size: 11px;
    font-weight: 900;
}

.dme-service-card-featured .dme-service-number {
    color: rgba(255,255,255,.62);
}

.dme-service-card h3 {
    margin: 0 0 12px;
    color: var(--dme-ink);
    font-size: 23px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
}

.dme-service-card-featured h3 {
    color: #fff;
}

.dme-service-card p {
    margin: 0 0 22px;
    color: var(--dme-muted);
    font-size: 14px;
    line-height: 1.7;
}

.dme-service-card-featured p {
    color: rgba(255,255,255,.75);
}

.dme-service-card a {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 26px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--dme-blue-dark);
    font-size: 12px;
    font-weight: 850;
}

.dme-service-card-featured a {
    color: #fff;
}

.dme-service-card a span {
    color: var(--dme-green-dark);
}

/* Projects */
.dme-projects {
    background: var(--dme-surface);
}

.dme-project-heading {
    max-width: 780px;
}

.dme-project-heading p {
    margin-top: 20px;
}

.dme-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dme-project-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 360px;
    border-radius: 28px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(9,44,66,.06);
}

.dme-project-card:nth-child(2) {
    grid-template-columns: .9fr 1.1fr;
}

.dme-project-image {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.dme-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s var(--dme-ease);
}

.dme-project-card:nth-child(1) .dme-project-image img,
.dme-project-card:nth-child(4) .dme-project-image img {
    object-position: center center;
}

.dme-project-card:nth-child(2) .dme-project-image img {
    object-position: 50% 45%;
}

.dme-project-card:hover .dme-project-image img {
    transform: scale(1.045);
}

.dme-project-index {
    position: absolute;
    left: 18px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--dme-ink);
    font-size: 11px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.dme-project-copy {
    align-self: center;
    padding: 34px;
}

.dme-project-copy > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dme-green-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dme-project-copy > span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dme-green);
}

.dme-project-copy h3 {
    margin: 13px 0 12px;
    color: var(--dme-ink);
    font-size: 27px;
    line-height: 1.1;
    font-weight: 820;
    letter-spacing: -.035em;
}

.dme-project-copy p {
    margin: 0;
    color: var(--dme-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* About */
.dme-about {
    background: #fff;
}

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

.dme-about-visual {
    position: relative;
    min-height: 580px;
}

.dme-about-image-wrap {
    width: 92%;
    height: 560px;
    border-radius: 32px 92px 32px 32px;
    overflow: hidden;
    background: var(--dme-surface);
    box-shadow: var(--dme-shadow);
}

.dme-about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dme-about-badge {
    position: absolute;
    right: 0;
    bottom: 34px;
    width: 220px;
    padding: 24px;
    border-radius: 24px;
    background: var(--dme-ink);
    color: #fff;
    box-shadow: 0 20px 45px rgba(19,32,44,.24);
}

.dme-about-badge > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 28px;
    border-radius: 13px;
    background: var(--dme-green);
}

.dme-about-badge strong,
.dme-about-badge small {
    display: block;
}

.dme-about-badge strong {
    font-size: 18px;
    line-height: 1.25;
}

.dme-about-badge small {
    margin-top: 7px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    line-height: 1.5;
}

.dme-about-copy h2 {
    margin-bottom: 24px;
}

.dme-about-copy > p + p {
    margin-top: 15px;
}

.dme-about-checks {
    display: grid;
    gap: 14px;
    margin: 30px 0;
}

.dme-about-checks > div {
    position: relative;
    min-height: 65px;
    padding: 4px 0 4px 56px;
}

.dme-about-checks > div > span {
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--dme-green-soft);
    color: var(--dme-green-dark);
    font-weight: 900;
}

.dme-about-checks strong,
.dme-about-checks small {
    display: block;
}

.dme-about-checks strong {
    color: var(--dme-ink);
    font-size: 14px;
}

.dme-about-checks small {
    margin-top: 3px;
    color: var(--dme-muted);
    font-size: 12px;
}

.dme-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(5,116,185,.35);
    color: var(--dme-blue-dark) !important;
    font-size: 13px;
    font-weight: 850;
}

.dme-text-link span {
    color: var(--dme-green-dark);
}

/* Process */
.dme-process {
    position: relative;
    background: linear-gradient(180deg, #f4f8fa 0%, #fff 100%);
}

.dme-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.dme-process-grid article {
    position: relative;
    min-height: 280px;
    padding: 28px;
    border-top: 3px solid var(--dme-line);
    background: transparent;
    transition: border-color .25s ease, transform .25s ease;
}

.dme-process-grid article::after {
    content: "";
    position: absolute;
    right: -12px;
    top: -8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--dme-line);
}

.dme-process-grid article:last-child::after {
    display: none;
}

.dme-process-grid article:hover {
    border-color: var(--dme-blue);
    transform: translateY(-4px);
}

.dme-process-grid article > span {
    display: inline-block;
    margin-bottom: 64px;
    color: var(--dme-green-dark);
    font-size: 12px;
    font-weight: 900;
}

.dme-process-grid h3 {
    margin: 0 0 11px;
    color: var(--dme-ink);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
}

.dme-process-grid p {
    margin: 0;
    color: var(--dme-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Contact CTA */
.dme-contact-section {
    padding: 30px 0 100px;
    background: #fff;
}

.dme-contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .6fr;
    gap: 70px;
    align-items: center;
    min-height: 390px;
    padding: 70px;
    border-radius: 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(88,182,47,.28), transparent 24%),
        linear-gradient(135deg, #073f69 0%, #0b2d45 100%);
    color: #fff;
}

.dme-contact-panel::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -180px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018);
}

.dme-kicker-light {
    color: #bde9a7;
}

.dme-contact-copy {
    position: relative;
    z-index: 2;
}

.dme-contact-copy h2 {
    margin-top: 15px;
    color: #fff;
}

.dme-contact-copy p {
    max-width: 700px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 16px;
}

.dme-contact-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.dme-btn-white {
    background: #fff;
    color: var(--dme-ink) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.14);
}

.dme-contact-phone,
.dme-contact-note {
    color: rgba(255,255,255,.75) !important;
    font-size: 13px;
    font-weight: 700;
}

/* Footer */
.dme-footer {
    padding: 82px 0 26px;
    background: #0d1820;
    color: #fff;
}

.dme-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr .6fr .7fr;
    gap: 70px;
    padding-bottom: 65px;
}

.dme-footer-logo {
    display: inline-flex;
    width: 250px;
    max-width: 100%;
    padding: 11px 18px 10px;
    border-radius: 18px;
    background: #fff;
}

.dme-footer-logo img {
    width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.dme-footer-brand p {
    margin: 20px 0 0;
    color: rgba(255,255,255,.56);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dme-footer-brand p span {
    color: var(--dme-green);
    margin: 0 7px;
}

.dme-footer h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dme-footer-menu {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dme-footer-menu li {
    margin: 0;
}

.dme-footer-menu a,
.dme-footer-contact a {
    color: rgba(255,255,255,.66) !important;
    font-size: 13px;
    transition: color .2s ease;
}

.dme-footer-menu a:hover,
.dme-footer-contact a:hover {
    color: #fff !important;
}

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

.dme-footer-contact a + a {
    margin-top: 8px;
}

.dme-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.dme-footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.43);
    font-size: 11px;
}

/* Inner pages */
body:not(.home) .dme-site-shell {
    padding-top: 92px;
}

.dme-entry-main {
    min-height: 58vh;
    padding: 78px 0 110px;
    background: #fff;
}

.dme-entry-header {
    max-width: 900px;
    margin-bottom: 42px;
}

.dme-entry-header .dme-kicker {
    margin-bottom: 10px;
}

.dme-entry-content {
    max-width: 920px;
    color: var(--dme-ink-2);
}

.dme-entry-content > *:first-child {
    margin-top: 0;
}

.dme-entry-content h2,
.dme-entry-content h3,
.dme-entry-content h4 {
    color: var(--dme-ink);
    font-weight: 800;
    letter-spacing: -.03em;
}

.dme-entry-content h2 {
    margin-top: 48px;
    font-size: 36px;
    line-height: 1.15;
}

.dme-entry-content h3 {
    margin-top: 34px;
    font-size: 26px;
}

.dme-entry-content a:not(.dme-btn) {
    color: var(--dme-blue-dark);
    text-decoration: underline;
    text-decoration-color: rgba(5,116,185,.3);
    text-underline-offset: 3px;
}

.dme-entry-content img {
    border-radius: 20px;
}

.dme-entry-content .wp-block-button__link {
    border-radius: 999px;
    background: var(--dme-blue-dark);
}

/* WooCommerce basics */
body.woocommerce .dme-entry-content,
body.woocommerce-page .dme-entry-content {
    max-width: none;
}

body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
    padding: 16px;
    border: 1px solid var(--dme-line);
    border-radius: 20px;
    background: #fff;
}

body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button {
    border-radius: 999px;
    background: var(--dme-blue-dark);
    color: #fff;
}

/* Responsive */
@media (max-width: 1180px) {
    .dme-header-inner {
        grid-template-columns: 220px 1fr auto;
        gap: 18px;
    }

    .dme-brand {
        width: 210px;
    }

    .dme-menu,
    .dme-navigation ul {
        gap: 8px 18px;
    }

    .dme-navigation a {
        font-size: 13px;
    }

    .dme-hero-grid {
        grid-template-columns: .95fr 1.05fr;
        gap: 36px;
    }

    .dme-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dme-service-card {
        min-height: 330px;
    }

    .dme-project-card {
        grid-template-columns: 1fr;
    }

    .dme-project-image {
        min-height: 300px;
    }

    .dme-about-grid {
        gap: 55px;
    }
}

@media (max-width: 980px) {
    .admin-bar .dme-header {
        top: 46px;
    }

    .dme-header {
        background: rgba(255,255,255,.96);
        border-bottom-color: rgba(19,32,44,.08);
        backdrop-filter: blur(14px);
    }

    .dme-header-inner {
        min-height: 80px;
        grid-template-columns: 1fr auto;
    }

    .dme-brand {
        width: 205px;
        height: 64px;
    }

    .dme-menu-toggle {
        display: block;
        justify-self: end;
    }

    .dme-navigation {
        position: absolute;
        left: 24px;
        right: 24px;
        top: calc(100% + 8px);
        padding: 14px;
        border: 1px solid var(--dme-line);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--dme-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .dme-menu-open .dme-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dme-navigation .dme-menu,
    .dme-navigation ul {
        display: grid;
        gap: 2px;
    }

    .dme-navigation a {
        min-height: 45px;
        padding: 0 12px;
        border-radius: 10px;
    }

    .dme-navigation a::after {
        display: none;
    }

    .dme-navigation a:hover {
        background: var(--dme-surface);
    }

    .dme-header-cta {
        display: none;
    }

    .dme-menu-open .dme-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .dme-menu-open .dme-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .dme-menu-open .dme-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dme-hero {
        padding-top: 126px;
    }

    .dme-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dme-hero-copy {
        max-width: 820px;
    }

    .dme-hero-visual {
        width: min(100%, 720px);
        min-height: 570px;
        margin-inline: auto;
    }

    .dme-section-heading-split {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .dme-section-heading-split p {
        max-width: 720px;
    }

    .dme-project-grid {
        grid-template-columns: 1fr;
    }

    .dme-project-card,
    .dme-project-card:nth-child(2) {
        grid-template-columns: 1.05fr .95fr;
    }

    .dme-about-grid {
        grid-template-columns: 1fr;
    }

    .dme-about-visual {
        width: min(100%, 700px);
    }

    .dme-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dme-process-grid article:nth-child(2)::after {
        display: none;
    }

    .dme-contact-panel {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .dme-footer-grid {
        grid-template-columns: 1.3fr .7fr .7fr;
        gap: 35px;
    }
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 90px;
    }

    .dme-container,
    .dme-header-inner {
        width: min(calc(100% - 32px), var(--dme-container));
    }

    .dme-header-inner {
        min-height: 74px;
    }

    .dme-brand {
        width: 176px;
        height: 58px;
    }

    .dme-navigation {
        left: 16px;
        right: 16px;
    }

    .dme-hero {
        min-height: auto;
        padding-top: 112px;
    }

    .dme-hero h1 {
        font-size: clamp(43px, 13vw, 62px);
    }

    .dme-hero-lead {
        font-size: 16px;
    }

    .dme-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dme-btn {
        width: 100%;
    }

    .dme-hero-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dme-hero-points > div,
    .dme-hero-points > div:first-child {
        min-height: 0;
        padding: 0 0 12px 0;
        border-left: 0;
        border-bottom: 1px solid rgba(19,32,44,.09);
    }

    .dme-hero-visual {
        min-height: 480px;
        margin-top: 10px;
    }

    .dme-hero-orbit {
        width: 390px;
        height: 390px;
        right: -80px;
    }

    .dme-hero-photo-main {
        width: 89%;
        height: 405px;
        border-radius: 28px 28px 60px 28px;
    }

    .dme-hero-photo-small {
        width: 140px;
        height: 180px;
        left: -6px;
        bottom: 2px;
        border-width: 6px;
    }

    .dme-energy-card {
        right: 0;
        bottom: 8px;
        min-width: 210px;
        padding: 11px 13px;
    }

    .dme-hero-band {
        margin-top: 38px;
    }

    .dme-hero-band-inner {
        justify-content: flex-start;
        min-height: 66px;
        gap: 15px;
    }

    .dme-hero-band span:nth-of-type(n+3),
    .dme-hero-band i:nth-of-type(n+3) {
        display: none;
    }

    .dme-section {
        padding: 78px 0;
    }

    .dme-section-heading {
        margin-bottom: 36px;
    }

    .dme-section-heading h2,
    .dme-about-copy h2,
    .dme-contact-copy h2,
    .dme-entry-header h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .dme-service-grid {
        grid-template-columns: 1fr;
    }

    .dme-service-card {
        min-height: 320px;
    }

    .dme-project-card,
    .dme-project-card:nth-child(2) {
        grid-template-columns: 1fr;
    }

    .dme-project-image {
        min-height: 300px;
        max-height: 360px;
    }

    .dme-project-copy {
        padding: 28px;
    }

    .dme-about-visual {
        min-height: 480px;
    }

    .dme-about-image-wrap {
        width: 94%;
        height: 450px;
    }

    .dme-about-badge {
        width: 190px;
        padding: 20px;
    }

    .dme-process-grid {
        grid-template-columns: 1fr;
    }

    .dme-process-grid article,
    .dme-process-grid article:nth-child(2) {
        min-height: 230px;
    }

    .dme-process-grid article::after {
        display: none;
    }

    .dme-process-grid article > span {
        margin-bottom: 38px;
    }

    .dme-contact-section {
        padding: 10px 0 70px;
    }

    .dme-contact-panel {
        min-height: auto;
        padding: 40px 26px;
        border-radius: 28px;
    }

    .dme-footer {
        padding-top: 60px;
    }

    .dme-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 45px;
    }

    .dme-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    body:not(.home) .dme-site-shell {
        padding-top: 74px;
    }

    .dme-entry-main {
        padding: 55px 0 80px;
    }
}

@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;
    }
}
