/* HandPrintInk Full Width Theme CSS | Version 1.0.0 | By Game on Business LLC */

:root {
  --hpi-white: #ffffff;
  --hpi-snow: #fafaf8;
  --hpi-silk: #f4f1ec;
  --hpi-stone: #e8e3da;
  --hpi-ink: #1a1814;
  --hpi-rust: #d94f1e;
  --hpi-rust-2: #f05c28;
  --hpi-slate: #5a554e;
  --hpi-border: #e8e3da;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--hpi-white);
  color: var(--hpi-ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

/* Accessibility */
.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;
}
.screen-reader-text:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  clip: auto;
}

/* True full-width WordPress shell */
#page,
.site,
.site-content,
.content-area,
.site-main,
.hpi-site-main,
.hpi-page,
.hpi-entry-content,
.entry-content,
.wp-site-blocks,
.wp-block-post-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hpi-site-main {
  display: block;
  min-height: 50vh;
}

/* Keep normal posts readable while pages stay full-width */
.hpi-readable {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 60px auto;
}

.hpi-post .hpi-entry-content {
  line-height: 1.75;
}

.hpi-entry-header {
  margin-bottom: 24px;
}

/* Minimal fallback header/footer. Elementor Theme Builder can override them. */
.hpi-site-header,
.hpi-site-footer {
  width: 100%;
  max-width: 100%;
  background: #fff;
}

.hpi-site-header {
  border-bottom: 1px solid var(--hpi-border);
}

.hpi-header-inner,
.hpi-footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 18px 32px;
}

.hpi-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hpi-logo a {
  color: var(--hpi-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hpi-menu {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hpi-menu a {
  color: var(--hpi-slate);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.hpi-site-footer {
  background: var(--hpi-ink);
  color: rgba(255,255,255,.55);
}

/* Elementor full-width hard reset */
.elementor,
.elementor-location-header,
.elementor-location-footer,
.elementor-location-single,
.elementor-location-archive,
.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.elementor-widget,
.e-con,
.e-con-inner,
.e-container,
.e-con-boxed,
.e-con-full,
.e-parent,
.e-child {
  max-width: 100% !important;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-con-boxed > .e-con-inner,
.e-con-boxed > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
}

.elementor-section.elementor-section-stretched,
.elementor-section[data-settings*="section-stretched"],
.e-con.e-con-full {
  width: 100% !important;
  max-width: 100% !important;
  left: auto !important;
  right: auto !important;
}

/* Optional helper class for any section that still gets trapped by an addon/container */
.hpi-force-full,
.hpi-full-width,
.hpi-edge-to-edge {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto !important;
  right: auto !important;
}

/* Remove common theme/title spacing */
.page .entry-header,
.page .entry-title,
.hpi-page > .entry-header {
  display: none !important;
}

/* Gutenberg alignment compatibility */
.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.alignwide {
  width: 100% !important;
  max-width: 100% !important;
}

/* Forms inherit width cleanly */
input,
select,
textarea,
button {
  font: inherit;
}

@media (max-width: 767px) {
  .hpi-header-inner {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hpi-menu {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}
