/*
Theme Name: Maatek Electrical Complete
Theme URI: https://example.invalid/maatek
Author: Maatek Electrical
Description: Complete responsive Maatek Electrical theme converted from the approved seven-page HTML website.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: maatek-electrical
*/

/* Refined project photo galleries */
.gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
.gallery .photo, .gallery .photo.feature { grid-column:auto; width:100%; min-width:0; height:320px; overflow:hidden; border-radius:14px; position:relative; }
.gallery .photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; filter:contrast(1.055) saturate(1.07); transition:transform .25s ease; }
.gallery .photo:hover img { transform:scale(1.025); }
@media(max-width:700px) { .gallery {grid-template-columns:1fr; gap:14px;} .gallery .photo, .gallery .photo.feature {height:270px;} }

/* Descriptive project captions: keep photos prominent and provide readable detail. */
.gallery .photo, .gallery .photo.feature { height:auto; min-height:370px; display:flex; flex-direction:column; text-align:left; background:#142334; }
.gallery .photo img {height:260px; flex:none; object-fit:cover;}
.gallery .photo > span {position:static; display:block; padding:12px 16px 3px; background:none; font-weight:700; color:#fff;}
.gallery .photo .photo-detail {display:block; padding:4px 16px 18px; font-size:14px; line-height:1.5; color:#d4e3ef; font-weight:400;}
.gallery-grid figure {margin:0; overflow:hidden; border-radius:12px; background:#142334;}
.gallery-grid figure img {display:block; width:100%; height:245px; object-fit:cover;}
.gallery-grid figcaption {padding:13px 16px 18px; color:#d4e3ef; line-height:1.5; font-size:14px;}
.gallery-grid figcaption strong {display:block; color:#fff; margin-bottom:5px; font-size:16px;}
.gallery-grid figcaption span {display:block;}
@media(max-width:700px) {.gallery .photo,.gallery .photo.feature{height:auto;min-height:0}.gallery .photo img{height:230px}}

/* Control & Automation specialty sections */
.maatek-specialties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0 34px}.maatek-specialty{background:#f2f6f9;border:1px solid #dbe5eb;border-top:4px solid #1385c4;border-radius:12px;padding:25px;box-shadow:0 6px 20px rgba(17,42,59,.06)}.maatek-specialty-num{font-size:12px;letter-spacing:.13em;font-weight:800;color:#0876b6;margin-bottom:12px}.maatek-specialty h3{font-size:clamp(20px,2vw,26px);line-height:1.2;color:#183446;margin:0 0 12px}.maatek-specialty p{font-size:16px;line-height:1.65;color:#425866;margin:0}@media(max-width:900px){.maatek-specialties{grid-template-columns:1fr;gap:14px}.maatek-specialty{padding:20px}}

/* Safety equipment gallery */
.maatek-safety-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 10px}.maatek-safety-card{margin:0;background:#eef3f8;border:1px solid #d6e1ec;border-radius:12px;overflow:hidden;box-shadow:0 5px 15px rgba(10,33,57,.09)}.maatek-safety-card img{display:block;width:100%;height:225px;object-fit:cover}.maatek-safety-card figcaption{display:flex;flex-direction:column;gap:7px;padding:15px 17px;color:#18314d;line-height:1.45}.maatek-safety-card figcaption strong{font-size:19px;color:#0872bc}.maatek-safety-card figcaption span{font-size:15px}.maatek-safety-note{font-size:12px;color:#657484;margin:10px 0 0}@media(max-width:850px){.maatek-safety-gallery{grid-template-columns:1fr 1fr}}@media(max-width:560px){.maatek-safety-gallery{grid-template-columns:1fr}.maatek-safety-card img{height:230px}}

/* Switchboard manufacturing project image */
.maatek-switchboard-gallery{margin-top:18px;max-width:780px}.maatek-switchboard-gallery .photo{width:100%;min-height:280px;display:block}.maatek-switchboard-gallery .photo img{width:100%;height:320px;object-fit:cover;object-position:center}.maatek-switchboard-gallery .photo small{display:block}
@media(max-width:700px){.maatek-switchboard-gallery .photo img{height:240px}}

.maatek-safety-control-card{margin:0;overflow:hidden;border-radius:12px;background:#eaf1f7}.maatek-safety-control-card img{display:block;width:100%;height:210px;object-fit:cover}.maatek-safety-control-card figcaption{display:grid;gap:5px;padding:12px 14px;color:#142b43}.maatek-safety-control-card figcaption strong{color:#07528b}.maatek-safety-control-card figcaption span{font-size:14px;line-height:1.5}

/* Project Gallery: balanced, consistent photo cards. Scoped to Projects only. */
.maatek-projects-page .gallery-category{max-width:1360px;margin:36px auto 56px;padding:0 22px;}
.maatek-projects-page .gallery-category h2{margin:0 0 22px;}
.maatek-projects-page .gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch;}
.maatek-projects-page .gallery-grid figure{display:flex;flex-direction:column;min-width:0;height:100%;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.13);}
.maatek-projects-page .gallery-grid figure img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center;display:block;filter:contrast(1.035) saturate(1.045);}
.maatek-projects-page .gallery-grid figcaption{flex:1;min-height:106px;padding:16px 20px 20px;}
.maatek-projects-page .gallery-grid figcaption strong{font-size:18px;line-height:1.3;}
.maatek-projects-page .gallery-grid figcaption span{font-size:15px;line-height:1.55;}
@media(max-width:760px){.maatek-projects-page .gallery-grid{grid-template-columns:1fr;gap:18px}.maatek-projects-page .gallery-category{padding:0 16px;margin:28px auto 42px}.maatek-projects-page .gallery-grid figcaption{min-height:0}.maatek-projects-page .gallery-grid figure img{aspect-ratio:4/3}}


/* Unified interior-page presentation, based on the Maintenance page.
   The homepage and its background image are intentionally untouched. */
.maatek-maintenance-inspired {background:linear-gradient(180deg,#f7fafc 0%,#ffffff 38%);padding-bottom:70px;}
.maatek-maintenance-inspired .service {max-width:1320px;margin:0 auto;padding:42px 28px 32px;}
.maatek-maintenance-inspired .sectionhead {display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:24px 0 27px;margin-bottom:24px;border-bottom:1px solid #d8e5ed;}
.maatek-maintenance-inspired .sectionhead h2 {font-size:clamp(32px,3.5vw,48px);letter-spacing:-.035em;line-height:1.12;margin:6px 0 12px;color:#17354b;}
.maatek-maintenance-inspired .sectionhead p {max-width:760px;font-size:17px;line-height:1.65;color:#526779;margin:8px 0 0;}
.maatek-maintenance-inspired .sectionhead .eyebrow {color:#0876b6;font-weight:800;letter-spacing:.12em;font-size:12px;}
.maatek-maintenance-inspired .photo-count {display:inline-block;color:#668091;font-size:13px;font-weight:700;}
.maatek-maintenance-inspired .enquire {white-space:nowrap;align-self:center;border-radius:9px;}
.maatek-maintenance-inspired .gallery,.maatek-maintenance-inspired .gallery-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch;}
.maatek-maintenance-inspired .gallery .photo,.maatek-maintenance-inspired .gallery .photo.feature,.maatek-maintenance-inspired .gallery-grid figure {display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden;min-width:0;background:#fff;color:#17354b;border:1px solid #dfe8ee;border-radius:14px;box-shadow:0 9px 28px rgba(22,50,75,.09);text-align:left;transition:box-shadow .2s ease,transform .2s ease;}
.maatek-maintenance-inspired .gallery .photo:hover,.maatek-maintenance-inspired .gallery-grid figure:hover {transform:translateY(-3px);box-shadow:0 14px 32px rgba(22,50,75,.14);}
.maatek-maintenance-inspired .gallery .photo img,.maatek-maintenance-inspired .gallery-grid figure img {display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center;filter:contrast(1.035) saturate(1.035);flex:none;}
.maatek-maintenance-inspired .gallery .photo>span {padding:18px 20px 4px;color:#17354b;background:transparent;font-size:19px;line-height:1.3;font-weight:750;}
.maatek-maintenance-inspired .gallery .photo .photo-detail {padding:5px 20px 22px;color:#536a7a;font-size:15px;line-height:1.65;flex:1;}
.maatek-maintenance-inspired .gallery-grid figcaption {background:#fff;color:#536a7a;padding:18px 20px 22px;flex:1;}
.maatek-maintenance-inspired .gallery-grid figcaption strong {color:#17354b;font-size:19px;}
.maatek-maintenance-inspired .gallery-grid figcaption span {color:#536a7a;font-size:15px;line-height:1.65;}
.maatek-maintenance-inspired .maatek-specialties {margin:28px 0 42px;gap:20px;}
.maatek-maintenance-inspired .maatek-specialty {background:#fff;border:1px solid #dce7ee;border-top:4px solid #0784c7;box-shadow:0 8px 26px rgba(17,42,59,.07);}
.maatek-maintenance-inspired .maatek-safety-gallery {gap:20px;}
.maatek-maintenance-inspired .maatek-safety-card,.maatek-maintenance-inspired .maatek-safety-control-card {background:#fff;box-shadow:0 8px 25px rgba(17,42,59,.08);}
.maatek-maintenance-inspired .maatek-switchboard-gallery .photo {height:auto;}
.maatek-maintenance-inspired .maatek-switchboard-gallery .photo img {aspect-ratio:16/10;height:auto;}
.maatek-maintenance-inspired.maatek-projects-page .gallery-category,.maatek-maintenance-inspired .gallery-category {max-width:1320px;margin:0 auto 36px;padding:22px 28px;}
.maatek-maintenance-inspired .gallery-category h2 {color:#17354b;font-size:clamp(26px,2.7vw,36px);border-bottom:1px solid #dce7ee;padding-bottom:14px;margin:0 0 24px;}
@media(max-width:900px){.maatek-maintenance-inspired .maatek-specialties{grid-template-columns:1fr}.maatek-maintenance-inspired .sectionhead{align-items:flex-start;flex-direction:column}.maatek-maintenance-inspired .enquire{align-self:flex-start}}
@media(max-width:720px){.maatek-maintenance-inspired .service{padding:26px 16px}.maatek-maintenance-inspired .gallery,.maatek-maintenance-inspired .gallery-grid{grid-template-columns:1fr;gap:18px}.maatek-maintenance-inspired .gallery-category{padding:20px 16px}.maatek-maintenance-inspired .gallery .photo img{aspect-ratio:4/3}.maatek-maintenance-inspired .sectionhead h2{font-size:32px}}

/* Maatek editorial service-page system - homepage deliberately untouched */
.editorial-page{font-family:inherit;color:#16263a;background:#f7f9fc}.editorial-page *{box-sizing:border-box}.editorial-hero{min-height:520px;position:relative;isolation:isolate;display:flex;align-items:center;background:#0b1e32;color:#fff;overflow:hidden}.editorial-hero-photo{position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;filter:saturate(.96)}.editorial-hero:after{content:"";position:absolute;bottom:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#008bd2,#65c9ff,transparent)}.editorial-hero-inner{width:min(1180px,calc(100% - 64px));margin:auto;padding:88px 0}.editorial-kicker,.editorial-eyebrow{letter-spacing:.16em;font-weight:800;font-size:12px;text-transform:uppercase;color:#0b90d5}.editorial-kicker{color:#72d4ff}.editorial-hero h1{font-size:clamp(40px,5vw,68px);line-height:1.09;letter-spacing:-.035em;max-width:790px;margin:20px 0 24px;color:#fff}.editorial-hero-inner>p:not(.editorial-kicker){font-size:clamp(17px,1.65vw,21px);line-height:1.75;max-width:740px;color:#e0eaf4}.editorial-action{display:inline-flex;margin-top:20px;padding:15px 22px;background:#0789d1;color:white!important;border-radius:5px;font-weight:700;text-decoration:none}.editorial-intro,.editorial-services,.editorial-gallery,.editorial-safety,.editorial-cta{width:min(1180px,calc(100% - 64px));margin:auto}.editorial-intro{display:grid;grid-template-columns:1fr 1.35fr;gap:72px;padding:90px 0;border-bottom:1px solid #dce5ee}.editorial-intro h2,.editorial-section-heading h2,.editorial-cta h2{font-size:clamp(29px,3vw,42px);line-height:1.2;letter-spacing:-.025em;margin:10px 0;color:#142b46}.editorial-intro p:not(.editorial-eyebrow){font-size:18px;line-height:1.85;color:#4b6073;margin:0 0 16px}.editorial-services,.editorial-gallery,.editorial-safety{padding:74px 0}.editorial-section-heading{margin-bottom:36px}.editorial-section-heading>p:not(.editorial-eyebrow){color:#587087;max-width:740px;line-height:1.7}.editorial-feature{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;min-height:340px;background:white;border:1px solid #e2e9f0;border-radius:14px;overflow:hidden;margin:22px 0;box-shadow:0 8px 30px rgba(14,42,70,.045)}.editorial-feature:nth-of-type(even) .editorial-feature-copy{order:2}.editorial-feature:nth-of-type(even) .editorial-feature-photo{order:1}.editorial-feature-copy{padding:clamp(28px,4vw,58px);display:flex;flex-direction:column;justify-content:center}.editorial-number{color:#0789d1;font-weight:800;letter-spacing:.1em}.editorial-feature h3{font-size:clamp(24px,2.4vw,33px);color:#142b46;line-height:1.2;margin:12px 0 16px}.editorial-feature p{font-size:17px;line-height:1.8;color:#53697c}.editorial-feature-photo{position:relative;overflow:hidden;background:#dce7ef}.editorial-feature-photo:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(13,38,64,.06),transparent 35%)}.editorial-feature-photo img{width:100%;height:100%;min-height:340px;object-fit:cover;display:block;transition:transform .4s}.editorial-feature:hover img{transform:scale(1.035)}.editorial-gallery{border-top:1px solid #dce5ee}.editorial-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.editorial-photo{margin:0;background:#fff;border:1px solid #e1e8f0;border-radius:10px;overflow:hidden}.editorial-photo img{width:100%;height:240px;object-fit:cover;display:block}.editorial-photo figcaption{font-weight:700;color:#233c55;font-size:14px;padding:16px 18px;line-height:1.45}.editorial-cta{background:#122e4b;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:40px;padding:46px 54px;margin-bottom:80px;border-radius:12px}.editorial-cta h2{color:white}.editorial-cta p:not(.editorial-eyebrow){color:#d0e0ee;line-height:1.7}.editorial-cta a{flex-shrink:0;color:#fff;background:#0789d1;padding:16px 20px;text-decoration:none;border-radius:5px;font-weight:700}.editorial-contact-hero{min-height:400px;background:linear-gradient(115deg,#102d4b,#086a9e)}@media(max-width:850px){.editorial-intro{grid-template-columns:1fr;gap:18px}.editorial-feature{grid-template-columns:1fr}.editorial-feature:nth-of-type(even) .editorial-feature-copy,.editorial-feature:nth-of-type(even) .editorial-feature-photo{order:initial}.editorial-feature-photo img{height:300px;min-height:0}.editorial-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-cta{flex-direction:column;align-items:flex-start}}@media(max-width:560px){.editorial-hero-inner,.editorial-intro,.editorial-services,.editorial-gallery,.editorial-safety,.editorial-cta{width:calc(100% - 36px)}.editorial-hero-inner{padding:65px 0}.editorial-hero{min-height:480px}.editorial-intro{padding:55px 0}.editorial-services,.editorial-gallery{padding:48px 0}.editorial-photo-grid{grid-template-columns:1fr}.editorial-cta{padding:28px;margin-bottom:45px}}


/* Maatek editorial redesign — original implementation inspired by large-scale construction storytelling */
:root{--maatek-ink:#12283a;--maatek-blue:#087fc3;--maatek-deep:#0b2236;--maatek-paper:#f7f9fb;--maatek-line:#dce4eb}
body{background:#fff;color:var(--maatek-ink);font-family:Inter,Arial,Helvetica,sans-serif}
body>header{box-shadow:0 8px 28px rgba(5,20,34,.12)}
body>header nav a{font-weight:650;letter-spacing:.015em}
.editorial-page{background:white!important}
.editorial-hero{min-height:650px!important;display:flex;align-items:flex-end!important;position:relative;overflow:hidden}
.editorial-hero-photo{position:absolute!important;inset:0!important;background-size:cover!important;background-position:center!important;filter:saturate(1.07) contrast(1.06)}
.editorial-hero-inner{width:min(1280px,calc(100% - 80px));margin:0 auto!important;padding:125px 0 90px!important;position:relative;z-index:2}
.editorial-hero-inner h1{font-size:clamp(3.1rem,6.4vw,6.7rem)!important;line-height:1.02!important;letter-spacing:-.055em!important;max-width:920px!important;font-weight:800!important}
.editorial-hero-inner>p:not(.editorial-kicker){max-width:720px!important;font-size:clamp(1.08rem,1.55vw,1.38rem)!important;line-height:1.65!important}
.editorial-kicker,.editorial-eyebrow{font-size:.77rem!important;font-weight:800!important;letter-spacing:.17em!important;text-transform:uppercase!important}
.editorial-intro{max-width:1280px!important;padding:110px 35px!important;gap:80px!important;align-items:start!important}
.editorial-intro h2,.editorial-section-heading h2{font-size:clamp(2.5rem,4vw,4.8rem)!important;line-height:1.09!important;letter-spacing:-.045em!important}
.editorial-intro>p{font-size:1.21rem!important;line-height:1.8!important;color:#465869!important}
.editorial-services{background:#f4f7fa!important;padding:90px max(35px,calc((100% - 1280px)/2))!important}
.editorial-section-heading{margin-bottom:45px!important}
.editorial-feature{display:grid!important;grid-template-columns:1fr 1.1fr!important;min-height:440px!important;margin:0 0 26px!important;background:#fff!important;border:1px solid #e1e8ee!important;border-radius:0!important;overflow:hidden!important;box-shadow:none!important}
.editorial-feature:nth-of-type(even) .editorial-feature-photo{order:-1}
.editorial-feature-copy{padding:clamp(36px,5vw,78px)!important;display:flex;flex-direction:column;justify-content:center}
.editorial-feature-copy h3{font-size:clamp(2rem,3vw,3.3rem)!important;letter-spacing:-.035em!important;line-height:1.1!important}
.editorial-feature-copy p{font-size:1.1rem!important;line-height:1.75!important}
.editorial-feature-photo{min-height:440px!important;overflow:hidden!important}
.editorial-feature-photo img{width:100%!important;height:100%!important;object-fit:cover!important;filter:contrast(1.07) saturate(1.06)}
.editorial-gallery{padding:110px max(35px,calc((100% - 1280px)/2))!important;background:white!important}
.editorial-photo-grid,.gallery-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
.editorial-photo,.gallery-grid figure{margin:0!important;border-radius:0!important;overflow:hidden!important;background:#f3f6f8!important;box-shadow:none!important}
.editorial-photo img,.gallery-grid figure img{width:100%!important;height:360px!important;object-fit:cover!important;filter:contrast(1.08) saturate(1.04)}
.editorial-photo figcaption,.gallery-grid figcaption{padding:22px 24px!important;font-size:1rem!important;line-height:1.5!important}
.editorial-photo figcaption{font-weight:650!important}
.editorial-cta{padding:95px max(35px,calc((100% - 1280px)/2))!important;border-radius:0!important}
.safety-showcase{padding:100px max(35px,calc((100% - 1280px)/2));background:#0d273d;color:white}
.safety-showcase .editorial-section-heading h2{color:white}
.safety-showcase .editorial-section-heading p{color:#d4e2ed}
.safety-photo-triptych{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.safety-photo-triptych article{background:#fff;color:#13283c}
.safety-photo-triptych img{width:100%;height:270px;object-fit:cover}
.safety-photo-triptych article div{padding:24px}
.safety-photo-triptych h3{font-size:1.4rem;margin:0 0 10px}
.safety-photo-triptych p{line-height:1.6;color:#526271;margin:0}
.project-editorial-hero{min-height:480px;background:linear-gradient(115deg,#081b2c,#0c4162 80%,#117db5);color:white;display:flex;align-items:end;padding:90px max(35px,calc((100% - 1280px)/2))}
.project-editorial-hero h1{font-size:clamp(3rem,6vw,6rem);line-height:1.04;letter-spacing:-.05em;max-width:900px;margin:15px 0 20px}
.project-editorial-hero p{max-width:750px;font-size:1.17rem;line-height:1.7}
.maatek-projects-page .gallery-category{max-width:1280px!important;margin:80px auto!important;padding:0 35px!important}
.maatek-projects-page .gallery-category h2{font-size:clamp(2.3rem,4vw,4rem)!important;letter-spacing:-.04em!important}
@media(max-width:850px){.editorial-hero{min-height:580px!important}.editorial-hero-inner{width:calc(100% - 42px)!important;padding:90px 0 60px!important}.editorial-intro{padding:65px 22px!important;display:block!important}.editorial-services,.editorial-gallery,.safety-showcase{padding:65px 22px!important}.editorial-feature{grid-template-columns:1fr!important}.editorial-feature:nth-of-type(even) .editorial-feature-photo{order:0}.editorial-feature-photo{min-height:300px!important;height:300px!important}.editorial-feature-copy{padding:35px!important}.safety-photo-triptych{grid-template-columns:1fr!important}.editorial-photo-grid,.gallery-grid{grid-template-columns:1fr!important}.editorial-photo img,.gallery-grid figure img{height:280px!important}.project-editorial-hero{padding:70px 22px!important}.maatek-projects-page .gallery-category{padding:0 22px!important}}

/* Mobile image-fit update: preserve full photographs instead of cropping subjects. */
@media screen and (max-width: 767px) {
  html,body {max-width:100%;overflow-x:hidden;}
  img {max-width:100%;height:auto;}
  .gallery, .gallery-grid, .editorial-photo-grid, .safety-photo-triptych,
  .maatek-safety-gallery {grid-template-columns:minmax(0,1fr)!important;}
  .gallery .photo, .gallery .photo.feature {height:auto!important;min-height:0!important;}
  .gallery .photo img, .gallery-grid figure img,
  .maatek-projects-page .gallery-grid figure img,
  .maatek-maintenance-inspired .gallery .photo img,
  .maatek-maintenance-inspired .gallery-grid figure img,
  .editorial-photo img, .maatek-safety-card img,
  .maatek-safety-control-card img, .maatek-switchboard-gallery .photo img,
  .safety-photo-triptych img {
    display:block!important;width:100%!important;height:auto!important;
    max-height:none!important;aspect-ratio:auto!important;
    object-fit:contain!important;object-position:center!important;
  }
  .editorial-feature-photo {height:auto!important;min-height:0!important;}
  .editorial-feature-photo img {
    display:block!important;width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;object-fit:contain!important;
  }
  .editorial-feature:hover img,.gallery .photo:hover img {transform:none!important;}
  .editorial-hero {display:block!important;min-height:0!important;background:#102b45!important;}
  .editorial-hero-photo {
    position:relative!important;inset:auto!important;z-index:0!important;
    display:block!important;width:100%!important;
    height:auto!important;aspect-ratio:16/10;
    background-size:contain!important;background-position:center center!important;
    background-repeat:no-repeat!important;background-color:#102b45!important;
  }
  .editorial-hero-inner {
    width:calc(100% - 36px)!important;padding:28px 0 42px!important;
    margin:0 auto!important;
  }
  .editorial-hero-inner h1 {font-size:clamp(2.15rem,9vw,3.5rem)!important;overflow-wrap:break-word;}
  .editorial-photo, .editorial-feature, .gallery-grid figure {min-width:0;}
}

/* Homepage: four photographic service stories; existing hero unchanged */
.home-category-stories{background:#f4f7fa;padding:85px 0 105px;color:#172d3e}
.home-category-heading{max-width:1160px;margin:0 auto 46px;padding:0 28px}
.home-category-heading h2{font-size:clamp(2rem,4vw,3.6rem);letter-spacing:-.035em;line-height:1.08;margin:12px 0 16px;color:#142d40}
.home-category-heading p{font-size:1.12rem;max-width:700px;line-height:1.7;color:#536879}
.home-story{display:grid;grid-template-columns:1.15fr 1fr;align-items:stretch;max-width:1160px;margin:0 auto 30px;background:#fff;box-shadow:0 16px 48px rgba(10,34,53,.07);overflow:hidden}
.home-story:nth-of-type(odd) .home-story-photo{order:2}
.home-story-photo{display:block;min-height:360px;overflow:hidden;background:#16364b}
.home-story-photo img{display:block;width:100%;height:100%;min-height:360px;object-fit:cover;object-position:center;transition:transform .5s ease}
.home-story-photo:hover img{transform:scale(1.025)}
.home-story-copy{padding:clamp(30px,5vw,66px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.home-story-number{font-size:.85rem;letter-spacing:.16em;color:#0078b9;font-weight:800}
.home-story-copy h3{font-size:clamp(1.7rem,3vw,2.8rem);line-height:1.12;letter-spacing:-.03em;margin:18px 0;color:#102d42}
.home-story-copy p{font-size:1.08rem;line-height:1.8;color:#4c6374;margin:0 0 25px}
.home-story-link{font-weight:800;color:#006da9;text-decoration:none;border-bottom:2px solid #008bc8;padding-bottom:6px}
@media(max-width:760px){.home-category-stories{padding:52px 18px 70px}.home-category-heading{padding:0 2px;margin-bottom:30px}.home-story{display:flex;flex-direction:column;margin-bottom:24px}.home-story:nth-of-type(odd) .home-story-photo{order:0}.home-story-photo{min-height:0}.home-story-photo img{height:auto;min-height:0;max-height:none;object-fit:contain}.home-story-copy{padding:28px 24px 34px}.home-story-copy p{font-size:1rem}}


/* Maatek Electrical 2.0 — unified professional page system */
:root{--maatek-navy:#102c43;--maatek-blue:#087fb9;--maatek-ink:#183247;--maatek-muted:#52697b;--maatek-paper:#f5f8fb}
html{scroll-behavior:smooth}body{overflow-x:hidden}a:focus-visible,button:focus-visible,img[role="button"]:focus-visible{outline:3px solid #18a5e8;outline-offset:4px}
.site-header{position:relative;z-index:100;background:#162735;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px clamp(18px,3vw,50px)}
.site-header .brand{flex:0 1 290px;min-width:150px}.site-header .brand img{display:block;max-width:100%;height:auto;object-fit:contain}.site-header nav{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:clamp(8px,1.2vw,20px)}.site-header nav a{font-size:clamp(13px,1.05vw,17px);font-weight:700;white-space:nowrap;text-decoration:none;transition:color .2s}.site-header nav a:hover{color:#6ed0ff}
.menu-toggle{display:none;background:transparent;border:1px solid #608096;border-radius:7px;padding:10px 14px;color:white;font-weight:700;cursor:pointer}
.site-breadcrumb{padding:12px max(22px,calc((100% - 1180px)/2));background:#eaf1f6;color:#47647a;font-size:13px;font-weight:650;text-transform:capitalize}.site-breadcrumb a{color:#006da7;text-decoration:none}.site-breadcrumb span{padding:0 9px}
.service-quicknav{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;padding:18px max(22px,calc((100% - 1180px)/2));background:#fff;border-bottom:1px solid #dfe9f0;box-shadow:0 6px 24px rgba(10,45,70,.04)}.service-quicknav span{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.12em;color:#526c80;margin-right:8px}.service-quicknav a{font-size:14px;font-weight:750;text-decoration:none;color:#0b679d;border:1px solid #cde1ed;padding:9px 13px;border-radius:30px;transition:background .2s}.service-quicknav a:hover{background:#e6f5fd}
.editorial-page{background:var(--maatek-paper)}.editorial-feature{border-radius:8px;box-shadow:0 14px 42px rgba(13,46,74,.08)}.editorial-feature-copy p,.editorial-intro p{max-width:68ch}.editorial-feature h3{letter-spacing:-.025em}.editorial-feature-photo img{filter:contrast(1.04) saturate(1.04)}
.editorial-gallery{padding-top:78px}.editorial-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.editorial-photo{box-shadow:0 8px 30px rgba(13,46,74,.065);border-radius:8px}.editorial-photo img{height:330px;object-fit:cover;cursor:zoom-in;transition:filter .2s}.editorial-photo img:hover{filter:brightness(1.05)}.editorial-photo figcaption{font-size:16px;line-height:1.5;padding:19px 22px}.gallery-guidance{color:#647a89;font-size:14px;margin:0 0 22px}
.editorial-feature-photo img,.safety-photo-triptych img,.gallery-grid img{cursor:zoom-in}
.maatek-lightbox{max-width:min(1100px,96vw);max-height:94vh;border:0;padding:16px;background:#0c1e2d;color:#fff;border-radius:8px;box-shadow:0 20px 90px #0008}.maatek-lightbox::backdrop{background:rgba(3,16,29,.88)}.maatek-lightbox img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}.maatek-lightbox p{margin:12px 45px 0 0;font-size:15px}.lightbox-close{position:absolute;top:5px;right:10px;font-size:34px;background:none;border:0;color:white;cursor:pointer}
@media(max-width:1080px){.site-header{flex-wrap:wrap}.site-header .brand{flex-basis:240px}.site-header nav{flex:1}.site-header nav a{font-size:14px}}
@media(max-width:760px){.site-header{padding:12px 18px;flex-wrap:nowrap}.site-header .brand{flex-basis:220px}.menu-toggle{display:inline-flex;align-items:center;gap:7px}.site-header nav{display:none;position:absolute;top:100%;left:0;right:0;background:#172c3c;padding:15px 20px 22px;box-shadow:0 18px 30px #0a1b2b55;flex-direction:column;align-items:stretch;gap:0}.site-header nav.is-open{display:flex}.site-header nav a{font-size:17px;padding:13px 7px;border-bottom:1px solid #ffffff18}.service-quicknav{padding:15px 18px}.service-quicknav span{width:100%}.editorial-photo-grid{grid-template-columns:1fr}.editorial-photo img{height:auto;object-fit:contain}.editorial-feature-photo img{height:auto;object-fit:contain}.editorial-feature-photo{height:auto!important;min-height:0!important}.editorial-feature-photo img{min-height:0!important}.editorial-hero-photo{background-size:cover!important;aspect-ratio:16/10}.editorial-hero-inner{padding:35px 0 45px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Home scroll-through service showcase: mobile-safe sizing and polished cards */
#home-services{scroll-margin-top:105px}
.intro-service-jump{display:inline-flex;margin-top:22px;padding:12px 21px;background:#006fa9;color:#fff!important;text-decoration:none;border-radius:3px;font-weight:700}
.home-category-stories .home-story-photo{position:relative;isolation:isolate}
.home-category-stories .home-story-photo:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(7,29,44,.10),transparent 48%)}
.home-category-stories .home-story-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.home-category-stories .home-story-copy{min-width:0}
.home-category-stories .home-story-link:focus-visible,.intro-service-jump:focus-visible{outline:3px solid #00a7ec;outline-offset:4px}
@media(max-width:760px){.home-category-stories .home-story-photo{min-height:0!important}.home-category-stories .home-story-photo img{width:100%;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important}.home-category-stories .home-story-photo:after{display:none}.home-category-stories .home-story{width:100%}}
@media(prefers-reduced-motion:reduce){.home-category-stories .home-story-photo img{transition:none!important}}

/* Home page and header styles from the original left-hand project */


/* Refined project photo galleries */
.gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
.gallery .photo, .gallery .photo.feature { grid-column:auto; width:100%; min-width:0; height:320px; overflow:hidden; border-radius:14px; position:relative; }
.gallery .photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; filter:contrast(1.055) saturate(1.07); transition:transform .25s ease; }
.gallery .photo:hover img { transform:scale(1.025); }
@media(max-width:700px) { .gallery {grid-template-columns:1fr; gap:14px;} .gallery .photo, .gallery .photo.feature {height:270px;} }

/* Descriptive project captions: keep photos prominent and provide readable detail. */
.gallery .photo, .gallery .photo.feature { height:auto; min-height:370px; display:flex; flex-direction:column; text-align:left; background:#142334; }
.gallery .photo img {height:260px; flex:none; object-fit:cover;}
.gallery .photo > span {position:static; display:block; padding:12px 16px 3px; background:none; font-weight:700; color:#fff;}
.gallery .photo .photo-detail {display:block; padding:4px 16px 18px; font-size:14px; line-height:1.5; color:#d4e3ef; font-weight:400;}
.gallery-grid figure {margin:0; overflow:hidden; border-radius:12px; background:#142334;}
.gallery-grid figure img {display:block; width:100%; height:245px; object-fit:cover;}
.gallery-grid figcaption {padding:13px 16px 18px; color:#d4e3ef; line-height:1.5; font-size:14px;}
.gallery-grid figcaption strong {display:block; color:#fff; margin-bottom:5px; font-size:16px;}
.gallery-grid figcaption span {display:block;}
@media(max-width:700px) {.gallery .photo,.gallery .photo.feature{height:auto;min-height:0}.gallery .photo img{height:230px}}

/* Control & Automation specialty sections */
.maatek-specialties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0 34px}.maatek-specialty{background:#f2f6f9;border:1px solid #dbe5eb;border-top:4px solid #1385c4;border-radius:12px;padding:25px;box-shadow:0 6px 20px rgba(17,42,59,.06)}.maatek-specialty-num{font-size:12px;letter-spacing:.13em;font-weight:800;color:#0876b6;margin-bottom:12px}.maatek-specialty h3{font-size:clamp(20px,2vw,26px);line-height:1.2;color:#183446;margin:0 0 12px}.maatek-specialty p{font-size:16px;line-height:1.65;color:#425866;margin:0}@media(max-width:900px){.maatek-specialties{grid-template-columns:1fr;gap:14px}.maatek-specialty{padding:20px}}

/* Safety equipment gallery */
.maatek-safety-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 10px}.maatek-safety-card{margin:0;background:#eef3f8;border:1px solid #d6e1ec;border-radius:12px;overflow:hidden;box-shadow:0 5px 15px rgba(10,33,57,.09)}.maatek-safety-card img{display:block;width:100%;height:225px;object-fit:cover}.maatek-safety-card figcaption{display:flex;flex-direction:column;gap:7px;padding:15px 17px;color:#18314d;line-height:1.45}.maatek-safety-card figcaption strong{font-size:19px;color:#0872bc}.maatek-safety-card figcaption span{font-size:15px}.maatek-safety-note{font-size:12px;color:#657484;margin:10px 0 0}@media(max-width:850px){.maatek-safety-gallery{grid-template-columns:1fr 1fr}}@media(max-width:560px){.maatek-safety-gallery{grid-template-columns:1fr}.maatek-safety-card img{height:230px}}

/* Switchboard manufacturing project image */
.maatek-switchboard-gallery{margin-top:18px;max-width:780px}.maatek-switchboard-gallery .photo{width:100%;min-height:280px;display:block}.maatek-switchboard-gallery .photo img{width:100%;height:320px;object-fit:cover;object-position:center}.maatek-switchboard-gallery .photo small{display:block}
@media(max-width:700px){.maatek-switchboard-gallery .photo img{height:240px}}

.maatek-safety-control-card{margin:0;overflow:hidden;border-radius:12px;background:#eaf1f7}.maatek-safety-control-card img{display:block;width:100%;height:210px;object-fit:cover}.maatek-safety-control-card figcaption{display:grid;gap:5px;padding:12px 14px;color:#142b43}.maatek-safety-control-card figcaption strong{color:#07528b}.maatek-safety-control-card figcaption span{font-size:14px;line-height:1.5}

/* Project Gallery: balanced, consistent photo cards. Scoped to Projects only. */
.maatek-projects-page .gallery-category{max-width:1360px;margin:36px auto 56px;padding:0 22px;}
.maatek-projects-page .gallery-category h2{margin:0 0 22px;}
.maatek-projects-page .gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch;}
.maatek-projects-page .gallery-grid figure{display:flex;flex-direction:column;min-width:0;height:100%;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.13);}
.maatek-projects-page .gallery-grid figure img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center;display:block;filter:contrast(1.035) saturate(1.045);}
.maatek-projects-page .gallery-grid figcaption{flex:1;min-height:106px;padding:16px 20px 20px;}
.maatek-projects-page .gallery-grid figcaption strong{font-size:18px;line-height:1.3;}
.maatek-projects-page .gallery-grid figcaption span{font-size:15px;line-height:1.55;}
@media(max-width:760px){.maatek-projects-page .gallery-grid{grid-template-columns:1fr;gap:18px}.maatek-projects-page .gallery-category{padding:0 16px;margin:28px auto 42px}.maatek-projects-page .gallery-grid figcaption{min-height:0}.maatek-projects-page .gallery-grid figure img{aspect-ratio:4/3}}

/* Responsive improvements for merged theme */
@media(max-width:760px){.editorial-feature-photo img,.editorial-photo img,.gallery-grid figure img{max-width:100%;height:auto;object-fit:contain}.editorial-photo-grid,.gallery-grid{grid-template-columns:1fr}}

/* Final merge review: consistent header and responsive service layouts */
.site-header{min-height:92px;height:auto!important;position:sticky;top:0;z-index:100}.site-header .brand img{width:290px!important;max-width:100%!important;max-height:78px}.site-header nav a{color:#fff;font-size:clamp(13px,1.05vw,17px)!important}.site-header .menu-toggle{color:#fff}.home-story:nth-of-type(odd) .home-story-photo{order:0}.home-story:nth-of-type(even) .home-story-photo{order:2}.editorial-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-photo img{height:320px;object-fit:cover}.site-header nav{min-width:0}
@media(max-width:760px){.site-header{flex-wrap:nowrap!important;justify-content:space-between!important}.site-header .brand{min-width:0;flex:0 1 210px}.site-header .brand img{width:210px!important}.site-header .menu-toggle{display:inline-flex!important;flex-shrink:0}.site-header nav{display:none!important;flex-direction:column!important;align-items:stretch!important;position:absolute!important;left:0;right:0;top:100%;background:#172c3c;padding:14px 20px!important}.site-header nav.is-open{display:flex!important}.site-header nav a{font-size:17px!important;padding:12px!important}.home-story:nth-of-type(even) .home-story-photo{order:0}.home-story-photo img{height:auto!important;object-fit:contain!important}.editorial-photo-grid{grid-template-columns:1fr!important}.editorial-photo img{height:auto!important;object-fit:contain!important}.editorial-feature-photo img{height:auto!important;min-height:0!important;object-fit:contain!important}.editorial-feature-photo{height:auto!important;min-height:0!important}}

/* Homepage header refinement: larger, more comfortably spaced navigation. */
@media (min-width: 1180px) {
  body.home .site-header { gap: 26px; padding-left: clamp(20px, 2.5vw, 42px); padding-right: clamp(20px, 2.5vw, 42px); }
  body.home .site-header nav { gap: clamp(18px, 1.65vw, 28px); flex-wrap: nowrap; }
  body.home .site-header nav a { font-size: clamp(17px, 1.3vw, 19px) !important; letter-spacing: .025em; line-height: 1.35; }
}

/* Maatek contact details */
.maatek-contact-card{margin-top:1.5rem;padding:1.75rem;border:1px solid #d8e3ee;border-left:5px solid #1473bd;border-radius:10px;background:#f4f8fc;box-shadow:0 10px 28px rgba(14,45,75,.06)}
.maatek-contact-card h3{font-size:clamp(1.5rem,2.4vw,2rem);margin:.5rem 0;color:#102f51}
.maatek-contact-card p{margin:.45rem 0}
.maatek-contact-phone{display:inline-block;margin:.75rem 0;font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;color:#086bb3;text-decoration:none;overflow-wrap:anywhere}
.maatek-contact-phone:hover,.maatek-contact-phone:focus{text-decoration:underline}
.maatek-contact-hint{font-size:.85rem;color:#51667a}
@media(max-width:700px){.maatek-contact-card{padding:1.2rem}}

/* PLC programming and SCADA: balanced image and copy, no cropping */
.editorial-page .plc-programming-feature{min-height:0!important;align-items:center!important;grid-template-columns:1fr 1.15fr!important}
.editorial-page .plc-programming-feature .editorial-feature-photo{min-height:0!important;height:auto!important;align-self:center!important;background:#edf3f7!important}
.editorial-page .plc-programming-feature .editorial-feature-photo img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;object-fit:contain!important;transform:none!important}
.editorial-page .plc-programming-feature .editorial-feature-copy{padding:clamp(25px,3.2vw,48px)!important}
.editorial-page .plc-scada-panel{display:grid;grid-template-columns:1fr 1fr;gap:clamp(22px,4vw,60px);padding:clamp(28px,4vw,54px);margin:0 0 26px;background:#eaf2f8;border-left:5px solid #0789d1;border-radius:8px}
.editorial-page .plc-scada-panel h3{font-size:clamp(25px,2.5vw,36px);line-height:1.15;margin:12px 0 18px;color:#142b46}
.editorial-page .plc-scada-panel h4{font-size:18px;color:#142b46;margin:0 0 6px}
.editorial-page .plc-scada-panel p{font-size:17px;line-height:1.7;color:#53697c;margin:0 0 18px}
@media(max-width:850px){.editorial-page .plc-programming-feature,.editorial-page .plc-scada-panel{grid-template-columns:1fr!important}.editorial-page .plc-programming-feature .editorial-feature-photo{order:0!important}}

/* Balanced SCADA service image and text */
.editorial-page .plc-scada-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.editorial-page .plc-scada-panel .scada-photo{grid-column:2;margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:10px}
.editorial-page .plc-scada-panel .scada-photo img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain;border-radius:8px;background:#fff}
.editorial-page .plc-scada-panel .scada-photo figcaption{font-size:13px;color:#526b80}
@media(max-width:850px){.editorial-page .plc-scada-panel .scada-photo{grid-column:auto}}

/* Installation project gallery: consistent responsive photographic cards */
.maatek-installations-page .editorial-photo-grid, .editorial-gallery .editorial-photo-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.editorial-gallery .editorial-photo{margin:0;overflow:hidden;border-radius:8px;background:#fff;border:1px solid #dce5ed;}
.editorial-gallery .editorial-photo img{display:block;width:100%;height:300px;object-fit:cover;}
.editorial-gallery .editorial-photo figcaption{padding:17px 20px;display:grid;gap:6px;color:#43546b;line-height:1.5;}
.editorial-gallery .editorial-photo figcaption strong{color:#102b4d;font-size:1.1rem;}
@media(max-width:700px){.editorial-gallery .editorial-photo-grid{grid-template-columns:1fr;gap:16px;}.editorial-gallery .editorial-photo img{height:auto;aspect-ratio:4/3;object-fit:cover;}}

/* Projects gallery image and spacing refinement */
.maatek-projects-page .gallery-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;}
.maatek-projects-page .gallery-grid figure {margin:0;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(9,30,55,.09);display:flex;flex-direction:column;}
.maatek-projects-page .gallery-grid figure img {width:100%;height:260px;object-fit:cover;object-position:center;display:block;}
.maatek-projects-page .gallery-grid figcaption {padding:20px 22px 24px;display:flex;flex-direction:column;gap:9px;line-height:1.55;flex:1;}
.maatek-projects-page .gallery-grid figcaption strong {font-size:1.12rem;color:#102d50;}
.maatek-projects-page .gallery-grid figcaption span {color:#49617b;}
.editorial-photo-grid .editorial-photo img {width:100%;height:300px;object-fit:cover;object-position:center;display:block;}
@media(max-width:980px){.maatek-projects-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.maatek-projects-page .gallery-grid{grid-template-columns:1fr;gap:18px}.maatek-projects-page .gallery-grid figure img{height:auto;aspect-ratio:4/3;object-fit:cover}.editorial-photo-grid .editorial-photo img{height:auto;aspect-ratio:4/3;object-fit:cover;}}

/* November 2026 responsive typography and cross-page layout consistency */
html{overflow-x:clip}body{overflow-wrap:break-word}img,video,iframe{max-width:100%}main,section,article,.editorial-feature,.editorial-feature-copy,.editorial-feature-photo{min-width:0}
.site-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:clamp(16px,2vw,32px)!important;padding:14px clamp(18px,2.7vw,48px)!important;min-height:108px!important;height:auto!important}
.site-header .brand{flex:0 0 auto!important;min-width:0}.site-header .brand img{width:clamp(245px,22vw,325px)!important;max-width:100%!important;max-height:90px!important;object-fit:contain!important}
.site-header nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:clamp(13px,1.5vw,25px)!important;min-width:0}
.site-header nav a{font-size:clamp(17px,1.16vw,20px)!important;line-height:1.45!important;font-weight:700!important;padding:7px 0!important;letter-spacing:0!important}
.site-header nav a:hover,.site-header nav a:focus-visible{color:#65c9ff!important}
.site-header .menu-toggle{min-height:44px;padding:10px 15px;border-radius:7px;border:1px solid #7890a8;background:#173a54;font-size:17px;font-weight:700;cursor:pointer}
.page-heading h1,.editorial-page h1{overflow-wrap:normal;hyphens:auto}.editorial-feature-copy h2,.editorial-page h2{line-height:1.15}.editorial-page p,.editorial-feature-copy p,.home-story p{line-height:1.7}
.editorial-feature,.editorial-photo-grid,.gallery-grid,.home-story{max-width:100%}.editorial-photo,.editorial-feature-photo,.gallery-grid figure{min-width:0}
@media(min-width:1350px){.site-header{flex-wrap:nowrap!important}.site-header nav{flex-wrap:nowrap!important}}
@media(min-width:761px) and (max-width:1349px){.site-header{flex-wrap:wrap!important;justify-content:center!important;row-gap:8px!important}.site-header .brand img{width:clamp(265px,30vw,340px)!important}.site-header nav{justify-content:center!important;gap:8px 24px!important}.site-header nav a{font-size:18px!important}}
@media(max-width:760px){
 .site-header{position:sticky!important;top:0!important;min-height:78px!important;flex-wrap:nowrap!important;justify-content:space-between!important;padding:10px 16px!important;gap:12px!important}
 .site-header .brand{flex:0 1 235px!important}.site-header .brand img{width:min(57vw,235px)!important;max-height:64px!important}
 .site-header .menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto}
 .site-header nav{display:none!important;position:absolute!important;left:0;right:0;top:100%;z-index:101;max-height:calc(100dvh - 78px);overflow-y:auto;background:#172c3c;padding:10px 18px 20px!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;box-shadow:0 12px 24px #0016}
 .site-header nav.is-open{display:flex!important}.site-header nav a{font-size:18px!important;line-height:1.35!important;padding:13px 12px!important;border-bottom:1px solid #ffffff1c}
 .hero{min-height:480px!important;height:auto!important;padding:75px 20px!important}.hero h1{font-size:clamp(37px,9vw,58px)!important}.hero p{font-size:17px!important}
 .intro,.service,.contact{padding-left:20px!important;padding-right:20px!important}.sectionhead h2{font-size:clamp(29px,7vw,39px)!important}
 .editorial-feature,.editorial-page .plc-programming-feature,.editorial-page .plc-scada-panel{grid-template-columns:minmax(0,1fr)!important}
 .editorial-photo-grid,.gallery-grid,.maatek-projects-page .gallery-grid{grid-template-columns:minmax(0,1fr)!important}
 .editorial-photo img,.editorial-feature-photo img{max-width:100%!important;height:auto!important;object-fit:contain!important}
 body:not(.home):not(.front-page) main{padding-left:16px!important;padding-right:16px!important}
}
@media(max-width:390px){.site-header{padding:9px 12px!important}.site-header .brand img{width:min(53vw,205px)!important}.site-header .menu-toggle{font-size:15px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.photo img,.gallery-grid img{transition:none!important}}

/* Homepage story width correction (tank hero unchanged). */
body.home .home-category-stories,body.front-page .home-category-stories{padding-left:clamp(16px,3.4vw,52px);padding-right:clamp(16px,3.4vw,52px)}
body.home .home-category-heading,body.front-page .home-category-heading,body.home .home-story,body.front-page .home-story{max-width:1320px;width:100%;margin-left:auto;margin-right:auto}
body.home .home-story,body.front-page .home-story{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
body.home .home-story-photo,body.front-page .home-story-photo{min-width:0;aspect-ratio:16/10}
body.home .home-story-photo img,body.front-page .home-story-photo img{width:100%;height:100%;min-height:0;object-fit:cover}
@media(max-width:800px){body.home .home-story,body.front-page .home-story{display:flex;flex-direction:column}body.home .home-story-photo,body.front-page .home-story-photo{order:0!important}body.home .home-story-copy,body.front-page .home-story-copy{order:1!important}}

/* Consistent contact details across site */
.contact-direct{margin-bottom:.35rem}.contact-phone-link{font-size:clamp(1.4rem,2.5vw,2rem);font-weight:750;color:#fff;text-decoration:underline;text-underline-offset:4px}.cta-direct-contact{font-size:1.05rem;line-height:1.6}.cta-direct-contact a{font-weight:750;color:inherit;text-decoration:underline}.site-contact-strip{display:flex;justify-content:center;align-items:center;gap:1rem 2rem;flex-wrap:wrap;padding:1.2rem 5%;background:#0b1e33;color:#fff;font-size:.95rem}.site-contact-strip a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}@media(max-width:640px){.site-contact-strip{flex-direction:column;gap:.55rem;text-align:center}.contact-phone-link{display:inline-block;padding:.25rem 0}}

/* Accessible email contact on every page, including mobile */
.site-header .header-email{display:inline-flex;align-items:center;max-width:100%;font-size:clamp(.75rem,.85vw,.9rem);font-weight:650;white-space:nowrap;overflow-wrap:anywhere;color:#1266b2;text-decoration:underline;text-underline-offset:3px;padding:.5rem .75rem}
.maatek-contact-email{font-weight:700;color:#1266b2;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.site-contact-strip a[href^="mailto:"]{overflow-wrap:anywhere}
@media(max-width:1150px){.site-header .header-email{font-size:.78rem;padding:.4rem}}
@media(max-width:760px){.site-header .header-email{order:3;width:100%;justify-content:center;white-space:normal;text-align:center;padding:.35rem .6rem}.site-contact-strip a[href^="mailto:"]{font-size:.9rem}}

/* Quality audit: maintain image proportions and avoid stretching source pixels. */
.home-story-photo img,.editorial-feature-photo img,.editorial-photo img { image-rendering:auto; }
.editorial-photo img { max-width:100%; }

/* Final photographic quality pass: preserve intrinsic proportions and prevent blurred stretch. */
.home-story-photo img,.editorial-feature-photo img,.editorial-photo img,.gallery-grid figure img,.gallery .photo img{image-rendering:auto;transform:none;backface-visibility:visible;}
@media(max-width:760px){.home-story-photo img,.editorial-feature-photo img,.editorial-photo img{width:100%;height:auto!important;max-height:none!important;object-fit:contain!important;} .editorial-gallery .editorial-photo img{height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;} }

/* Homepage hero eyebrow: improved contrast and hierarchy, Nov 2026. */
.hero .hero-content > .eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 9px 15px;
  margin-bottom: 14px;
  color: #fff;
  background: rgba(4, 22, 40, .82);
  border-left: 4px solid #269ff1;
  border-radius: 3px;
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
@media (max-width: 600px) {
  .hero .hero-content > .eyebrow {
    font-size: 15px;
    letter-spacing: .075em;
    padding: 8px 11px;
    margin-bottom: 12px;
  }
}

/* Image fidelity: preserve native detail, avoid distortion and sharpening filters. */
.editorial-feature-photo img,.home-story-photo img,.project-gallery img,.gallery img,.service-gallery img { image-rendering:auto; filter:none; object-position:center; }
.editorial-feature-photo img { width:100%; height:100%; object-fit:cover; }
@media(max-width:767px){.editorial-feature-photo img,.home-story-photo img{height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;}}
