/*
Theme Name: Himpack Elementor Base
Theme URI: https://percetakanhimpack.com/
Author: Himpack
Description: Lightweight Elementor-ready base theme for Himpack pages. Includes a proper WordPress content loop so Elementor can edit every page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: himpack-elementor-base
*/

:root {
  --himpack-ink: #22201c;
  --himpack-muted: #6c6558;
  --himpack-paper: #f8f3e7;
  --himpack-accent: #f0b23f;
  --himpack-border: rgba(34, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--himpack-ink);
  background: #fffaf0;
  font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.himpack-site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.himpack-site-main {
  flex: 1;
  width: 100%;
}

.himpack-content-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.himpack-page-title {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.himpack-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid var(--himpack-border);
  backdrop-filter: blur(12px);
}

.himpack-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.himpack-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.himpack-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #111;
  background: var(--himpack-accent);
  font-weight: 900;
}

.himpack-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.himpack-nav a {
  text-decoration: none;
}

.himpack-empty {
  padding: 72px 0;
  color: var(--himpack-muted);
}

.himpack-footer {
  border-top: 1px solid var(--himpack-border);
  background: var(--himpack-paper);
  color: var(--himpack-muted);
  font-size: 14px;
}

.himpack-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.elementor-page .himpack-content-wrap,
body.elementor-editor-active .himpack-content-wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.elementor-page .himpack-page-title,
body.elementor-editor-active .himpack-page-title {
  display: none;
}

.himpack-elementor-canvas {
  width: 100%;
  min-height: 60vh;
}

@media (max-width: 767px) {
  .himpack-header-inner,
  .himpack-footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .himpack-header-inner {
    min-height: 64px;
  }

  .himpack-nav {
    display: none;
  }

  .himpack-content-wrap {
    width: min(100% - 24px, 1120px);
    padding: 48px 0;
  }

  .himpack-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
