/* ==========================================================================
   Layanmas Selaras Esa — Design Tokens & Base Styles
   ========================================================================== */

:root {
  --gold: #96842E;
  --gold-dark: #846D29;
  --gold-deep: #766224;
  --gold-light: #C9B65C;
  --gold-tint: #F3EEDC;
  --ink: #1F1B13;
  --ink-soft: #5B5648;
  --cream: #FBF8F0;
  --white: #FFFFFF;
  --border: #E9E2CF;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 4px 20px rgba(31, 27, 19, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(31, 27, 19, 0.14);

  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: var(--font-base);
  --container-width: 1180px;
  --header-height: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--ink); }
/* h1/h2 use the display token (currently Plus Jakarta Sans, same as body) at heavier weight. */
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-soft); }

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

.section { padding: 88px 0; }
.section--cream { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* --gold-dark on --gold-tint measures ~4.3:1, just under WCAG AA's 4.5:1 for
     this text size/weight — --gold-deep (~5.1:1) is the same hue, just darker. */
  color: var(--gold-deep);
  background: var(--gold-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--white); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-card-hover); }
.btn-outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold-tint); }
.btn-light { background: var(--white); color: var(--gold-dark); }
.btn-light:hover { background: var(--cream); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.brand-name em { font-style: normal; color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); border-color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: none;
  background: none;
  /* Vertical padding sized so the tap target clears the ~44px touch-target
     minimum — buttons don't inherit line-height 1.6 the way text elements
     do, so this needs measuring in-browser rather than assuming from the
     surrounding font-size; 14px got it to 44px in testing. */
  padding: 16px 16px;
  line-height: 1;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-btn.active { background: var(--gold); color: var(--white); }

/* Bilingual visibility. NOTE: .lang-id/.lang-en render as `display: inline`,
   so only wrap inline text runs (inside a <p>, <h1>, <li>, etc.) — never
   wrap a block-level element itself in .lang-id/.lang-en.
   The explicit html[data-lang="..."] .lang-id/.lang-en HIDE rules below (not
   just the SHOW rules) are required: at (0,0,2,1) specificity they hold even
   when a more specific descendant selector elsewhere (e.g. ".footer-col span")
   would otherwise force display:block on the inactive language's span and
   make both languages appear at once. Do not remove them as "redundant". */
.lang-id, .lang-en { display: none; }
html[data-lang="id"] .lang-id { display: inline; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="id"] .lang-en { display: none; }
html[data-lang="en"] .lang-id { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-actions { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
  .section { padding: 56px 0; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Skip link: off-screen until keyboard-focused, then jumps above the sticky
   header so keyboard/screen-reader users can bypass the nav straight to
   <main id="main-content">. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}

/* CTA banner */
.cta-banner { background: var(--gold-dark); color: var(--white); padding: 56px 0; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 480px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); }
/* The global `p { color: var(--ink-soft) }` base rule (0,0,0,1) otherwise beats
   .site-footer's inherited color for any bare <p> inside it (0,0,1,1 here wins
   instead), leaving footer addresses/copyright/phone links unreadably dark
   against the near-black background. Same class of bug as the bilingual
   .footer-col span issue above — a generic element selector clobbering a
   contextual color. Do not remove. */
.site-footer p { color: rgba(255, 255, 255, 0.75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 24px 40px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 12px; }
.footer-brand-name { color: var(--white); font-weight: 700; margin-bottom: 16px; }
.footer-office { font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5; }
.footer-col h3 { color: var(--gold-light); font-size: 1rem; margin-bottom: 18px; }
.footer-col p { font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-wa-label { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--gold-light); margin-bottom: 12px; }
.footer-col span { font-size: 0.85rem; opacity: 0.8; }
/* Sales-executive phone numbers sit inline after the name (e.g. "Yani Sastra
   · 0818 0831 8203") instead of dropping to their own line, so each person
   is one row and the column doesn't run far taller than its neighbors. */
.footer-col p a span::before { content: "\00b7"; margin: 0 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.85rem; }

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card-hover);
  z-index: 60;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
/* Soft radial gold atmosphere behind the hero instead of flat white — echoes
   the glossy gold hero illustration rather than leaving it stranded on a
   plain background. Purely decorative, so it sits behind everything and
   never intercepts clicks. */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(closest-side, var(--gold-tint), transparent 70%);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-sub { margin: 20px 0 28px; max-width: 520px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual img { border-radius: var(--radius-lg); }

/* One orchestrated entrance on load: hero copy reveals top-to-bottom with a
   short stagger, respecting prefers-reduced-motion. Kept to the hero only
   (per "one well-orchestrated page load" rather than scattering motion
   across every section) since it's the first thing a visitor sees. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    animation: hero-rise 0.6s ease-out forwards;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-visual { opacity: 0; animation: hero-rise 0.7s ease-out 0.2s forwards; }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Trust strip */
.trust-strip { background: var(--gold-tint); padding: 32px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 32px; height: 32px; color: var(--gold-dark); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 1.2rem; color: var(--ink); }
.trust-item span { font-size: 0.85rem; color: var(--ink-soft); }

/* Section heading */
.section-heading { max-width: 620px; margin-bottom: 48px; }
.intro-block { max-width: 720px; }

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

/* Preview / commitment / service cards */
.preview-card, .commitment-card, .service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.preview-card:hover, .commitment-card:hover, .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.preview-card, .commitment-card { padding: 32px; }
.service-card { padding: 28px; }
.preview-card svg, .commitment-card svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 16px; }
.preview-card h3, .commitment-card h3 { margin-bottom: 10px; }
.preview-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--gold-dark); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Page banner (shared by about/services/contact) */
.page-banner { padding: 56px 0 40px; }
.page-banner-sub { margin-top: 16px; max-width: 560px; }
.page-banner-flex { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.page-banner-flex .page-banner-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.vision-card, .mission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}
.mission-list li { display: flex; gap: 14px; margin-top: 18px; }
.mission-list svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px) {
  .page-banner-flex { grid-template-columns: 1fr; }
  .page-banner-media { order: -1; }
}

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card svg { width: 36px; height: 36px; color: var(--gold); margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.contact-form h2 { margin-bottom: 20px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.office-card h3 { margin-bottom: 8px; }
.office-card p { font-size: 0.9rem; margin-bottom: 14px; }
.map-embed { width: 100%; height: 200px; border: 0; border-radius: var(--radius-sm); }

.sales-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.sales-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.sales-card svg { width: 28px; height: 28px; color: var(--gold); margin: 0 auto 10px; }
.sales-card strong { display: block; margin-bottom: 4px; }
.sales-card span { font-size: 0.88rem; color: var(--ink-soft); }
.hours-note { text-align: center; font-weight: 600; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .sales-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sales-grid { grid-template-columns: 1fr; }
}

/* FAQ (details/summary — works without JS, readable by crawlers) */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold-dark); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 20px; }

/* Scroll reveal (one shared motion: 400ms ease-out fade-up); only when JS runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease-out, transform .4s ease-out; }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.in:nth-child(2) { transition-delay: .06s; }
  .js .reveal.in:nth-child(3) { transition-delay: .12s; }
  .js .reveal.in:nth-child(4) { transition-delay: .18s; }
}

@media (max-width: 560px) {
  /* leave room so the floating chat button never sits on the copyright line */
  .footer-bottom { padding-bottom: 96px; }
}
