/* HE5 AI corporate home — brand: #F07900, #F8A145, #D35100, #151515 */

.he5-home {
  --he5-orange: #f07900;
  --he5-peach: #f8a145;
  --he5-orange-dark: #d35100;
  --he5-bg: #0a0a0a;
  --he5-surface: #151515;
  --he5-text: #e8e8e8;
  --he5-muted: #9ca3af;
}

.he5-home section {
  position: relative;
}

/* Section with photographic background */
.he5-section-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.he5-section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(21, 21, 21, 0.88) 45%,
    rgba(10, 10, 10, 0.94) 100%
  );
  z-index: 0;
}

.he5-section-bg.he5-section-bg--warm::before {
  background: linear-gradient(
    160deg,
    rgba(10, 10, 10, 0.94) 0%,
    rgba(21, 21, 21, 0.82) 40%,
    rgba(240, 121, 0, 0.12) 100%
  );
}

.he5-section-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero */
.he5-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  background-image: url("../images/home/home-hero.jpg");
}

.he5-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.he5-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--he5-peach);
  background: rgba(240, 121, 0, 0.12);
  border: 1px solid rgba(248, 161, 69, 0.35);
  margin-bottom: 1.25rem;
}

.he5-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.he5-hero h1 .accent {
  color: var(--he5-orange);
  display: block;
}

.he5-hero-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--he5-text);
  max-width: 540px;
  margin-bottom: 2rem;
}

.he5-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.he5-hero-visual {
  position: relative;
}

.he5-hero-card {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(21, 21, 21, 0.98));
  border: 1px solid rgba(240, 121, 0, 0.25);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(240, 121, 0, 0.08);
}

.he5-hero-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.he5-hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--he5-text);
  font-size: 0.95rem;
}

.he5-hero-card li i {
  color: var(--he5-orange);
  margin-top: 0.2rem;
  font-size: 1rem;
}

.he5-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.he5-trust-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--he5-orange);
}

.he5-trust-item span {
  font-size: 0.85rem;
  color: var(--he5-muted);
}

/* Section headers */
.he5-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.he5-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--he5-peach);
  margin-bottom: 0.75rem;
}

.he5-section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.he5-section-header p {
  color: var(--he5-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Products */
.he5-products {
  padding: 5rem 0;
  background-image: url("../images/home/home-products-bg.jpg");
}

.he5-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.he5-product-card {
  background: rgba(21, 21, 21, 0.85);
  border: 1px solid rgba(240, 121, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.he5-product-card:focus-visible {
  outline: 2px solid var(--he5-orange);
  outline-offset: 3px;
}

.he5-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 121, 0, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(240, 121, 0, 0.12);
}

.he5-product-thumb {
  height: 200px;
  overflow: hidden;
  background: #1a1a1a;
}

.he5-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.he5-product-card:hover .he5-product-thumb img {
  transform: scale(1.05);
}

.he5-product-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.he5-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(248, 161, 69, 0.2), rgba(240, 121, 0, 0.1));
  border: 1px solid rgba(240, 121, 0, 0.3);
  color: var(--he5-orange);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.he5-product-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.he5-product-body p {
  color: var(--he5-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.he5-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.he5-product-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(240, 121, 0, 0.12);
  color: var(--he5-peach);
  border: 1px solid rgba(240, 121, 0, 0.2);
}

.he5-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--he5-orange);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.he5-product-card:hover .he5-product-cta {
  color: var(--he5-peach);
  gap: 0.75rem;
}

/* Services */
.he5-services {
  padding: 5rem 0;
  background-image: url("../images/home/home-services-bg.jpg");
}

.he5-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.he5-service-card {
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.he5-service-card:hover {
  border-color: rgba(240, 121, 0, 0.35);
  background: rgba(30, 30, 30, 0.95);
}

.he5-service-card i {
  font-size: 1.75rem;
  color: var(--he5-orange);
  margin-bottom: 1rem;
}

.he5-service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.he5-service-card p {
  font-size: 0.9rem;
  color: var(--he5-muted);
  line-height: 1.6;
}

.he5-cta-banner {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(240, 121, 0, 0.15), rgba(211, 81, 0, 0.08));
  border: 1px solid rgba(240, 121, 0, 0.35);
}

.he5-cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.he5-cta-banner p {
  color: var(--he5-text);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* Contact */
.he5-contact {
  padding: 5rem 0 6rem;
  background-image: url("../images/home/home-contact-bg.jpg");
}

.he5-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.he5-contact-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.he5-contact-intro p {
  color: var(--he5-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.he5-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.he5-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--he5-text);
  font-size: 0.95rem;
}

.he5-contact-list i {
  color: var(--he5-orange);
  width: 1.25rem;
}

.he5-contact-form-wrap {
  background: rgba(21, 21, 21, 0.92);
  border: 1px solid rgba(240, 121, 0, 0.2);
  border-radius: 20px;
  padding: 2rem;
}

.he5-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.he5-form-group {
  margin-bottom: 1rem;
}

.he5-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--he5-text);
  margin-bottom: 0.4rem;
}

.he5-form-group input,
.he5-form-group textarea,
.he5-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.8);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.he5-form-group input:focus,
.he5-form-group textarea:focus,
.he5-form-group select:focus {
  outline: none;
  border-color: var(--he5-orange);
}

.he5-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.he5-form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .he5-hero-grid,
  .he5-contact-grid {
    grid-template-columns: 1fr;
  }

  .he5-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .he5-product-grid {
    grid-template-columns: 1fr;
  }

  .he5-form-row {
    grid-template-columns: 1fr;
  }

  .he5-hero {
    min-height: auto;
    padding-top: 3rem;
  }
}
