/* ============================================================
   SWP — Base CSS (Bootstrap-aligned)
   File: assets/css/base.css
   ------------------------------------------------------------
   Urutan load via functions.php:
     1. Bootstrap 5 (CDN)
     2. Bootstrap Icons (CDN)
     3. Google Fonts (Inter + Playfair Display)
     4. base.css (file ini)
          ├─ WordPress standard classes
          ├─ Custom variables
          ├─ Reset & typography
          └─ .site-box (boxed wrapper, width = Bootstrap xxl)
     5. theme.css (komponen)
     6. slide.css
     7. login.css
     8. style.css (override terakhir)

   PENTING:
   - .container TIDAK di-override. Pakai Bootstrap native (1320px xxl).
   - Boxed layout via .site-box max-width = 1320px.
   - Jika butuh padding container lebih lebar, tambahkan utility
     .px-4 atau .px-lg-5 di markup section.
   ============================================================ */
/* 1. Jika Layout FULL WIDTH, header membentang penuh */
body.layout-full .site-header {
  max-width: 100%;
}

/* 2. Jika Layout BOXED, header mengikuti lebar kotak */
body.layout-boxed .site-header {
  max-width: var(--site-max, 1320px);
}

/* ============================================================
   1. WORDPRESS STANDARD CLASSES
   ============================================================ */
.alignleft{
  float: left;
  margin: .5rem 1.5rem 1rem 0;
}
.alignright{
  float: right;
  margin: .5rem 0 1rem 1.5rem;
}
.aligncenter{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption{
  max-width: 100%;
  margin-bottom: 1rem;
}
.wp-caption-text{
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  margin-top: .5rem;
}

.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.sticky,
.bypostauthor{
  /* marker saja */
}

.screen-reader-text{
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus{
  left: 0;
  outline: none;
}


/* ============================================================
   2. CUSTOM VARIABLES
   ============================================================ */
:root{
  /* Site max-width — selaras dengan Bootstrap container xxl */
  --site-max    : 1320px;

  /* Header */
  --header-h    : 96px;
  --header-h-sm : 74px;
  --tophdr-h    : 40px;

  /* Warna — ink */
  --ink         : #0b1e3a;
  --ink-2       : #2c4368;
  --muted       : #5a7092;

  /* Warna — accent biru */
  --accent       : #1e5fd8;
  --accent-dark  : #1444a8;
  --accent-light : #6fb2ff;
  --accent-bright: #2f8bff;
  --accent-soft  : #eaf2ff;

  /* Warna — surface */
  --line         : rgba(11,30,58,.10);
  --soft         : #f0f6ff;
  --white        : #ffffff;
  --deep         : #0c2d6b;

  /* Typography */
  --font-body    : 'Inter', system-ui, -apple-system, sans-serif;
  --font-display : 'Playfair Display', Georgia, serif;

  /* Radius & shadow */
  --radius-sm    : 6px;
  --radius-md    : 10px;
  --radius-lg    : 16px;
  --shadow-sm    : 0 4px 14px -8px rgba(11,30,58,.25);
  --shadow-md    : 0 12px 30px -18px rgba(11,30,58,.45);
  --shadow-lg    : 0 30px 60px -30px rgba(11,30,58,.55);

  /* Transisi */
  --ease         : cubic-bezier(.2,.7,.2,1);
  --dur-fast     : .25s;
  --dur-base     : .35s;
  --dur-slow     : .8s;
}


/* ============================================================
   3. RESET & BODY
   ============================================================ */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/*
body{
  margin: 0;
  font-family: var(--font-body);
  background: #eaf0fb;
  color: var(--ink-2);
  line-height: 1.75;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*/
/* ============================================================
   LAYOUT WRAPPER (Full vs Boxed)
   ============================================================ */
.site-wrapper {
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  transition: max-width 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mode Boxed */
body.layout-boxed {
  background-color: #e2e8f0; /* Warna abu-abu di luar box */
}
body.layout-boxed .site-wrapper {
  max-width: 1320px; /* Lebar maksimal box */
  box-shadow: 0 0 50px rgba(11, 30, 58, 0.15);
  position: relative;
}

/* Memastikan main content mengambil sisa ruang */
.site-wrapper > main {
  flex: 1;
}

::selection{
  background: var(--accent);
  color: #fff;
}

a{
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) ease;
}

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

button{
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select{
  font-family: inherit;
  font-size: inherit;
}


/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-top: 0;
  margin-bottom: .75rem;
}

h1{ font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2{ font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3{ font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4{ font-size: clamp(1.15rem, 1.6vw, 2rem); }
h5{ font-size: 1.15rem; }
h6{ font-size: 1rem; }

p{
  margin-top: 0;
  margin-bottom: 1rem;
}

strong, b{
  font-weight: 600;
  color: var(--ink);
}

small{
  font-size: .82rem;
}


/* ============================================================
   5. BOXED LAYOUT
   ------------------------------------------------------------
   .site-box = outer wrapper, max-width = 1320px (Bootstrap xxl).
   Di dalamnya, .container TIDAK di-override — pakai Bootstrap
   native (max-width 1320px di xxl, padding 12px).

   Jika butuh padding lebih lebar dari 12px, tambahkan utility
   di markup: <div class="container px-4 px-lg-5">
   ============================================================ */
.site-box{
  max-width: var(--site-max);
  margin-inline: auto;
  background: var(--white);
  box-shadow: 0 0 90px rgba(11,30,58,.14);
  position: relative;
}


/* ============================================================
   6. FOCUS & A11Y
   ============================================================ */
:focus-visible{
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================================
   7. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px){
  :root{
    --header-h: 82px;
  }
  body{
    background: #fff;
  }
  .site-box{
    box-shadow: none;
  }
}