/* ============================================================
   Anchor King Oilfield Services — style.css
   Palette: deep navy / charcoal + safety orange
   Type: Barlow Condensed (display) + Inter (body)
   ============================================================ */

:root {
  --navy-900: #0a1420;
  --navy-800: #0d1b2a;
  --navy-700: #12233a;
  --navy-600: #1b3352;
  --steel-100: #eef2f7;
  --steel-200: #dde5ee;
  --steel-400: #9fb0c3;
  --steel-500: #6c7f95;
  --orange-500: #ff7a1a;
  --orange-600: #e96a0d;
  --orange-100: #fff1e5;
  --white: #ffffff;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 20, 32, 0.12);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: var(--orange-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn--solid { background: var(--orange-500); color: var(--white); }
.btn--solid:hover { background: var(--orange-600); color: var(--white); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--steel-100); }

.btn--ghost-dark { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }

.btn--lg { padding: 15px 32px; font-size: 1.15rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--steel-400);
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--orange-500); flex-shrink: 0; }
.topbar__item a { color: var(--white); font-weight: 600; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.logo-chip img { height: 44px; width: auto; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-text small { color: var(--steel-400); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-200);
  text-decoration: none !important;
  position: relative;
  padding: 4px 0;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--orange-500);
  transition: right 0.2s ease;
}
.nav__links > a:not(.btn):hover { color: var(--white); }
.nav__links > a:not(.btn):hover::after { right: 0; }
.nav__cta { margin-left: 8px; padding: 10px 20px; font-size: 0.98rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%, #060d16 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -14px;
  background-image:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(255, 122, 26, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(13, 27, 42, 0.88) 0%, rgba(10, 20, 32, 0.9) 60%, rgba(6, 13, 22, 0.94) 100%),
    url("../images/hero-anchor-truck.webp");
  background-size: auto, auto, cover;
  background-position: center, center, center 35%;
  background-repeat: no-repeat;
  filter: blur(3px) saturate(0.85);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding: 110px 24px 90px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero__kicker {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--orange-500);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
.hero__title span { color: var(--orange-500); }
.hero__sub {
  margin: 26px auto 36px;
  max-width: 640px;
  color: var(--steel-400);
  font-size: 1.12rem;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}
.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange-500);
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--navy-800); color: var(--steel-200); }
.section--dark .section__title { color: var(--white); }
.section--accent { background: var(--steel-100); }

.section__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--orange-500);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  color: var(--navy-800);
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__lead { color: inherit; opacity: 0.85; font-size: 1.08rem; }
.section p + p { margin-top: 14px; }

.section__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section__grid--rev { grid-template-columns: 1fr 1.1fr; }

/* ---------- About ---------- */
.about__cards { display: grid; gap: 18px; }
.about-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.about-card svg { width: 26px; height: 26px; fill: var(--orange-500); margin-bottom: 10px; }
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.about-card p { font-size: 0.95rem; color: var(--steel-500); }

.about__photo {
  width: 100%;
  height: auto;
  margin-top: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  background: var(--navy-700);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.service:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 26, 0.5);
  background: var(--navy-600);
}
.service__icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-500);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 10px;
}
.service p { font-size: 0.92rem; color: var(--steel-400); }
.service--highlight {
  background: linear-gradient(150deg, var(--orange-500), var(--orange-600));
  border-color: transparent;
}
.service--highlight .service__icon { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.service--highlight p { color: rgba(255, 255, 255, 0.9); }
.service--highlight:hover { background: linear-gradient(150deg, var(--orange-600), var(--orange-600)); }
.service__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Line locating ---------- */
.locating__panel {
  background: var(--navy-800);
  color: var(--steel-200);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.locating__badge {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.locating__badge svg { width: 30px; height: 30px; fill: var(--orange-500); }
.locating__panel h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}
.locating__tag { color: var(--orange-500); font-size: 0.88rem; margin: 4px 0 20px; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.locating__photo {
  width: 100%;
  height: auto;
  margin: 24px 0 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Gallery ---------- */
.section--gallery { background: var(--steel-100); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.gallery__item:hover { transform: translateY(-4px); }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery__item figcaption {
  padding: 12px 16px 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel-500);
}

/* ---------- Safety ---------- */
.safety__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.safety-card {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.safety-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.safety-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--steel-200);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.safety-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.safety-card p { font-size: 0.93rem; color: var(--steel-500); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
  color: var(--white);
  padding: 64px 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.1;
}
.cta p { margin-top: 8px; opacity: 0.92; max-width: 520px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact__info { display: grid; gap: 26px; }
.contact-item { display: flex; gap: 16px; }
.contact-item svg {
  width: 22px; height: 22px;
  fill: var(--orange-500);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 3px;
}
.contact-item p { color: var(--steel-400); font-size: 0.96rem; }
.contact-item a { color: var(--steel-200); font-weight: 600; }
.contact-item a:hover { color: var(--orange-500); }

.contact__form {
  background: var(--navy-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.contact__form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 22px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact__form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 16px;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--steel-500); }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--orange-500);
}
.contact__form textarea { resize: vertical; }
.form__note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--steel-500);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: var(--steel-400);
  padding: 56px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.logo-chip--footer { padding: 6px 12px; }
.logo-chip--footer img { height: 40px; }
.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.footer__brand p { font-size: 0.88rem; margin-top: 6px; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__contact a {
  color: var(--steel-400);
  font-size: 0.92rem;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--orange-500); text-decoration: none; }
.footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 0.8rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .safety__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .section__grid, .section__grid--rev { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav__cta { margin: 16px 0 0; justify-content: center; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero__inner { padding: 80px 24px 64px; }
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .topbar__inner { justify-content: center; }
  .topbar__item--right { display: none; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .safety__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .nav__brand-text { display: none; }
  .logo-chip img { height: 38px; }
}
