* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1f2937;
  background-color: #ffffff;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  text-transform: uppercase;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #c8102e 0%, #111 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}
.brand-name {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a,
.site-nav .nav-link {
  color: #111;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}
.site-nav a.active,
.site-nav a:hover,
.site-nav .nav-link:hover {
  color: #c8102e;
}
.site-nav a.active::after,
.site-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 3px;
  border-radius: 999px;
  background: #c8102e;
}
.nav-toggle {
  display: none;
  background: #c8102e;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: grid;
  place-items: center;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.75)),
    url("https://energy-saving.co.id/assets/img/steam-boiler.jpg") center/cover no-repeat;
  opacity: 1;
}
.hero-inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3rem;
  padding: 3.5rem 2rem 5rem;
  min-height: 90vh;
}
.hero-copy {
  text-align: left;
  max-width: 720px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #93c5fd;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.hero-text {
  margin: 1.5rem 0 2rem;
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 38rem;
  color: #e5e7eb;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}
.hero-card {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.hero-card-primary {
  background: linear-gradient(135deg, #c8102e 0%, #8b0a1a 100%);
  color: #fff;
}
.hero-card-primary h3,
.hero-card h4 {
  margin-top: 0;
}
.hero-card-primary h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}
.hero-card-primary p,
.hero-card p {
  margin: 1rem 0 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
}
.hero-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #e2e8f0;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.hero-card h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
  border: none;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: #c8102e;
  color: white;
}
.primary:hover {
  background: #a00d24;
}
.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
.tertiary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.tertiary:hover {
  background: rgba(255, 255, 255, 0.23);
}

/* Sections */
.section {
  padding: 5rem 0;
  background: #ffffff;
}
.section-alt {
  background: #f8fafc;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.slider-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8102e;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.5vw, 2.75rem);
  line-height: 1.1;
  color: #0f172a;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.05);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(200, 16, 46, 0.12);
  color: #c8102e;
  font-size: 1.25rem;
}
.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #0f172a;
}
.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #475569;
}
.feature-list li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
}
.grid-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-gallery img {
  border-radius: 1rem;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Cards */
.card,
.service-card,
.product-item,
.contact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  color: #374151;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.05);
}
.card h3,
.service-card h3,
.product-item h3 {
  margin-top: 0;
  color: #0f172a;
}
.card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}
.card ul li {
  margin-bottom: 0.5rem;
}

.service-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  color: inherit;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  border-color: #c8102e;
  background-color: #f8f5f7;
}
.service-card h3 {
  margin-top: 0;
  color: #0f172a;
}
.service-card p {
  margin: 0;
}

/* Slider */
.slider {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}
.slider-track {
  display: flex;
  gap: 1rem;
}
.slider-card {
  min-width: min(320px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
  flex-shrink: 0;
  display: grid;
  gap: 1rem;
  color: #374151;
}
.slider-card h3 {
  margin-top: 0;
  color: #0f172a;
}
.card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #c8102e;
  color: white;
  font-weight: 700;
}
.slider-controls {
  display: flex;
  gap: 0.75rem;
}
.slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1f2937;
  font-size: 1.25rem;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}
.slider-button:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}
.slider::-webkit-scrollbar {
  display: none;
}
.slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Products */
.product-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-item ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}
.product-item ul li {
  margin-bottom: 0.5rem;
}

.service-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-detail-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #334155;
  font-size: 0.98rem;
}

.service-detail-list li::before {
  content: "↳";
  color: #2563eb;
  font-size: 1rem;
  line-height: 1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fff;
  color: #0f172a;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c8102e;
}
.contact-card p {
  margin: 0 0 1rem;
  line-height: 1.7;
}
.contact-card strong {
  color: #0f172a;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .grid-gallery,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-inner {
    padding: 4rem 0 2rem;
    gap: 2rem;
  }
  .hero {
    min-height: auto;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-card {
    min-height: auto;
  }
  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(320px, 100%);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-left: 1px solid #e2e8f0;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.08);
    transform: translateX(110%);
    transition: transform 220ms ease;
    gap: 0;
  }
  .site-nav.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav a,
  .site-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #111;
  }
  .slider-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .slider-controls {
    justify-content: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }
  .hero-inner {
    gap: 1.5rem;
    padding: 2rem 0;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero-text {
    font-size: 1rem;
    margin: 1rem auto 1.5rem;
  }
  .hero-card,
  .card,
  .service-card,
  .product-item,
  .contact-card {
    padding: 1.5rem;
  }
  .section {
    padding: 3rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .site-nav {
    width: 100%;
    right: 0;
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
}
