/* ==========================================================================
   TERRA VOLT — design tokens
   ========================================================================== */

:root {
  --graphite: #20282e;
  --graphite-deep: #171d22;
  --gold: #c89400;
  --gold-bright: #e0ab0e;
  --green: #365f26;
  --white: #f4f4f1;
  --grey: #747a7d;
  --grey-line: rgba(244, 244, 241, 0.14);
  --ink: #12161a;

  --font-display: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--graphite);
  line-height: 1.15;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Signature motif — the tri-stripe, lifted from the genset livery itself
   ========================================================================== */

.tristripe {
  display: block;
  width: 84px;
  height: 10px;
  background: linear-gradient(
    100deg,
    var(--white) 0 30%,
    var(--gold) 30% 62%,
    var(--green) 62% 100%
  );
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.tristripe--light {
  background: linear-gradient(
    100deg,
    var(--graphite) 0 30%,
    var(--gold) 30% 62%,
    var(--green) 62% 100%
  );
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  background: var(--graphite);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--grey-line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--white);
  display: inline-flex;
}

.logo__mark span {
  color: var(--gold);
}

.logo__tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--grey);
  text-transform: uppercase;
}

.logo__img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 0.9rem;
}

/* ==========================================================================
   Alternator brand badge (Haller) — dark chip so the light-variant logo
   stays legible when placed on light product-card backgrounds
   ========================================================================== */

.alt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--graphite);
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.9rem;
}

.alt-badge img {
  height: 14px;
  width: auto;
  display: block;
}

.alt-badge span {
  color: var(--grey);
  font-size: 0.7rem;
}

/* ==========================================================================
   Cara Pemesanan (ordering steps)
   ========================================================================== */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.75rem;
}

.step {
  position: relative;
  padding-top: 2.6rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--grey);
  font-size: 0.9rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.3rem 0;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.6rem;
}

.faq-item h3 span {
  color: var(--gold);
}

.faq-item p {
  color: var(--grey);
  font-size: 0.92rem;
  max-width: 68ch;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--grey-line);
  border-radius: 4px;
  color: var(--white);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
}

@media (max-width: 820px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--graphite-deep);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav__links.is-open {
    max-height: 320px;
  }
  .nav__links a {
    padding: 0.9rem var(--gutter);
    border-bottom: 1px solid var(--grey-line);
    width: 100%;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav {
    position: relative;
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--gold-bright);
}

.btn--ghost {
  border-color: var(--white);
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--graphite);
}

.btn--dark {
  background: var(--graphite);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--graphite-deep);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  align-items: center;
  gap: 2.5rem;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero__eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
  display: block;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__body {
  color: #cfd3d5;
  font-size: 1.05rem;
  margin-top: 1.1rem;
  max-width: 42ch;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  min-height: 320px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  min-height: 320px;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(23, 29, 34, 0.92) 0%,
    rgba(23, 29, 34, 0.15) 32%,
    transparent 55%
  );
  z-index: 1;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__media {
    clip-path: none;
    order: -1;
    min-height: 260px;
  }
  .hero__media img {
    min-height: 260px;
  }
}

/* ==========================================================================
   Feature strip
   ========================================================================== */

.features {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.feature {
  border-top: 3px solid var(--gold);
  padding-top: 1rem;
}

.feature svg {
  width: 26px;
  height: 26px;
  stroke: var(--graphite);
  margin-bottom: 0.8rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.88rem;
  color: var(--grey);
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section--alt {
  background: #eceae3;
}

.section--dark {
  background: var(--graphite);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section__kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
}

.section__head p {
  margin-top: 0.9rem;
  color: var(--grey);
  font-size: 1.02rem;
}

.section--dark .section__head p {
  color: #c6cacc;
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfded9;
  position: relative;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--grey);
  padding: 1rem;
  text-align: center;
}

.product-card__placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--grey);
}

.product-card__placeholder span {
  font-size: 0.78rem;
}

.product-card__body {
  padding: 1.4rem 1.4rem 1.6rem;
  border-top: 3px solid var(--gold);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.product-card__body p {
  color: var(--grey);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.spec-list div {
  font-size: 0.82rem;
}

.spec-list dt {
  color: var(--grey);
  font-weight: 500;
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--graphite);
}

.product-card__status {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  background: rgba(200, 148, 0, 0.14);
  color: #7a5900;
  width: fit-content;
}

.product-card__status--soon {
  background: rgba(116, 122, 125, 0.16);
  color: var(--grey);
}

/* ==========================================================================
   Tagline banner
   ========================================================================== */

.banner {
  background: var(--graphite-deep);
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.banner h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 30ch;
}

.banner h2 span {
  color: var(--gold);
}

.banner__stripes {
  display: flex;
  gap: 6px;
}

/* ==========================================================================
   Pillars / list rows
   ========================================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pillar {
  background: var(--white);
  padding: 1.75rem 1.6rem;
}

.pillar h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pillar svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.pillar p {
  color: var(--grey);
  font-size: 0.9rem;
}

/* ==========================================================================
   About page layout
   ========================================================================== */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-split p + p {
  margin-top: 1rem;
}

.about-split p {
  color: #454c50;
}

.fact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.fact-list li {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fact-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--graphite);
  font-size: 0.95rem;
}

.fact-list span {
  color: var(--grey);
  font-size: 0.88rem;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--grey-line);
}

.contact-card:last-child {
  border-bottom: none;
}

.contact-card h3 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.contact-card p,
.contact-card a {
  color: #c6cacc;
  font-size: 0.94rem;
}

.contact-card a:hover {
  color: var(--gold-bright);
}

.form-field {
  margin-bottom: 1.2rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: var(--white);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form-note {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--graphite-deep);
  color: #c6cacc;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 244, 241, 0.1);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-grid p {
  font-size: 0.88rem;
  color: #a7abad;
  max-width: 34ch;
}

.footer-links li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #83888a;
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--green);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 50;
  transition: transform 0.15s ease;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

/* ==========================================================================
   Page intro strip (About / Products / Contact headers)
   ========================================================================== */

.page-intro {
  background: var(--graphite);
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.page-intro__kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.7rem;
}

.page-intro h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 22ch;
}

.page-intro p {
  color: #c6cacc;
  margin-top: 0.9rem;
  max-width: 60ch;
  font-size: 1rem;
}

/* fade-up entrance, used once on hero only */
.reveal {
  animation: revealUp 0.7s ease both;
}
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
