:root {
  --background: #f6f1e8;
  --foreground: #241914;
  --espresso: #241914;
  --ivory: #fffaf0;
  --gold: #c9a15c;
  --copper: #b95c2f;
  --sage: #536457;
  --line: rgba(36, 25, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 82px;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
}

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

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

.site-header {
  align-items: center;
  background: rgba(36, 25, 20, 0.84);
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
  color: var(--ivory);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  padding: 16px 40px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand-link {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 12px;
  min-width: 0;
  text-transform: uppercase;
}

.brand-link img {
  border-radius: 4px;
  height: 34px;
  object-fit: cover;
  object-position: left center;
  width: 62px;
}

.site-header nav {
  display: flex;
  gap: 18px;
}

.site-header nav a,
.header-action {
  font-size: 0.82rem;
  font-weight: 650;
}

.site-header nav a {
  opacity: 0.82;
}

.site-header nav a:hover,
.header-action:hover {
  opacity: 1;
}

.header-action {
  border: 1px solid rgba(201, 161, 92, 0.7);
  border-radius: 6px;
  color: var(--ivory);
  justify-self: end;
  padding: 10px 16px;
}

.hero {
  align-items: center;
  background: var(--espresso);
  color: var(--ivory);
  display: flex;
  min-height: 86svh;
  overflow: hidden;
  padding: 128px 40px 80px;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.34;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(36, 25, 20, 0.97),
      rgba(36, 25, 20, 0.78) 48%,
      rgba(36, 25, 20, 0.58)
    ),
    linear-gradient(0deg, rgba(36, 25, 20, 0.86), rgba(36, 25, 20, 0));
  inset: 0;
  position: absolute;
}

.hero-content {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 5.4rem;
  line-height: 0.95;
  margin-bottom: 28px;
  max-width: 780px;
}

.hero-lead {
  color: rgba(255, 250, 240, 0.86);
  font-size: 1.24rem;
  line-height: 1.75;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.primary-button {
  background: var(--gold);
  color: #1f1712;
}

.secondary-button {
  border: 1px solid rgba(255, 250, 240, 0.36);
  color: var(--ivory);
}

.intro-band {
  background: var(--sage);
  color: var(--ivory);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 40px;
}

.intro-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 22px;
  padding-top: 22px;
}

.intro-grid p {
  border-left: 1px solid rgba(255, 250, 240, 0.22);
  font-size: 0.92rem;
  font-weight: 750;
  margin: 0;
  padding: 8px 18px;
  text-transform: uppercase;
}

.section-block,
.portfolio-section,
.support-section,
.credentials-section,
.certificates-section,
.about-section,
.contact-section {
  padding: 96px 0;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 0.74fr;
  margin-bottom: 42px;
}

.section-heading h2,
.about-grid h2,
.contact-grid h2 {
  font-size: 2.7rem;
  line-height: 1.12;
  margin-bottom: 0;
}

.section-heading > p,
.about-copy p,
.contact-grid > div > p {
  color: rgba(36, 25, 20, 0.74);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 260px;
  padding: 24px;
}

.service-card span {
  background: var(--copper);
  display: block;
  height: 4px;
  margin-bottom: 32px;
  width: 46px;
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 18px;
}

.service-card p {
  color: rgba(36, 25, 20, 0.7);
  font-size: 0.96rem;
  line-height: 1.7;
}

.portfolio-section {
  background: #fbf5ea;
  border-top: 1px solid var(--line);
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
  background: #f0e3cf;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}

.portfolio-card.featured {
  background: var(--espresso);
  color: var(--ivory);
}

.portfolio-image {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.portfolio-album-grid {
  background: rgba(36, 25, 20, 0.92);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
}

.portfolio-album-grid .portfolio-image {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  display: block;
  height: 100%;
}

.portfolio-album-grid.three .portfolio-image:first-child {
  aspect-ratio: 16 / 9;
  grid-column: 1 / -1;
}

.portfolio-album-grid.five .portfolio-image:first-child {
  aspect-ratio: 16 / 9;
  grid-column: 1 / -1;
}

.portfolio-card.album .portfolio-meta {
  margin-bottom: 30px;
}

.portfolio-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.portfolio-meta {
  align-items: center;
  color: var(--copper);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.12em;
  margin-bottom: 42px;
  text-transform: uppercase;
}

.portfolio-card.featured .portfolio-meta {
  color: var(--gold);
}

.portfolio-number {
  color: var(--copper);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 84px;
}

.portfolio-card.featured .portfolio-number {
  color: var(--gold);
}

.portfolio-card h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.portfolio-content > p {
  color: rgba(36, 25, 20, 0.72);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.portfolio-card.featured .portfolio-content > p {
  color: rgba(255, 250, 240, 0.78);
}

.portfolio-details {
  border-top: 1px solid rgba(36, 25, 20, 0.16);
  display: grid;
  gap: 14px;
  margin: auto 0 0;
  padding-top: 18px;
}

.portfolio-card.featured .portfolio-details {
  border-top-color: rgba(255, 250, 240, 0.18);
}

.portfolio-details div {
  display: grid;
  gap: 4px;
}

.portfolio-details dt {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-card.featured .portfolio-details dt {
  color: var(--gold);
}

.portfolio-details dd {
  color: rgba(36, 25, 20, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.portfolio-card.featured .portfolio-details dd {
  color: rgba(255, 250, 240, 0.76);
}

.support-section {
  background: #f5ead9;
  border-top: 1px solid var(--line);
}

.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.support-card {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.support-gallery {
  background: rgba(36, 25, 20, 0.9);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
}

.support-card.lift .support-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.support-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.support-card.company .support-gallery img:first-child,
.support-card.lift .support-gallery img:first-child {
  grid-column: 1 / -1;
}

.support-card.drilling .support-gallery img {
  aspect-ratio: 3 / 4;
}

.support-content {
  padding: 24px;
}

.support-meta {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.support-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.support-card p {
  color: rgba(36, 25, 20, 0.72);
  line-height: 1.7;
  margin: 0;
}

.credentials-section {
  background: #fffaf0;
  border-top: 1px solid var(--line);
}

.credentials-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.permission-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.credential-card {
  background: #f0e3cf;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 250px;
  padding: 26px;
}

.credential-card::before {
  background: var(--copper);
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 34px;
  width: 46px;
}

.credential-card h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.credential-card p {
  color: rgba(36, 25, 20, 0.72);
  line-height: 1.7;
  margin: 0;
}

.certificates-section {
  background: #fbf5ea;
  border-top: 1px solid var(--line);
}

.certificate-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.certificate-card {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.certificate-image,
.certificate-document {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  width: 100%;
}

.certificate-image {
  object-fit: contain;
}

.certificate-document {
  align-items: center;
  color: var(--espresso);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.certificate-document span {
  border: 1px solid rgba(185, 92, 47, 0.42);
  border-radius: 6px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  padding: 8px 12px;
}

.certificate-document strong {
  font-size: 1.45rem;
  line-height: 1.15;
}

.certificate-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.certificate-card h3 {
  font-size: 1.22rem;
  line-height: 1.32;
  margin-bottom: 14px;
}

.certificate-card p {
  color: rgba(36, 25, 20, 0.72);
  line-height: 1.65;
  margin-bottom: 20px;
}

.certificate-link {
  border-top: 1px solid rgba(36, 25, 20, 0.14);
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-top: auto;
  padding-top: 16px;
  text-transform: uppercase;
}

.certificate-link:hover {
  color: var(--espresso);
}

.permission-image {
  background: #f7fbf8;
  object-fit: contain;
}

.permission-card .certificate-document strong {
  font-size: 1.18rem;
}

.about-section {
  background: #efe4d4;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 80px;
  grid-template-columns: 0.86fr 1fr;
}

.about-copy {
  border-left: 2px solid var(--gold);
  padding-left: 34px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact-section {
  background: var(--espresso);
  color: var(--ivory);
}

.contact-grid {
  align-items: start;
}

.contact-grid > div > p {
  color: rgba(255, 250, 240, 0.76);
}

.contact-panel {
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  padding: 30px;
}

.contact-label {
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.contact-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-panel div {
  border-bottom: 1px solid rgba(255, 250, 240, 0.16);
  padding-bottom: 18px;
}

.contact-panel dt {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.82rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact-panel dd {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.contact-panel dd a {
  color: var(--ivory);
}

.contact-panel dd a:hover {
  color: var(--gold);
}

.full-width {
  width: 100%;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 14px 24px;
  }

  .site-header nav {
    display: none;
  }

  h1 {
    font-size: 4.2rem;
  }

  .section-heading,
  .about-grid,
  .contact-grid {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .service-grid,
  .portfolio-grid,
  .certificate-grid,
  .credentials-grid,
  .permission-grid,
  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-link span {
    display: none;
  }

  .header-action {
    padding: 9px 12px;
  }

  .hero {
    min-height: 82svh;
    padding: 112px 20px 54px;
  }

  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(36, 25, 20, 0.96),
      rgba(36, 25, 20, 0.76)
    );
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .section-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro-grid,
  .portfolio-grid,
  .support-grid,
  .certificate-grid,
  .credentials-grid,
  .permission-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .portfolio-section,
  .support-section,
  .credentials-section,
  .certificates-section,
  .about-section,
  .contact-section {
    padding: 68px 0;
  }

  .section-heading h2,
  .about-grid h2,
  .contact-grid h2 {
    font-size: 2rem;
  }

  .about-copy {
    padding-left: 20px;
  }
}
