/*
Theme Name: JPrint Custom
Theme URI: https://jprint.com.my/
Author: JPrint Studio and Codex
Description: A custom WordPress theme for JPrint Studio, built for design, printing, signage, packaging, quote funnels, and future SEO service pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: jprint-custom
*/

:root {
  --jp-dark: #231f20;
  --jp-darker: #151314;
  --jp-red: #ff0000;
  --jp-red-dark: #d80000;
  --jp-heading: #333333;
  --jp-text: #6f777a;
  --jp-muted: #8c9597;
  --jp-line: #e6e7e8;
  --jp-light: #f7f7f7;
  --jp-white: #ffffff;
  --jp-max: 1180px;
  --jp-radius: 8px;
  --jp-shadow: 0 18px 48px rgba(21, 19, 20, 0.12);
  --jp-font: "Inter", "Lato", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--jp-text);
  background: var(--jp-white);
  font-family: var(--jp-font);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--jp-red);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--jp-red-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--jp-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

p {
  margin: 0 0 18px;
}

.jp-container {
  width: min(100% - 40px, var(--jp-max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--jp-white);
  background: var(--jp-red);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(35, 31, 32, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--jp-white);
  font-weight: 800;
}

.site-brand:hover,
.site-brand:focus {
  color: var(--jp-white);
}

.custom-logo {
  width: auto;
  max-height: 54px;
}

.site-brand__mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--jp-white);
  background: var(--jp-red);
  font-size: 24px;
  font-weight: 900;
}

.site-brand__text {
  display: grid;
  gap: 1px;
}

.site-brand__name {
  font-size: 19px;
  line-height: 1;
}

.site-brand__tag {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--jp-white);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--jp-white);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.jp-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--jp-red);
  border-radius: 4px;
  color: var(--jp-white);
  background: var(--jp-red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.jp-button:hover,
.jp-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: var(--jp-white);
  background: var(--jp-red-dark);
  border-color: var(--jp-red-dark);
  transform: translateY(-1px);
}

.jp-button--ghost {
  color: var(--jp-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.82);
}

.jp-button--ghost:hover,
.jp-button--ghost:focus {
  color: var(--jp-white);
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--jp-white);
}

.jp-button--dark {
  border-color: var(--jp-dark);
  background: var(--jp-dark);
}

.jp-button--dark:hover,
.jp-button--dark:focus {
  border-color: var(--jp-darker);
  background: var(--jp-darker);
}

.jp-section {
  padding: 86px 0;
}

.jp-section--tight {
  padding: 58px 0;
}

.jp-section--light {
  background: var(--jp-light);
}

.jp-section--dark {
  color: rgba(255, 255, 255, 0.76);
  background: var(--jp-dark);
}

.jp-section--dark h1,
.jp-section--dark h2,
.jp-section--dark h3,
.jp-section--dark h4 {
  color: var(--jp-white);
}

.jp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--jp-red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.jp-eyebrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: currentColor;
}

.jp-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.jp-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.jp-heading h1,
.jp-heading h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.jp-heading p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 18px;
}

.jp-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(120deg, rgba(21, 19, 20, 0.96), rgba(35, 31, 32, 0.78)),
    var(--hero-image, url("assets/images/hero-pattern.svg")),
    var(--jp-dark);
  background-position: center;
  background-size: cover;
}

.jp-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: linear-gradient(90deg, var(--jp-red), transparent 58%);
}

.jp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 110px 0;
}

.jp-hero__kicker {
  margin-bottom: 14px;
  color: var(--jp-white);
  font-size: clamp(30px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.jp-hero h1 {
  max-width: 800px;
  margin-bottom: 20px;
  color: var(--jp-white);
  font-size: clamp(34px, 5vw, 66px);
}

.jp-hero__line {
  width: 78px;
  height: 4px;
  margin: 24px 0;
  background: var(--jp-red);
}

.jp-hero__copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.jp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.jp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.jp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.jp-proof-strip {
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.jp-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-white);
  box-shadow: var(--jp-shadow);
}

.jp-proof-item {
  padding: 26px;
  border-right: 1px solid var(--jp-line);
}

.jp-proof-item:last-child {
  border-right: 0;
}

.jp-proof-item strong {
  display: block;
  color: var(--jp-heading);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.jp-proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--jp-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.jp-grid {
  display: grid;
  gap: 24px;
}

.jp-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jp-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jp-card {
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-white);
}

.jp-card--padded {
  padding: 28px;
}

.jp-card h3 {
  font-size: 20px;
}

.jp-service-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jp-service-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 22px;
  background: var(--jp-red);
}

.jp-service-card:hover,
.jp-service-card:focus-within {
  border-color: rgba(255, 0, 0, 0.38);
  box-shadow: var(--jp-shadow);
  transform: translateY(-3px);
}

.jp-service-card h3 {
  margin-bottom: 13px;
  font-size: 19px;
  text-transform: uppercase;
}

.jp-card-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--jp-red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.jp-card-link::after {
  content: ">";
  margin-left: 8px;
}

.jp-testimonial {
  display: grid;
  align-content: space-between;
  min-height: 300px;
  padding: 26px;
  border-top: 4px solid var(--jp-red);
}

.jp-testimonial p {
  color: var(--jp-text);
  font-size: 15px;
}

.jp-testimonial strong {
  display: block;
  color: var(--jp-heading);
  font-size: 16px;
}

.jp-testimonial span {
  display: block;
  color: var(--jp-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.jp-process {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.jp-step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.jp-step:last-child {
  border-bottom: 0;
}

.jp-step__number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--jp-white);
  background: var(--jp-red);
  font-size: 18px;
  font-weight: 900;
}

.jp-step h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.jp-offer {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  background: var(--jp-white);
}

.jp-offer__tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 9px;
  color: var(--jp-red);
  background: #fff0f0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.jp-offer h3 {
  font-size: 20px;
}

.jp-offer p {
  margin-bottom: 22px;
}

.jp-offer .jp-card-link {
  margin-top: auto;
}

.jp-cta {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(35, 31, 32, 0.98), rgba(35, 31, 32, 0.84)),
    url("assets/images/hero-pattern.svg"),
    var(--jp-dark);
  background-size: cover;
  background-position: center;
}

.jp-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.jp-cta h2 {
  color: var(--jp-white);
  font-size: clamp(32px, 4vw, 52px);
}

.jp-cta p {
  max-width: 690px;
  margin-bottom: 0;
  font-size: 18px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--jp-darker);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 44px;
  padding: 64px 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--jp-white);
}

.site-footer h2 {
  font-size: 26px;
}

.site-footer h3 {
  margin-bottom: 18px;
  font-size: 15px;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--jp-white);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer__bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.jp-page-hero {
  padding: 94px 0;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(35, 31, 32, 0.96), rgba(35, 31, 32, 0.84)),
    url("assets/images/hero-pattern.svg"),
    var(--jp-dark);
  background-position: center;
  background-size: cover;
}

.jp-page-hero h1 {
  max-width: 850px;
  color: var(--jp-white);
  font-size: clamp(38px, 5vw, 64px);
}

.jp-page-hero p {
  max-width: 740px;
  margin-bottom: 0;
  font-size: 18px;
}

.jp-content {
  max-width: 820px;
  margin: 0 auto;
}

.jp-content > *:first-child {
  margin-top: 0;
}

.jp-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.jp-product-list span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--jp-line);
  color: var(--jp-heading);
  background: var(--jp-white);
  font-size: 13px;
  font-weight: 800;
}

.jp-contact-panel {
  padding: 32px;
  border-top: 4px solid var(--jp-red);
}

.jp-contact-panel dt {
  color: var(--jp-heading);
  font-weight: 900;
}

.jp-contact-panel dd {
  margin: 0 0 14px;
}

.jp-quote-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.jp-quote-list li {
  padding: 18px;
  border-left: 4px solid var(--jp-red);
  background: var(--jp-light);
}

.jp-work-tile {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: end;
  padding: 28px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(135deg, var(--jp-dark), #4b4547);
}

.jp-work-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 0, 0, 0.22), transparent),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.035) 12px 14px);
}

.jp-work-tile > * {
  position: relative;
  z-index: 1;
}

.jp-work-tile h3 {
  color: var(--jp-white);
}

.jp-muted {
  color: var(--jp-muted);
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--jp-darker);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 12px;
  }

  .site-header__actions .jp-button {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .jp-proof-grid,
  .jp-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jp-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jp-process,
  .jp-cta__inner,
  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .jp-cta__inner {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .jp-container {
    width: min(100% - 28px, var(--jp-max));
  }

  .site-header__inner {
    min-height: 70px;
  }

  .site-brand__tag {
    display: none;
  }

  .site-nav {
    top: 70px;
    right: 14px;
    left: 14px;
  }

  .jp-hero {
    min-height: auto;
  }

  .jp-hero__content {
    padding: 86px 0 102px;
  }

  .jp-section {
    padding: 62px 0;
  }

  .jp-proof-grid,
  .jp-grid--2,
  .jp-grid--3,
  .jp-grid--4 {
    grid-template-columns: 1fr;
  }

  .jp-proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--jp-line);
  }

  .jp-proof-item:last-child {
    border-bottom: 0;
  }

  .jp-step {
    grid-template-columns: 1fr;
  }
}

