/* Ayu Makeup Studio: palet Navy Elegan (rujuk brand/brand.md) */
:root {
  --navy: #2F3E5C;
  --blue: #CFD9E8;
  --rose: #C99A8B;      /* aksen sahaja, bukan teks kecil di latar cerah */
  --ivory: #FAF5EF;
  --cocoa: #2E2A29;
  --white: #FFFFFF;
  --wa: #146C43;        /* hijau gelap supaya teks putih senang dibaca */
  --wa-hover: #0F5636;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(47, 62, 92, .10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums; /* supaya "RM200" tak nampak macam "RM2oo" */
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
h3 { font-size: 1.6rem; }
h1 em { font-weight: 500; display: block; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* ===== Bar atas ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 245, 239, .97);
  border-bottom: 1px solid var(--blue);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1rem;
  padding-block: .6rem;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
}
.logo span { font-style: italic; font-weight: 500; }
.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: var(--cocoa);
  text-decoration: none;
  font-size: .95rem;
  padding-block: .5rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--rose); }

/* ===== Umum ===== */
.eyebrow {
  margin: 0 0 .6rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: .5rem;
  background: var(--rose);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: 5.5rem; }
.section--tint { background: var(--blue); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h2, .section--navy .eyebrow { color: var(--ivory); }
.section__head { text-align: center; margin-bottom: 2.75rem; }
.section__head .eyebrow::after { margin-inline: auto; }

/* ===== Butang ===== */
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.actions--center { justify-content: center; margin-top: 2.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .75rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--cocoa); }
.btn--light { background: var(--ivory); color: var(--navy); }
.btn--light:hover { background: var(--blue); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.icon { width: 22px; height: 22px; flex: none; }

/* ===== Hero ===== */
.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 3rem;
}
.lead { max-width: 32rem; margin: 1.25rem 0 2rem; font-weight: 300; font-size: 1.15rem; }
.hero__media img {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block: 3rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rose);
}
.highlights li { padding: 1.4rem 1rem; text-align: center; }
.highlights strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
}
.highlights span { font-size: .95rem; }

/* ===== Pakej ===== */
.packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.card h3 { min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.price {
  margin: .5rem 0 1rem;
  font-family: var(--serif);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: lining-nums;
}
.price small { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin-right: .2rem; vertical-align: top; }
.card ul { margin: 0 0 1.5rem; padding: 0; list-style: none; flex: 1; }
.card li { padding: .55rem 0; border-top: 1px solid var(--blue); font-size: .98rem; }
.card--featured { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.card--featured h3, .card--featured .price { color: var(--ivory); }
.card--featured li { border-color: rgba(207, 217, 232, .3); }
.badge {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  margin: 0;
  padding: .25rem .9rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--cocoa);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}

.addons {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.75rem;
  border: 1px dashed var(--rose);
  border-radius: var(--radius);
}
.addons h3 { text-align: center; margin-bottom: .75rem; }
.addons dl { margin: 0; }
.addons dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.addons dl div + div { border-top: 1px solid var(--blue); }
.addons dd { margin: 0; font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ===== Galeri ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption {
  padding: .6rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== Testimoni ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--rose);
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 1.25rem; flex: 1; }
.quote blockquote p { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-style: italic; line-height: 1.4; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption strong { display: block; font-weight: 600; color: var(--navy); }
.quote figcaption span { font-size: .9rem; }

/* ===== Cara tempah ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: langkah;
}
.steps li { text-align: center; counter-increment: langkah; }
.steps li::before {
  content: counter(langkah);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto .85rem;
  border: 2px solid var(--rose);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-variant-numeric: lining-nums;
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.45rem; }
.steps span { color: var(--blue); }

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 0 6.5rem; /* ruang untuk butang terapung */
  background: var(--cocoa);
  color: var(--ivory);
  text-align: center;
}
.footer p { margin: .25rem 0; }
.logo--footer { color: var(--ivory); margin-bottom: .5rem !important; }
.footer__note { font-size: .85rem; color: var(--blue); }

/* ===== WhatsApp terapung ===== */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 52px;
  padding: .75rem 1.25rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--wa);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.wa-float:hover { background: var(--wa-hover); }
.wa-float .icon { width: 26px; height: 26px; }

/* ===== Tablet ===== */
@media (max-width: 980px) {
  .packages { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* ===== Telefon ===== */
@media (max-width: 760px) {
  .topbar__inner { justify-content: center; padding-block: .4rem 0; }
  .logo { font-size: 1.35rem; }
  .nav { width: 100%; justify-content: space-around; gap: .5rem; }
  .section { scroll-margin-top: 5.75rem; }

  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; text-align: center; }
  .hero__text .eyebrow::after { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero .actions { flex-direction: column; }
  .hero__media img { max-width: 380px; }

  .highlights { grid-template-columns: 1fr; margin-top: 2.25rem; }
  .highlights li + li { border-top: 1px solid var(--blue); }
  .highlights li { padding-block: 1rem; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .actions--center { flex-direction: column; }

  .nav a { padding-block: .6rem; }

  /* Ikon sahaja di telefon supaya tak tutup kandungan */
  .wa-float { width: 58px; height: 58px; justify-content: center; padding: 0; }
  .wa-float span { display: none; }
  .wa-float .icon { width: 30px; height: 30px; }
}

@media (max-width: 560px) {
  .packages { grid-template-columns: 1fr; }
  .card h3 { min-height: 0; }
  .addons { padding-inline: 1.15rem; }
}
