/*
 * EFTINK-HD-01 shared remaster layout
 * Target desktop shell ~1540 CSS px (2x of original 770).
 * Brand fonts: Verdana family preserved from original pageformat.
 */

:root {
  --eftink-blue: #38368a;
  --eftink-blue-deep: #2a2a7a;
  --eftink-red: #c4122f;
  --eftink-metal-1: #d7d0c0;
  --eftink-metal-2: #cfc6b4;
  --eftink-metal-3: #e8e2d4;
  --eftink-metal-shadow: #b5ad9a;
  --eftink-shell-max: 1540px;
  --eftink-sidebar: 482px;
  --eftink-main: 1058px;
  --eftink-art: 928px;
  --eftink-trim-l: 62px;
  --eftink-trim-r: 68px;
  --eftink-header-h1: 176px;
  --eftink-header-h2: 60px;
  --page-bg: #ffffff;
  --footer-bg: #f5f5f5;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body.eftink-hd {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: #111;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--eftink-blue);
}

a:focus-visible {
  outline: 2px solid var(--eftink-blue);
  outline-offset: 2px;
}

/* Corrugated metal panel — exact 2× tile from original left_bk.jpg */
.eftink-metal {
  background-color: var(--eftink-metal-1);
  background-image: url("images/hd/ui/metal_siding_left.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top left;
}

.site-shell {
  width: 100%;
  max-width: var(--eftink-shell-max);
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header {
  width: 100%;
}

.site-header-row1 {
  display: grid;
  grid-template-columns: minmax(0, 696fr) minmax(0, 844fr);
  min-height: var(--eftink-header-h1);
  align-items: stretch;
}

.brand-block {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 28px 22px 36px;
  overflow: hidden;
}

.brand-mark {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.header-art {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  min-height: var(--eftink-header-h1);
}

.header-building-outline {
  position: absolute;
  left: 4%;
  top: 28%;
  width: 42%;
  height: 48%;
  pointer-events: none;
}

.header-worker {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  height: 100%;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: right bottom;
}

.site-header-row2 {
  display: grid;
  grid-template-columns: minmax(0, 696fr) minmax(0, 560fr) minmax(0, 284fr);
  min-height: var(--eftink-header-h2);
  align-items: stretch;
}

.header-stripe {
  position: relative;
  min-height: var(--eftink-header-h2);
}

.header-stripe::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 0;
  bottom: 10px;
  height: 4px;
  background: linear-gradient(90deg, var(--eftink-blue) 0 50%, transparent 50%),
    linear-gradient(90deg, var(--eftink-red) 0 50%, transparent 50%);
  background-size: 100% 2px;
  background-position: 0 0, 0 2px;
  background-repeat: no-repeat;
}

/* .header-email image hover defined with header-assembly below */

/* ========== Body: sidebar + main ========== */
.site-body {
  display: grid;
  grid-template-columns: minmax(0, 482fr) minmax(0, 1058fr);
  width: 100%;
  background-color: var(--eftink-metal-1);
}

.site-sidebar {
  background-color: var(--eftink-metal-1);
  background-image: inherit;
}

.site-sidebar.eftink-metal {
  background-image: url("images/hd/ui/metal_siding_left.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.site-main-col.eftink-metal {
  background-image: url("images/hd/ui/metal_siding_right.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top left;
}

/* Subpages: no gap/sliver between content-stage and badge-row / footer */
.site-main-col > .content-stage + .badge-row {
  margin-top: 0;
}

.site-body + .site-footer-wrap,
.site-shell + .site-footer-wrap {
  margin-top: 0;
}

.sidebar-left-top {
  line-height: 0;
}

.sidebar-left-top img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-intro {
  margin: 0;
  padding: 0;
}

.sidebar-intro-frame {
  display: grid;
  grid-template-columns: minmax(0, 32fr) minmax(0, 419fr) minmax(0, 31fr);
  align-items: stretch;
  column-gap: 0;
  /* Height hugs copy — do not force tall empty white band */
  width: 100%;
}

.sidebar-intro-rail {
  line-height: 0;
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
  min-height: 100%;
  /* Thin dark inner edge like original left_flash rails */
  box-shadow: none;
  border: 0;
}

.sidebar-intro-rail-left {
  background-image: url("images/hd/ui/frames/left_flash_left.jpg");
}

.sidebar-intro-rail-right {
  background-image: url("images/hd/ui/frames/left_flash_right.jpg");
}

.sidebar-intro-body,
.sidebar-intro-body.pageformat,
.sidebar-intro-tight {
  background: #ffffff;
  /* Original inner table: cellpadding=2 → 4px at 2× */
  padding: 4px;
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif !important;
  /* 2× original pageformat 12px, scaling proportionally on narrow viewports */
  font-size: clamp(9px, 1.56vw, 24px) !important;
  line-height: 1.25 !important;
  /* Left align — justify created large word rivers at HD width */
  text-align: left !important;
  box-shadow: none;
  border: 0;
}

.sidebar-intro-body p,
.sidebar-intro-body.pageformat p,
.sidebar-intro-body p[align="left"],
.sidebar-intro-body p[align="justify"] {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  text-justify: auto;
  word-spacing: normal;
  hyphens: none;
}

.site-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  line-height: 0;
  gap: 0;
}

.site-nav a {
  display: block;
  position: relative;
  width: 100%;
  text-decoration: none;
  line-height: 0;
  margin: 0;
  padding: 0;
  /* Exact-2× button slices abut on the live table; pull a few px tighter
     so the yellow active / navy stack matches the original dense look. */
  margin-top: clamp(-8px, -0.52vw, -2px);
}

.site-nav a:first-child {
  margin-top: 0;
}

.site-nav a img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.site-nav a .nav-on {
  display: none;
}

.site-nav a:hover .nav-off,
.site-nav a:focus-visible .nav-off,
.site-nav a.is-current .nav-off {
  display: none;
}

.site-nav a:hover .nav-on,
.site-nav a:focus-visible .nav-on,
.site-nav a.is-current .nav-on {
  display: block;
}

.sidebar-contact-card {
  padding: 0;
  line-height: 0;
  /* Keep contact block tight under the nav stack */
  margin-top: clamp(-4px, -0.26vw, -1px);
}

.sidebar-contact-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* Main column */
.site-main-col {
  min-width: 0;
  /* Prevent metal from reading as a second frame outside the content stage */
  display: flex;
  flex-direction: column;
}

.site-main-col > .content-stage {
  width: 100%;
  flex: 0 0 auto;
}

.site-main-col > .main-banner,
.site-main-col > .badge-row {
  width: 100%;
  flex: 0 0 auto;
}

.main-banner {
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  text-align: center;
}


.content-stage {
  --stage-trim-l: min(62px, 4.0260vw);
  --stage-trim-r: min(68px, 4.4156vw);
  --stage-cap-h: min(40px, 2.5974vw);
  --stage-seam: min(4px, 0.2597vw);
  display: grid;
  grid-template-columns: var(--stage-trim-l) minmax(0, 1fr) var(--stage-trim-r);
  grid-template-rows: var(--stage-cap-h) minmax(0, auto) var(--stage-cap-h);
  width: 100%;
  max-width: 100%;
  /* Opaque stage so metal column never shows as a second outer frame */
  background: #ffffff;
  border: 0;
  box-shadow: none;
  outline: none;
  /* Clip hairline gaps at frame/panel joins without creating outer slivers */
  overflow: hidden;
  margin: 0;
  padding: 0;
  /* Kill subpixel gaps between grid frame pieces */
  column-gap: 0;
  row-gap: 0;
}

.content-trim {
  background-image: url("images/hd/ui/frames/text_leftbk.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  min-height: 0;
  border: 0;
  box-shadow: none;
  position: relative;
  z-index: 2;
  /* single frame rail — no second chrome */
}

.content-stage > .content-trim:last-child {
  background-image: url("images/hd/ui/frames/text_rightbk.jpg");
}

.content-stage::before,
.content-stage::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: calc(var(--stage-cap-h) + 3px);
  background-repeat: no-repeat;
  position: relative;
  z-index: 2;
}

.content-stage::before {
  grid-row: 1;
  background-image:
    url("images/hd/ui/frames/text_lefttop.jpg"),
    url("images/hd/ui/frames/text_top.jpg"),
    url("images/hd/ui/frames/text_righttop.jpg");
  /* Overlap middle strip onto corner pieces to kill white corner slivers */
  background-size: var(--stage-trim-l) var(--stage-cap-h), calc(100% - var(--stage-trim-l) - var(--stage-trim-r) + (2 * var(--stage-seam))) var(--stage-cap-h), var(--stage-trim-r) var(--stage-cap-h);
  background-position: left top, calc(var(--stage-trim-l) - var(--stage-seam)) top, right top;
  background-repeat: no-repeat;
  /* Seat top frame onto the white panel — kills corner step/sliver */
  margin-bottom: -3px;
}

.content-stage::after {
  grid-row: 3;
  background-image:
    url("images/hd/ui/frames/text_leftbot.jpg"),
    url("images/hd/ui/frames/text_bottom.jpg"),
    url("images/hd/ui/frames/text_rightbot.jpg");
  background-size: var(--stage-trim-l) var(--stage-cap-h), calc(100% - var(--stage-trim-l) - var(--stage-trim-r) + (2 * var(--stage-seam))) var(--stage-cap-h), var(--stage-trim-r) var(--stage-cap-h);
  background-position: left bottom, calc(var(--stage-trim-l) - var(--stage-seam)) bottom, right bottom;
  background-repeat: no-repeat;
  margin-top: -3px;
}


/* Inside pages: one continuous beige text_* frame only.
   Do not use inside_text_right_1 (beige+teal composite) — it reads as a
   second outer metal strip beside the frame (owner defect 05). */
.content-stage--inside::before {
  background-image:
    url("images/hd/ui/frames/text_lefttop.jpg"),
    url("images/hd/ui/frames/text_top.jpg"),
    url("images/hd/ui/frames/text_righttop.jpg");
}

.content-stage--inside > .content-trim:last-of-type,
.content-stage--inside > .content-trim:last-child {
  background-image: url("images/hd/ui/frames/text_rightbk.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.sidebar-intro-bot {
  line-height: 0;
}

.sidebar-intro-bot img {
  width: 100%;
  height: auto;
  display: block;
}

.content-trim-top,
.content-trim-bot {
  height: 40px;
  background-image: url("images/hd/ui/frames/text_top.jpg");
  background-size: 100% 100%;
}

.content-panel {
  background: #fff;
  min-width: 0;
  /* Tight inset inside the single decorative text_* frame (was oversized) */
  padding: 4px 6px 8px;
  grid-column: 2;
  grid-row: 2;
  border: 0;
  box-shadow: none;
  outline: none;
  position: relative;
  z-index: 1;
  /* Overlap side trims by 1px to kill metal hairline between rail and panel */
  margin-left: -1px;
  margin-right: -1px;
}

/* Home slideshow: flush photo to the text_* frame — no white seam/step */
.page-home .content-panel {
  padding: 0;
  margin: 0;
  background: #111;
  line-height: 0;
  overflow: hidden;
}

.page-home .gallery-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  line-height: 0;
  overflow: hidden;
}

.page-home .gallery-stage,
.page-home .gallery-stage * {
  border-radius: 0 !important;
}

.content-stage > .content-trim:first-of-type {
  grid-column: 1;
  grid-row: 2;
  margin-right: -1px;
}

.content-stage > .content-trim:last-of-type {
  grid-column: 3;
  grid-row: 2;
  margin-left: -1px;
}

.content-panel.pageformat {
  font-size: 16px;
}

/* Home gallery stage */
.gallery-stage {
  width: 100%;
  max-width: var(--eftink-art);
  margin: 0 auto;
}

.gallery-stage .p7IGM01_layout {
  max-width: 100%;
}

.gallery-stage .p7IGM01_fs_img,
.gallery-stage #p7IGMim_1 {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
}

.gallery-stage .p7IGM01_FSwrapper,
.gallery-stage .p7IGM01_FSIMGwrapper,
.gallery-stage .p7IGM01_FSimage,
.gallery-stage .p7IGMimage-wrapper {
  width: 100% !important;
  max-width: 100%;
}

.gallery-stage .p7IGM01_FSimage {
  min-height: 0;
}

/* Affiliations sit on continuous metal (not inside white content frame).
   Do NOT retile a background here — that restarts metal phase and breaks seams.
   Column widths match live table: metallic 165 | flex serving | mbcea 182 → 2×. */
.badge-row {
  display: grid;
  grid-template-columns: minmax(0, 330fr) minmax(0, 302fr) minmax(0, 364fr);
  gap: 0 4px;
  align-items: center;
  padding: 6px 0 8px;
  margin: 0;
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
}

.badge-row img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 176px;
  justify-self: center;
  align-self: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  image-rendering: auto;
  display: block;
}

.badge-row img:first-child {
  justify-self: start;
  width: 100%;
  max-width: 330px;
  height: auto;
  max-height: none;
}

.badge-row .badge-center {
  justify-self: center;
  width: 100%;
  max-width: 302px;
  height: auto;
  max-height: none;
}

.badge-row img:last-child {
  justify-self: end;
  width: 100%;
  max-width: 364px;
  height: auto;
  max-height: none;
}

.site-main-col > .badge-row {
  background: transparent;
  background-image: none;
}

/* Home + References: keep three separate badges, nudge the row ~30px left */
.page-home .badge-row,
.page-references .badge-row {
  position: relative;
  left: -30px;
}

/* Quote / Product Info / Contact: keep badge-row in the main column (metal /
   columns / footer untouched). Overlay only the three images so they center
   across the full shell width on the existing siding. */
.page-quote .site-main-col > .badge-row,
.page-products .site-main-col > .badge-row,
.page-contact .site-main-col > .badge-row {
  --badge-gap: 48px;
  --badge-group-w: calc(330px + 302px + 364px + (2 * var(--badge-gap)));
  --badge-start: calc((100% - var(--eftink-sidebar) - var(--badge-group-w)) / 2);
  position: relative;
  display: block;
  width: 100%;
  height: 190px;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  background-image: none;
  grid-template-columns: none;
}

.page-quote .site-main-col > .badge-row img,
.page-products .site-main-col > .badge-row img,
.page-contact .site-main-col > .badge-row img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  justify-self: unset;
  flex: none;
}

.page-quote .site-main-col > .badge-row img:first-child,
.page-products .site-main-col > .badge-row img:first-child,
.page-contact .site-main-col > .badge-row img:first-child {
  left: var(--badge-start);
  width: 330px;
  height: 106px;
}

.page-quote .site-main-col > .badge-row .badge-center,
.page-products .site-main-col > .badge-row .badge-center,
.page-contact .site-main-col > .badge-row .badge-center {
  left: calc(var(--badge-start) + 330px + var(--badge-gap));
  width: 302px;
  height: 176px;
}

.page-quote .site-main-col > .badge-row img:last-child,
.page-products .site-main-col > .badge-row img:last-child,
.page-contact .site-main-col > .badge-row img:last-child {
  left: calc(var(--badge-start) + 330px + var(--badge-gap) + 302px + var(--badge-gap));
  width: 364px;
  height: 176px;
}

/* ========== Footer ========== */
.site-footer-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
  font-size: 0; /* kill HTML whitespace gap between cap and body */
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-footer-cap {
  height: 38px;
  background-image: url("images/hd/ui/footer_cap.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
  margin: 0;
  padding: 0;
  line-height: 0;
  display: block;
  flex: 0 0 38px;
}

.site-footer {
  display: block;
  background-image: url("images/hd/ui/footer_body.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
  /* Texture only inside the frame; sides+bottom are one CSS U-border so
     corners join as a single stroke (image sides + separate closer doubled). */
  background-clip: padding-box;
  min-height: 104px;
  /* Exact-2× of live 1px side rules + 1px spacer closer → 2px U-frame.
     Top stays open; footer_cap supplies the metal/top edge. */
  border: 2px solid #000000;
  border-top: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.site-footer-rail {
  display: none;
}

.site-footer-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px 8px 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
  box-sizing: border-box;
}

.site-footer-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer-body .textheader {
  display: inline-block;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: var(--eftink-blue);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.015em;
  padding-bottom: 3px;
  margin-bottom: 4px;
  border-bottom: 2px solid #a92c2a;
}

.site-footer-main p {
  margin: 0 0 4px;
}

.site-footer-main p:last-child {
  margin-bottom: 0;
}

.footer-credit {
  flex: 0 0 auto;
  align-self: center;
  width: max-content;
  max-width: none;
  margin-right: 10px;
  padding: 2px 16px 2px 8px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}

.footer-credit p {
  margin: 0 0 2px;
  white-space: nowrap;
}

.footer-credit-line,
.footer-credit-copy {
  font-size: 11px;
  line-height: 1.15;
  color: #222222;
}

.footer-credit-stamp {
  display: inline-block;
  line-height: 0;
  margin: 0 0 3px;
}

.footer-credit-stamp img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border: 0;
}

.footer-credit-line a {
  color: #222222;
  text-decoration: underline;
}

.site-footer-rule {
  display: none;
}

/* ========== Projects page (distinct full-width) ========== */
/* Original wrapper used table border="1" + cellspacing=3 (→ 6px at 2×).
   Recreate the classic double-line table chrome, not a flat CSS card. */
.projects-shell .site-body-projects {
  width: 100%;
  max-width: var(--eftink-shell-max);
  margin: 0 auto;
  padding: 4px 4px 0;
  border: 2px solid #666666;
  outline: 1px solid #ffffff;
  outline-offset: -4px;
  background: #ffffff;
  box-sizing: border-box;
}

/* Pull footer flush to the projects table — kill the white cellspacing
   band above footer_cap while keeping the metal cap band visible. */
body.projects-shell > .site-footer-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

body.projects-shell > .site-shell {
  position: relative;
  z-index: 2;
}

body.projects-shell .site-body-projects {
  margin-bottom: 0;
  padding-bottom: 0;
}

body.projects-shell .projects-table {
  margin-bottom: -6px;
}

.projects-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 4px 2px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}

.projects-nav a {
  color: #0000ee;
  text-decoration: underline;
  text-align: center;
  padding: 2px 4px;
}

.projects-nav a:visited {
  color: #551a8b;
}

.projects-grid-section h1 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  padding: 16px 8px 10px;
  margin: 0;
  color: #000;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 2× original cellspacing=3 */
  gap: 6px;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.projects-grid figure {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  line-height: 0;
  /* HTML table border=1 cell look: light outer + dark inner */
  border: 1px solid #666666;
  box-shadow: inset 0 0 0 1px #e8e8e8;
  background: #fff;
  box-sizing: border-box;
}

.projects-grid img,
.projects-table img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: 0;
}

/* Authentic border=1 / cellspacing=6 table chrome (2× of cellspacing=3) */
.projects-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  border: 1px solid #666666;
  background: #ffffff;
  margin: 0 0 -2px;
  padding: 0;
}

.projects-table td {
  border: 1px solid #666666;
  padding: 0;
  margin: 0;
  background: #ffffff;
  vertical-align: middle;
  text-align: center;
  line-height: 0;
}

/* ========== Product color chart ========== */
.swatch-table {
  width: 100%;
  border-collapse: collapse;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px 12px;
  margin: 12px 0 20px;
  justify-items: center;
}

.swatch-item {
  text-align: center;
  font-size: 13px;
}

.swatch-item img {
  display: block;
  width: 144px;
  height: 74px;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  object-fit: fill;
}

.product-links {
  margin: 16px 0;
}

/* ========== References ========== */
.references-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.reference-card {
  font-size: 15px;
  line-height: 1.4;
}

.reference-card strong {
  color: #111;
}

/* ========== Typography overrides from pageformat ========== */
.pageformat {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.inclformat {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.textheader {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #ff0000;
}

h1 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 26px;
  font-weight: bold;
  padding: 12px;
}

#content_area_div {
  width: 94%;
  margin: 0 auto;
  padding: 16px 0 28px;
}

.thankyou-content {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.thankyou-content h1 {
  margin: 0 0 18px;
}

.thankyou-content p {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.form-content h1 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dddddd;
  font-size: 26px;
  font-weight: normal;
}

.form-intro {
  margin: 10px 0 18px;
  line-height: 1.45;
}

.site-form {
  width: 100%;
  margin: 0;
}

.form-row-two {
  display: flex;
  gap: 12px;
}

.form-row-two > .form-field {
  flex: 1 1 0;
  min-width: 0;
}

.form-row-three {
  display: flex;
  gap: 12px;
}

.form-row-three > .form-field {
  flex: 1 1 0;
  min-width: 0;
}

.form-field {
  margin: 0 0 14px;
}

.form-field label,
.address-fields legend {
  display: block;
  margin: 0 0 5px;
  font-weight: bold;
}

.site-form input,
.site-form textarea,
.site-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #aaaaaa;
  border-radius: 3px;
  background: #ffffff;
  color: #222222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  border-color: #38368a;
  outline: 2px solid rgba(56, 54, 138, 0.18);
  outline-offset: 1px;
}

.site-form textarea {
  min-height: 140px;
  resize: vertical;
}

.address-fields {
  margin: 4px 0 16px;
  padding: 13px 12px 0;
  border: 1px solid #cccccc;
}

.required {
  color: #b00000;
}

.spam-question input {
  max-width: 100px;
}

.form-actions button {
  padding: 10px 22px;
  border: 1px solid #777777;
  border-radius: 3px;
  background: #eeeeee;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  cursor: pointer;
}

.form-actions button:hover,
.form-actions button:focus {
  background: #dddddd;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-form fieldset {
  margin: 0 0 18px;
  padding: 13px 12px 2px;
  border: 1px solid #cccccc;
  min-width: 0;
}

.site-form legend {
  padding: 0 6px;
  font-weight: bold;
  color: #38368a;
}

/* P7 IGM inside the single text_* frame: size stage, drop the extra dark
   outer chrome so the decorative frame is not doubled. */
.gallery-stage .p7IGM01 {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.gallery-stage .p7IGM_wrapper,
.gallery-stage .p7IGM01_layout {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
.gallery-stage .p7IGM01_FSwrapper {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.gallery-stage .p7IGM01_FSimage,
.gallery-stage .p7IGMimage-wrapper,
.gallery-stage #p7IGMimgwrapper_1 {
  aspect-ratio: 928 / 438;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #111;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
}
.gallery-stage .p7IGM01_image,
.gallery-stage .p7IGM01-image-link {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gallery-stage .p7IGM01_fs_img,
.gallery-stage #p7IGMim_1,
.gallery-stage #p7IGMimv_1 {
  display: block;
  width: 100% !important;
  height: 100% !important;
  /* Cover the stage edge-to-edge — avoids white seam/step and letterbox bars */
  object-fit: cover;
  object-position: center center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.gallery-stage .p7IGM01_FSwrapper,
.gallery-stage .p7IGM01_FSIMGwrapper,
.gallery-stage .p7IGM01_layout,
.gallery-stage .p7IGM_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
/* Keep arrow controls; scale ~2× */
.gallery-stage .p7IGM01-prev-arrow,
.gallery-stage .p7IGM01-next-arrow {
  transform: scale(2);
  transform-origin: center center;
}


/* ===== Header: original slice assembly + email _f2 hover ===== */
.header-assembly {
  width: 100%;
  line-height: 0;
}
.header-row1,
.header-row2 {
  display: grid;
  width: 100%;
}
.header-row1 {
  grid-template-columns: minmax(0, 696fr) minmax(0, 844fr);
}
.header-row2 {
  grid-template-columns: minmax(0, 696fr) minmax(0, 560fr) minmax(0, 284fr);
}
.header-assembly img {
  width: 100%;
  height: auto;
  display: block;
}
.header-email {
  display: block;
  position: relative;
  line-height: 0;
}
.header-email .email-on {
  display: none;
}
.header-email:hover .email-off,
.header-email:focus .email-off,
.header-email:focus-visible .email-off {
  display: none;
}
.header-email:hover .email-on,
.header-email:focus .email-on,
.header-email:focus-visible .email-on {
  display: block;
}
.header-email:focus-visible {
  outline: 2px solid var(--eftink-blue);
  outline-offset: 2px;
}

.main-banner {
  padding: 0;
  min-height: 0;
  display: block;
  line-height: 0;
}
.main-banner .right-top-banner,
img.right-top-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* Hard-kill P7 rounded chrome and 16px :after line-box that add seam/bottom bars */
.gallery-stage .p7IGM01,
.gallery-stage .p7IGM01 *,
.gallery-stage .p7IGM01::before,
.gallery-stage .p7IGM01::after {
  border-radius: 0 !important;
}

.gallery-stage .p7IGM01::after {
  content: none !important;
  display: none !important;
}

/* ========== Responsive (Tablet & Mobile) ========== */
@media screen and (max-width: 1199px) {
  .site-footer-cap {
    height: clamp(14px, 2.47vw, 38px);
    flex: 0 0 auto;
  }

  .page-home .badge-row,
  .page-references .badge-row {
    position: static;
    left: auto;
  }

  .page-quote .site-main-col > .badge-row,
  .page-products .site-main-col > .badge-row,
  .page-contact .site-main-col > .badge-row {
    display: grid;
    grid-template-columns: minmax(0, 330fr) minmax(0, 302fr) minmax(0, 364fr);
    gap: 0 4px;
    align-items: center;
    height: auto;
    padding: 6px 0 8px;
  }

  .page-quote .site-main-col > .badge-row img,
  .page-products .site-main-col > .badge-row img,
  .page-contact .site-main-col > .badge-row img {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
  }

  .page-quote .site-main-col > .badge-row img:first-child,
  .page-products .site-main-col > .badge-row img:first-child,
  .page-contact .site-main-col > .badge-row img:first-child {
    justify-self: start;
    width: 100%;
    max-width: 330px;
    height: auto;
  }

  .page-quote .site-main-col > .badge-row .badge-center,
  .page-products .site-main-col > .badge-row .badge-center,
  .page-contact .site-main-col > .badge-row .badge-center {
    justify-self: center;
    width: 100%;
    max-width: 302px;
    height: auto;
  }

  .page-quote .site-main-col > .badge-row img:last-child,
  .page-products .site-main-col > .badge-row img:last-child,
  .page-contact .site-main-col > .badge-row img:last-child {
    justify-self: end;
    width: 100%;
    max-width: 364px;
    height: auto;
  }
}

@media screen and (max-width: 1024px) {
  .projects-nav {
    font-size: clamp(16px, 2.3vw, 32px);
  }

  .form-row-three {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .content-stage {
    --stage-trim-l: 5.8601vw;
    --stage-trim-r: 6.4272vw;
    --stage-cap-h: 3.7807vw;
    --stage-seam: 0.3781vw;
  }

  .site-body {
    grid-template-columns: 1fr;
  }

  .page-home .site-body {
    grid-template-columns: minmax(0, 482fr) minmax(0, 1058fr);
    background-color: var(--eftink-metal-1);
    background-image: url("images/hd/ui/metal_siding_left.jpg");
    background-repeat: repeat-y;
    background-size: 31.2987% auto;
    background-position: top left;
  }

  .page-home .site-sidebar,
  .page-home .site-main-col {
    display: contents;
  }

  .page-home .main-banner {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .content-stage {
    grid-column: 1 / -1;
    grid-row: 2;
    --stage-trim-l: 4.7718vw;
    --stage-trim-r: 4.7718vw;
    --stage-cap-h: 4.5643vw;
  }

  .page-home .content-stage::before {
    height: var(--stage-cap-h);
    margin-bottom: 0;
    background-image: url("images/hd/ui/mobile/slider_top.jpg");
    background-size: 100% 100%;
    background-position: left top;
  }

  .page-home .content-stage::after {
    height: var(--stage-cap-h);
    margin-top: 0;
    background-image: url("images/hd/ui/mobile/slider_bot.jpg");
    background-size: 100% 100%;
    background-position: left bottom;
  }

  .page-home .content-stage > .content-trim:first-of-type {
    background-image: url("images/hd/ui/mobile/slider_left.jpg");
    margin-right: 0;
  }

  .page-home .content-stage > .content-trim:last-of-type,
  .page-home .content-stage > .content-trim:last-child {
    background-image: url("images/hd/ui/mobile/slider_right.jpg");
    margin-left: 0;
  }

  .page-home .site-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-bottom: 0;
  }

  .page-home .sidebar-left-top {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .page-home .sidebar-intro {
    grid-column: 1 / -1;
    grid-row: 5;
    background: var(--eftink-metal-1) url("images/hd/ui/metal_siding_left.jpg") repeat-y top left / 100% auto;
  }

  .page-home .sidebar-intro-bot {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  .page-home .badge-row {
    grid-column: 1 / -1;
    grid-row: 7;
    background: var(--eftink-metal-1) url("images/hd/ui/metal_siding_left.jpg") repeat-y top left / 100% auto;
  }

  .sidebar-intro-body,
  .sidebar-intro-body.pageformat,
  .sidebar-intro-tight {
    font-size: 15px !important;
    line-height: 1.4 !important;
    padding: 10px 12px !important;
  }

  .site-nav a {
    margin-top: -2px;
  }

  .site-nav a:first-child {
    margin-top: 0;
  }

  .sidebar-contact-card {
    margin-top: 0;
  }

  #content_area_div {
    width: 94%;
    padding: 12px 0 20px;
  }

  .form-content h1,
  h1 {
    font-size: 22px;
  }

  .form-row-two,
  .form-row-three {
    display: block;
  }

  .site-form input,
  .site-form textarea,
  .site-form select {
    font-size: 16px;
  }

  .swatch-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px 10px;
  }

  .gallery-stage .p7IGM01-prev-arrow,
  .gallery-stage .p7IGM01-next-arrow {
    transform: scale(1.25);
  }

  .badge-row,
  .page-quote .site-main-col > .badge-row,
  .page-products .site-main-col > .badge-row,
  .page-contact .site-main-col > .badge-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }

  .badge-row img:first-child,
  .badge-row .badge-center,
  .badge-row img:last-child,
  .page-quote .site-main-col > .badge-row img:first-child,
  .page-quote .site-main-col > .badge-row .badge-center,
  .page-quote .site-main-col > .badge-row img:last-child,
  .page-products .site-main-col > .badge-row img:first-child,
  .page-products .site-main-col > .badge-row .badge-center,
  .page-products .site-main-col > .badge-row img:last-child,
  .page-contact .site-main-col > .badge-row img:first-child,
  .page-contact .site-main-col > .badge-row .badge-center,
  .page-contact .site-main-col > .badge-row img:last-child {
    width: auto;
    max-width: 240px;
    height: auto;
    justify-self: center;
  }

  .projects-nav {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    font-size: 16px;
    gap: 4px 8px;
    padding: 8px 6px;
  }

  .projects-nav a {
    padding: 6px 4px;
  }

  .projects-grid-section h1 {
    font-size: 20px;
    padding: 10px 8px;
  }

  .projects-table,
  .projects-table tbody,
  .projects-table tr,
  .projects-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .projects-table {
    border-spacing: 0;
    border: 0;
  }

  .projects-table td {
    margin-bottom: 8px;
  }

  body.projects-shell .projects-table {
    margin-bottom: 0;
  }

  body.projects-shell > .site-footer-wrap {
    margin-top: 0;
  }

  .site-footer-body {
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    gap: 8px;
  }

  .site-footer-main p {
    overflow-wrap: break-word;
  }

  .footer-credit {
    margin-right: 0;
    padding: 4px 0 0;
  }
}
