/* Blueline Oilfield Rentals: temporary holding page, November 13, 2026 */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #007DB5;
  --blue-deep: #00689A;
  --navy: #091D35;
  --white: #FFFFFF;
  --inset: max(1.25rem, 5vw);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.4;
  color: var(--navy);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(.75rem, 1.4vw, 1.25rem) var(--inset);
  background: var(--white);
  border-bottom: 6px solid var(--blue);
}

.brand {
  flex: none;
  width: clamp(13.5rem, 12vw + 7rem, 20rem);
}

.brand img { width: 100%; height: auto; }

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
  text-align: right;
}

.header-label {
  margin: 0;
  font-size: clamp(.95rem, .5vw + .7rem, 1.35rem);
  font-weight: 700;
  letter-spacing: .06em;
}

.header-phone {
  /* Padding enlarges the tap area; the matching negative margin keeps the layout unchanged. */
  display: inline-block;
  margin: -.55rem 0;
  padding: .55rem 0;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
}

.header-phone:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .15em;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  min-height: 30rem;
  color: var(--white);
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 45%;
}

/* Navy over the left of the scene so the copy reads cleanly; the rig stays clear on the right. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(9, 29, 53, .95) 0%,
      rgba(9, 29, 53, .9) 28%,
      rgba(9, 29, 53, .66) 44%,
      rgba(9, 29, 53, .2) 60%,
      rgba(9, 29, 53, 0) 72%),
    linear-gradient(0deg, rgba(9, 29, 53, .35) 0%, rgba(9, 29, 53, 0) 28%);
}

/* At mid widths the copy takes more of the frame, so the navy reaches further. */
@media (min-width: 52em) and (max-width: 80em) {
  .hero::before {
    background:
      linear-gradient(90deg,
        rgba(9, 29, 53, .95) 0%,
        rgba(9, 29, 53, .9) 36%,
        rgba(9, 29, 53, .7) 54%,
        rgba(9, 29, 53, .2) 68%,
        rgba(9, 29, 53, 0) 78%),
      linear-gradient(0deg, rgba(9, 29, 53, .35) 0%, rgba(9, 29, 53, 0) 28%);
  }
}

.hero-content {
  text-shadow: 0 1px 14px rgba(9, 29, 53, .55);
  width: 100%;
  max-width: calc(54rem + 2 * var(--inset));
  padding: clamp(2.5rem, 6vh, 5.5rem) var(--inset);
}

.eyebrow {
  margin: 0 0 clamp(.9rem, 1.6vh, 1.4rem);
  font-size: clamp(1rem, .9vw + .55rem, 1.75rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue);
}

h1 {
  margin: 0 0 clamp(1rem, 2vh, 1.6rem);
  font-size: clamp(2.4rem, 4.5vw + .6rem, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.lede {
  margin: 0 0 clamp(1.75rem, 4vh, 2.75rem);
  max-width: 40em;
  font-size: clamp(1.1rem, .6vw + .85rem, 1.65rem);
  font-weight: 500;
  line-height: 1.45;
}

.lede span { display: block; }

.call-panel {
  display: inline-flex;
  align-items: center;
  gap: clamp(.9rem, 1.4vw, 1.6rem);
  max-width: 100%;
  padding: clamp(1rem, 1.6vw, 1.5rem) clamp(1.25rem, 2.4vw, 2.5rem);
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  text-shadow: none;
  border-radius: 2px;
}

.call-panel:hover { background: var(--blue-deep); }

.call-panel:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.call-icon {
  flex: none;
  width: clamp(2.25rem, 3vw + .75rem, 4rem);
  height: auto;
}

.call-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.call-label {
  font-size: clamp(1rem, .6vw + .8rem, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
}

.call-number {
  font-size: clamp(2rem, 2.6vw + 1.2rem, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 2rem;
  padding: clamp(1rem, 1.8vw, 1.75rem) var(--inset);
  font-size: clamp(.95rem, .5vw + .75rem, 1.4rem);
  font-weight: 700;
  background: var(--white);
}

.site-footer p { margin: 0; }

/* Tablet and phone: portrait scene, copy over the darker forest below the rig. */

@media (max-width: 51.99em) {
  .br-wide { display: none; }

  /* Spare height goes above the copy, so the copy sits low over the forest rather than leaving a gap below the call panel. */
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 0;
  }

  .hero-media,
  .hero::before {
    inset: 0 0 auto 0;
    aspect-ratio: 1122 / 1282;
  }

  .hero-media img { object-position: 50% 0; }

  .hero::before {
    background: linear-gradient(180deg,
      rgba(9, 29, 53, .12) 0%,
      rgba(9, 29, 53, .05) 30%,
      rgba(9, 29, 53, .5) 48%,
      rgba(9, 29, 53, .84) 66%,
      rgba(9, 29, 53, .97) 86%,
      var(--navy) 100%);
  }

  .hero-content {
    max-width: none;
    padding: 56vw var(--inset) 2.75rem;
  }

  h1 {
    font-size: clamp(2.4rem, 7.4vw, 3.75rem);
    text-wrap: balance;
  }
}

/* Phone */

@media (max-width: 35.99em) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    padding: .7rem var(--inset) .85rem;
  }

  .brand { width: min(13rem, 60vw); }

  .header-contact {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 .75rem;
    text-align: left;
  }

  .header-label { font-size: .875rem; }

  .header-phone { font-size: 1.5rem; }

  .eyebrow {
    font-size: clamp(.875rem, 4.6vw, 1rem);
    letter-spacing: .04em;
  }

  .lede { font-size: 1.1rem; }

  .call-panel {
    display: flex;
    width: 100%;
    gap: .8rem;
    padding: 1rem 1.1rem;
  }

  .call-icon { width: clamp(1.75rem, 8vw, 2.5rem); }

  .call-label { font-size: .95rem; }

  .call-number { font-size: clamp(1.4rem, 8vw, 2.25rem); }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    font-size: .95rem;
  }
}
