/* style.css */
:root {
  --black: #070808;
  --black-soft: #111314;
  --black-panel: #151718;
  --red: #be1e24;
  --red-dark: #881015;
  --tan: #b99a70;
  --cream: #eee5d7;
  --white: #f9f5ef;
  --muted: #c9c2b7;
  --line: rgba(185, 154, 112, 0.56);
  --heading: "Oswald", Impact, sans-serif;
  --hero-heading: "Anton", "Oswald", Impact, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --wrap: 1125px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background: #0b0c0d;
  color: var(--white);
  font-family: var(--body);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-wrap {
  width: min(calc(100% - 74px), var(--wrap));
  margin-inline: auto;
}

.site-shell {
  width: min(1190px, calc(100% - 28px));
  margin: 44px auto;
  background: var(--black);
  border: 2px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .95), 0 28px 80px rgba(0, 0, 0, .78);
  overflow: hidden;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 8, .97);
  border-bottom: 1px solid rgba(185, 154, 112, .22);
}

.site-header.scrolled {
  box-shadow: 0 16px 35px rgba(0, 0, 0, .45);
}

.header-layout {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 288px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 78px;
  height: 72px;
  object-fit: contain;
}

.brand strong,
.brand em {
  display: block;
  font-family: var(--heading);
  font-style: normal;
  font-weight: 700;
  line-height: 1.03;
  text-transform: uppercase;
}

.brand strong {
  font-size: 19px;
  letter-spacing: .4px;
}

.brand em {
  margin-top: 5px;
  font-size: 14px;
  letter-spacing: .8px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 29px;
}

.main-nav a {
  position: relative;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  transition: color .22s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width .22s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.phone-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 23px;
  background: var(--red);
  border-radius: 2px;
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .9px;
  transition: .22s ease;
}

.phone-link:hover {
  background: var(--tan);
  color: #101010;
}

.mobile-menu {
  display: none;
  width: 46px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(185, 154, 112, .55);
  cursor: pointer;
}

.mobile-menu span {
  width: 23px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 525px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .72) 43%, rgba(0, 0, 0, .28) 72%, rgba(0, 0, 0, .48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .58)),
    url("Images/refinery.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 55%, rgba(190, 30, 36, .22), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 42%, rgba(0, 0, 0, .35));
}

.hero-layout {
  min-height: 525px;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(720px, 100%);
  padding: 54px 0 64px;
}

.hero h1 {
  color: #fff;
  font-family: var(--hero-heading);
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .3), 0 15px 30px rgba(0, 0, 0, .68);
}

.hero p {
  max-width: 570px;
  margin: 27px 0 33px;
  color: #f3eee7;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 34px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: .22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-red {
  background: var(--red);
  color: #fff;
}

.button-red:hover {
  background: var(--tan);
  color: #111;
}

.button-dark {
  background: rgba(0, 0, 0, .2);
  border-color: rgba(238, 229, 215, .7);
  color: #fff;
}

.button-dark:hover,
.button-light:hover {
  background: var(--tan);
  border-color: var(--tan);
  color: #111;
}

.button-light {
  min-width: 252px;
  background: transparent;
  border-color: rgba(255, 255, 255, .68);
  color: #fff;
}

.button-small {
  min-height: 49px;
  padding-inline: 31px;
  font-size: 15px;
}

/* Value strip */
.value-strip {
  background: #111415;
  border-top: 1px solid rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(185, 154, 112, .18);
}

.value-grid {
  min-height: 169px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.value-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 36px 36px;
}

.value-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 35px;
  bottom: 35px;
  width: 1px;
  background: rgba(185, 154, 112, .42);
}

.value-item img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  opacity: .9;
}

.value-item h2 {
  margin-bottom: 8px;
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.value-item p {
  max-width: 184px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.value-icon {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.shield-icon::before,
.star-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 4px solid var(--tan);
}

.shield-icon::before {
  clip-path: polygon(50% 0, 92% 17%, 84% 74%, 50% 100%, 16% 74%, 8% 17%);
}

.shield-icon::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tan);
  font-family: var(--heading);
  font-size: 38px;
}

.star-icon::before {
  border-radius: 50%;
}

.star-icon::after {
  content: "☆";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tan);
  font-size: 45px;
}

/* About */
.about-section {
  background:
    linear-gradient(90deg, rgba(238, 229, 215, 1) 0%, rgba(238, 229, 215, .98) 54%, rgba(238, 229, 215, .83) 100%);
}

.about-layout {
  min-height: 332px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.about-copy {
  padding: 57px 40px 56px 0;
  color: #111;
}

.about-copy h2 {
  margin-bottom: 24px;
  color: #101010;
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
}

.about-copy p {
  max-width: 530px;
  margin-bottom: 32px;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.about-accent {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 332px;
  overflow: hidden;
}

.about-accent::before {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - var(--wrap)) / -2) 0 0;
  background:
    linear-gradient(90deg, rgba(238, 229, 215, .95), rgba(238, 229, 215, .35)),
    linear-gradient(135deg, rgba(185,154,112,.28), rgba(190,30,36,.10));
}

.accent-card {
  position: relative;
  width: min(360px, 90%);
  min-height: 205px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 2px solid rgba(185,154,112,.65);
  background: rgba(255,255,255,.28);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.accent-card img {
  width: 148px;
  opacity: .95;
}

.accent-card span {
  margin-top: 16px;
  color: #171717;
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .7px;
  text-align: center;
  text-transform: uppercase;
}

/* Services */
.services-section {
  padding: 26px 0 46px;
  background:
    radial-gradient(circle at 50% 13%, rgba(190, 30, 36, .18), transparent 18%),
    linear-gradient(180deg, #101314 0%, #080909 100%);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
}

.section-heading span {
  width: 136px;
  height: 3px;
  background: var(--red);
}

.section-heading h2 {
  position: relative;
  font-family: var(--heading);
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading h2::after {
  content: "★";
  position: absolute;
  top: 100%;
  left: 50%;
  color: var(--red);
  font-size: 18px;
  transform: translateX(-50%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.service-card {
  min-height: 210px;
  padding: 18px 22px 0;
  text-align: center;
  border-right: 1px solid rgba(185, 154, 112, .32);
  transition: .22s ease;
}

.service-card:last-child {
  border-right: 0;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  position: relative;
  height: 55px;
  margin-bottom: 13px;
  color: var(--tan);
}

.service-icon::before {
  display: block;
  color: var(--tan);
  font-family: var(--heading);
  font-size: 43px;
  line-height: 1;
}

.tool-icon::before { content: "⚒"; }
.truck-icon::before { content: "▣"; }
.wrench-icon::before { content: "⚙"; }
.box-icon::before { content: "▤"; }
.plant-icon::before { content: "▥"; }
.rig-icon::before { content: "▧"; }

.service-card h3 {
  min-height: 54px;
  margin-bottom: 10px;
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
}

.service-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.hidden-anchor {
  display: none;
}

/* CTA */
.cta-band {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent),
    linear-gradient(90deg, var(--red-dark), #d1252a, var(--red-dark));
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .5);
}

.cta-layout {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.cta-layout h2 {
  width: 100%;
  font-family: var(--heading);
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .7px;
}

/* Footer */
.site-footer {
  background: #0a0d0e;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.35fr;
  gap: 42px;
  padding: 36px 0 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 82px;
  object-fit: contain;
}

.footer-brand p {
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-brand span {
  display: block;
  font-size: 13px;
}

.quick-links h2,
.footer-contact h2 {
  margin-bottom: 13px;
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-links div {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 7px 54px;
}

.site-footer a,
.site-footer p {
  color: #ebe6de;
  font-size: 14px;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--tan);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.footer-contact b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--red);
  border-radius: 50%;
  font-size: 14px;
}

.footer-bottom {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(185, 154, 112, .16);
}

.footer-bottom p {
  color: #d8d1c8;
  font-size: 13px;
}

.social-links {
  position: absolute;
  right: 0;
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1040px) {
  .site-shell {
    width: min(100% - 18px, 1190px);
    margin: 24px auto;
  }

  .site-wrap {
    width: min(calc(100% - 38px), var(--wrap));
  }

  .header-layout {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .brand {
    min-width: 250px;
  }

  .brand img {
    width: 68px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand em {
    font-size: 13px;
  }

  .main-nav {
    gap: 16px;
  }

  .phone-link {
    min-height: 48px;
    padding-inline: 15px;
    font-size: 15px;
  }

  .value-item {
    padding-inline: 23px;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 22px;
  }

  .service-card {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(185,154,112,.18);
  }

  .service-card:nth-child(3) {
    border-right: 0;
  }

  .service-card:nth-child(n+4) {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 82px;
  }

  .header-layout {
    min-height: 82px;
    grid-template-columns: auto auto;
  }

  .mobile-menu {
    display: block;
    justify-self: end;
  }

  .phone-link {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #070808;
    border-top: 1px solid rgba(185,154,112,.25);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(185,154,112,.12);
  }

  .main-nav a::after {
    display: none;
  }

  .hero,
  .hero-layout {
    min-height: 600px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 64px);
  }

  .hero p {
    font-size: 16px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 25px 12px;
  }

  .value-item:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding: 45px 0 26px;
  }

  .about-accent {
    min-height: 245px;
    padding-bottom: 36px;
  }

  .cta-layout {
    flex-direction: column;
    justify-content: center;
    padding: 26px 0;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 13px;
    padding: 18px 0;
  }

  .social-links {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 10px);
    margin: 8px auto;
  }

  .site-wrap {
    width: calc(100% - 28px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 58px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand em {
    font-size: 11px;
  }

  .hero,
  .hero-layout {
    min-height: 640px;
  }

  .hero-buttons {
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .section-heading span {
    width: 58px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(3) {
    border-right: 0;
  }

  .service-card:nth-child(n+4) {
    border-bottom: 1px solid rgba(185,154,112,.18);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .quick-links div {
    gap: 7px 36px;
  }
}
