:root {
  --ink: #0d1926;
  --navy: #10263e;
  --navy-2: #163955;
  --blue: #77b9d4;
  --blue-pale: #d8edf5;
  --amber: #ffbd2e;
  --paper: #f5f3ed;
  --white: #ffffff;
  --muted: #62707c;
  --line: #d9dee1;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(4, 20, 34, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; background: var(--amber); padding: 12px 18px; z-index: 100; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; color: var(--white); }
.topline { border-bottom: 1px solid rgba(255,255,255,.18); font-size: 12px; letter-spacing: .04em; }
.topline-inner { min-height: 39px; display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 26px; }
.top-contact a:hover { color: var(--amber); }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 255px; height: 72px; object-fit: contain; border-radius: 4px; }
.menu { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.menu > a:not(.button):hover { color: var(--amber); }
.menu-button { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: var(--radius); background: var(--amber); color: #15120b; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #ffc94f; }
.button-small { min-height: 44px; padding-inline: 20px; }

.hero { position: relative; min-height: 810px; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-image { position: absolute; inset: 0; background-image: url("https://images.pexels.com/photos/34054464/pexels-photo-34054464/free-photo-of-electrician-diagnosing-electrical-panel-with-multimeter.jpeg?auto=compress&dpr=1&w=1800"); background-size: cover; background-position: 62% center; filter: saturate(.7) contrast(1.08); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,25,42,.97) 0%, rgba(8,25,42,.88) 43%, rgba(8,25,42,.30) 75%, rgba(8,25,42,.10) 100%), linear-gradient(0deg, rgba(5,20,34,.65) 0%, transparent 42%); }
.hero::after { content: ""; position: absolute; top: 150px; right: 0; width: 22%; height: 1px; background: rgba(255,255,255,.35); }
.hero-content { position: relative; z-index: 2; padding-top: 235px; }
.eyebrow, .section-label { margin: 0 0 18px; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #4d7890; }
.eyebrow { color: var(--blue-pale); display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 30px; height: 2px; background: var(--amber); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 26px; font-size: clamp(46px, 6vw, 78px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 660px; margin-bottom: 34px; color: #dbe3e8; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.text-link { font-size: 14px; font-weight: 700; }
.text-link span { color: var(--amber); padding-left: 8px; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin-top: 78px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 22px; }
.trust-strip div { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(255,255,255,.18); padding-right: 28px; }
.trust-strip div + div { padding-left: 28px; }
.trust-strip div:last-child { border: 0; }
.trust-strip strong { font-size: 14px; }
.trust-strip span { color: #aebbc4; font-size: 12px; }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 112px; }
h2 { margin-bottom: 22px; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.12; letter-spacing: -.035em; }
.intro-copy { padding-top: 32px; }
.intro-copy p { color: var(--muted); font-size: 17px; }
.arrow-link { display: inline-flex; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; font-size: 14px; font-weight: 800; }
.arrow-link span { color: #4d8eaa; }

.services { background: var(--navy); color: var(--white); padding-block: 110px; }
.section-label.light { color: var(--blue); }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-heading p:last-child { color: #aebdc8; margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.service-grid article { min-height: 280px; padding: 31px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); transition: background .25s ease, transform .25s ease; }
.service-grid article:hover { background: var(--navy-2); transform: translateY(-3px); }
.service-number { display: block; margin-bottom: 48px; color: var(--amber); font-size: 11px; font-weight: 800; }
.service-grid h3 { margin-bottom: 14px; font-size: 20px; }
.service-grid p { color: #aebdc8; font-size: 14px; }

.project { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; padding-block: 120px; align-items: center; }
.project-copy > p:not(.section-label) { color: var(--muted); }
.project-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; font-weight: 700; font-size: 14px; }
.project-list span { color: #3181a3; margin-right: 10px; }
.project-panel { background: #dcecf2; box-shadow: var(--shadow); padding: 38px; border-top: 5px solid var(--amber); }
.panel-heading { display: flex; justify-content: space-between; margin-bottom: 34px; color: #49687b; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.panel-stat { display: grid; grid-template-columns: 115px 1fr; gap: 24px; padding: 23px 0; border-top: 1px solid rgba(13,25,38,.17); }
.panel-stat strong { font-size: 16px; }
.panel-stat span { color: #4f6673; font-size: 14px; }
.panel-footer { margin-top: 20px; background: var(--navy); color: var(--white); padding: 22px; font-weight: 700; }

.process { background: #e8e5dd; padding-block: 100px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 38px; }
.process-grid article { padding: 12px 30px 12px 0; border-right: 1px solid #c8c7c1; }
.process-grid article + article { padding-left: 30px; }
.process-grid article:last-child { border: 0; }
.process-grid span { color: #43809c; font-size: 12px; font-weight: 800; }
.process-grid h3 { margin: 24px 0 10px; font-size: 18px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.quote { background: var(--navy-2); color: var(--white); padding-block: 105px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.quote-grid > div > p:last-child { color: #b6c5ce; max-width: 520px; }
.contact-card { border: 1px solid rgba(255,255,255,.22); }
.contact-card > * { display: flex; justify-content: space-between; gap: 20px; padding: 22px 25px; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-card > *:last-child { border: 0; }
.contact-card span { color: #a9bdc8; font-size: 12px; }
.contact-card strong { text-align: right; font-size: 14px; }
.contact-card a:hover strong { color: var(--amber); }

footer { background: #091723; color: var(--white); padding: 65px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .7fr; gap: 80px; }
.footer-grid img { width: 230px; border-radius: 4px; margin-bottom: 20px; }
.footer-grid p { max-width: 380px; color: #8495a2; font-size: 13px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.footer-grid > div > span { color: var(--blue); margin-bottom: 12px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
address { font-style: normal; color: #b5c1c8; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 52px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #697d8b; font-size: 11px; }

@media (max-width: 900px) {
  .topline { display: none; }
  .nav { height: 78px; }
  .brand img { width: 190px; height: 54px; }
  .menu-button { display: block; border: 1px solid rgba(255,255,255,.35); background: transparent; color: white; padding: 9px 14px; font: inherit; }
  .menu { display: none; position: absolute; left: 20px; right: 20px; top: 76px; background: var(--navy); padding: 22px; flex-direction: column; align-items: stretch; gap: 18px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 185px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(8,25,42,.95), rgba(8,25,42,.68)); }
  .intro, .section-heading, .project, .quote-grid { grid-template-columns: 1fr; gap: 45px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project { gap: 65px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 0; }
  .process-grid article:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 160px; }
  h1 { font-size: 43px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .trust-strip { grid-template-columns: 1fr; gap: 15px; margin-top: 52px; }
  .trust-strip div, .trust-strip div + div { border: 0; padding: 0; }
  .intro, .services, .project, .process, .quote { padding-block: 75px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 230px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article, .process-grid article + article { border-right: 0; border-bottom: 1px solid #c8c7c1; padding: 0 0 25px; }
  .panel-stat { grid-template-columns: 1fr; gap: 4px; }
  .project-panel { padding: 25px; }
  .contact-card > * { align-items: flex-start; flex-direction: column; }
  .contact-card strong { text-align: left; word-break: break-word; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Loxone: extend the existing MEC palette and editorial layout. */
.automation { padding-block: 110px; background: #fff; }
.automation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.automation-grid > div > p:not(.section-label) { color: var(--muted); }
.automation-intro { font-size: 19px; }
.automation .button { margin-top: 16px; }
.automation-features { border-top: 4px solid var(--amber); }
.automation-features article { padding: 25px 0; border-bottom: 1px solid var(--line); }
.automation-features article > span { color: #476b82; font-size: 14px; font-weight: 800; }
.automation-features h3 { margin: 10px 0; font-size: 23px; line-height: 1.3; }
.automation-features p { margin: 0; color: var(--muted); }
a:focus-visible, button:focus-visible { outline: 3px solid #3181a3; outline-offset: 5px; }
.hero { padding-bottom: 48px; }
.service-grid p, .process-grid p { font-size: 16px; }
.contact-card span, .contact-card strong, .footer-grid > div:not(:first-child), .footer-grid p { font-size: 14px; }
.contact-card strong, .footer-grid a { overflow-wrap: anywhere; }
@media (max-width: 900px) { .automation-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .automation { padding-block: 75px; } .panel-heading { flex-wrap: wrap; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* MEC identity: charcoal, clean white and Loxone-inspired green. */
:root { --ink:#142320; --navy:#142320; --navy-2:#203831; --blue:#8cff70; --blue-pale:#dcf9d5; --amber:#8cff70; --paper:#f5f7f5; --muted:#52645c; }
.hero { background:#142320; }
.hero-overlay { background:linear-gradient(90deg,rgba(10,26,21,.98) 0%,rgba(10,26,21,.9) 43%,rgba(10,26,21,.4) 80%,rgba(10,26,21,.25) 100%); }
.brand img { width:270px; height:76px; border-radius:0; }
.footer-grid img { width:270px; border-radius:0; }
.button:hover { background:#b2ffa0; }
.hero h1 { max-width:920px; font-size:clamp(42px,5.6vw,74px); }
.hero-content { padding-top:220px; }
.eyebrow, .section-label { font-size:14px; }
.section-label { color:#326442; }
.eyebrow { color:#dcf9d5; }
.automation { background:#142320; color:#fff; padding-block:88px; border-top:1px solid #395248; }
.automation-grid { grid-template-columns:1.1fr .9fr; gap:80px; }
.automation .section-label { color:#8cff70; }
.automation h2 { font-size:clamp(36px,4.4vw,58px); }
.automation-grid > div > p:not(.section-label), .automation-features p { color:#c3d2cb; }
.automation-features { border-color:#8cff70; }
.automation-features article { border-color:#3b5147; }
.automation-features article > span { color:#8cff70; }
.project-panel { background:#e0eee3; }
.panel-heading, .panel-stat span { color:#435e4d; }
.process { background:#e9efea; }
.process-grid span, .arrow-link span, .project-list span { color:#286942; }
footer { background:#0b1712; }
.footer-grid p, .footer-bottom { color:#adbbb3; }
a:focus-visible, button:focus-visible { outline-color:#62b54c; }
.menu a[href="#loxone"] { color:#8cff70; }
@media(max-width:900px) { .automation-grid { grid-template-columns:1fr; gap:40px; } .brand img { width:220px; height:62px; } .hero-content { padding-top:165px; } }
@media(max-width:600px) { .hero-content { padding-top:140px; } .hero h1 { font-size:clamp(36px,10vw,48px); } .automation { padding-block:65px; } .hero { min-height:0; padding-bottom:45px; } .hero-actions { gap:24px; } }
