/*
Theme Name: Earth Pro Equipment
Theme URI: https://www.earthproequipment.com
Author: Earth Pro Equipment
Description: A high-impact, responsive one-page theme for Earth Pro Equipment's mining, civil and plant support services.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: earthpro-equipment
*/

:root {
  --ink: #111412;
  --ink-soft: #1b211f;
  --paper: #f4f2ed;
  --white: #ffffff;
  --red: #d9251d;
  --red-dark: #a81712;
  --teal: #165b59;
  --teal-bright: #2f7772;
  --safety: #d6df36;
  --orange: #ef921b;
  --muted: #68706c;
  --line: rgba(17, 20, 18, 0.14);
  --container: min(1180px, calc(100% - 48px));
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
::selection { color: var(--white); background: var(--red); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  z-index: 99999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--ink);
  background: var(--white);
}

.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: 112px 0; overflow: hidden; }
.section--dark { color: var(--white); background: var(--ink); }
.section--teal { color: var(--white); background: var(--teal); }
.section-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-kicker::before,
.eyebrow::before { width: 28px; height: 3px; content: ""; background: currentColor; }
.section--dark .section-kicker,
.section--dark .eyebrow,
.section--teal .section-kicker { color: var(--safety); }
.display-title {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 8.2vw, 105px);
  font-stretch: condensed;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
  text-transform: uppercase;
}
.section-title {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}
.section-lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.section--dark .section-lead,
.section--teal .section-lead { color: rgba(255,255,255,.72); }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border: 2px solid transparent;
  color: var(--white);
  background: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.button:hover { background: var(--red-dark); transform: translateY(-2px); }
.button--ghost { border-color: rgba(255,255,255,.6); background: transparent; }
.button--ghost:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.button--dark { background: var(--ink); }
.button--dark:hover { background: var(--teal); }
.button__arrow { font-size: 20px; line-height: 0; }

.topbar { color: rgba(255,255,255,.8); background: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar__inner { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__links { display: flex; align-items: center; gap: 28px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--safety); }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.site-header__inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 226px; height: 66px; flex: 0 0 auto; overflow: hidden; text-decoration: none; }
.brand img { width: 280px; max-width: none; height: 158px; max-height: none; object-fit: contain; transform: translate(-20px, -45px); }
.brand__text { font-family: var(--display); font-size: 23px; font-weight: 900; line-height: .9; text-transform: uppercase; }
.brand__text span { color: var(--red); }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 38px); }
.primary-nav .menu,
.primary-nav > ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); padding: 0; margin: 0; list-style: none; }
.primary-nav a { position: relative; padding: 31px 0 27px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.primary-nav li:not(.menu-item-cta) a::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 3px; content: ""; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.primary-nav li:not(.menu-item-cta) a:hover::after { transform: scaleX(1); }
.header-cta { min-height: 48px; padding-inline: 21px; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: var(--ink); color: var(--white); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: 730px; display: grid; align-items: stretch; color: var(--white); background: #181c1a; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; filter: saturate(.85) contrast(1.06); }
.hero::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(10,13,12,.96) 0%, rgba(10,13,12,.75) 44%, rgba(10,13,12,.22) 75%, rgba(10,13,12,.38) 100%); }
.hero::after { position: absolute; z-index: 1; right: -120px; bottom: -180px; width: 420px; height: 420px; border: 62px solid rgba(217,37,29,.82); content: ""; transform: rotate(45deg); }
.hero__inner { position: relative; z-index: 2; display: grid; min-height: 730px; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 64px; padding-block: 86px; }
.hero__content { max-width: 820px; }
.hero .eyebrow { color: var(--safety); }
.hero .display-title span { display: block; color: var(--red); }
.hero__lead { max-width: 680px; margin: 28px 0 34px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 22px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { border-top: 4px solid var(--red); background: rgba(12,15,14,.88); backdrop-filter: blur(8px); }
.hero-stat { padding: 25px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat strong { display: block; font-family: var(--display); font-size: 29px; font-weight: 700; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; }
.hero-stat span { display: block; margin-top: 7px; color: rgba(255,255,255,.58); font-size: 12px; }
.hero__rail { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero__rail .container { display: flex; min-height: 50px; align-items: center; justify-content: space-between; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.intro-copy .section-title span { color: var(--red); }
.intro-copy p { max-width: 650px; color: var(--muted); font-size: 18px; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0 0; list-style: none; }
.sector-tags li { padding: 8px 12px; border: 1px solid var(--line); background: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.intro-visual { position: relative; min-height: 570px; }
.intro-visual__main { position: absolute; inset: 0 80px 70px 0; width: calc(100% - 80px); height: calc(100% - 70px); object-fit: cover; }
.intro-visual__accent { position: absolute; right: 0; bottom: 0; width: 54%; height: 42%; border: 12px solid var(--paper); object-fit: cover; }
.intro-visual__label { position: absolute; top: 36px; right: 0; max-width: 190px; padding: 22px; color: var(--white); background: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }

.services-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.services-heading .section-lead { max-width: 460px; margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.service-card { position: relative; min-height: 285px; padding: 28px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); overflow: hidden; transition: background .25s, color .25s; }
.service-card::after { position: absolute; right: -32px; bottom: -32px; width: 82px; height: 82px; border: 16px solid rgba(255,255,255,.06); content: ""; transform: rotate(45deg); }
.service-card:hover { color: var(--ink); background: var(--safety); }
.service-card:hover::after { border-color: rgba(17,20,18,.1); }
.service-card__number { color: var(--safety); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.service-card:hover .service-card__number { color: var(--red); }
.service-card h3 { margin: 70px 0 12px; font-family: var(--display); font-size: 29px; font-weight: 700; letter-spacing: 0; line-height: 1; text-transform: uppercase; }
.service-card p { margin: 0; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.65; text-transform: uppercase; }
.service-card:hover p { color: rgba(17,20,18,.7); }

.capability-layout { display: grid; grid-template-columns: 1.08fr .92fr; }
.capability-photo { position: relative; min-height: 690px; }
.capability-photo img { width: 100%; height: 100%; object-fit: cover; }
.capability-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(16,21,19,.42), transparent 55%); }
.capability-photo__caption { position: absolute; z-index: 1; right: 36px; bottom: 34px; left: 36px; display: flex; align-items: end; justify-content: space-between; gap: 20px; color: var(--white); }
.capability-photo__caption strong { max-width: 430px; font-family: var(--display); font-size: 38px; line-height: .95; text-transform: uppercase; }
.capability-panel { display: flex; justify-content: center; flex-direction: column; padding: 78px clamp(40px, 7vw, 110px); color: var(--white); background: var(--teal); }
.capability-panel .section-title { font-size: clamp(42px, 5vw, 70px); }
.capability-list { padding: 0; margin: 38px 0 0; list-style: none; }
.capability-list li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.2); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.capability-list span { color: var(--safety); font-size: 12px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(54px, 9vw, 120px); align-items: start; }
.about-story { padding-top: 38px; }
.about-story p { color: var(--muted); font-size: 18px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: var(--line); }
.value { min-height: 178px; padding: 28px 32px; background: var(--white); }
.value span { color: var(--red); font-size: 12px; font-weight: 800; }
.value strong { display: block; margin-top: 52px; font-family: var(--display); font-size: 29px; font-weight: 700; line-height: 1; text-transform: uppercase; }

.safety { padding: 0; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; }
.safety__content { display: flex; min-height: 660px; justify-content: center; flex-direction: column; padding: 90px max(40px, calc((100vw - 1180px) / 2)); padding-right: clamp(48px, 7vw, 110px); color: var(--white); background: var(--ink); }
.safety__content p { max-width: 650px; color: rgba(255,255,255,.68); font-size: 18px; }
.safety__image { min-height: 660px; }
.safety__image img { width: 100%; height: 100%; object-fit: cover; }
.safety-pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.safety-pillars span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.25); color: var(--safety); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.training-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(54px, 9vw, 120px); align-items: center; }
.training-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.training-card { min-height: 235px; padding: 28px; color: var(--white); background: var(--teal); }
.training-card:nth-child(2) { background: var(--red); transform: translateY(34px); }
.training-card__icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.35); font-family: var(--display); font-size: 23px; font-weight: 900; }
.training-card h3 { margin: 62px 0 9px; font-family: var(--display); font-size: 28px; line-height: 1; text-transform: uppercase; }
.training-card p { margin: 0; color: rgba(255,255,255,.74); font-size: 14px; }
.training-copy p { color: var(--muted); font-size: 18px; }
.training-copy .button { margin-top: 18px; }

.contact { color: var(--white); background: var(--red); }
.contact::after { position: absolute; top: -180px; right: -120px; width: 540px; height: 540px; border: 90px solid rgba(17,20,18,.12); content: ""; transform: rotate(45deg); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 110px); }
.contact .section-kicker { color: var(--ink); }
.contact .section-title { max-width: 550px; }
.contact-copy > p { max-width: 520px; color: rgba(255,255,255,.8); font-size: 18px; }
.contact-details { padding: 0; margin: 38px 0 0; list-style: none; }
.contact-details li { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.3); }
.contact-details small { display: block; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-details a,
.contact-details address { display: block; margin-top: 4px; color: var(--white); font-size: 18px; font-style: normal; font-weight: 700; text-decoration: none; }
.enquiry-form { padding: clamp(28px, 5vw, 52px); color: var(--ink); background: var(--white); box-shadow: 0 24px 80px rgba(51,0,0,.22); }
.enquiry-form__title { margin: 0 0 28px; font-family: var(--display); font-size: 32px; line-height: 1; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-field input,
.form-field select,
.form-field textarea { width: 100%; padding: 13px 0; border: 0; border-bottom: 2px solid #c9cdca; border-radius: 0; outline: 0; color: var(--ink); background: transparent; transition: border-color .2s; }
.form-field textarea { min-height: 95px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--red); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
.form-note { max-width: 260px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-alert { padding: 12px 15px; margin-bottom: 22px; border-left: 4px solid var(--teal); background: #e8f2ef; font-size: 14px; }
.form-alert--error { border-color: var(--red); background: #fae7e5; }

.site-footer { color: rgba(255,255,255,.74); background: var(--ink); }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 64px; padding: 70px 0 54px; }
.footer-brand img { width: 230px; padding: 5px 14px; background: var(--white); }
.footer-brand p { max-width: 410px; margin: 20px 0 0; font-size: 14px; }
.footer-heading { margin: 0 0 18px; color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a { font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--safety); }
.footer-contact p { margin: 0 0 12px; font-size: 14px; }
.footer-contact a { text-decoration: none; }
.footer-bottom { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom a { text-decoration: none; }

.content-page { min-height: 50vh; padding: 90px 0; }
.content-page h1 { font-family: var(--display); font-size: clamp(42px, 6vw, 72px); line-height: 1; text-transform: uppercase; }

@media (max-width: 1050px) {
  .topbar__message { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .primary-nav { position: fixed; z-index: 99; inset: 118px 0 0; display: block; padding: 30px 24px 60px; background: var(--ink); transform: translateX(100%); transition: transform .28s ease; }
  .nav-open .primary-nav { transform: translateX(0); }
  .primary-nav .menu,
  .primary-nav > ul { display: block; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.14); }
  .primary-nav a { display: block; padding: 18px 0; color: var(--white); font-family: var(--display); font-size: 27px; }
  .primary-nav li:not(.menu-item-cta) a::after { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 130px; }
  .hero__stats { display: grid; grid-template-columns: repeat(3,1fr); }
  .hero-stat { border-right: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
  .intro-grid,
  .about-grid,
  .training-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-layout { grid-template-columns: 1fr; }
  .capability-photo { min-height: 540px; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety__content { min-height: auto; padding: 90px max(24px, calc((100vw - 900px)/2)); }
  .safety__image { min-height: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --container: min(100% - 32px, 1180px); }
  .section { padding: 82px 0; }
  .topbar__links { width: 100%; justify-content: space-between; gap: 8px; font-size: 9px; }
  .site-header__inner { min-height: 72px; }
  .brand { width: 192px; height: 60px; }
  .brand img { width: 250px; height: 141px; transform: translate(-20px, -40px); }
  .primary-nav { inset-block-start: 108px; }
  .hero,
  .hero__inner { min-height: 680px; }
  .hero__inner { align-items: end; padding-top: 90px; }
  .hero::before { background: linear-gradient(0deg, rgba(10,13,12,.98) 0%, rgba(10,13,12,.72) 62%, rgba(10,13,12,.28) 100%); }
  .hero__stats { grid-template-columns: 1fr; }
  .hero-stat { display: grid; grid-template-columns: 120px 1fr; align-items: center; padding: 16px 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero__rail { display: none; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .intro-visual { min-height: 470px; }
  .intro-visual__main { right: 30px; width: calc(100% - 30px); }
  .intro-visual__accent { width: 62%; }
  .intro-visual__label { top: 22px; max-width: 150px; padding: 15px; }
  .services-heading { display: block; }
  .services-heading .section-lead { margin-top: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 230px; }
  .service-card h3 { margin-top: 48px; }
  .capability-photo { min-height: 440px; }
  .capability-photo__caption strong { font-size: 29px; }
  .capability-panel { padding: 70px 26px; }
  .values-grid,
  .training-cards,
  .form-grid { grid-template-columns: 1fr; }
  .training-card:nth-child(2) { transform: none; }
  .form-field--full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .safety__image { min-height: 420px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
