/* ============================================================
   ROSLINSAH — Property Authority Site
   Apple typography (Inter) × iProperty palette
   ============================================================ */

:root, [data-theme="light"] {
  /* Surfaces — Apple system grays */
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-2: #FBFBFD;
  --color-surface-offset: #F5F5F7;
  --color-divider: #D2D2D7;
  --color-border: #D2D2D7;

  /* Text — Apple's system text scale */
  --color-text: #1D1D1F;
  --color-text-muted: #6E6E73;
  --color-text-faint: #86868B;
  --color-text-inverse: #FFFFFF;

  /* Primary — Near black (Apple buttons) */
  --color-primary: #1D1D1F;
  --color-primary-hover: #000000;
  --color-primary-active: #000000;

  /* Accent — Refined orange (less saturated, more Apple-like) */
  --color-accent: #E8502E;
  --color-accent-hover: #C9421F;
  --color-accent-active: #A93717;
  --color-accent-soft: #FDECE6;

  /* Interactive blue (Apple system blue) */
  --color-link: #0066CC;
  --color-link-hover: #004499;

  /* Brand WhatsApp green */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1FB855;

  /* Radius — Apple-style soft */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-full: 9999px;

  /* Type scale — Apple's quieter scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.2rem + 2vw, 3rem);
  --text-3xl: clamp(2.25rem, 1rem + 3.5vw, 4.25rem);
  --text-hero: clamp(2.5rem, 1rem + 5.5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — minimal, hairline-first */
  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1280px;

  /* Fonts — Apple-style: Inter as SF Pro substitute */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --color-bg: #0D1011;
  --color-surface: #161A1D;
  --color-surface-2: #1D2226;
  --color-surface-offset: #252A30;
  --color-divider: #2A3036;
  --color-border: #3A4148;

  --color-text: #F5F5F5;
  --color-text-muted: #A0A4A8;
  --color-text-faint: #6B6F73;
  --color-text-inverse: #0D1011;

  --color-primary: #F5F5F5;
  --color-primary-hover: #FFFFFF;
  --color-primary-active: #DDDDDD;

  --color-accent: #FF6B43;
  --color-accent-hover: #FF8261;
  --color-accent-active: #FF9980;
  --color-accent-soft: #3A1810;

  --color-link: #4A9EE8;
  --color-link-hover: #6BB1ED;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0D1011;
    --color-surface: #161A1D;
    --color-surface-2: #1D2226;
    --color-surface-offset: #252A30;
    --color-divider: #2A3036;
    --color-border: #3A4148;
    --color-text: #F5F5F5;
    --color-text-muted: #A0A4A8;
    --color-text-faint: #6B6F73;
    --color-text-inverse: #0D1011;
    --color-primary: #F5F5F5;
    --color-primary-hover: #FFFFFF;
    --color-primary-active: #DDDDDD;
    --color-accent: #FF6B43;
    --color-accent-hover: #FF8261;
    --color-accent-active: #FF9980;
    --color-accent-soft: #3A1810;
  }
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.5;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  letter-spacing: -0.003em;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--color-text);
}

h1 { letter-spacing: -0.028em; font-weight: 600; }
h2 { letter-spacing: -0.022em; font-weight: 600; }

p {
  text-wrap: pretty;
  max-width: 65ch;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a, button, input, textarea, select {
  transition: all var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.container-narrow {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

section {
  padding-block: clamp(var(--space-20), 12vw, 9rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.eyebrow::before {
  display: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-3);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition-interactive);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .nav {
  background: rgba(13, 16, 17, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav--scrolled {
  background: rgba(13, 16, 17, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav__brand svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.nav__links {
  display: none;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-text);
  color: #FFFFFF;
}

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

.btn--accent {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #FFFFFF;
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-surface-offset);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-20) + var(--space-8));
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #FAF7F2;
}

.hero__eyebrow {
  color: #E5A845;
}

.hero__eyebrow::before {
  background: #E5A845;
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin-bottom: var(--space-6);
  color: #FFFFFF;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 600;
}

.hero__lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin-bottom: var(--space-10);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-16);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 700px;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(250, 247, 242, 0.15);
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.7);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stat-number { font-size: var(--text-xl); }
}

/* ============================================================
   VALUATION SECTION
   ============================================================ */
.valuation {
  background: var(--color-surface-offset);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .valuation {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.valuation__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .valuation__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-16);
  }
}

.valuation__intro h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

[data-theme="dark"] .valuation__intro h2 { color: var(--color-text); }

.valuation__intro h2 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
}

.valuation__intro p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

[data-theme="dark"] .valuation__intro p { color: var(--color-text-muted); }

.valuation__benefits {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.valuation__benefits li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text);
}

[data-theme="dark"] .valuation__benefits li { color: var(--color-text); }

.valuation__benefits svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Form */
.form {
  background: var(--color-surface);
  color: var(--color-text);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

[data-theme="dark"] .form {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.form__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.form__header h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.form__header p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.form__row {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (min-width: 540px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form__field input,
.form__field select,
.form__field textarea {
  padding: 0.75rem 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.form__field textarea {
  resize: vertical;
  min-height: 90px;
}

.form__submit {
  width: 100%;
  margin-top: var(--space-4);
  padding-block: var(--space-4);
  font-size: var(--text-base);
}

.form__note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.form__success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.form__success.is-visible { display: block; }
.form.is-submitted .form__fields { display: none; }
.form.is-submitted .form__header { display: none; }

.form__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.form__success h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.form__success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0 auto;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
  }
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

.about__image-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: var(--color-accent);
  color: #FFFFFF;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}

.about h2 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
}

.about__lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  font-weight: 400;
}

.about__body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.about__credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

/* 3 Strengths — numbered Apple-minimalist list */
.about__strengths {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: var(--space-6) 0;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.strength {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}

.strength__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.strength h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2) 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.strength p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.credential__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.credential__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   INSIGHTS / BLOG
   ============================================================ */
.insights {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
}

.insights__header {
  max-width: 700px;
  margin-bottom: var(--space-16);
}

.insights__header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.insights__header h2 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
}

.insights__header p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.insights__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .insights__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .insights__grid { grid-template-columns: repeat(3, 1fr); }
  .insights__grid > article:first-child {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .insights__grid > article:first-child .article__media {
    grid-row: 1;
    aspect-ratio: auto;
    min-height: 100%;
  }
  .insights__grid > article:first-child .article__body {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .insights__grid > article:first-child h3 {
    font-size: var(--text-xl);
  }
}

.article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-interactive);
}

.article:hover {
  border-color: var(--color-text-muted);
}

.article__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.article:hover .article__media img {
  transform: scale(1.05);
}

.article__tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.article__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
}

.article h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  line-height: 1.25;
  font-weight: 600;
}

.article__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  flex: 1;
}

.article__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.article__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-interactive);
}

.article:hover .article__link svg {
  transform: translateX(4px);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process__header {
  max-width: 700px;
  margin-bottom: var(--space-16);
}

.process__header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.process__header h2 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
}

.process__steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}

@media (min-width: 700px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-10); }
}

@media (min-width: 1000px) {
  .process__steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  position: relative;
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-divider);
  counter-increment: step;
}

.step::before {
  content: '0' counter(step);
  position: absolute;
  top: var(--space-4);
  left: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--color-surface-offset);
  position: relative;
  overflow: hidden;
}

.testimonials__header {
  max-width: 760px;
  margin-bottom: var(--space-12);
}

.testimonials__header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.testimonials__header h2 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
}

.testimonials__subhead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.55;
}

/* Video grid: 1 col mobile, 2 col desktop (featured wider) */
.testimonials__video-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .testimonials__video-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
}

.testimonial-video {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.testimonial-video:hover {
  border-color: var(--color-accent);
}

.testimonial-video__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.testimonial-video__media--vertical {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 900px) {
  .testimonial-video__media--vertical {
    max-width: none;
    margin: 0;
  }
}

/* lite-youtube-embed override to fit our containers */
.testimonial-video__media lite-youtube {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
}

.testimonial-video__content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .testimonial-video--featured .testimonial-video__content {
    padding: var(--space-8);
  }
}

.testimonial-video__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  background: rgba(196, 134, 42, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(196, 134, 42, 0.3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.testimonial-video__badge--alt {
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-text-muted);
  border-color: var(--color-divider);
}

.testimonial-video__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.015em;
}

.testimonial-video__location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.testimonial-video__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) 0;
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.testimonial-video__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-video__stat-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.testimonial-video__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.testimonial-video__context {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.testimonials__cta {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.testimonials__cta p {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

@media (min-width: 700px) {
  .testimonials__cta {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-6);
  }
}


/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--color-text);
  color: #FFFFFF;
}

.cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  z-index: 0;
}

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

.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-text) 0%, transparent 70%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.cta h2 {
  font-size: var(--text-2xl);
  color: #FFFFFF;
  margin-bottom: var(--space-5);
}

.cta h2 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
}

.cta p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto var(--space-8);
  max-width: 560px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg);
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.footer__brand svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.footer__about p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 400px;
  margin-bottom: var(--space-5);
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.footer__col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__col a:hover { color: var(--color-accent); }

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  animation: pulse 2.4s ease-out infinite;
}

.wa-float:hover {
  background: var(--color-whatsapp-hover);
  transform: scale(1.08);
}

.wa-float svg { width: 30px; height: 30px; }

@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   FAQ SECTION (Apple minimalist)
   ============================================================ */
.faq {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
}

.faq__header {
  max-width: 760px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.faq__header h2 {
  margin: var(--space-md) 0 var(--space-lg);
}

.faq__header p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 0.75rem;
  padding: 0;
  transition: border-color 200ms ease;
}

.faq__item[open] {
  border-color: var(--color-text-faint);
}

.faq__item summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform 200ms ease;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.faq__item p strong {
  color: var(--color-text);
  font-weight: 500;
}

.faq__item p a {
  color: var(--color-link);
  text-decoration: none;
}

.faq__item p a:hover {
  text-decoration: underline;
}

/* ============================================================
   MEGA MENU — Kategori dropdown (Apple-minimalist)
   ============================================================ */
.has-megamenu {
  position: relative;
}

.megamenu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  background: transparent;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  font-family: inherit;
}

.megamenu__trigger svg {
  transition: transform 200ms ease;
}

.megamenu__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.megamenu__trigger.nav__link--active {
  color: var(--color-text);
  font-weight: 500;
}

/* Desktop: hover/focus-triggered dropdown */
.megamenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: min(920px, 92vw);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.12), 0 8px 20px -6px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  z-index: 1000;
  overflow: hidden;
}

/* Invisible bridge so cursor can move from trigger to menu without closing */
.has-megamenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
}

.has-megamenu:hover::after {
  pointer-events: auto;
}

.has-megamenu:hover .megamenu,
.has-megamenu:focus-within .megamenu,
.megamenu__trigger[aria-expanded="true"] + .megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 0s;
}

.megamenu__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-6) var(--space-6) var(--space-5);
}

.megamenu__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-4) 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.megamenu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.megamenu__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 160ms ease;
}

.megamenu__list a:hover,
.megamenu__list a:focus-visible {
  background: var(--color-surface-2);
  outline: none;
}

.megamenu__item-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.megamenu__item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.megamenu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}

.megamenu__footer span {
  color: var(--color-text-muted);
}

.megamenu__footer a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.megamenu__footer a:hover {
  text-decoration: underline;
}

/* Mobile: accordion-style, expand inline below trigger */
@media (max-width: 767px) {
  .has-megamenu {
    width: 100%;
  }
  .megamenu__trigger {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3) 0;
  }
  .megamenu {
    position: static;
    transform: none;
    width: 100%;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    transition: max-height 280ms ease;
  }
  .megamenu__trigger[aria-expanded="true"] + .megamenu {
    max-height: 1200px;
    transform: none;
  }
  .megamenu__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-4) 0;
  }
  .megamenu__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-4);
    border-radius: 10px;
    margin-top: var(--space-3);
  }
}

/* ============================================================
   HAMBURGER + MOBILE NAV PANEL
   ============================================================ */
.nav__hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
}

.nav__hamburger:hover {
  background: var(--color-surface-2);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 280ms ease, opacity 200ms ease;
  transform-origin: center;
}

/* Hamburger → X animation when open */
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

/* Mobile nav panel — slides down from header.
   NOTE: .nav has backdrop-filter which creates a containing block for
   descendant position:fixed elements. We compensate with explicit height
   and use top:100% (relative to .nav bottom edge) so panel fills viewport. */
@media (max-width: 767px) {
  nav[data-mobile-nav] {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    height: 100dvh;
    max-height: calc(100vh - 64px);
    background: var(--color-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 99;
    visibility: hidden;
    padding-bottom: var(--space-12);
  }

  nav[data-mobile-nav].is-open {
    transform: translateX(0);
    visibility: visible;
  }

  nav[data-mobile-nav] .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-5) var(--space-5) var(--space-12);
    margin: 0;
    list-style: none;
  }

  nav[data-mobile-nav] .nav__links > li {
    border-bottom: 1px solid var(--color-divider);
  }

  nav[data-mobile-nav] .nav__links > li:last-child {
    border-bottom: none;
  }

  nav[data-mobile-nav] .nav__links > li > a {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text);
  }

  /* Body scroll lock when mobile nav open */
  body.nav-open {
    overflow: hidden;
  }

  /* Minimalist mobile header: hide theme toggle & Hubungi CTA.
     Only brand + hamburger remain in the bar.
     Theme toggle moves into the slide-out panel footer. */
  .nav__actions .theme-toggle,
  .nav__actions > a.btn {
    display: none;
  }

  /* Theme toggle inside mobile panel */
  nav[data-mobile-nav] .mobile-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    margin-top: var(--space-4);
    border-top: 1px solid var(--color-divider);
  }
  nav[data-mobile-nav] .mobile-panel-footer .theme-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }
  nav[data-mobile-nav] .mobile-panel-footer__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }
}

/* Hide mobile-only panel footer on desktop */
@media (min-width: 768px) {
  nav[data-mobile-nav] .mobile-panel-footer {
    display: none;
  }
}
