/* ==========================================================================
   JEA, Inc. — site styles
   Palette and type carry the identity work: redrawn Mayan mark, brand red,
   deep navy ground, Gill Sans Nova replaced on the web by Archivo (display)
   and Source Sans 3 (text). IBM Plex Mono carries specification data.
   ========================================================================== */

:root {
  --navy:        #14213D;
  --navy-2:      #1E3054;
  --navy-3:      #27406B;
  --red:         #ED1C24;
  --red-dark:    #C8102E;
  --ink:         #16202B;
  --slate:       #55677A;
  --slate-light: #7C8B99;
  --rule:        #DDE4EA;
  --rule-soft:   #EAEFF3;
  --ground:      #FFFFFF;
  --ground-2:    #F4F7F9;
  --ground-3:    #ECF1F4;

  --font-display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-text:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 40px);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 88px; --s8: 120px;

  --shadow: 0 1px 2px rgba(20,33,61,.05), 0 8px 26px rgba(20,33,61,.07);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--red-dark); }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 68ch; }

/* ---------- type ---------------------------------------------------------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1;  letter-spacing: -.018em; text-wrap: balance; }
h3 { font-size: clamp(19px, 2vw, 23px);   line-height: 1.22; letter-spacing: -.012em; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }
p  { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.5; color: var(--ink); }
.muted { color: var(--slate); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red-dark); margin: 0 0 var(--s2);
}
.eyebrow-light { color: #FF6B70; }

.mono { font-family: var(--font-mono); }

/* ---------- layout bands -------------------------------------------------- */

section { padding-block: var(--s7); }
.band-navy  { background: var(--navy); color: #fff; }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p, .band-navy li { color: #C3D2E4; }
.band-grey  { background: var(--ground-2); }
.band-tight { padding-block: var(--s5); }

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- buttons ------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 3px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background-color .14s, color .14s, border-color .14s;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.link-arrow {
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  color: var(--red-dark); font-size: 16px;
}
.link-arrow::after { content: " →"; }

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

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.head-inner { display: flex; align-items: center; gap: var(--s3); min-height: 74px; }
.brand { flex: none; display: block; }
.brand img { width: 122px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--red-dark); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red-dark); }
.nav .nav-phone { color: #fff; border-bottom: 0; font-variant-numeric: tabular-nums; }
.nav .nav-phone:hover { color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 40px;
  background: none; border: 1.5px solid var(--rule); border-radius: 3px; cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); content: "";
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after  { top:  6px; left: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--rule); padding: var(--s2) var(--gut) var(--s3);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule-soft); }
  .nav .nav-phone { margin-top: var(--s2); justify-content: center; }
}

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

.hero { background: var(--navy); color: #fff; }
/* Copy aligns with the page container; the image bleeds to the right edge. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: stretch; }
.hero-copy {
  padding-block: clamp(48px, 6vw, 86px);
  padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  padding-right: clamp(28px, 4vw, 64px);
}
.hero-copy > * { max-width: 620px; }
.hero h1 { color: #fff; }
.hero-sub { color: #B7C7DC; font-size: 18px; margin-top: var(--s3); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); align-items: center; }
.hero-media { position: relative; min-height: 420px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-inline: var(--gut); }
  .hero-media { min-height: 230px; }
}

/* ---------- capacity band ------------------------------------------------- */

.capacity {
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(14px, 1.6vw, 17px); letter-spacing: .01em;
}
.capacity .wrap { padding-block: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.capacity strong { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.capacity span { font-family: var(--font-text); font-weight: 400; color: #FFDCDD; }

/* ---------- proof strip --------------------------------------------------- */

.proof { background: var(--ground-2); border-bottom: 1px solid var(--rule); }
.proof .wrap { padding-block: var(--s4); }
.proof-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
.proof-item dt { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--navy); letter-spacing: -.01em; }
.proof-item dd { margin: 4px 0 0; font-size: 14px; color: var(--slate); font-family: var(--font-mono); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s2); } }

/* ---------- generic grid helpers ------------------------------------------ */

.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
}

.section-head { margin-bottom: var(--s5); }
.section-head .lede { margin-top: var(--s2); color: var(--slate); }

/* ---------- cards --------------------------------------------------------- */

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: var(--s4); box-shadow: var(--shadow);
}
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--slate); font-size: 16px; }

.plain { border: 1px solid var(--rule); border-radius: 3px; padding: var(--s4); background: #fff; }
.plain-dark { border: 1px solid var(--navy-3); border-radius: 3px; padding: var(--s4); background: var(--navy-2); }

/* ---------- work cards ---------------------------------------------------- */

.work-card { display: block; text-decoration: none; color: inherit; }
.work-card .photo { margin-bottom: var(--s2); }
.work-card h3 { color: var(--navy); }
.work-card:hover h3 { color: var(--red-dark); }
.work-card .meta { font-family: var(--font-mono); font-size: 13px; color: var(--slate); margin-top: 4px; }

/* ---------- photo placeholder --------------------------------------------
   Swap for a real <img> when Leo's photographs arrive:
   <img class="photo" src="/assets/img/work/mckendree-shoring.jpg" alt="…">
   -------------------------------------------------------------------------- */

.photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: var(--s3);
  background: var(--ground-3); border: 1.5px dashed #AFC0CD; border-radius: 3px;
  aspect-ratio: 4 / 3; color: var(--slate);
}
.photo::before {
  content: "PHOTO NEEDED";
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--slate-light);
}
.photo span { font-size: 14px; max-width: 34ch; }
.photo-wide { aspect-ratio: 21 / 9; }
.photo-tall { aspect-ratio: 3 / 4; }
.photo-fill { aspect-ratio: auto; height: 100%; min-height: 320px; border-radius: 0; border: 0;
  border-left: 1.5px dashed rgba(255,255,255,.28); background: var(--navy-2); color: #A9BDD6; }
.photo-fill::before { color: #7E96B4; }

/* ---------- spec table ---------------------------------------------------- */

.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.spec th {
  width: 190px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red-dark); font-weight: 500; padding-right: var(--s3);
}
.spec td { color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) {
  .spec th, .spec td { display: block; width: auto; border-bottom: 0; padding: 4px 0; }
  .spec tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
}

/* ---------- scope list ---------------------------------------------------- */

.scopes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px var(--s4); }
.scopes li { position: relative; padding-left: 18px; font-size: 16px; }
.scopes li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; background: var(--red); }
@media (max-width: 900px) { .scopes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .scopes { grid-template-columns: 1fr; } }

/* ---------- qualification table ------------------------------------------- */

.qual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s6); }
.qual dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.qual dt, .qual dd {
  padding: 12px 0; border-bottom: 1px solid var(--rule-soft); margin: 0;
  font-family: var(--font-mono); font-size: 14px;
}
.qual dt { color: var(--slate); }
.qual dd { color: var(--navy); font-weight: 500; }
@media (max-width: 900px) { .qual { grid-template-columns: 1fr; } }

/* ---------- quote slot (placeholder until approved in writing) ------------- */

.quote-slot {
  border: 1.5px dashed #E1B4B7; background: #FDF4F4; border-radius: 3px; padding: var(--s3);
}
.quote-slot .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red-dark); margin: 0 0 10px;
}
.quote-slot .who { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.quote-slot p { font-size: 14px; font-style: italic; color: #7B5C62; margin: 0; }

/* ---------- steps / numbered rows ----------------------------------------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: var(--s3) 0 var(--s3) 56px;
  border-bottom: 1px solid var(--rule-soft);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: calc(var(--s3) + 2px);
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--slate); font-size: 16px; }

/* ---------- forms --------------------------------------------------------- */

.form { display: grid; gap: var(--s3); max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--navy); }
.field .hint { font-size: 13px; color: var(--slate); font-family: var(--font-mono); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; background: var(--ground-2);
  border: 1.5px solid var(--rule); border-radius: 3px;
}
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--navy); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.dropzone {
  border: 1.5px dashed #B6C6D2; border-radius: 3px; background: var(--ground-2);
  padding: var(--s4); text-align: center; color: var(--slate); cursor: pointer;
}
.dropzone.is-over { border-color: var(--navy); background: #fff; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .files { margin-top: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--navy); }

.form-status { font-family: var(--font-mono); font-size: 14px; }
.form-status[data-state="error"] { color: var(--red-dark); }
.form-status[data-state="ok"] { color: #1B6E3C; }

.honeypot { position: absolute; left: -9999px; }

/* ---------- CTA band ------------------------------------------------------ */

.cta-band { padding-block: var(--s6); }
.cta-inner { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.cta-h { font-size: clamp(24px, 3vw, 32px); }
.cta-p { margin-top: 10px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

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

.site-foot { background: var(--navy); color: #B7C7DC; padding-top: var(--s7); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5); }
.foot-brand img { width: 168px; }
.foot-note { margin-top: var(--s3); font-size: 15px; color: #93A9C4; }
.foot-h {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #7E96B4; margin: 0 0 var(--s2); font-weight: 500;
}
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.foot-list a { color: #C3D2E4; text-decoration: none; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-legal { margin-top: var(--s6); padding-block: var(--s3); border-top: 1px solid var(--navy-3); }
.foot-legal p { font-family: var(--font-mono); font-size: 12.5px; color: #7E96B4; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- page header (interior pages) ---------------------------------- */

.page-head { background: var(--ground-2); border-bottom: 1px solid var(--rule); padding-block: var(--s6); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: var(--s3); color: var(--slate); max-width: 62ch; }

.breadcrumb { font-family: var(--font-mono); font-size: 13px; color: var(--slate); margin-bottom: var(--s2); }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-dark); }

.callout {
  border-left: 3px solid var(--red); padding: 4px 0 4px var(--s3);
  font-size: 19px; line-height: 1.5; margin: var(--s4) 0;
}

/* ---------- small utilities ------------------------------------------------
   Kept deliberately few. They exist so no page needs an inline style
   attribute, which lets the Content-Security-Policy keep style-src locked
   down to 'self' plus the Google Fonts stylesheet.
   -------------------------------------------------------------------------- */

.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-xs { margin-top: 10px; }
.pt-4 { padding-top: var(--s4); }
.pad-0 { padding: 0; }
.pad-tall { padding-block: var(--s8); }
.pad-band { padding-block: var(--s7); }
.on-navy { color: #fff; }
.on-navy-soft { color: #B7C7DC; }
.measure-70 { max-width: 70ch; }
.align-center { align-items: center; }
.logo-lg { width: min(260px, 60%); }

/* JEA AI PHOTO PLACEHOLDERS START
   Temporary AI-generated hillside construction photography.
   Replace files in /assets/img/work/ with real JEA photographs later. */
.photo {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background-image: linear-gradient(rgba(13,31,52,.08),rgba(13,31,52,.16)), url('/assets/img/work/foundation-hillside.jpg');
  background-size: cover;
  background-position: center;
  border: 0;
}
.photo.photo-wide {
  background-image: linear-gradient(rgba(13,31,52,.06),rgba(13,31,52,.14)), url('/assets/img/work/mountainside-site.jpg');
  background-position: center;
}
.photo.photo-fill {
  background-image: linear-gradient(rgba(13,31,52,.10),rgba(13,31,52,.18)), url('/assets/img/work/hero-hillside.jpg');
  background-position: center;
}
.photo.photo-tall {
  background-image: linear-gradient(rgba(13,31,52,.08),rgba(13,31,52,.16)), url('/assets/img/work/retaining-wall-hillside.jpg');
  background-position: center;
}
.photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  background: rgba(13,31,52,.72);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .02em;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
/* Give repeated standard slots some variation without editing every page. */
.photo:nth-of-type(3n+1):not(.photo-wide):not(.photo-fill):not(.photo-tall) {
  background-image: linear-gradient(rgba(13,31,52,.08),rgba(13,31,52,.16)), url('/assets/img/work/excavation-hillside.jpg');
}
.photo:nth-of-type(3n+2):not(.photo-wide):not(.photo-fill):not(.photo-tall) {
  background-image: linear-gradient(rgba(13,31,52,.08),rgba(13,31,52,.16)), url('/assets/img/work/retaining-wall-hillside.jpg');
}
/* JEA AI PHOTO PLACEHOLDERS END */

/* JEA real-photo pass - unique photography only; no placeholder watermark/caption overlays. */
.photo::before { content: none !important; display: none !important; }
.photo > span { display: none !important; }
.photo { background-image: none !important; text-shadow: none !important; }
.photo-hidden { display: none !important; }

.photo-real-home-hero,
.photo-real-mckendree-foundation,
.photo-real-site-excavation,
.photo-real-structural-foundation,
.photo-real-structural-overhead,
.photo-real-crane,
.photo-real-leo {
  display: block !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.photo-real-home-hero {
  background-image: url('/assets/img/work/real/home-hero-mckendree.jpg') !important;
  background-position: center 45% !important;
}
.photo-real-mckendree-foundation {
  background-image: url('/assets/img/work/real/mckendree-foundation.jpg') !important;
  background-position: center !important;
}
.photo-real-site-excavation {
  background-image: url('/assets/img/work/real/site-excavation-vertical.jpg') !important;
  background-position: center 52% !important;
}
.photo-real-structural-foundation {
  background-image: url('/assets/img/work/real/structural-foundation.jpg') !important;
  background-position: center !important;
}
.photo-real-structural-overhead {
  background-image: url('/assets/img/work/real/structural-overhead.jpg') !important;
  background-position: center !important;
}
.photo-real-crane {
  background-image: url('/assets/img/work/real/mckendree-crane.jpg') !important;
  background-position: center 45% !important;
}
.photo-real-leo {
  background-image: url('/assets/img/people/leo-esparza.jpg') !important;
  background-position: center 35% !important;
  background-color: #e8e8e8 !important;
}

/* Leo Esparza - real portrait */
.photo-real-leo {
  background-image: url('/assets/img/work/leo-esparza.jpg') !important;
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  min-height: 520px;
}

/* remove all temporary photo labels / watermark treatment */
.photo::before {
  display: none !important;
  content: none !important;
}

.photo span {
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
}

@media (max-width: 900px) {
  .photo-real-leo {
    min-height: 430px;
    background-position: center 24%;
  }
}

/* Homepage real JEA photography */
.photo-jea-home-hero {
  background-image:
    linear-gradient(rgba(13,31,52,.10), rgba(13,31,52,.16)),
    url('/assets/img/work/home-hero-mckendree.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photo-jea-wide {
  background-image:
    linear-gradient(rgba(13,31,52,.08), rgba(13,31,52,.14)),
    url('/assets/img/work/mckendree-structural-wide.jpg') !important;
  background-size: cover;
  background-position: center;
}

.photo-jea-excavation {
  background-image:
    linear-gradient(rgba(13,31,52,.08), rgba(13,31,52,.14)),
    url('/assets/img/work/site-excavation-vertical.jpg') !important;
  background-size: cover;
  background-position: center;
}

.photo-jea-foundation {
  background-image:
    linear-gradient(rgba(13,31,52,.08), rgba(13,31,52,.14)),
    url('/assets/img/work/structural-foundation.jpg') !important;
  background-size: cover;
  background-position: center;
}

/* Homepage - real JEA photography */
.photo-real-home-hero {
  background-image:
    linear-gradient(rgba(13,31,52,.08), rgba(13,31,52,.16)),
    url('/assets/img/work/home-hero-mckendree.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.photo-real-mckendree-foundation {
  background-image:
    linear-gradient(rgba(13,31,52,.06), rgba(13,31,52,.12)),
    url('/assets/img/work/mckendree-foundation.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.photo-real-site-excavation {
  background-image:
    linear-gradient(rgba(13,31,52,.06), rgba(13,31,52,.12)),
    url('/assets/img/work/site-excavation-vertical.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.photo-real-structural-foundation {
  background-image:
    linear-gradient(rgba(13,31,52,.06), rgba(13,31,52,.12)),
    url('/assets/img/work/structural-foundation.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Leo Esparza digital business card */
.digital-card-page {
  padding: 48px 18px 72px;
  background: #f2f4f5;
}

.digital-card-shell {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(13,31,52,.14);
}

.digital-card-identity {
  background: #0d1f34;
  color: #fff;
}

.digital-card-photo {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 25%;
}

.digital-card-name {
  padding: 28px 30px 30px;
}

.digital-card-name h1 {
  color: #fff;
  margin: 4px 0 6px;
}

.digital-card-title {
  font-size: 1.15rem;
  margin: 0;
}

.digital-card-license {
  margin: 7px 0 0;
  opacity: .76;
}

.digital-card-primary-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(13,31,52,.12);
}

.digital-action {
  display: flex;
  min-height: 100px;
  padding: 20px 14px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid rgba(13,31,52,.12);
}

.digital-action:last-child {
  border-right: 0;
}

.digital-action strong {
  color: #0d1f34;
  font-size: 1.05rem;
}

.digital-action span {
  color: #65717d;
  font-size: .83rem;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.digital-card-feature-actions {
  padding: 28px 30px;
  display: grid;
  gap: 12px;
}

.digital-card-button {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

button.digital-card-button {
  cursor: pointer;
}

.digital-card-company {
  padding: 30px;
  border-top: 1px solid rgba(13,31,52,.12);
}

.digital-card-company h2 {
  margin-top: 0;
}

.digital-card-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: rgba(13,31,52,.12);
}

.digital-card-facts div {
  background: #fff;
  padding: 18px 12px;
  text-align: center;
}

.digital-card-facts dt {
  color: #68737e;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.digital-card-facts dd {
  margin: 5px 0 0;
  color: #0d1f34;
  font-weight: 600;
}

.digital-card-footer {
  padding: 25px 30px 30px;
  background: #f5f6f7;
  text-align: center;
}

.digital-card-footer img {
  max-width: 150px;
}

.digital-card-footer p {
  margin-bottom: 0;
  color: #65717d;
  font-size: .9rem;
}

@media (max-width: 620px) {
  .digital-card-page {
    padding: 0 0 40px;
  }

  .digital-card-shell {
    border-left: 0;
    border-right: 0;
  }

  .digital-card-photo {
    height: 390px;
  }

  .digital-card-primary-actions {
    grid-template-columns: 1fr;
  }

  .digital-action {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid rgba(13,31,52,.12);
  }

  .digital-action:last-child {
    border-bottom: 0;
  }

  .digital-card-facts {
    grid-template-columns: 1fr;
  }
}

.leo-qr-modal[hidden] {
  display: none;
}

.leo-qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(13,31,52,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.leo-qr-panel {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  padding: 34px 28px 28px;
  text-align: center;
}

.leo-qr-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

#leo-qr-code img {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 18px auto;
}

.leo-qr-url {
  font-size: .82rem;
  color: #65717d;
  overflow-wrap: anywhere;
}
