/* Opus Petroleum Engineering Ltd. — static rebuild of the Wix site */
:root {
  --navy: #002E55;
  --bronze: #8A6A3C;
  --bronze-dark: #855F35;
  --steel: #406280;
  --white: #FFFFFF;
  --ink: #002E55;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, .btn, nav a, .nav-link {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 64px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.main-nav a.nav-link {
  color: var(--navy); text-decoration: none; font-size: 17px; font-weight: 500;
}
.main-nav a.nav-link:hover { color: var(--bronze); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 16px; font-weight: 500; letter-spacing: 0.06em;
  padding: 14px 36px; text-decoration: none; text-align: center;
  border: 2px solid var(--bronze); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--bronze); color: #fff; }
.btn-filled { background: var(--bronze); color: #fff; }
.btn-filled:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }

/* ---------- Hero ---------- */
.hero {
  background: url("img/hero-bg.jpg") center / cover no-repeat;
  text-align: center; padding: 84px 24px 96px;
}
.hero .hero-logo { width: 182px; margin: 0 auto 44px; }
.hero p { color: var(--navy); font-size: 18px; max-width: 1000px; margin: 0 auto 26px; }
.hero p strong { font-weight: 700; }
.hero-buttons { margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { min-width: 250px; }

/* ---------- Navy band / services ---------- */
.band-navy { background: var(--navy); color: #fff; padding: 72px 24px 88px; }
.section-title {
  text-align: center; font-size: 46px; font-weight: 500;
  letter-spacing: 0.02em; margin-bottom: 56px; color: #fff;
}
.cards {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.card {
  background: #fff; color: var(--navy); text-align: center;
  padding: 44px 26px 40px; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}
.card .icon { width: 84px; height: 84px; margin-bottom: 22px; }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; }
.card .rule { width: 44px; height: 2px; background: var(--bronze); margin: 0 auto 18px; }
.card .lead { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.card p.body { font-size: 15.5px; margin-bottom: 26px; flex: 1; }
.card .btn { font-size: 14.5px; padding: 12px 26px; }

/* ---------- Get in touch ---------- */
.get-in-touch { text-align: center; padding: 88px 24px 96px; }
.get-in-touch h2 {
  color: var(--navy); font-size: 46px; font-weight: 500;
  letter-spacing: 0.02em; margin-bottom: 40px;
}
.get-in-touch .btn { display: block; width: 340px; max-width: 90%; margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; text-align: center; padding: 44px 24px; }
.site-footer a.contact-link {
  color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 17px;
  text-decoration: underline; letter-spacing: 0.04em;
}
.site-footer a.contact-link:hover { color: #d9c9a8; }
.site-footer .copy { margin-top: 14px; font-size: 15px; }

/* ---------- Subpages ---------- */
.page-head { padding: 40px 24px 8px; }
.go-back a {
  color: var(--navy); text-decoration: none; font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
}
.go-back a:hover { color: var(--bronze); }
.page-title {
  color: var(--navy); font-size: 53px; font-weight: 500; line-height: 1.15;
  margin: 18px 0 34px;
}
.page-title .sub { display: block; }
.tagline {
  color: var(--bronze-dark); font-style: italic; font-size: 21px;
  margin: -18px 0 30px;
}
.content-block { padding: 10px 24px 80px; }
.content-block p { margin-bottom: 20px; }
.content-block h2.sec {
  color: var(--navy); font-size: 30px; font-weight: 500; margin: 44px 0 18px;
}
.pricing { margin: 30px 0; }
.pricing p { margin-bottom: 8px; }
.pricing .price-label { font-weight: 700; font-size: 19px; color: var(--navy); }
ul.ticks, ul.bullets { margin: 0 0 24px 22px; }
ul.ticks li, ul.bullets li { margin-bottom: 10px; }
.figure { margin: 30px auto; text-align: center; }
.figure img { margin: 0 auto; }
.figure .caption { margin-top: 12px; font-size: 15px; color: var(--navy); }
.figure .caption strong { display: block; font-family: "Space Grotesk", sans-serif; letter-spacing: 0.03em; }
.center { text-align: center; }
.mt { margin-top: 36px; }
.small { font-size: 14.5px; }
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--bronze-dark); text-decoration: underline; font-size: inherit; font-family: inherit;
}
.linklike:hover { color: var(--navy); }
a.inline { color: var(--bronze-dark); }
a.inline:hover { color: var(--navy); }

/* stats row (handbook) */
.stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin: 44px 0; text-align: center; }
.stat { max-width: 280px; }
.stat img { margin: 0 auto 14px; }
.stat p { font-size: 15.5px; }

/* product cards (pay online) */
.product {
  border: 1px solid #e2ddd2; padding: 34px 30px; margin: 0 auto 26px;
  max-width: 720px; text-align: center;
}
.product h3 { color: var(--navy); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.product .variant { font-size: 16px; margin-bottom: 6px; }
.product .amount { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.product .note { font-size: 14.5px; margin-top: 16px; color: #4a5a6a; }
.product .btn { margin-top: 4px; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 680px; margin: 36px auto 0; }
.field { margin-bottom: 20px; }
.field label { display: block; color: var(--navy); font-weight: 600; margin-bottom: 8px; font-size: 16px; }
.field label .req { color: var(--bronze-dark); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 13px 14px; font-size: 16px; font-family: inherit;
  border: 1px solid #c9c2b4; border-radius: 2px; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--bronze); border-color: var(--bronze); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; margin: 8px 0 26px; }
.consent input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 46, 85, 0.55); align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; max-width: 760px; width: 100%; max-height: 90vh; overflow: auto;
  padding: 56px 60px; position: relative; text-align: center;
}
.modal h2 { color: var(--navy); font-size: 44px; font-weight: 700; margin-bottom: 30px; }
.modal p { margin-bottom: 10px; font-size: 16.5px; }
.modal .close {
  position: absolute; top: 18px; right: 24px; font-size: 34px; line-height: 1;
  background: none; border: none; cursor: pointer; color: var(--navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .page-title { font-size: 38px; }
  .section-title, .get-in-touch h2 { font-size: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .main-nav { gap: 16px; }
  .main-nav a.nav-link { font-size: 15px; }
  .modal { padding: 44px 26px; }
  .modal h2 { font-size: 30px; }
  .hero-buttons .btn { min-width: 0; width: 100%; max-width: 340px; }
}
