/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --blue: #2817DE;
  --blue-dark: #1609a8;
  --ink: #111111;
  --muted: #666666;
  --line: #e8e8e8;
  --whatsapp: #25D366;
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter Tight", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
  border-radius: 2px;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.editorial-width {
  width: min(100% - 64px, 1200px);
  margin-inline: auto;
}

.section-rule { border-top: 1px solid var(--line); }

/* ============================================================
   PLACEHOLDER (sebelum header/footer ter-load)
   ============================================================ */
#site-header:empty {
  display: block;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}
#site-footer:empty {
  display: block;
  min-height: 200px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--blue); color: #fff;
  padding: 12px 20px; font-weight: 500;
  z-index: 999; transition: top 0.3s;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1rem 0; min-height: 82px;
}
.logo-img {
  height: 40px; width: auto;
  max-width: 160px; object-fit: contain;
}
.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  border: 1px solid #d1d5db;
  background: transparent; border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem; font-family: var(--font-heading);
  font-weight: 500; color: var(--ink); cursor: pointer;
}
.menu-toggle:hover { color: var(--blue); border-color: var(--blue); }
.site-nav {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.5rem 2.25rem;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 500; font-size: 16px;
  color: var(--ink);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--blue); }
.nav-link[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: 3rem 0 2rem; }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-logo {
  height: 40px; width: auto;
  max-width: 120px; object-fit: contain;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 600; font-size: 16px;
  color: var(--ink);
}

.footer-tagline {
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.02em;
}

.footer-menu {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer-group-title {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--blue); margin-bottom: 0.9rem;
}

.footer-group-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}

.footer-link {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 400;
  color: var(--ink);
  transition: color 0.2s ease, padding-left 0.2s ease;
  width: fit-content;
}
.footer-link:hover, .footer-link:focus-visible {
  color: var(--blue); padding-left: 4px;
}
.footer-link.whatsapp-link:hover,
.footer-link.whatsapp-link:focus-visible { color: var(--whatsapp); }

.footer-bottom { padding-top: 1.5rem; }
.footer-copyright { font-size: 13px; color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .site-footer { padding: 4rem 0 2.5rem; }
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 3rem;
  }
  .footer-brand { max-width: 280px; }
  .footer-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;
    flex: 1;
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .editorial-width { width: min(100% - 36px, 1200px); }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 0 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-link {
    padding: 12px 0; border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-link, .menu-toggle { transition: none; }
}