/* ==========================================================================
   Energy and LED Services — marketing site
   Design tokens and layout recreated from the Claude Design handoff.
   Breakpoints mirror the handoff exactly: 1300 / 1100 / 1000 / 900 / 640 / 560
   ========================================================================== */

:root {
  --navy: #012446;
  --navy-mat: #01305c;
  --pink: #FE9B95;
  --pink-border: #FD9B95;
  --blue-light: #9ACFFE;
  --blue-pale: #F1F8FF;
  --white: #FFFFFF;
  --body: #333333;
  --body-muted: #555555;
  --body-on-navy: #D7E8FA;
  --hairline: #01244622;
  --hairline-strong: #01244644;
  --hairline-light: #ffffff33;
  --hairline-light-soft: #ffffff22;
  --header-h: 72px;
  --radius: 4px;
}

* { box-sizing: border-box; }

/* A `display` rule on an element beats the UA's [hidden] rule, so enforce it —
   .contact-form and .nav-mobile are both display:flex and are toggled via [hidden]. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* the fixed header would otherwise cover the top of every anchored section */
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  color: var(--body);
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--pink); }

::selection { background: #9ACFFE66; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.section-navy :focus-visible,
.contact-panel :focus-visible,
.site-footer :focus-visible,
.cta-banner :focus-visible,
.hero-copy :focus-visible { outline-color: var(--blue-light); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- shared primitives ---------- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 100px 40px; }
.section-tint { background: var(--blue-pale); }
.section-navy { background: var(--navy); color: var(--white); }

h1, h2, h3 { color: var(--navy); }

h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 24px 0;
}
.h2-tight { margin-bottom: 0; }
.h2-on-navy { color: var(--white); font-size: 32px; margin-bottom: 20px; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 12px 0;
}
.kicker-light { color: var(--blue-light); letter-spacing: 0.14em; }
.kicker-navy { color: var(--navy); font-size: 12px; letter-spacing: 0.1em; margin-bottom: 16px; }
.kicker-sm { font-size: 12px; letter-spacing: 0.1em; margin-bottom: 8px; }
.kicker-xs { font-size: 12px; letter-spacing: 0.08em; margin-bottom: 6px; }

.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

/* Buttons — outline only. Hover is a light tint of the border colour,
   never a solid/reverse fill (per the handoff). */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.15s ease;
}
.btn-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 10px 22px;
  font-size: 14px;
}
.btn-navy:hover { background: #01244414; color: var(--navy); }
.btn-pink {
  border: 1.5px solid var(--pink);
  color: var(--white);
  padding: 14px 32px;
  font-size: 15px;
}
.btn-pink:hover { background: #FE9B9526; color: var(--white); }

/* "Matted" photos: a padded, bordered frame around a cover-fitted image. */
.mat {
  background: var(--blue-pale);
  border: 1px solid var(--hairline);
  padding: 12px;
}
.mat-white { background: var(--white); }
.mat-navy { background: var(--navy-mat); border-color: var(--hairline-light-soft); }
.mat img { display: block; width: 100%; object-fit: cover; }
.mat-fill { height: 100%; }
.mat-fill img { height: 100%; min-height: 480px; }
.img-340 { height: 340px; }
.img-360 { height: 360px; }

.icon-34 { width: 34px; height: 34px; object-fit: contain; }
.icon-38 { width: 38px; height: 38px; object-fit: contain; margin-bottom: 12px; }
.icon-42 { width: 42px; height: 42px; object-fit: contain; margin-bottom: 16px; }
.icon-50 { width: 50px; height: 50px; object-fit: contain; margin-bottom: 16px; }
/* Mining, Private Sector and the check mark are supplied as white-only artwork.
   Inverting renders them dark on light cards; on navy they are inverted+brightened
   back to white. Swap in proper multi-tone files and drop this if they are supplied. */
.icon-invert { filter: invert(1); }
.cta-banner .icon-invert,
.checklist-navy img { filter: invert(1) brightness(1.8); }

/* Two-column section scaffold */
.split { display: flex; gap: 64px; align-items: flex-start; }
.split-main { flex: 1.15; min-width: 0; }
.split-media { flex: 1; min-width: 0; align-self: stretch; }
.split-half { flex: 1; min-width: 0; }
.split-about { gap: 56px; }
.split-panel, .split-values { gap: 48px; align-items: center; }

/* Centered section intros */
.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}
.intro-wide { max-width: 720px; }
.intro h2 { margin-bottom: 16px; }
.intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

.grid { display: grid; gap: 24px; }

/* Check-mark lists */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px 24px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}
.checklist img { width: 18px; height: 18px; object-fit: contain; margin-top: 2px; flex-shrink: 0; }
.checklist-2col { grid-template-columns: 1fr 1fr; }
.checklist-sm { gap: 10px; }
.checklist-sm li { font-size: 14px; }
.checklist-sm img { width: 16px; height: 16px; margin-top: 3px; }
.checklist-navy li { color: var(--body-on-navy); }

/* ---------- header / nav ---------- */

.header-wrap { position: relative; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop a { font-size: 15px; font-weight: 500; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
}

/* Mobile menu is an overlay: it floats above the page rather than pushing it down. */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 28px 40px;
  gap: 22px;
  box-shadow: 0 12px 28px rgba(1, 36, 70, 0.15);
  z-index: 999;
}
.nav-mobile a { font-size: 16px; font-weight: 500; }
.nav-mobile .btn { align-self: flex-start; padding: 12px 22px; font-size: 15px; }

/* ---------- hero ---------- */

.hero {
  display: flex;
  min-height: 620px;
  margin-top: var(--header-h);
}
.hero-copy {
  flex: 1;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  gap: 22px;
}
.hero-copy .kicker { margin: 0; }
.hero h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--white);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-on-navy);
  margin: 0;
  max-width: 460px;
}
.hero-cta { margin: 14px 0 0 0; }
.hero-media { flex: 1; min-height: 360px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- about ---------- */

.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 18px 0;
}
.lead-last { margin-bottom: 32px; }

.vm-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.vm-card { flex: 1; min-width: 220px; padding: 24px; }

.expect {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}

/* ---------- services ---------- */

.grid-services { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 56px; }
.service-card { padding: 32px; }
.service-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 12px 0; }
.service-card { border-color: var(--pink-border); }
.service-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  display: block;
}
.service-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-light);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  color: var(--white);
}
.cta-banner img { margin-bottom: 14px; }
.cta-title { font-size: 20px; font-weight: 600; margin: 0 0 12px 0; }
.cta-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-on-navy);
  margin: 0 auto 24px auto;
  max-width: 560px;
}
.cta-banner .btn-pink { padding: 12px 28px; font-size: 14px; }

/* ---------- industries ---------- */

.grid-industries { grid-template-columns: repeat(4, 1fr); margin-bottom: 56px; }
.industry-card { padding: 28px; text-align: center; }
.industry-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px 0; }

.panel {
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 48px;
}
.panel-title { font-size: 24px; font-weight: 600; color: var(--navy); margin: 0 0 16px 0; }
.panel-body { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0 0 20px 0; }

/* ---------- why choose us ---------- */

.grid-why { grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 72px; }
.why-card { padding: 26px; }
.why-card h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px 0; }
.why-body { font-size: 13px; line-height: 1.55; color: var(--body); margin: 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 16px;
}
.value { text-align: center; padding: 12px; }
.value img { margin-bottom: 10px; }
.value-name { font-size: 13px; font-weight: 600; color: var(--navy); margin: 0 0 6px 0; }
.value-body { font-size: 12px; line-height: 1.5; color: var(--body-muted); margin: 0; }

/* ---------- responsible service ---------- */

.body-navy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-on-navy);
  margin: 0 0 16px 0;
}
.body-navy-last { margin-bottom: 32px; }
.env { border-top: 1px solid var(--hairline-light); padding-top: 32px; }
.env-title { font-size: 18px; font-weight: 600; color: var(--white); margin: 0 0 12px 0; }
.env-lead { font-size: 14px; font-weight: 600; color: var(--white); margin: 0 0 14px 0; }
.env .checklist { margin-bottom: 20px; }

/* ---------- contact ---------- */

.intro-contact h2 { font-size: 34px; }
.intro-contact p { margin-bottom: 8px; }
.contact-callout {
  font-size: 14px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 16px 0 0 0;
}
.intro-contact { margin-bottom: 64px; }

.contact-cols { display: flex; gap: 56px; }
.contact-form-col { flex: 1; min-width: 0; }
.contact-details-col { flex: 0.7; min-width: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--body);
  background: var(--white);
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #01244666; }
.field input:focus,
.field textarea:focus { border-color: var(--navy); }
/* Native validation styling only after a submit attempt, so empty fields
   are not marked red before the visitor has done anything. */
.contact-form.was-validated :invalid { border-color: var(--pink); }
.field-error {
  font-size: 13px;
  color: #b3261e;
  margin: 6px 0 0 0;
}
.btn-submit { align-self: flex-start; padding: 14px 28px; font-size: 15px; }
.btn-submit[disabled] { opacity: 0.6; cursor: default; }

/* Honeypot — kept out of view and out of the tab order, but not display:none,
   which some bots detect and skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  font-size: 14px;
  line-height: 1.5;
  color: #b3261e;
  background: #b3261e0f;
  border: 1px solid #b3261e44;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0;
}

.form-success {
  background: var(--blue-pale);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.success-title { font-size: 20px; font-weight: 600; color: var(--navy); margin: 0 0 12px 0; }
.success-body { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }

.contact-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-value { font-size: 16px; margin: 0; }
.contact-value a { color: var(--white); }
.contact-value a:hover { color: var(--pink); }
.contact-email { word-break: break-word; }
.contact-address { line-height: 1.5; }
.contact-reg {
  border-top: 1px solid var(--hairline-light);
  padding-top: 20px;
  font-size: 12px;
  color: var(--blue-light);
  margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--blue-light);
  padding: 48px 40px 32px 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--hairline-light-soft);
  padding-bottom: 32px;
  margin-bottom: 24px;
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--blue-light); font-size: 14px; }
.footer-nav a:hover { color: var(--pink); }
.footer-bottom p { font-size: 13px; color: #6f97c2; text-align: center; margin: 0; }

/* ==========================================================================
   Responsive — breakpoints match the handoff's width thresholds
   ========================================================================== */

@media (max-width: 1299px) {
  .grid-why { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1099px) {
  .grid-services { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 999px) {
  .grid-industries { grid-template-columns: 1fr 1fr; }
  .grid-why { grid-template-columns: 1fr 1fr; }
}

/* 900px is the single layout breakpoint: desktop nav -> hamburger, and all
   two-column sections stack. */
@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-mobile:not([hidden]) { display: flex; }

  .section { padding: 72px 24px; }
  .site-header { padding: 0 24px; }
  .site-footer { padding: 40px 24px 28px 24px; }

  .hero { flex-direction: column; min-height: 0; }
  .hero-copy { padding: 56px 24px; }
  .hero h1 { font-size: 34px; }
  .hero-media { min-height: 300px; }
  .hero-media img { height: 300px; }

  h2 { font-size: 28px; }
  .h2-on-navy { font-size: 26px; }
  .intro-contact h2 { font-size: 28px; }
  .intro { margin-bottom: 40px; }

  .split { flex-direction: column; gap: 40px; }
  .split-media { align-self: stretch; }
  .mat-fill img { min-height: 320px; height: 320px; }
  .img-340, .img-360 { height: 280px; }

  .panel { padding: 32px 24px; }
  .grid-why { margin-bottom: 48px; }
  .grid-services, .grid-industries { margin-bottom: 40px; }

  .contact-cols { flex-direction: column; gap: 40px; }
  .contact-panel { padding: 32px 24px; }
  .form-success { padding: 36px 24px; }
  .intro-contact { margin-bottom: 44px; }

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

@media (max-width: 639px) {
  .grid-services { grid-template-columns: 1fr; }
  .grid-industries { grid-template-columns: 1fr; }
  .grid-why { grid-template-columns: 1fr; }
}

@media (max-width: 559px) {
  .checklist-2col { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .site-header { padding: 0 20px; }
  .nav-mobile { padding: 24px 20px; }
  .hero-copy { padding: 44px 20px; }
  .hero h1 { font-size: 30px; }
  .site-footer { padding: 36px 20px 24px 20px; }
  .service-card { padding: 24px; }
  .cta-banner { padding: 32px 22px; }
  .logo img { height: 36px; }
}
