/* MP Tubulars — static rebuild of mptubulars.com (Squarespace replica)
   Palette from live site: navy #121641 · red #AC1C22 · light grey #C2C2C2
   Themes: site default = navy (white text) · light = grey · bright = red */
:root {
  --navy: #121641;
  --red: #AC1C22;
  --grey: #C2C2C2;
  --ink: #1d1d1d;
  --body-grey: #595959;
  --card-heading: #8f8f8f;
  --on-navy: #d7d9e4;
  --white: #fff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Header / nav (transparent, overlaps first section) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
}
.site-header .logo img.logo-desktop { height: 74px; width: auto; }
.site-header .logo img.logo-mobile { display: none; height: 32px; width: auto; }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}
.main-nav a:hover, .main-nav a.active { opacity: .7; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 5px;
  letter-spacing: .01em;
}
.btn:hover { background: #8f171c; }
.section-red .btn { background: var(--navy); }
.section-red .btn:hover { background: #0c0f2e; }

/* ---------- Full-bleed background-image sections ---------- */
.bg-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--navy);
  color: #fff;
  display: flex;
  min-height: 66vh;
  padding: 120px 5vw 80px;
}
.bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: var(--ov, .15);
}
.bg-section > .wrap { position: relative; z-index: 1; width: 100%; }
.bg-section.align-bottom-left { align-items: flex-end; }
.bg-section.align-center { align-items: center; }
.bg-section h1, .bg-section h2 { color: #fff; }
.bg-section p { color: var(--on-navy); }

/* Home hero */
.hero h1 {
  color: #fff;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 40px;
  max-width: 14em;
}

/* Page-title banners (sales / purchasing / why-mpt) */
.bg-title h2 { font-size: clamp(38px, 4.5vw, 60px); font-weight: 700; }
.bg-title .eyebrow { margin-bottom: 14px; }

/* CTA over image ("Let's work together.") */
.cta-bg h2 { font-size: clamp(34px, 3.8vw, 50px); font-weight: 700; margin-bottom: 30px; }

/* ---------- Flat sections ---------- */
.section { padding: 90px 5vw; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: var(--on-navy); }
.section-grey { background: var(--grey); color: var(--ink); }
.section-white { background: #fff; color: var(--ink); }
.section-red { background: var(--red); color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; }

/* Overlap card on navy + inline image (home "Why choose MPT.") */
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.split .split-img { margin-left: -90px; }
.split .split-img img { width: 100%; height: 600px; object-fit: cover; }
.card {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 70px 64px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.card h2 {
  color: var(--card-heading);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
}
.card p { color: var(--body-grey); margin-bottom: 30px; }

/* Two-column features ("What we do" / "Drill Pipe Solutions") */
.section-heading {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  margin-bottom: 54px;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 80px;
}
.feature img { width: 100%; height: 430px; object-fit: cover; margin-bottom: 40px; }
.feature h3 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; margin-bottom: 20px; }
.feature p { margin-bottom: 28px; max-width: 42em; }
.section-grey .feature p { color: #333; }

/* Prose blocks */
.prose { max-width: 900px; }
.prose h2 { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; margin-bottom: 26px; }
.prose h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; margin-bottom: 22px; }
.prose p { margin-bottom: 24px; }
.section-white .prose p { color: #333; }
.prose .btn { margin-top: 8px; }

/* Philosophy — text over near-opaque image (original overlay 0.87) */
.philosophy { --ov: .87; }
.philosophy .prose { max-width: 980px; margin: 0 auto; }

/* Quote band (red) */
.quote { max-width: 1000px; margin: 0 auto; }
.quote h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 26px;
  color: #fff;
}
.quote p { color: #f2d7d8; font-size: 18px; }

/* Eyebrow */
.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 18px;
  color: var(--on-navy);
}

/* ---------- Team (navy theme, inline portraits) ---------- */
.team-member {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: center;
  padding: 60px 0;
}
.team-member img { width: 100%; }
.team-member h3 { font-size: 28px; font-weight: 700; letter-spacing: .06em; margin-bottom: 4px; color: #fff; }
.team-member h4 { font-size: 17px; font-weight: 600; color: #c9ccdc; margin-bottom: 22px; }
.team-member p { color: var(--on-navy); margin-bottom: 18px; }
.team-heading { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; color: #fff; padding-top: 40px; }

/* ---------- Contact ---------- */
.contact-page { min-height: 66vh; }
.contact-columns {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 90px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; margin-bottom: 20px; }
.contact-info p { margin-bottom: 6px; color: var(--on-navy); }
.contact-info a { color: var(--on-navy); }
.contact-info .label { font-weight: 700; margin-top: 22px; color: #fff; }
.contact-info .rule { border: 0; border-top: 1px solid rgba(255,255,255,.3); margin: 26px 0; }
.contact-social { margin-top: 30px; }

/* Contact form (Netlify Forms) */
.contact-form form { width: 100%; }
.hp-field { position: absolute; left: -9999px; }
.name-fieldset { border: 0; margin-bottom: 22px; }
.name-fieldset legend, .form-row label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.req { font-weight: 400; color: #9ea2b8; font-size: 13px; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.name-grid label { font-size: 13px; font-weight: 400; color: #c9ccdc; margin: 6px 0 6px; }
.form-row { margin-bottom: 22px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 3px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,.1);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .btn { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.form-success { margin-top: 20px; color: #fff; font-weight: 600; }
.form-error { margin-top: 20px; color: #ffb3b6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b8bbcc;
  padding: 80px 5vw 90px;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
}
.site-footer .logo img { width: 260px; margin-bottom: 34px; opacity: .92; }
.social { display: flex; gap: 14px; }
.social a { opacity: .75; }
.social a:hover { opacity: 1; }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-links h4 { color: #9ea2b8; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-links a {
  display: block;
  color: #b8bbcc;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split .split-img { margin-left: 0; order: -1; }
  .split .split-img img { height: 340px; }
  .card { margin: -60px 5vw 0; padding: 44px 32px; }
  .features, .contact-columns { grid-template-columns: 1fr; }
  .feature img { height: 300px; }
  .team-member { grid-template-columns: 1fr; gap: 30px; }
  .team-member img { max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 799px) {
  .site-header .logo img.logo-desktop { display: none; }
  .site-header .logo img.logo-mobile { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 10px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 5vw; }
  .nav-toggle { display: block; }
  .site-header.solid-when-open { background: var(--navy); }
}
