/* --- 1. GLOBAL & RESET --- */
* {
  box-sizing: border-box;
}

:root {
  --red: #E31B23; /* Warna merah disesuaikan persis seperti referensi */
  --dark: #202124;
  --muted: #6e7277;
  --line: #e9e9e9;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: #202124;
  background: #fff;
  font-family: "DM Sans", sans-serif;
}

h1, h2, h3, b {
  font-family: Manrope, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  width: min(1240px, calc(100% - 72px));
  margin: auto;
}

/* --- TOPBAR & HEADER --- */
.topline {
  height: 29px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.top-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header {
  height: 68px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px #0000000b;
}

.navrow {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* PENGATURAN UKURAN LOGO AGAR RAPI DAN TIDAK KEBESARAN */
.brand img, 
.brand-logo-img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.brand b {
  display: block;
  font-size: 13px;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  color: var(--red);
  font-size: 9px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  font-weight: 700;
}

.nav > a:not(.nav-button), .drop > a {
  transition: 0.2s;
}

.nav > a:hover, .drop > a:hover {
  color: var(--red);
}

.nav-button {
  background: var(--red);
  color: white;
  padding: 11px 18px;
  border-radius: 25px;
}

.drop {
  position: relative;
}

.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  z-index: 30;
  border: 1px solid #eee;
}

.drop:hover .drop-menu {
  display: flex;
  flex-direction: column;
}

.drop-menu a {
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  transition: 0.2s;
}

.drop-menu a:hover {
  color: var(--red);
  background: #fff5f5;
  padding-left: 20px;
}

.hamb {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
}

/* --- HERO SECTION & GRADIENT OVERLAY --- */
.hero {
  height: 420px;
  position: relative;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  /* Gradasi menyamping (kiri gelap pekat, kanan transparan) menyatu ke foto kompor */
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.75) 43%, rgba(15, 15, 15, 0.2) 100%),
    url("https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=2000&q=90")
      center center / cover no-repeat;
  transition: background 0.5s ease-in-out;
}

.hero-content {
  position: relative;
  padding: 35px 12px;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.hero-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.eyebrow i {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: var(--red);
}

.white-eyebrow {
  color: #fff;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 19px;
  color: #ddd;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 800;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.red {
  background: var(--red);
  color: white;
  box-shadow: 0 5px 14px rgba(166, 25, 46, 0.3);
}

.white {
  background: #fff;
  color: #17191c;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

.slider-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.slider-dots i.active {
  background: var(--red);
  width: 18px;
  border-radius: 4px;
}

/* --- KARTU LAYANAN & TOMBOL AREA --- */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
}

.feature-card {
  min-height: 240px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  color: white;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 24px 28px;
}

.feature-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #161616ea, #16161685);
}

.water-card {
  background-image: url("https://images.unsplash.com/photo-1620626011761-996317b8d101?auto=format&fit=crop&w=1000&q=85");
}

.stove-card {
  background-image: url("https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=1000&q=85");
}

.feature-card > div {
  position: relative;
  width: 100%;
}

.feature-card h2 {
  font-size: 23px;
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: -0.04em;
}

.feature-card p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #ddd;
}

.sub-area-container {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sub-area-title {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.sub-area-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 3px !important;
  width: 100% !important;
}

.sub-area-links a {
  display: inline-block !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding: 3px 5px !important;
  border-radius: 8px !important;
  flex: 1 1 auto !important;
  text-align: center !important;
  transition: background 0.2s;
}

.sub-area-links a:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
}

/* --- WHY US, PORTFOLIO & FOOTER --- */
.why-section {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 45px;
  padding-top: 32px;
  padding-bottom: 28px;
  align-items: center;
}

.why-intro h2, .section-title h2 {
  font-size: 22px; /* Ukuran judul section yang sudah diperkecil & rapi */
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.why-intro h2 em {
  color: var(--red);
  font-style: normal;
}

.why-intro p {
  font-size: 11px;
  line-height: 1.6;
  color: #555;
  max-width: 330px;
  margin: 0 0 13px;
}

.small {
  padding: 9px 18px;
  font-size: 10px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.benefits article {
  background: #f7f7f7;
  border-radius: 9px;
  min-height: 145px;
  padding: 19px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 9px;
}

.benefits b {
  font-size: 29px;
  color: var(--red);
}

.benefits strong {
  font-size: 11px;
}

.benefits small {
  font-size: 9px;
  line-height: 1.4;
  color: #666;
}

.portfolio-section, .articles-section {
  border-top: 1px solid #eee;
  padding-top: 26px;
  padding-bottom: 26px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}

.pill-link {
  border: 1px solid var(--red);
  border-radius: 18px;
  color: var(--red);
  padding: 7px 13px;
  font-size: 9px;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.portfolio-grid figure {
  margin: 0;
  position: relative;
  height: 135px;
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 10px 9px;
  background: linear-gradient(transparent, #0009);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.article-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px #00000008;
}

.article-card img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  display: block;
}

.article-card > div {
  padding: 10px 12px 13px;
}

.article-card small {
  color: var(--red);
  font-size: 8px;
  font-weight: 800;
}

.article-card h3 {
  font-size: 12px;
  line-height: 1.3;
  margin: 5px 0;
}

.article-card span {
  font-size: 9px;
  color: var(--red);
  font-weight: 700;
}

.contact-strip {
  background: linear-gradient(100deg, var(--red) 0%, #7d1222 57%, #343434 57%, #222 100%);
  color: #fff;
}

.contact-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-symbol {
  font-size: 38px;
  border-right: 1px solid #ffffff66;
  padding-right: 20px;
}

.contact-inner h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.contact-inner p {
  font-size: 10px;
  margin: 0;
}

.contact-inner .button {
  margin-left: auto;
}

.footer {
  background: #202124;
  color: white;
  padding: 35px 0 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 26px;
}

.brand-foot b {
  color: #fff;
}

.foot-grid p {
  font-size: 10px;
  line-height: 1.6;
  color: #c3c4c6;
}

.foot-grid h4 {
  font-size: 12px;
  margin: 3px 0 14px;
}

.foot-grid > div > a:not(.brand) {
  display: block;
  color: #d1d1d1;
  font-size: 10px;
  margin: 8px 0;
}

.foot-bottom {
  border-top: 1px solid #444;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 9px;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #13a45a;
  color: white;
  border-radius: 25px;
  padding: 12px 17px;
  z-index: 30;
  box-shadow: 0 5px 20px #0003;
  font-size: 13px;
}

.wa-float span {
  font-size: 10px;
  font-weight: 700;
  margin-left: 5px;
}

@media (max-width: 900px) {
  .nav { gap: 14px; }
  .wrap { width: calc(100% - 40px); }
  .why-section { grid-template-columns: 1fr; gap: 22px; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { gap: 20px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .topline { height: auto; padding: 7px 0; }
  .top-inner { gap: 7px; flex-wrap: wrap; font-size: 9px; }
  .top-inner span:nth-child(2) { display: none; }
  .header { height: 64px; }
  .hamb { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 22px 22px;
    box-shadow: 0 12px 18px #0002;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav > a, .drop > a { display: block; padding: 13px 0; }
  .drop-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 10px 12px;
    border: 0;
    background: #f9f9f9;
    border-radius: 6px;
  }
  .service-feature { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 9px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: span 2; }
}