/* Optima Well Resources LLC — OWL Prospector product */

:root {
  --navy: #0A2540;
  --navy-dark: #061828;
  --teal: #00B4A8;
  --charcoal: #3D4F5F;
  --sand: #D4C4A8;
  --sand-light: #EDE6DA;
  --white: #FFFFFF;
  --overlay-heavy: rgba(10, 37, 64, 0.82);
  --overlay-medium: rgba(10, 37, 64, 0.72);
  --overlay-light: rgba(10, 37, 64, 0.55);
  --header-h: 4.75rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.75rem 2rem;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.brand-lockup .logo-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-wordmark .brand-full {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand-wordmark .brand-short {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.125rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-current {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0.625rem 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: #00a89c;
  box-shadow: 0 4px 14px rgba(0, 180, 168, 0.35);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--sand-light);
}

/* ── Hero with image backdrop ── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: calc(var(--header-h) + 0.75rem) 2.5rem 2.5rem;
  background:
    linear-gradient(
      to right,
      rgba(10, 37, 64, 0.92) 0%,
      rgba(10, 37, 64, 0.78) 45%,
      rgba(10, 37, 64, 0.45) 100%
    ),
    url("../assets/hero-pumpjack-texas-sunset.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  max-width: 56rem;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero-company-name {
  font-size: clamp(0.875rem, 1.8vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.5rem;
}

.hero-product-name {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  margin: 0;
}

.hero-brand-sub {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.accent-line {
  width: 56px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  opacity: 0.96;
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero-motto {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── Regions section ── */

.regions {
  padding: 5rem 2rem;
  background: var(--sand-light);
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--charcoal);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.region-card {
  position: relative;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.region-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 37, 64, 0.92) 0%,
    rgba(10, 37, 64, 0.55) 50%,
    rgba(10, 37, 64, 0.25) 100%
  );
}

.region-card.tx {
  background-image: url("../assets/hero-pumpjack-texas-sunset.jpg");
  background-position: 70% center;
}

.region-card.ok {
  background-image: url("../assets/workover-rig-oklahoma-morning.jpg");
}

.region-card.ks {
  background-image: url("../assets/pumpjacks-kansas-plains-sunset.jpg");
}

.region-card.la {
  background-image: url("../assets/wellhead-equipment-morning.jpg");
  background-position: 60% center;
}

.region-card-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  color: var(--white);
}

.region-card-content .state {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.375rem;
}

.region-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.region-card-content p {
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.875rem * 1.5 * 2);
}

/* ── Operations banner ── */

.operations {
  position: relative;
  padding: 5rem 2rem;
  background:
    linear-gradient(
      to right,
      rgba(10, 37, 64, 0.88) 0%,
      rgba(10, 37, 64, 0.75) 100%
    ),
    url("../assets/wellhead-equipment-morning.jpg") center / cover no-repeat;
  color: var(--white);
}

.operations-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.operations h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.operations p {
  font-size: 1.0625rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.operations p strong {
  color: var(--teal);
  font-weight: 600;
}

.operations .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 1;
  margin-bottom: 0.875rem;
}

/* ── Value props ── */

.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.08);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.value-card:hover {
  border-color: rgba(0, 180, 168, 0.3);
  box-shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
}

.value-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.55;
}

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer p {
  font-size: 0.8125rem;
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ── Install prompt (PWA) ── */

.install-banner {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  max-width: calc(100% - 2rem);
}

.install-banner.visible {
  display: flex;
}

.install-banner button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.install-banner .dismiss {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .region-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }

  .value-props {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.875rem 1.25rem;
  }

  .brand-wordmark .brand-full {
    font-size: 0.8125rem;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding: calc(var(--header-h) + 0.5rem) 1.5rem 2rem;
    text-align: center;
    background:
      linear-gradient(
        rgba(10, 37, 64, 0.88) 0%,
        rgba(10, 37, 64, 0.78) 100%
      ),
      url("../assets/hero-pumpjack-texas-sunset.jpg") center / cover no-repeat;
  }

  .hero-brand-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero-logo {
    width: 130px;
    height: 130px;
  }

  .hero-product-name {
    font-size: 2.25rem;
  }

  .hero-company-name {
    font-size: 0.8125rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .accent-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tagline {
    font-size: 1.125rem;
  }

  .hero-cta {
    justify-content: center;
  }
}
