/*
Theme Name: EHS Pixel Theme
Theme URI: https://example.com/
Author: Connor / ChatGPT
Author URI: https://example.com/
Description: Custom single-page theme inspired by the EHS hydraulic equipment landing page.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ehs-pixel-theme
*/

:root {
  --ehs-blue: #0062ff;
  --ehs-blue-dark: #0040b8;
  --ehs-red: #e42833;
  --ehs-text: #111111;
  --ehs-muted: #6b6b6b;
  --ehs-bg: #ffffff;
  --ehs-dark: #050608;
  --ehs-radius-lg: 24px;
  --ehs-radius-pill: 999px;
  --ehs-shadow-soft: 0 20px 45px rgba(0,0,0,0.16);
  --ehs-max-width: 100%;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ehs-text);
  background-color: #f2f4f8;
  line-height: 1.5;
}

/* Layout helpers */

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

.ehs-section {
  padding-block: 64px;
  background-color: var(--ehs-bg);
}

.ehs-section--tight {
  padding-block: 40px;
}

.ehs-section--dark {
  background-color: var(--ehs-dark);
  color: #ffffff;
}

.ehs-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

/* Header & hero image */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.2), transparent);
  color: #ffffff;
  font-size: 14px;
}

.site-header__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 32px;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ehs-menu-icon {
  width: 20px;
  height: auto;
  position: relative;
}

.ehs-menu-icon span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
}

.ehs-menu-icon span:nth-child(1) { top: 0; }
.ehs-menu-icon span:nth-child(2) { top: 6px; }
.ehs-menu-icon span:nth-child(3) { top: 12px; }

.site-header__email {
  opacity: 0.95;
}

.site-header__center {
  display: flex;
  justify-content: center;
}

.ehs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ehs-logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, #ffffff, #ff5a5a 40%, #0040b8 80%);
}

.ehs-logo__text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.ehs-logo__title {
  font-size: 18px;
}

.ehs-logo__subtitle {
  opacity: 0.8;
}

.site-header__right {
  display: flex;
  justify-content: flex-end;
}

.ehs-btn {
  border-radius: var(--ehs-radius-pill);
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ehs-btn--primary {
  background: linear-gradient(135deg, var(--ehs-blue), var(--ehs-blue-dark));
  color: #ffffff;
  box-shadow: var(--ehs-shadow-soft);
}

.ehs-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 55px rgba(0,0,0,0.28);
}

.ehs-btn--outline-light {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #ffffff;
}

/* Top imagery hero (no text overlay like design) */

.ehs-hero-strip {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
    background-image:
    linear-gradient(to right,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.15)),
    url("https://images.pexels.com/photos/799095/pexels-photo-799095.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

/* First content block: headline + stats + image */

.ehs-headline {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.ehs-lead {
  font-size: 15px;
  color: var(--ehs-muted);
  margin-bottom: 24px;
  max-width: 460px;
}

.ehs-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.ehs-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.ehs-stat-icon {
  color: var(--ehs-red);
  font-size: 24px;
}

.ehs-stat-number {
  font-weight: 700;
  font-size: 20px;
}

.ehs-stat-label {
  color: var(--ehs-muted);
}

.ehs-photo-card {
  border-radius: var(--ehs-radius-lg);
  overflow: hidden;
  box-shadow: var(--ehs-shadow-soft);
}

.ehs-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Section titles */

.ehs-section-title {
  font-size: 30px;
  margin-bottom: 8px;
}

.ehs-section-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ehs-red);
  margin-bottom: 4px;
}

.ehs-section-text {
  font-size: 15px;
  color: var(--ehs-muted);
}

/* Products section */

.ehs-products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
}

.ehs-pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ehs-pill {
  border-radius: var(--ehs-radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid #d0d5dd;
  background-color: #ffffff;
  cursor: pointer;
}

.ehs-pill--primary {
  background-color: var(--ehs-blue);
  color: #ffffff;
  border-color: var(--ehs-blue);
}

/* Propuesta de valor section */


.ehs-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ehs-value-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.ehs-value-card {
  flex: 1 1 120px;
  text-align: center;
  font-size: 13px;
}

/* Projects */

.ehs-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}

.ehs-project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ehs-project-tab {
  padding: 7px 18px;
  font-size: 13px;
  border-radius: var(--ehs-radius-pill);
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.ehs-project-tab--active {
  background-color: #ffffff;
  color: #000000;
}

.ehs-project-card {
  position: relative;
  border-radius: var(--ehs-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 52px rgba(0,0,0,0.75);
  min-height: 320px;
}

.ehs-project-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/2881229/pexels-photo-2881229.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.ehs-project-overlay {
  position: relative;
  padding: 32px;
  max-width: 460px;
}

.ehs-project-location {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.ehs-project-title {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.ehs-project-body {
  font-size: 13px;
}

/* Contact section */

.ehs-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.ehs-form-card {
  background-color: #ffffff;
  border-radius: var(--ehs-radius-lg);
  padding: 32px;
  box-shadow: var(--ehs-shadow-soft);
}

.ehs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.ehs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.ehs-field label {
  color: var(--ehs-muted);
}

.ehs-field input,
.ehs-field textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
}

.ehs-field textarea {
  resize: vertical;
  min-height: 120px;
}


/* Footer */

.site-footer {
  background-color: var(--ehs-dark);
  color: #ffffff;
  padding-block: 40px 28px;
}

.site-footer__top {
  max-width: var(--ehs-max-width);
  margin: 0 auto 28px;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__title {
  font-size: 26px;
}

.site-footer__nav {
  max-width: var(--ehs-max-width);
  margin: 0 auto;
  padding-inline: 32px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0.85;
}

/* Responsive */

@media (max-width: 1024px) {
  .ehs-grid-2,
  .ehs-products-layout,
  .ehs-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 768px) {
  .ehs-container {
    padding-inline: 20px;
  }
  .site-header__inner {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }
  .site-header__center {
    justify-content: flex-start;
  }
  .ehs-hero-strip {
    height: 100vh;
  }
  .ehs-section {
    padding-block: 48px;
  }
  .ehs-projects-header {
    flex-direction: column;
  }
  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .ehs-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}