/* upcoglobal.com/contact-us
 *
 * Built to the measurements of the live site: 1140px container, Open Sans
 * body on #333, Roboto 800 headings, #00863A as the only accent, buttons with
 * 4px corners, a white 90px header and a solid green bar at the foot. The
 * hero photo is the site's own. Everything else here is spacing and restraint.
 */
:root {
  --green: #00863A;
  --green-dark: #006c2e;
  --green-tint: #e8f6ee;
  --ink: #333333;
  --ink-soft: #6b7074;
  --line: #e3e5e6;
  --field: #cfd3d6;
  --paper: #ffffff;
  --wash: #f7f8f8;
  --lift: 0 1px 2px rgba(16, 24, 20, .05), 0 12px 32px rgba(16, 24, 20, .07);
  --lift-sm: 0 1px 3px rgba(16, 24, 20, .07);
  --r: 4px;
  --container: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Roboto', Arial, sans-serif; font-weight: 800; line-height: 1.15; margin: 0; }
a { color: var(--green); }
img { max-width: 100%; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---- header, the site's ------------------------------------------------ */
header.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; }
.brand { line-height: 0; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.top-links { display: flex; align-items: center; gap: 26px; }
.top-links a {
  color: var(--green); text-decoration: none; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.top-links a:hover { color: var(--green-dark); }
.top-links a.active { position: relative; }
.top-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green); }
.top-links a.lang {
  text-transform: none; border: 1px solid var(--green); border-radius: var(--r);
  padding: 6px 14px; line-height: 1;
}
.top-links a.lang:hover { background: var(--green-tint); }

/* ---- hero, the site's own photo under a green wash --------------------- */
.hero {
  position: relative;
  background: #0d2b1a url('https://upcoglobal.com/images/2024/05/18/home-artificial-lift-automation-well-optimization-services.jpg') center 35% / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4, 38, 20, .93) 0%, rgba(4, 38, 20, .82) 45%, rgba(0, 134, 58, .55) 100%);
}
.hero .wrap { position: relative; padding-top: 68px; padding-bottom: 104px; }
.hero .eyebrow { color: #8fe3b2; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); margin: 0 0 14px; color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: 1.1rem; max-width: 62ch; margin: 0; }
.eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}

/* ---- the two modules, lifted over the hero ----------------------------- */
.mods {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  margin: -68px 0 0; position: relative; z-index: 2;
}
.mod {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--line);
  border-radius: var(--r); box-shadow: var(--lift); padding: 26px 28px 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.mod:hover { transform: translateY(-2px); }
.mod[aria-selected="true"] { border-color: var(--green); border-top-color: var(--green); }
.mod .ico {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--r); background: var(--green-tint); color: var(--green); margin-bottom: 14px;
}
.mod .ico svg { width: 22px; height: 22px; }
.mod h2 { font-size: 1.3rem; margin: 0 0 8px; }
.mod p { margin: 0 0 14px; font-size: .93rem; color: var(--ink-soft); line-height: 1.6; }
.mod .go {
  margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--green);
}
.mod[aria-selected="true"] .go::after { content: ' \2713'; }

/* ---- forms ------------------------------------------------------------- */
main.wrap { padding-bottom: 8px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--lift-sm); padding: 34px 36px; margin: 28px 0 48px;
}
.card[hidden] { display: none; }
.card > h2 {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
  margin: 34px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--green-tint);
}
.card > h2:first-of-type { margin-top: 0; }
.hint { margin: -8px 0 16px; font-size: .88rem; color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.grid label, .lines input, .lines select { min-width: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
label.wide { grid-column: 1 / -1; }
label span em { color: #c0392b; font-style: normal; margin-left: 1px; }
label small { font-weight: 400; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  border: 1px solid var(--field); border-radius: var(--r); padding: 11px 13px;
  background: var(--paper); transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: #a8adb1; }
input:hover, select:hover, textarea:hover { border-color: #b2b8bc; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint);
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7074' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
input[type=file] {
  padding: 16px; border-style: dashed; border-width: 2px; background: var(--wash);
  cursor: pointer; font-size: .9rem;
}
input[type=file]:hover { border-color: var(--green); background: var(--green-tint); }

/* ---- the phone, a compact country picker beside the number ------------- */
.phone-field { display: flex; gap: 8px; align-items: stretch; }
.phone-field .phone-cc { flex: 0 0 auto; width: auto; max-width: 42%; padding-left: 10px; padding-right: 30px; }
.phone-field input[type=tel] { flex: 1 1 auto; min-width: 0; }
.field-hint { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.field-hint:empty { display: none; }
.field-hint.is-error { color: #c0392b; font-weight: 600; }

/* ---- the parts list ---------------------------------------------------- */
.lines { display: grid; gap: 8px; margin-bottom: 14px; }
.line { display: grid; grid-template-columns: 26px 1fr 1.3fr 2.2fr 78px 92px 32px; gap: 8px; align-items: center; }
.line.head {
  font-size: 11px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .06em;
}
.line .n { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.line input, .line select { padding: 9px 10px; font-size: .92rem; }
.line .rm {
  border: 0; background: transparent; color: #b0b5b9; font-size: 1.3rem;
  cursor: pointer; line-height: 1; padding: 0; border-radius: var(--r);
}
.line .rm:hover { color: #c0392b; background: #fdf1f0; }

/* ---- the rest ---------------------------------------------------------- */
.privacy {
  flex-direction: row; align-items: flex-start; gap: 11px; margin-top: 26px;
  font-weight: 400; font-size: .88rem; color: var(--ink-soft); line-height: 1.6;
}
.privacy input { width: auto; margin-top: 4px; accent-color: var(--green); flex-shrink: 0; }
.actions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line);
}
.fine { font-size: .8rem; color: var(--ink-soft); }
.fine em { color: #c0392b; font-style: normal; }

.btn {
  display: inline-block; background: var(--green); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 600; border: 1px solid var(--green); border-radius: var(--r);
  padding: 12px 30px; text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--green-tint); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: var(--paper); color: var(--green); }
.btn.ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.btn.sm { padding: 8px 16px; font-size: .88rem; }

.alert {
  border: 1px solid #f0c3be; border-left: 4px solid #c0392b; background: #fdf3f2;
  color: #7a2e27; border-radius: var(--r); padding: 14px 16px; margin: 24px 0 0; font-size: .92rem;
}
.done { text-align: center; padding: 56px 32px; }
.lift { margin-top: -68px; position: relative; z-index: 2; box-shadow: var(--lift); }
.done .tick {
  display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--green-tint); color: var(--green); margin-bottom: 18px;
}
.done .tick svg { width: 30px; height: 30px; }
.done h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.done .lead { color: var(--ink-soft); max-width: 58ch; margin: 0 auto 26px; }
.done .num { color: var(--green); font-family: 'Roboto', monospace; letter-spacing: .04em; white-space: nowrap; }
.done .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- reach us directly ------------------------------------------------- */
.info { background: var(--wash); border-top: 1px solid var(--line); padding: 46px 0 52px; margin-top: 8px; }
.info h2 { font-size: 1.4rem; margin: 0 0 22px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.info-item { font-size: .93rem; line-height: 1.8; }
.info-item b {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green); margin-bottom: 8px; font-weight: 700;
}
.info-item a { color: var(--ink); text-decoration: none; }
.info-item a:hover { color: var(--green); text-decoration: underline; }
.info-item span { display: block; color: var(--ink-soft); }

/* ---- the site's green bar ---------------------------------------------- */
footer.foot { background: var(--green); color: #fff; text-align: center; font-size: .85rem; padding: 20px; }
footer.foot p { margin: 0; }

/* ---- narrow ------------------------------------------------------------ */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top-row { min-height: 68px; }
  .brand img { height: 42px; }
  .top-links { gap: 14px; }
  .top-links a:not(.lang):not(.active) { display: none; }
  .hero .wrap { padding-top: 40px; padding-bottom: 76px; }
  .mods { grid-template-columns: 1fr; gap: 14px; margin-top: -56px; }
  .mod { padding: 20px 22px; }
  .card { padding: 22px 20px; }
  .grid, .info-grid { grid-template-columns: 1fr; }
  .phone-field { flex-wrap: wrap; }
  .phone-field .phone-cc { max-width: 100%; width: 100%; }
  .line { grid-template-columns: 22px 1fr 1fr 30px; grid-auto-rows: auto; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .line.head { display: none; }
  .line input[name="desc[]"] { grid-column: 2 / 4; }
  .line input[name="qty[]"] { grid-column: 2; }
  .line select { grid-column: 3; }
  .actions { gap: 12px; }
  .btn { width: 100%; text-align: center; }
  .btn.sm { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .mod:hover { transform: none; }
}
