/* El-Eman Inspection and Corrosion Services
   Signature: the MTM magnetogram trace (.trace). Everything else stays quiet. */

:root {
  /* Brand, taken from the ECS logo */
  --indigo-900: #1d1757;
  --indigo-700: #2e2580;
  --indigo-500: #3c2c99;
  --red: #d42a1a;
  --red-dark: #b32213;
  --cyan: #0d9cd0;
  /* Surfaces and text */
  --paper: #f2f4f7;
  --white: #ffffff;
  --text: #25233b;
  --muted: #5c5a73;
  --rule: #d8dae4;
  --grid-line: rgba(46, 37, 128, 0.07);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  /* Type scale: perfect fourth from 17px */
  --fs-sm: 0.8125rem;
  --fs-ui: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);

  --gutter: 16px;
  --header-h: 76px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 var(--fs-body)/1.7 var(--serif);
  font-optical-sizing: auto;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-500); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--indigo-700);
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--indigo-700); color: #fff; padding: 8px 14px; font-family: var(--sans); }
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ buttons -- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7em 1.35em;
  font: 600 var(--fs-ui)/1.2 var(--sans);
  color: #fff; background: var(--red);
  border: 1.5px solid var(--red); border-radius: 2px;
  text-decoration: none; cursor: pointer;
}
.button:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.button--small { min-height: 40px; padding: 0.5em 1em; font-size: var(--fs-sm); }
.button--ghost { background: transparent; color: var(--indigo-700); border-color: var(--indigo-700); }
.button--ghost:hover { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; }
.button--light { background: #fff; color: var(--indigo-700); border-color: #fff; }
.button--light:hover { background: var(--paper); border-color: var(--paper); color: var(--indigo-700); }
.button--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.button--ghost-light:hover { background: #fff; color: var(--indigo-700); border-color: #fff; }

/* ------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.site-logo img { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-family: var(--sans); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a {
  display: block; padding: 10px 12px;
  font-size: var(--fs-ui); font-weight: 600; color: var(--indigo-700); text-decoration: none;
}
.menu > li > a:hover { color: var(--red); }
.menu > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.sub-toggle { display: none; }

.sub-menu {
  position: absolute; top: 100%; left: -16px;
  width: min(680px, 90vw);
  display: none; grid-template-columns: 1fr 1fr; gap: 20px 32px;
  margin: 0; padding: 24px 28px; list-style: none;
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--indigo-700);
  box-shadow: 0 18px 40px -20px rgba(29, 23, 87, 0.35);
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { display: grid; }
.menu-group__name { display: block; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group a { display: block; padding: 6px 0; font-size: var(--fs-ui); line-height: 1.35; color: var(--text); text-decoration: none; }
.menu-group a strong { color: var(--indigo-700); font-weight: 700; }
.menu-group a:hover, .menu-group a:hover strong { color: var(--red); }

.nav-toggle { display: none; }

@media (max-width: 919px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    font: 600 var(--fs-ui) var(--sans); color: var(--indigo-700);
    background: none; border: 1.5px solid var(--rule); border-radius: 2px; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--rule);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .menu { flex-direction: column; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
  .menu > li > a { flex: 1; padding: 14px 0; font-size: var(--fs-body); }
  .sub-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; color: var(--indigo-700);
  }
  .sub-toggle span { width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
  .sub-toggle[aria-expanded="true"] span { transform: rotate(-135deg) translateY(-3px); }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .sub-menu, .has-sub.is-open > .sub-menu {
    position: static; width: 100%; grid-template-columns: 1fr;
    padding: 0 0 16px; border: 0; box-shadow: none; gap: 14px;
  }
  .has-sub.is-open > .sub-menu { display: grid; }
}

/* -------------------------------------------- signature: the trace ---- */
.trace { position: relative; }
.trace svg { display: block; width: 100%; height: 100%; overflow: visible; }
.trace__line { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trace__mark {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--paper);
}
.trace__mark::after { /* drop line to the pipe axis */
  content: ""; position: absolute; left: 6px; top: 14px; width: 2px; height: 400px;
  background: repeating-linear-gradient(var(--red) 0 4px, transparent 4px 8px);
  opacity: 0.55;
}
.trace__label {
  position: absolute; left: 22px; top: -6px; width: max-content; max-width: min(30ch, 40vw);
  font: 600 var(--fs-sm)/1.3 var(--sans); color: var(--red);
  background: var(--paper); padding: 2px 6px;
}
.trace--hero { height: clamp(150px, 22vw, 260px); overflow: hidden; }
.trace--strip { height: 72px; overflow: hidden; margin-top: 40px; }
.trace--strip .trace__line { stroke-width: 1.5; }
.trace--strip .trace__mark { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.trace--strip .trace__mark::after { left: 4px; top: 10px; }

/* the single orchestrated motion: hero trace draws, anomalies light up as the scan passes them */
@media (prefers-reduced-motion: no-preference) {
  .trace--hero .trace__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: scan 2.6s linear 0.3s forwards; }
  .trace--hero .trace__mark { opacity: 0; transform: scale(0.4); animation: mark 0.35s ease-out forwards; animation-delay: calc(0.3s + var(--d) * 2.6s); }
  @keyframes scan { to { stroke-dashoffset: 0; } }
  @keyframes mark { to { opacity: 1; transform: scale(1); } }
}

/* chart-paper backdrop for heroes */
.home-hero, .page-hero, .svc-hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* --------------------------------------------------------------- home -- */
.home-hero { padding-top: clamp(48px, 8vw, 104px); overflow: hidden; }
.home-hero__grid { display: grid; gap: 32px; align-items: end; }
.home-hero h1 {
  font-size: var(--fs-h1); font-weight: 800; font-stretch: 112%;
  letter-spacing: -0.02em; line-height: 1.02; max-width: 16ch;
}
.home-hero__side p:first-child { font-size: var(--fs-lead); line-height: 1.55; max-width: 42ch; }
.home-hero .trace--hero { margin-top: clamp(32px, 5vw, 64px); }
.home-hero__caption {
  margin: 0; padding-block: 14px 18px;
  font: 400 var(--fs-sm)/1.5 var(--sans); color: var(--muted);
  border-top: 2px solid var(--indigo-700);
}
.home-hero__caption::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 8px; }
@media (min-width: 920px) {
  .home-hero__grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}

.intro { padding-block: clamp(56px, 8vw, 96px); }
.intro__grid { display: grid; gap: 48px; }
.intro__text { font-size: var(--fs-lead); line-height: 1.6; max-width: 60ch; margin: 0; }
.clients h2 { font-size: var(--fs-ui); font-stretch: 100%; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.clients__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 24px 28px; align-items: center; }
.clients__logos img { max-height: 64px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: 0.85; }
@media (min-width: 920px) { .intro__grid { grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; } }

.home-services { padding-bottom: clamp(56px, 8vw, 96px); }
.home-services__head { display: grid; gap: 8px; padding-block: 40px 24px; border-top: 2px solid var(--indigo-700); }
.home-services__head h2 { font-size: var(--fs-h1); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
.home-services__head p { color: var(--muted); max-width: 52ch; margin: 0; }
@media (min-width: 920px) { .home-services__head { grid-template-columns: 1fr 1fr; align-items: end; } }

.proof { background: var(--paper); padding-block: clamp(56px, 8vw, 96px); }
.proof__grid { display: grid; gap: 40px; align-items: center; }
.proof__images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.proof__images img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.proof__text h2 { margin-bottom: 20px; max-width: 20ch; }
.proof__text p { max-width: 56ch; }
.proof__text .actions { margin-top: 24px; }
@media (min-width: 920px) { .proof__grid { grid-template-columns: 6fr 5fr; gap: 72px; } }

.contact-band { padding-block: clamp(56px, 8vw, 96px); }
.contact-band__grid { display: grid; gap: 40px; }
.contact-band h2 { font-size: var(--fs-h1); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; margin-bottom: 16px; }
.contact-band__direct { font: 600 var(--fs-lead)/1.6 var(--sans); }
.contact-band__direct a { color: var(--indigo-700); }
@media (min-width: 920px) { .contact-band__grid { grid-template-columns: 5fr 7fr; gap: 80px; } }

/* ------------------------------------------------- service list (loop) -- */
.service-group { display: grid; gap: 8px; padding-top: 24px; }
.service-group + .service-group { margin-top: 24px; }
.service-group__name { font-size: var(--fs-ui); font-stretch: 100%; font-weight: 600; color: var(--red); padding-top: 28px; }
@media (min-width: 920px) {
  .service-group { grid-template-columns: 200px 1fr; gap: 32px; }
  .service-group__name { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

.service-row {
  position: relative;
  display: grid; gap: 12px 32px;
  padding-block: 28px;
  border-top: 1px solid var(--rule);
}
.service-group__rows > .service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-row__heading { font-size: inherit; }
.service-row__heading a { text-decoration: none; color: inherit; }
.service-row__heading a::after { content: ""; position: absolute; inset: 0; } /* whole row is the link */
.service-row__short { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; color: var(--indigo-700); line-height: 1; }
.service-row__title { display: block; margin-top: 8px; font-size: var(--fs-ui); font-weight: 500; color: var(--muted); line-height: 1.35; }
.service-row__excerpt { margin: 0; max-width: 58ch; }
.service-row__image { width: 100%; max-width: 240px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); background: var(--white); }
.service-row:hover .service-row__short { color: var(--red); }
.service-row:focus-within { outline: 3px solid var(--cyan); outline-offset: 4px; }
.service-row:focus-within a:focus-visible { outline: none; }
@media (min-width: 720px) {
  .service-row { grid-template-columns: 5fr 7fr; }
  .service-row__image { grid-column: 2; }
}
@media (min-width: 1100px) {
  .service-row { grid-template-columns: 4fr 6fr 220px; align-items: start; }
  .service-row__image { grid-column: auto; }
}

/* ---------------------------------------------------- page heroes ------ */
.page-hero { padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; margin-bottom: 20px; }
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 56ch; margin: 0; }
.services-index { padding-block: 24px clamp(56px, 8vw, 96px); }

/* ------------------------------------------------- single service ----- */
.svc-hero { padding-top: clamp(32px, 5vw, 64px); overflow: hidden; }
.svc-hero__grid { display: grid; gap: 40px; align-items: center; }
.breadcrumb { font: 500 var(--fs-sm) var(--sans); color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.svc-hero h1 { line-height: 1; }
.svc-hero__short {
  display: block;
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 6rem); font-weight: 800; font-stretch: 125%;
  letter-spacing: -0.03em; overflow-wrap: anywhere;
}
.svc-hero__title { display: block; margin-top: 14px; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 600; font-stretch: 100%; line-height: 1.2; color: var(--text); }
.svc-hero__excerpt { font-size: var(--fs-lead); line-height: 1.55; max-width: 48ch; margin: 24px 0 28px; }
.svc-hero__image { margin: 0; background: var(--white); border: 1px solid var(--rule); padding: 8px; }
.svc-hero__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
@media (min-width: 980px) { .svc-hero__grid { grid-template-columns: 6fr 5fr; gap: 64px; } }

.svc-section { padding-block: 40px; }
.svc-section__grid { display: grid; gap: 24px; padding-top: 32px; border-top: 1px solid var(--rule); }
.svc-hero + .svc-section .svc-section__grid { border-top: 0; padding-top: 24px; }
.svc-section__head h2 { max-width: 14ch; }
.svc-section--tint { background: var(--paper); margin-block: 40px; }
.svc-section--tint .svc-section__grid, .svc-section--tint + .svc-section .svc-section__grid { border-top: 0; }
@media (min-width: 920px) {
  .svc-section__grid { grid-template-columns: 4fr 8fr; gap: 64px; }
  .svc-section__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

.key-figures { margin: 28px 0 0; border-top: 2px solid var(--indigo-700); }
.key-figures > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.key-figures dt { font: 500 var(--fs-sm)/1.35 var(--sans); color: var(--muted); }
.key-figures dd { margin: 2px 0 0; font: 700 1.25rem/1.25 var(--sans); font-stretch: 108%; color: var(--indigo-700); }

.prose { max-width: 68ch; }
.prose figure { margin: 32px 0; }
.prose figure img { border: 1px solid var(--rule); }
.prose figcaption, .figures figcaption { margin-top: 8px; font: 400 var(--fs-sm)/1.5 var(--sans); color: var(--muted); }
@media (min-width: 720px) {
  .prose figure.is-aside { float: right; width: 42%; margin: 6px 0 16px 28px; }
}
.prose::after { content: ""; display: table; clear: both; }

.svc-video { width: 100%; aspect-ratio: 16 / 9; background: var(--indigo-900); }

.advantages { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 48px; }
.advantages li { padding-top: 14px; border-top: 2px solid var(--indigo-700); }
.advantages h3 { margin-bottom: 6px; }
.advantages p { margin: 0; color: var(--text); }
@media (min-width: 720px) { .advantages { grid-template-columns: 1fr 1fr; } }

.detail { display: grid; gap: 32px; }
.detail__image { margin: 0; }
.detail__image img { border: 1px solid var(--rule); width: 100%; }
@media (min-width: 1100px) { .detail--with-image { grid-template-columns: 7fr 5fr; align-items: start; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 20px 64px; min-height: 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  font: 800 2.25rem/1 var(--sans); font-stretch: 125%; color: var(--red);
}

.specs { width: 100%; border-collapse: collapse; border-top: 2px solid var(--indigo-700); font-family: var(--sans); }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.specs th { width: 45%; font-weight: 500; font-size: var(--fs-ui); color: var(--muted); }
.specs td { font-weight: 700; color: var(--indigo-700); }

.figures { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.figures figure { margin: 0; }
.figures img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--white); border: 1px solid var(--rule); }
.figures a:hover img { border-color: var(--indigo-500); }

.case h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); font-stretch: 108%; }
.case__date { font: 600 var(--fs-ui) var(--sans); color: var(--red); margin: 8px 0 20px; }
.case__gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.case__gallery img { height: 150px; width: auto; border: 1px solid var(--rule); }
.case__gallery a:hover img { border-color: var(--indigo-500); }
.case__doc { display: inline-flex; align-items: center; gap: 16px; font: 600 var(--fs-ui)/1.35 var(--sans); }
.case__doc img { border: 1px solid var(--rule); background: #fff; }

.partner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.partner img { max-height: 72px; max-width: 200px; width: auto; }
.partner > div { flex: 1 1 320px; }
.partner p:last-child { margin: 0; font-family: var(--sans); font-weight: 600; }

.documents { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--indigo-700); font-family: var(--sans); }
.documents li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.documents a { font-weight: 600; }
.filetype { display: inline-block; flex: none; font: 600 0.75rem/1 var(--sans); color: var(--muted); border: 1px solid var(--rule); padding: 4px 6px; border-radius: 2px; }

.cta-band { background: var(--indigo-700); color: #e9e7f7; padding-block: 56px; margin-top: 40px; }
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 52ch; }
@media (min-width: 920px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; } }

.other-services { padding-block: 64px 96px; }
.other-services h2 { margin-bottom: 16px; }
.other-services .service-row { padding-block: 22px; }
.other-services .service-row__short { font-size: 1.5rem; }

/* ----------------------------------------------------------- contact -- */
.contact-page { padding-block: 64px 96px; }
.contact-page__grid { display: grid; gap: 48px; }
.contact-page h2 { margin-bottom: 24px; }
.contact-details { margin: 0; border-top: 2px solid var(--indigo-700); font-family: var(--sans); }
.contact-details > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-details dt { font-size: var(--fs-sm); color: var(--muted); }
.contact-details dd { margin: 2px 0 0; font-weight: 600; font-size: var(--fs-lead); color: var(--indigo-700); }
@media (min-width: 920px) { .contact-page__grid { grid-template-columns: 4fr 7fr; gap: 80px; } }

.contact-form { display: grid; gap: 4px 20px; font-family: var(--sans); }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; font-size: var(--fs-ui); color: var(--indigo-700); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--sans); color: var(--text);
  background: var(--white); border: 1.5px solid #b9bbcc; border-radius: 2px;
}
.field textarea { resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--indigo-700) 50%), linear-gradient(135deg, var(--indigo-700) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo-500); outline: 3px solid var(--cyan); outline-offset: 0; }
.field textarea::placeholder { color: #8a889e; }
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ footer -- */
.site-footer { background: var(--indigo-900); color: #cfcce6; font-family: var(--sans); font-size: var(--fs-ui); }
.site-footer__grid { display: grid; gap: 40px; padding-block: 64px 48px; }
.site-footer__brand img { width: 200px; height: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 32ch; }
.site-footer h2 { font-size: var(--fs-ui); font-stretch: 100%; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--fs-sm); color: #a9a5cc; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1.4fr; } }

/* ---------------------------------------------------------- lightbox -- */
.lightbox { max-width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(29, 23, 87, 0.88); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; background: #fff; }
.lightbox__caption { color: #fff; font: 500 var(--fs-ui) var(--sans); text-align: center; margin: 12px 0 0; }
.lightbox__close {
  position: absolute; top: -48px; right: 0; width: 44px; height: 44px;
  font: 400 2rem/1 var(--sans); color: #fff; background: none; border: 0; cursor: pointer;
}
