/* ==========================================================
   Elvara Busana
   Palet: hijau pinus, sage, mauve, dan putih kehijauan.
   Bentuk lengkung (arch) di hero terinspirasi mihrab.
   ========================================================== */

:root {
  --pine: #1f3a34;
  --pine-soft: #4a635c;
  --sage: #b8c8b4;
  --sage-light: #e6ede3;
  --mist: #f5f7f4;
  --mauve: #8a4f63;
  --mauve-dark: #723f51;
  --sand: #e9e1d8;

  --font-display: "Gilda Display", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --container: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pine);
  background: var(--mist);
}

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

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

p {
  margin: 0;
}

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

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--pine);
  color: var(--mist);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--sage);
  background: var(--mist);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.nav-list a {
  display: inline-block;
  padding: 6px 0;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-list a:hover {
  border-bottom-color: var(--mauve);
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--mauve);
  color: #fff;
}

.btn-primary:hover {
  background: var(--mauve-dark);
}

.btn-outline {
  border-color: var(--pine);
  color: var(--pine);
}

.btn-outline:hover {
  background: var(--pine);
  color: var(--mist);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 56px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  max-width: 15em;
}

.hero-text p {
  max-width: 46ch;
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--pine-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-image img {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

/* ---------- Keunggulan ---------- */
.perks {
  border-block: 1px solid var(--sage);
}

.perks-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.perks-inner p {
  padding: 24px 28px;
  color: var(--pine-soft);
}

.perks-inner p + p {
  border-left: 1px solid var(--sage);
}

.perks-inner p:first-child {
  padding-left: 0;
}

.perks-inner strong {
  display: block;
  font-weight: 600;
  color: var(--pine);
}

/* ---------- Seksi umum ---------- */
.section {
  padding-block: 88px;
}

.section-tint {
  background: var(--sage-light);
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2,
.about h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.section-head p {
  max-width: 56ch;
  margin-top: 12px;
  color: var(--pine-soft);
}

/* ---------- Produk ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sand);
  border-radius: var(--radius);
}

.product-info {
  padding-top: 16px;
}

.product h3 {
  font-size: 1.4rem;
}

.product-desc {
  margin-top: 4px;
  color: var(--pine-soft);
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sage);
}

.price {
  font-weight: 600;
}

.order-link {
  font-weight: 500;
  color: var(--mauve);
  text-underline-offset: 4px;
}

.order-link:hover {
  color: var(--mauve-dark);
  text-decoration-thickness: 2px;
}

/* ---------- Cara pesan ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: langkah;
}

.steps li {
  position: relative;
  padding-top: 64px;
  counter-increment: langkah;
}

.steps li::before {
  content: counter(langkah);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--mauve);
}

.steps h3 {
  font-size: 1.4rem;
}

.steps p {
  max-width: 34ch;
  margin-top: 8px;
  color: var(--pine-soft);
}

/* ---------- Tentang ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  display: grid;
  gap: 18px;
  max-width: 62ch;
  font-size: 1.0625rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine);
  color: var(--mist);
  padding-top: 64px;
}

.site-footer a {
  color: var(--sage);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: var(--sage);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col li {
  color: #d5dfd2;
}

.footer-col p + p {
  margin-top: 4px;
}

.footer-bottom {
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid rgba(184, 200, 180, 0.3);
  font-size: 0.9rem;
  color: #b9c8b5;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .hero {
    padding-block: 40px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image img {
    max-width: 320px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps li {
    padding-top: 0;
    padding-left: 56px;
  }

  .steps li::before {
    font-size: 2.5rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Ponsel ---------- */
@media (max-width: 600px) {
  .container {
    padding-inline: 18px;
  }

  .section {
    padding-block: 64px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .nav-list {
    gap: 2px 20px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .perks-inner {
    grid-template-columns: 1fr;
  }

  .perks-inner p,
  .perks-inner p:first-child {
    padding: 16px 0;
  }

  .perks-inner p + p {
    border-left: 0;
    border-top: 1px solid var(--sage);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
