
:root {
  --green: #002634;
  --green-2: #006ebf;
  --cream: #f3f8fb;
  --sand: #dbeaf2;
  --ink: #00232f;
  --white: #ffffff;
  --gold: #00c8a0;
  --line: #d7e1e7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
.container { width: min(1160px, 90%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: linear-gradient(135deg,#0048ff,#00e68a); color: white; font-weight: 800; border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; }
.brand-text small { margin-top: 5px; color: #607067; font-size: 11px; letter-spacing: .08em; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: #34423a; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-cta { background: var(--green); color: white !important; padding: 11px 16px; border-radius: 3px; }

.hero {
  position: relative;
  min-height: 670px;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(100deg, rgba(23,40,31,.96) 0%, rgba(30,49,38,.82) 48%, rgba(30,49,38,.34) 100%),
    url('hero-farm.jpg') center/cover;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.hero-copy h1 { font-size: clamp(48px, 6vw, 78px); line-height: .98; margin: 12px 0 24px; letter-spacing: -0.04em; max-width: 850px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 800; margin: 0 0 10px; }
.eyebrow.dark { color: var(--green-2); }
.lead { font-size: 20px; max-width: 760px; color: #eef3ef; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 21px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(90deg,#006fc9,#00d8a4); color: white; }
.btn-secondary { border: 1px solid rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.06); }
.btn-light { background: white; color: var(--green); }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: #dbe6df; }
.hero-card { background: rgba(255,255,255,.95); color: var(--ink); padding: 28px; border-radius: 5px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.hero-card h3 { margin-top: 0; font-size: 22px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 700; }

.intro, .about { padding: 88px 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 8px 0 24px; letter-spacing: -0.03em; }
.intro p, .about p, .energy p { font-size: 18px; color: #4b5a52; }

.services { background: var(--cream); padding: 90px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.card { background: white; padding: 30px; border: 1px solid #e2ddcf; min-height: 250px; }
.card .icon { font-size: 28px; margin-bottom: 26px; }
.card h3 { font-size: 21px; margin: 0 0 12px; }
.card p { color: #5d665f; margin: 0; }

.sectors { background: linear-gradient(135deg,#002735,#00496b); color: white; padding: 90px 0; }
.section-heading { max-width: 700px; }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); margin-top: 38px; }
.sector { background: var(--green); padding: 28px; min-height: 150px; }
.sector strong { display: block; font-size: 21px; margin-bottom: 8px; }
.sector span { color: #d4e0d7; }

.energy { padding: 90px 0; background: #fafafa; }
.energy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.energy-panel { border-top: 1px solid var(--line); }
.energy-panel div { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.energy-panel span { color: var(--gold); font-weight: 800; width: 38px; }
.energy-panel strong { font-size: 18px; }
.text-link { color: var(--green); font-weight: 800; text-decoration: none; }

.survey-cta { background: linear-gradient(110deg,#006fc9,#00cfa3); color: white; padding: 60px 0; }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-grid h2 { margin-bottom: 10px; }
.cta-grid p { max-width: 700px; }

.contact { padding: 90px 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-notes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.contact-notes span { background: var(--cream); padding: 8px 11px; font-weight: 700; font-size: 13px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 14px; }
.contact-form label:last-of-type { grid-column: 1 / -1; }
input, textarea { padding: 13px; border: 1px solid #cbd2cd; font: inherit; }
.contact-form button { width: fit-content; }

footer { background: #001f2a; color: white; padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
footer p { margin: 5px 0 0; color: #b9c7bd; font-size: 13px; }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero-grid, .two-col, .energy-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 80px 0; }
  .hero-card { max-width: 520px; }
  .cards, .sector-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label:last-of-type { grid-column: auto; }
  .cta-grid { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .cards, .sector-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-text strong { font-size: 13px; }
  .nav-cta { display: none; }
  .hero-copy h1 { font-size: 48px; }
}

/* Avenor branding */
.avenor-header-logo {
  width: 230px;
  height: auto;
  display: block;
}
.brand-division {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding-left: 14px;
  border-left: 1px solid #cfd7d2;
}
.brand-division strong {
  font-size: 14px;
  color: var(--ink);
}
.brand-division small {
  margin-top: 5px;
  color: #5e6e65;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-logo {
  width: 220px;
  height: auto;
  background: white;
  padding: 6px 8px;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .avenor-header-logo { width: 145px; }
  .brand-division { display: none; }
}

/* Avenor visual refinement */
.site-header {
  box-shadow: 0 2px 16px rgba(0,35,47,.06);
}
.hero {
  background:
    linear-gradient(100deg, rgba(0,35,47,.96) 0%, rgba(0,59,80,.84) 47%, rgba(0,84,97,.30) 100%),
    url('hero-farm.jpg') center/cover;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}
.hero-card {
  border-top: 4px solid #00d3a3;
}
.card {
  border-top: 3px solid #006fc9;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,35,47,.08);
}
.card:nth-child(5),
.card:nth-child(6) {
  border-top-color: #00cfa3;
}
.text-link { color: #006fc9; }
.energy-panel span { color: #006fc9; }
.survey-cta .eyebrow,
.survey-cta h2,
.survey-cta p { color: white; }
.btn-light { color: #00496b; }
.nav-cta {
  background: linear-gradient(90deg,#006fc9,#00cfa3);
}
.brand-division strong { color: #00374a; }
.brand-division small { color: #006fc9; }
.contact-notes span {
  border-left: 3px solid #00cfa3;
}
footer {
  border-top: 4px solid #00cfa3;
}

/* Image-led service offering cards */
.service-card {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.service-card > img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}
.service-card:nth-child(1) > img { object-position: center 55%; }
.service-card:nth-child(2) > img { object-position: center 50%; }
.service-card:nth-child(3) > img { object-position: center 45%; }
.service-card:nth-child(4) > img { object-position: center 55%; }
.service-card:nth-child(5) > img { object-position: center 50%; }
.service-card:nth-child(6) > img { object-position: center 60%; }
.card-body {
  padding: 26px 28px 30px;
}
.card-body .icon {
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .service-card > img { height: 230px; }
}

.lv-distribution {
  padding: 88px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lv-distribution p {
  font-size: 18px;
  color: #4b5a52;
}

.credentials {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.credential {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}
.credential:last-child { border-right: 0; }
.credential strong {
  display: block;
  font-size: 22px;
  color: #006fc9;
  margin-bottom: 4px;
}
.credential span {
  font-size: 13px;
  color: #5c6a62;
  font-weight: 700;
}
.qualifications {
  padding: 88px 0;
  background: #f8fbfd;
  border-top: 1px solid var(--line);
}
.qualification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.qualification-list span {
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid #00cfa3;
  font-weight: 800;
  color: #00374a;
}
@media (max-width: 900px) {
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .credential:nth-child(2) { border-right: 0; }
  .credential:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .credentials-grid { grid-template-columns: 1fr; }
  .credential {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .credential:last-child { border-bottom: 0; }
}

.credential-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.credential-logo img {
  max-width: 145px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 9px;
}
.qualification-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 22px 0;
}
.qualification-logos img {
  max-width: 150px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: white;
  padding: 6px;
}

.credentials-title{padding-top:24px;display:flex;justify-content:space-between;gap:20px;align-items:baseline}.credentials-title strong{font-size:18px;color:#00374a}.credentials-title span{font-size:13px;color:#66757d}.accreditation-grid{display:grid;grid-template-columns:repeat(5,1fr);align-items:stretch}.accreditation{min-height:150px;padding:20px 18px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border-right:1px solid var(--line)}.accreditation:last-child{border-right:0}.accreditation img{width:100%;max-width:155px;height:70px;object-fit:contain;margin-bottom:10px}.accreditation span{font-size:12px;font-weight:800;color:#41525b}.qualification-logos img{max-width:125px;max-height:72px}@media(max-width:900px){.accreditation-grid{grid-template-columns:repeat(2,1fr)}.accreditation{border-bottom:1px solid var(--line)}.credentials-title{flex-direction:column}}@media(max-width:600px){.accreditation-grid{grid-template-columns:1fr}}

/* Restored accreditation logos */
.credentials-heading {
  display: flex;
  gap: 54px;
  align-items: center;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--line);
}
.credentials-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.credentials-heading strong {
  color: #006fc9;
  font-size: 22px;
}
.credentials-heading span {
  font-weight: 700;
  font-size: 13px;
  color: #5c6a62;
}
.accreditation-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 22px 0 24px;
  flex-wrap: wrap;
}
.accreditation-strip img {
  max-width: 155px;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.qualification-logos img {
  max-width: 145px;
  max-height: 78px;
}
@media (max-width: 700px) {
  .credentials-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .accreditation-strip { justify-content: flex-start; gap: 22px; }
  .accreditation-strip img { max-width: 120px; max-height: 62px; }
}

.hv-mop {
  padding: 88px 0;
  background: #f8fbfd;
  border-top: 1px solid var(--line);
}
.hv-mop p {
  font-size: 18px;
  color: #4b5a52;
}
.service-card:nth-child(8) {
  border-top-color: #00cfa3;
}

.temporary-power {
  padding: 88px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.temporary-power p {
  font-size: 18px;
  color: #4b5a52;
}

.section-feature-image {
  margin-bottom: 42px;
}
.section-feature-image img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .section-feature-image img { height: 250px; }
}

/* Premium engineering positioning */
.engineering-intro {
  padding: 72px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.engineering-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.engineering-intro-grid p { font-size: 18px; color: #4b5a52; }
.powered-by {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-weight: 800;
  color: #00374a;
}
.powered-by img { width: 180px; height: auto; }
.premium-trust span { font-weight: 800; }
.premium-service { border-top-color: #00cfa3; }

.delivery-workflow {
  padding: 90px 0;
  background: linear-gradient(135deg,#002735,#00496b);
  color: white;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: rgba(255,255,255,.16);
}
.workflow-grid > div {
  background: #00394d;
  padding: 24px 18px;
  min-height: 220px;
}
.workflow-grid span {
  display: block;
  color: #00d8a4;
  font-weight: 800;
  margin-bottom: 28px;
}
.workflow-grid strong { display:block; font-size: 17px; margin-bottom: 10px; }
.workflow-grid p { font-size: 13px; color: #c9dce2; line-height: 1.5; }

.design-capability {
  padding: 90px 0;
  background: #f8fbfd;
}
.design-lead { font-size: 18px; color: #4b5a52; }
.engineering-list { border-top: 1px solid var(--line); }
.engineering-list > div {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.engineering-list strong { color: #00374a; }
.engineering-list span { color: #5b6861; }

.emergency-cta {
  background: #001f2a;
  color: white;
  padding: 65px 0;
  border-top: 4px solid #00cfa3;
}
.emergency-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.emergency-grid > div { max-width: 780px; }
.emergency-grid h2 { margin-bottom: 12px; }
.emergency-grid p { color: #d4e3e7; }

@media (max-width: 1050px) {
  .workflow-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 900px) {
  .engineering-intro-grid { grid-template-columns: 1fr; gap: 35px; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .emergency-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid > div { min-height: auto; }
  .engineering-list > div { grid-template-columns: 1fr; gap: 5px; }
  .powered-by { align-items: flex-start; flex-direction: column; }
}

.emergency-engineer-visual {
  margin-bottom: 42px;
}
.emergency-engineer-visual img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .emergency-engineer-visual img { height: 250px; }
}

/* Dedicated contact page */
.contact-hero {
  padding: 92px 0 82px;
  background: linear-gradient(120deg,#002735,#00496b);
  color: white;
}
.contact-hero h1 {
  font-size: clamp(44px,6vw,72px);
  line-height: 1;
  max-width: 820px;
  margin: 10px 0 22px;
  letter-spacing: -.04em;
}
.contact-hero p:last-child {
  max-width: 800px;
  font-size: 19px;
  color: #d6e5e9;
}
.contact-page { padding: 90px 0; background: #fff; }
.contact-page-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}
.contact-details-panel {
  background: #f3f8fb;
  padding: 38px;
  border-top: 4px solid #00cfa3;
}
.contact-detail {
  padding: 18px 0;
  border-bottom: 1px solid #d7e1e7;
}
.contact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 800;
  color: #006fc9;
  margin-bottom: 5px;
}
.contact-detail a {
  color: #00374a;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
}
.contact-detail address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
}
.contact-capability {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-capability strong { color: #006fc9; font-size: 20px; }
.contact-capability span { font-weight: 700; color: #52625a; }
.contact-page-form select {
  padding: 13px;
  border: 1px solid #cbd2cd;
  font: inherit;
  background: white;
}
.form-note {
  margin-top: 20px;
  font-weight: 700;
}
.form-note a { color: #006fc9; }
.contact-accreditations {
  padding: 50px 0;
  background: #f8fbfd;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Case studies / project profiles */
.case-studies { padding: 95px 0; background: #f3f8fb; }
.case-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 45px;
}
.case-disclaimer {
  font-size: 13px;
  color: #65736c;
  border-left: 3px solid #00cfa3;
  padding-left: 18px;
}
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-study { background: white; border: 1px solid var(--line); overflow: hidden; }
.featured-case { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; }
.case-visual { min-height: 245px; position: relative; background-size: cover; background-position: center; }
.featured-case .case-visual { min-height: 520px; }
.case-farm { background-image: linear-gradient(rgba(0,35,47,.12),rgba(0,35,47,.12)), url('hero-farm.jpg'); }
.case-dairy { background-image: linear-gradient(rgba(0,35,47,.08),rgba(0,35,47,.08)), url('service-solar-battery.jpg'); }
.case-equestrian { background-image: linear-gradient(rgba(0,35,47,.08),rgba(0,35,47,.08)), url('service-lighting.jpg'); }
.case-rural { background-image: linear-gradient(rgba(0,35,47,.08),rgba(0,35,47,.08)), url('service-hv-design.jpg'); }
.case-tag {
  position: absolute; top: 18px; left: 18px;
  background: #002735; color: white; padding: 7px 10px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.case-content { padding: 30px; }
.featured-case .case-content { padding: 46px; }
.case-number { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: #006fc9; }
.case-content h3 { font-size: 27px; line-height: 1.12; color: #00232f; margin: 7px 0 15px; }
.featured-case h3 { font-size: 38px; }
.case-content > p { color: #56645d; }
.case-content ul { padding-left: 18px; color: #3f4d46; }
.case-content li { margin: 7px 0; }
.case-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 28px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.case-stats div { padding: 17px 12px 17px 0; }
.case-stats strong { display:block; color:#006fc9; font-size:20px; }
.case-stats span { font-size:11px; font-weight:800; text-transform:uppercase; color:#6b7771; }
.case-mini-stats { display:flex; flex-wrap:wrap; gap:7px; margin:20px 0; }
.case-mini-stats span { background:#f3f8fb; border-left:3px solid #00cfa3; padding:7px 9px; font-size:12px; font-weight:800; }

.support-plans { padding: 90px 0; background: white; }
.support-lead { max-width: 760px; font-size:18px; color:#56645d; }
.support-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:35px; }
.support-grid > div { padding:32px; border:1px solid var(--line); border-top:4px solid #006fc9; }
.support-grid .managed { background:#002735; color:white; border-top-color:#00cfa3; }
.support-grid span { font-weight:800; color:#00a985; }
.support-grid h3 { font-size:25px; margin:14px 0 8px; }
.support-grid p { color:#5a6861; }
.support-grid .managed p { color:#d1e0e4; }

@media (max-width:900px) {
  .case-heading,.featured-case { grid-template-columns:1fr; }
  .case-grid,.support-grid { grid-template-columns:1fr; }
  .featured-case { grid-column:auto; }
  .featured-case .case-visual { min-height:300px; }
}

.health-check{padding:90px 0;background:linear-gradient(120deg,#006fc9,#00a985);color:white}
.health-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.health-grid p{color:#e7f7f6;font-size:18px}.health-items{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.health-items span{background:rgba(0,35,47,.22);padding:16px;font-weight:800;border-left:3px solid white}
.agri-environment{padding:90px 0;background:#fff}.environment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.environment-grid div{padding:22px;background:#f3f8fb;border-top:3px solid #00cfa3}
.environment-grid strong,.environment-grid span{display:block}.environment-grid strong{color:#00374a;margin-bottom:7px}.environment-grid span{color:#59675f;font-size:14px}
.trade-partners{padding:90px 0;background:#002735;color:white}.partner-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:80px;align-items:center}
.trade-partners p{color:#d4e3e7;font-size:18px}.partner-box{display:flex;flex-direction:column;gap:11px;padding:32px;border:1px solid rgba(255,255,255,.2)}
.partner-box strong{font-size:22px;color:#00d8a4}.partner-box .btn{margin-top:14px;align-self:flex-start}
@media(max-width:900px){.health-grid,.partner-grid{grid-template-columns:1fr}.environment-grid{grid-template-columns:1fr}}
@media(max-width:600px){.health-items{grid-template-columns:1fr}}

.smart-farm-it{padding:95px 0;background:#eef5f7;border-top:1px solid var(--line)}
.smart-it-heading{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;margin-bottom:38px}
.smart-it-heading p{font-size:17px;color:#4f5f57}.smart-it-main-img{width:100%;height:350px;object-fit:cover}
.smart-it-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.smart-it-grid>div{background:#fff;border-bottom:3px solid #00b98e;padding-bottom:20px}
.smart-it-grid img{width:100%;height:155px;object-fit:cover;display:block;margin-bottom:16px}.smart-it-grid strong,.smart-it-grid span{display:block;padding:0 18px}
.smart-it-grid strong{color:#00374a;font-size:17px;margin-bottom:7px}.smart-it-grid span{color:#5b6861;font-size:13px;line-height:1.5}
.smart-it-message{margin-top:28px;background:#002735;color:#fff;padding:28px 32px;display:grid;grid-template-columns:.8fr 1.4fr auto;gap:24px;align-items:center}
.smart-it-message strong{font-size:21px;color:#00d8a4}.smart-it-message span{color:#d5e4e8}
@media(max-width:900px){.smart-it-heading{grid-template-columns:1fr}.smart-it-grid{grid-template-columns:1fr 1fr}.smart-it-message{grid-template-columns:1fr}}
@media(max-width:600px){.smart-it-grid{grid-template-columns:1fr}.smart-it-main-img{height:250px}}

.livestock-tech{padding:95px 0;background:#fff}
.livestock-tech-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:center}
.livestock-tech-copy>p{font-size:16px;color:#536159}
.livestock-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0}
.livestock-feature-grid>div{background:#f3f8fb;padding:18px;border-left:3px solid #00b98e}
.livestock-feature-grid strong,.livestock-feature-grid span{display:block}
.livestock-feature-grid strong{color:#00374a;margin-bottom:6px}
.livestock-feature-grid span{font-size:13px;line-height:1.5;color:#5b6861}
.livestock-tech-visual img{width:100%;height:520px;object-fit:cover;display:block}
.livestock-caption{background:#002735;color:#d8e7ea;padding:18px;font-size:13px;line-height:1.5}
.livestock-note{padding:18px;border:1px solid #d7e1e7;border-left:4px solid #006fc9;background:#fbfdfe}
@media(max-width:900px){.livestock-tech-grid{grid-template-columns:1fr}.livestock-tech-visual img{height:360px}}
@media(max-width:600px){.livestock-feature-grid{grid-template-columns:1fr}}


/* Solar & battery payback calculator */
.solar-calculator { padding: 90px 0; background: var(--cream); }
.calc-heading { max-width: 820px; margin-bottom: 38px; }
.calc-heading > p:last-child { font-size: 18px; color: #4b5a52; }
.calc-layout { display: grid; grid-template-columns: 1.35fr .85fr; gap: 28px; align-items: start; }
.calc-input-panel { background: var(--white); border: 1px solid var(--line); padding: 30px; }
.calc-input-panel h3 { margin: 0 0 20px; font-size: 22px; }
.calc-subhead { margin-top: 34px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink); }
.calc-fields input { width: 100%; background: #fff; border: 1px solid #bdcbd3; border-radius: 3px; padding: 12px; }
.calc-fields small { color: #66747c; font-weight: 400; line-height: 1.35; }
.calc-results { position: sticky; top: 100px; background: linear-gradient(145deg,#002634,#00496b); color: white; padding: 30px; }
.calc-results .eyebrow { color: #7fe2d1; }
.calc-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 22px; }
.calc-result-grid > div { padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.calc-result-grid span { display: block; font-size: 11px; color: #c9d9df; margin-bottom: 5px; }
.calc-result-grid strong { display: block; font-size: 20px; line-height: 1.15; }
.calc-result-grid .calc-highlight { grid-column: 1/-1; background: linear-gradient(90deg,rgba(0,111,201,.7),rgba(0,207,163,.55)); }
.calc-result-grid .calc-highlight strong { font-size: 30px; }
.calc-breakdown { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; margin-bottom: 24px; }
.calc-breakdown > strong { display: block; margin-bottom: 10px; }
.calc-breakdown span { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; font-size: 12px; color: #dce8ec; }
.calc-breakdown b { color: white; white-space: nowrap; }
.calc-breakdown em { display: block; margin-top: 12px; color: #a8bec7; font-size: 11px; font-style: normal; }
.calc-results .btn { width: 100%; text-align: center; }
.calc-disclaimer { margin: 20px 0 0; color: #6b777d; font-size: 12px; }
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}
@media (max-width: 620px) {
  .calc-fields, .calc-result-grid { grid-template-columns: 1fr; }
  .calc-result-grid .calc-highlight { grid-column: auto; }
}

/* v29 simplified solar calculator */
.calc-fields select{width:100%;padding:13px 14px;border:1px solid #ccd4dc;border-radius:8px;background:#fff;color:#14283b;font:inherit;margin-top:7px}
.calc-battery-choice{display:flex;align-items:flex-start;gap:12px;margin-top:20px;padding:17px 18px;border:1px solid #d9e3e8;border-radius:10px;background:#f7faf8;cursor:pointer}
.calc-battery-choice input{width:20px;height:20px;margin-top:2px;accent-color:#48a447;flex:0 0 auto}
.calc-battery-choice span{display:flex;flex-direction:column;gap:4px}
.calc-battery-choice small{font-weight:400;color:#60717c;line-height:1.4}
.calc-assumption-note{margin-top:18px;padding:17px 18px;border-left:4px solid #48a447;background:#eef6ef;border-radius:4px;display:flex;flex-direction:column;gap:5px;color:#18364d}
.calc-assumption-note span{font-size:.9rem;line-height:1.5;color:#526675}

/* v31 solar calculator opportunity messaging */
.calc-opportunity{margin:18px auto 0;max-width:900px;padding:14px 18px;border-left:4px solid var(--green);background:rgba(0,207,163,.08);color:var(--navy);line-height:1.55;border-radius:4px}
.calc-rating{margin:16px 0;padding:15px 17px;border-radius:8px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);display:flex;flex-direction:column;gap:5px}
.calc-rating strong{font-size:18px}.calc-rating span{font-size:13px;line-height:1.45;opacity:.92}
.calc-rating.excellent{border-left:4px solid #00cfa3}.calc-rating.good{border-left:4px solid #f1c75b}.calc-rating.longer{border-left:4px solid #b9c3cc}


/* v35 uniform service imagery refinements */
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card > a {
  display: block;
}
.service-card > a img,
.service-card > img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 600px) {
  .service-card > a img,
  .service-card > img {
    height: 230px;
  }
}
.section-feature-image img,
.emergency-engineer-visual img,
.smart-it-main-img,
.smart-it-grid img,
.livestock-tech-visual img {
  object-fit: cover;
  object-position: center center;
}
.battery-benefits {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.battery-benefit-card {
  background: #ffffff;
  border: 1px solid #d9e1d7;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.battery-benefit-card h3 {
  margin: 0 0 8px;
  color: #17365d;
  font-size: 19px;
}
.battery-benefit-card p {
  margin: 0;
  color: #4b5961;
  line-height: 1.55;
}
.battery-note {
  margin-top: 18px;
  color: #5a666e;
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .battery-benefits {
    grid-template-columns: 1fr;
  }
}


/* v36 branded image consistency */
.service-card > a img, .service-card > img { border-bottom: 1px solid #e3ebe4; }


/* v38 Avenor rebrand overrides */
:root {
  --ink: #17365d;
  --navy: #17365d;
  --brand-accent: #7ac143;
  --brand-accent-dark: #5aa12a;
}
.brand-text strong, .brand-division strong { color: #17365d; }
.brand-division small { color: #17365d; opacity: .75; }
.nav-cta { background: linear-gradient(90deg,#17365d,#7ac143); }
.hero-card { border-top-color: #7ac143; }
.card:nth-child(5),
.card:nth-child(6) { border-top-color: #7ac143; }
.text-link, .energy-panel span { color: #17365d; }
.contact-notes span { border-left-color: #7ac143; }
footer { border-top-color: #7ac143; }
.btn, .page-btn, .btn-primary { background: #17365d; }
.btn-light { color: #17365d; }
.page-btn.secondary { background: #7ac143 !important; }
.service-more, a { color: #17365d; }
.avenor-header-logo { width: 240px; height: auto; display: block; }
.footer-logo { width: 220px; height: auto; background: white; padding: 6px 8px; border-radius: 4px; }
.powered-by img { width: 180px; height: auto; }
.eyebrow, .eyebrow2, .badge { color: #7ac143; }
.calc-battery-choice strong + small, .battery-note strong { color: inherit; }
@media (max-width:700px){ .avenor-header-logo { width: 180px; } .footer-logo { width: 180px; } }


/* v39 premium Avenor polish */
.avenor-pillars{padding:78px 0;background:#f7f9f6;border-top:1px solid #e3e9e1;border-bottom:1px solid #e3e9e1}.avenor-pillars-head{max-width:760px;margin-bottom:28px}.avenor-pillars-head h2{margin:8px 0 12px;color:#17365d;font-size:clamp(30px,4vw,46px);line-height:1.08}.avenor-pillars-head p{font-size:18px;line-height:1.6;color:#4f5b63}.avenor-pillar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.avenor-pillar-grid article{background:#fff;border:1px solid #dfe6df;border-top:4px solid #7ac143;border-radius:14px;padding:24px;box-shadow:0 8px 22px rgba(23,54,93,.05)}.avenor-pillar-grid strong{display:block;color:#17365d;font-size:23px;margin-bottom:8px}.avenor-pillar-grid p{margin:0;color:#536069;line-height:1.55}.brand img,.avenor-header-logo{max-height:72px;object-fit:contain}.footer-logo{max-height:70px;object-fit:contain}.site-header{backdrop-filter:saturate(120%) blur(4px)}.service-card{border-radius:14px}.service-card > a img,.service-card > img{transition:transform .28s ease}.service-card:hover > a img,.service-card:hover > img{transform:scale(1.015)}@media(max-width:900px){.avenor-pillar-grid{grid-template-columns:1fr}.brand img,.avenor-header-logo{max-height:58px}}


/* v40 health-check panel visibility and content */
.health-panel{background:rgba(255,255,255,.96);color:#17365d;padding:28px;border-radius:14px;box-shadow:0 14px 34px rgba(0,35,47,.18)}
.health-panel h3{margin:0 0 8px;font-size:26px;color:#17365d}
.health-panel-intro{margin:0 0 20px!important;color:#52616a!important;font-size:15px!important;line-height:1.55}
.health-panel .health-items{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.health-panel .health-items div{background:#f3f7f3;border-left:4px solid #7ac143;padding:14px 15px;border-radius:7px}
.health-panel .health-items strong{display:block;color:#17365d;font-size:15px;margin-bottom:4px}
.health-panel .health-items span{display:block;background:none!important;border:0!important;padding:0!important;color:#52616a!important;font-weight:500!important;font-size:13px;line-height:1.45}
@media(max-width:700px){.health-panel .health-items{grid-template-columns:1fr}.health-panel{padding:22px}}


/* v41 fix health-check button visibility */
.btn, .btn:visited { text-decoration: none; }
.btn.btn-light, .health-check .btn-light {
  background: #ffffff !important;
  color: #17365d !important;
  border: 2px solid rgba(23,54,93,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.btn.btn-light:hover, .health-check .btn-light:hover {
  background: #f3f7fb !important;
  color: #17365d !important;
}
.health-check .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
}
@media (max-width: 600px) {
  .health-check .btn-light { min-width: 0; width: 100%; }
}


/* v42 final branding prominence and QA tweaks */
.nav-wrap {
  min-height: 98px;
  gap: 28px;
}
.brand {
  gap: 16px;
  align-items: center;
  flex: 0 1 auto;
}
.avenor-header-logo {
  width: 290px !important;
  max-width: none;
  max-height: 94px !important;
  height: auto;
  display: block;
}
.brand-division {
  padding-left: 16px;
  border-left: 1px solid #cbd5d0;
  gap: 4px;
}
.brand-division strong {
  font-size: 16px;
  line-height: 1.15;
  color: #17365d !important;
}
.brand-division small {
  margin-top: 0;
  font-size: 11.5px;
  letter-spacing: .09em;
  color: #4f6272 !important;
  opacity: 1;
}
.powered-by img {
  width: 215px !important;
  max-width: 100%;
  height: auto;
}
.footer-logo {
  width: 250px !important;
  max-height: 84px !important;
}
nav a {
  color: #243640;
}
nav a:hover,
.service-more:hover,
.text-link:hover {
  color: #0d5a86;
}
.nav-cta {
  color: #ffffff !important;
}
.btn-primary,
.btn-secondary,
.btn-light,
.page-btn,
.nav-cta {
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.14);
}
@media (max-width: 1100px) {
  .avenor-header-logo {
    width: 250px !important;
    max-height: 82px !important;
  }
  .brand-division strong { font-size: 15px; }
  .brand-division small { font-size: 10.5px; }
}
@media (max-width: 700px) {
  .nav-wrap {
    min-height: 84px;
  }
  .avenor-header-logo {
    width: 210px !important;
    max-height: 66px !important;
  }
  .brand-division {
    display: flex;
    padding-left: 10px;
  }
  .brand-division strong { font-size: 13px; }
  .brand-division small {
    font-size: 9px;
    letter-spacing: .06em;
  }
}
@media (max-width: 560px) {
  .brand-division {
    display: none;
  }
  .avenor-header-logo {
    width: 190px !important;
    max-height: 60px !important;
  }
}


/* v45 logo prominence and contact cleanup */
.site-header .nav-wrap {
  min-height: 112px !important;
  gap: 30px;
}
.site-header .brand {
  gap: 18px;
  align-items: center;
}
.site-header .brand > img,
.site-header .avenor-header-logo {
  width: 360px !important;
  max-width: none;
  max-height: 112px !important;
  height: auto;
  object-fit: contain;
}
.site-header .brand > span:not(.brand-division) {
  display: inline-block;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #17365d;
  letter-spacing: .02em;
}
.site-header .brand-division {
  padding-left: 18px;
}
.site-header .brand-division strong {
  font-size: 17px;
}
.site-header .brand-division small {
  font-size: 12px;
  color: #38556e !important;
}
@media (max-width: 1100px) {
  .site-header .nav-wrap { min-height: 96px !important; }
  .site-header .brand > img,
  .site-header .avenor-header-logo {
    width: 300px !important;
    max-height: 92px !important;
  }
  .site-header .brand > span:not(.brand-division) { font-size: 14px; }
  .site-header .brand-division strong { font-size: 15px; }
  .site-header .brand-division small { font-size: 11px; }
}
@media (max-width: 700px) {
  .site-header .nav-wrap { min-height: 84px !important; }
  .site-header .brand > img,
  .site-header .avenor-header-logo {
    width: 230px !important;
    max-height: 72px !important;
  }
  .site-header .brand > span:not(.brand-division) { font-size: 12px; }
}
@media (max-width: 560px) {
  .site-header .brand > img,
  .site-header .avenor-header-logo {
    width: 205px !important;
    max-height: 64px !important;
  }
}


/* v47 LED calculator link and resilience cost callout */
.failure-cost-callout{margin:24px 0;padding:20px 22px;background:rgba(0,35,47,.28);border-left:5px solid #fff;border-radius:10px}.failure-cost-callout strong{display:block;color:#fff;font-size:22px;line-height:1.25;margin-bottom:8px}.failure-cost-callout span{display:block;color:#eaf7f5;font-size:15px;line-height:1.55}
