/* lightautomations.com home page, new look (Dec 2026).
   LACS's own look: logo green on white, Archivo headings, Source Sans 3 text.
   Every page loads this file; the inner pages add pages.css on top. styles.css is the old look and is no longer used. */

:root {
  --white: #fff;
  --tint: #f3f6f3;          /* a very light grey-green, for alternate bands */
  --ink: #101a13;
  --ink-2: #414c45;
  --muted: #5f6a63;
  --line: rgba(16, 26, 19, .14);
  --green: #0f6b1a;         /* the logo green, darkened enough for white text */
  --green-press: #0b5414;
  --deep: #0c2e14;          /* band and footer */
  --tag: #f2c21a;           /* the yellow of the equipment tags in our panels; project labels only */
  --head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --gutter: 32px;
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: #fff; }
section[id] { scroll-margin-top: 96px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); padding: 8px 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--r); border: 1px solid var(--ink); font: 600 1rem/1.2 var(--text); text-decoration: none; color: var(--ink); background: var(--white); transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.small { min-height: 40px; padding: 8px 16px; }
.more { font-weight: 600; color: var(--green); }

/* ---------- top strip and header ---------- */
.strip { background: var(--deep); color: #fff; font-size: 0.9375rem; padding: 4px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 4px 32px; min-height: 32px; align-items: center; }
.strip a { color: #fff; text-decoration: none; }
.strip .addr { margin-right: auto; color: rgba(255, 255, 255, .8); }

header.site { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 40px; height: 80px; }
.logo img { height: 48px; width: auto; }
nav.main { display: flex; gap: 32px; margin-left: auto; }
nav.main a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .15s var(--ease), color .15s var(--ease); }
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- hero: headline band, then the photo ---------- */
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; padding-top: 48px; padding-bottom: 40px; }
.hero-text h1 { font: 600 clamp(2.5rem, 4.6vw, 4rem)/1.06 var(--head); letter-spacing: -.02em; text-wrap: balance; }
.hero-text .lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-pic { position: relative; background: var(--tint); }
.hero-pic img { width: 100%; aspect-ratio: 2.1 / 1; max-height: clamp(320px, calc(100vh - 460px), 520px); object-fit: cover; object-position: 50% 22%; }
.hero-pic figcaption { position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; padding: 12px 20px 12px max(var(--gutter), calc((100vw - var(--max)) / 2)); }

/* ---------- facts band ---------- */
.facts { background: var(--deep); color: #fff; }
.facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 28px 0; }
.facts dt { font-size: 0.9375rem; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.facts dd { font-weight: 600; line-height: 1.4; }

/* ---------- sections: heading on the left, content on the right ---------- */
.sec { padding: 96px 0; }
.sec.alt { background: var(--tint); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.split > .side h2, .stack-head h2, .contact h2 { font: 600 clamp(1.875rem, 3vw, 2.5rem)/1.12 var(--head); letter-spacing: -.015em; text-wrap: balance; }
.split > .side p, .stack-head p { color: var(--ink-2); margin-top: 16px; max-width: 26em; }
.split > .side .more { display: inline-block; margin-top: 24px; }

/* about */
.about-body p { color: var(--ink-2); max-width: 40em; }
.about-body p + p { margin-top: 16px; }
.about-body p:first-child { color: var(--ink); font-size: 1.25rem; line-height: 1.5; }

/* services: 2 by 2, divided by lines */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.services > li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.services h3 { font: 600 1.25rem/1.3 var(--head); margin-bottom: 8px; }
.services p { color: var(--ink-2); }
.services .covers { margin-top: 8px; font-size: 1rem; color: var(--muted); }

/* projects: the widest section on the page */
.stack-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: end; justify-content: space-between; margin-bottom: 40px; }
.lead-job { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lead-job img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: 50% 20%; }
.lead-job .txt { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.meta { width: fit-content; font: 600 0.9375rem/1.2 var(--head); color: var(--ink); background: var(--tag); padding: 6px 12px; border-radius: 2px; margin-bottom: 12px; }
.lead-job h3 { font: 600 1.5rem/1.2 var(--head); margin-bottom: 12px; }
.lead-job p { color: var(--ink-2); }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.jobs li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.jobs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.jobs .txt { padding: 24px 28px 28px; }
.jobs h3 { font: 600 1.25rem/1.3 var(--head); margin-bottom: 8px; }
.jobs p { color: var(--ink-2); }

/* industries: one row of five links */
.sec.tight { padding: 64px 0; }
.sec.tight .stack-head { margin-bottom: 32px; }
.stack-head p { margin-top: 0; }
.inds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inds li + li { border-left: 1px solid var(--line); }
.inds a { display: flex; align-items: center; height: 100%; min-height: 88px; padding: 16px 20px; font: 600 1.25rem/1.3 var(--head); text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease); }
.inds li:first-child a { padding-left: 0; }
.inds-note { margin-top: 20px; color: var(--ink-2); }

/* platforms: one row of six */
.plat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 24px; }
.plat li { padding: 16px 0 0; border-top: 1px solid var(--line); }
.plat b { display: block; font: 600 1.125rem/1.3 var(--head); }
.plat span { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.4; color: var(--muted); }
#platforms .more { display: inline-block; margin-top: 32px; }

/* how we work */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.work > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.work dt { font: 600 1.25rem/1.3 var(--head); margin-bottom: 4px; }
.work dd { color: var(--ink-2); }

/* on-site photo */
.onsite { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.onsite img { width: 100%; border-radius: var(--r); }
.onsite figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 8px; }
.onsite h2 { font: 600 clamp(1.875rem, 3vw, 2.5rem)/1.12 var(--head); letter-spacing: -.015em; }
.onsite p { color: var(--ink-2); margin-top: 16px; }

/* academy: one quiet line, it is a different part of the company */
.academy { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; margin-top: 32px; padding: 32px; background: var(--tint); border-radius: var(--r); }
.academy h2 { font: 600 1.5rem/1.25 var(--head); }
.academy p { color: var(--ink-2); margin-top: 4px; max-width: 34em; }

/* contact band */
.contact { background: var(--deep); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.contact p { color: rgba(255, 255, 255, .8); margin-top: 16px; max-width: 28em; }
.contact .btn { border-color: #fff; background: transparent; color: #fff; }
.contact .btn.primary { background: #fff; color: var(--deep); }
.contact dl { border-top: 1px solid rgba(255, 255, 255, .24); }
.contact dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .24); }
.contact dt { color: rgba(255, 255, 255, .7); font-size: 1rem; }
.contact dd { font-weight: 600; overflow-wrap: anywhere; }
.contact dd a { color: #fff; }

/* footer */
footer.site { background: var(--white); padding: 56px 0 32px; }
footer.site .cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
footer.site img { height: 44px; width: auto; margin-bottom: 16px; }
footer.site p { color: var(--ink-2); font-size: 1rem; max-width: 30em; }
footer.site h3 { font: 600 1rem/1.4 var(--head); margin-bottom: 12px; }
footer.site li { margin-bottom: 8px; font-size: 1rem; }
footer.site a { text-decoration: none; color: var(--ink-2); }
footer.site .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.9375rem; color: var(--muted); }

/* WhatsApp: a still button, no pulsing */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: 24px; background: #0f7a41; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.wa svg { width: 20px; height: 20px; }

/* hover colours only where there is a mouse, so nothing sticks after a tap */
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: #fff; }
  .btn.primary:hover { background: var(--green-press); border-color: var(--green-press); }
  .strip a:hover { text-decoration: underline; }
  nav.main a:hover { color: var(--green); border-bottom-color: var(--green); }
  .inds a:hover { color: var(--green); text-decoration: underline; }
  .contact .btn:hover { background: #fff; color: var(--deep); }
  .contact .btn.primary:hover { background: var(--tint); }
  footer.site a:hover { color: var(--green); text-decoration: underline; }
}

.menu-btn:active, .wa:active { transform: scale(.97); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  nav.main { gap: 20px; }
  header.site .wrap { gap: 24px; }
  .hero-text, .split, .onsite, .contact .wrap { gap: 40px; }
  .lead-job .txt { padding: 32px; }
  .plat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .inds a { font-size: 1.125rem; padding: 16px; }
}

/* ---------- phone ---------- */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .strip .addr { display: none; }
  .strip .wrap { justify-content: space-between; }
  header.site .wrap { height: 64px; gap: 12px; }
  .logo img { height: 36px; }
  nav.main, header.site .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 8px 16px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--white); font: 600 1rem/1.2 var(--text); color: var(--ink); }
  .mobile-nav.open { display: block; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .mobile-nav a { display: flex; align-items: center; min-height: 52px; padding: 12px var(--gutter); border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }

  .hero-text { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 32px; padding-bottom: 32px; }
  .hero-text h1 { font-size: clamp(2.125rem, 9.4vw, 2.625rem); }
  .hero-text .lede { font-size: 1.125rem; }
  .acts { flex-direction: column; }
  .acts .btn { width: 100%; }
  .hero-pic img { aspect-ratio: 4 / 3; max-height: none; }
  .hero-pic figcaption { position: static; padding: 12px var(--gutter); background: var(--tint); }

  .facts dl { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sec { padding: 64px 0; }
  .sec.tight { padding: 48px 0; }
  .split, .onsite, .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .services, .inds, .work { grid-template-columns: minmax(0, 1fr); }
  .inds li + li { border-left: 0; border-top: 1px solid var(--line); }
  .inds a { min-height: 56px; padding: 12px 0; }
  .plat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .stack-head { margin-bottom: 32px; }
  .lead-job { grid-template-columns: minmax(0, 1fr); }
  .lead-job img { min-height: 0; aspect-ratio: 4 / 3; }
  .lead-job .txt { padding: 24px; }
  .jobs { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
  .jobs .txt { padding: 20px 24px 24px; }
  .split > div:empty { display: none; }
  .academy { padding: 24px; margin-top: 0; }
  .contact dl > div { grid-template-columns: 104px minmax(0, 1fr); }
  footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .cols > div:first-child { grid-column: 1 / -1; }
  .wa span { display: none; }

  /* tap areas at least 44px tall */
  .strip a, .logo, footer.site li a, footer.site .legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .more, .contact dd a { display: inline-block; padding: 9px 0; }
  .split > .side .more, #platforms .more { margin-top: 12px; }
  .contact dl > div { padding: 8px 0; align-items: center; }
  footer.site li { margin-bottom: 0; }
  footer.site .legal { align-items: center; padding-top: 8px; }

  /* WhatsApp: smaller, tucked into the corner, with room below the last line */
  .wa { right: 12px; bottom: 12px; width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  footer.site { padding-bottom: 72px; }
}
