/*
Theme Name: IWATSU Rebuild
Theme URI: https://example.test/iwatsu-rebuild
Author: IWATSU local reconstruction
Description: A WordPress reconstruction of the legacy PMK-IWATSU catalogue.
Version: 0.3.0
Text Domain: pmk-rebuild
*/

@font-face {
  font-family: "New Cicle";
  src: url("assets/fonts/new_cicle_fina-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "New Cicle";
  src: url("assets/fonts/new_cicle_semi-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "New Cicle";
  src: url("assets/fonts/new_cicle_semi-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 800;
  font-display: block;
}

:root {
  --pmk-blue: #005aab;
  --pmk-bright-blue: #2d6bb4;
  --pmk-sky: #3284af;
  --pmk-orange: #f1592a;
  --pmk-ink: #152332;
  --pmk-muted: #637182;
  --pmk-line: #dce5ec;
  --pmk-cloud: #f3f7fa;
  --pmk-white: #ffffff;
  --pmk-shadow: 0 24px 64px rgba(17, 46, 74, 0.12);
  --pmk-radius: 1.25rem;
  --page-width: min(1180px, calc(100vw - 3rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pmk-ink);
  background: var(--pmk-white);
  font-family: "New Cicle", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pmk-orange);
  outline-offset: 3px;
}

.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;
}

.site-shell {
  overflow: clip;
}

.recovery-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 1rem;
  color: #dfeeef;
  background: var(--pmk-ink);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 229, 236, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-container {
  width: var(--page-width);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: min(20rem, 42vw);
  max-height: 3.35rem;
  object-fit: contain;
  object-position: left center;
}

.primary-navigation {
  margin-left: auto;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: inline-block;
  color: #405366;
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--pmk-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--pmk-line);
  border-radius: 0.7rem;
  color: var(--pmk-blue);
  background: var(--pmk-white);
  font: inherit;
  font-size: 1.4rem;
}

.site-main {
  min-height: 60vh;
}

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 83% 20%, rgba(45, 107, 180, 0.17), transparent 27rem),
    linear-gradient(145deg, #ffffff 0%, #f1f7fb 58%, #e3eef7 100%);
}

.hero::after {
  position: absolute;
  right: max(0rem, calc((100vw - var(--page-width)) / 2));
  bottom: 0;
  width: min(42vw, 34rem);
  height: 0.5rem;
  content: "";
  background: var(--pmk-orange);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--pmk-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.25rem;
  height: 2px;
  content: "";
  background: var(--pmk-orange);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--pmk-ink);
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: #405366;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  box-shadow: 0 0.85rem 1.6rem rgba(0, 90, 171, 0.2);
  transform: translateY(-2px);
}

.button-primary {
  color: var(--pmk-white);
  background: var(--pmk-blue);
}

.button-secondary {
  border-color: #aec3d4;
  color: var(--pmk-blue);
  background: rgba(255, 255, 255, 0.7);
}

.hero-visual {
  position: relative;
  min-height: 19rem;
  padding: 1.5rem;
}

.hero-visual::before {
  position: absolute;
  inset: 8% 0 0 8%;
  border-radius: 2.25rem;
  content: "";
  background: linear-gradient(160deg, var(--pmk-blue), var(--pmk-sky));
  box-shadow: var(--pmk-shadow);
  transform: rotate(2deg);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 18rem;
  border-radius: 1.75rem;
  background: var(--pmk-white);
  box-shadow: var(--pmk-shadow);
  object-fit: cover;
}

.intro-band,
.product-showcase,
.story-band,
.page-content,
.product-detail {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 34rem;
  color: var(--pmk-muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.intro-card {
  min-height: 15rem;
  padding: 1.75rem;
  border: 1px solid var(--pmk-line);
  border-radius: var(--pmk-radius);
  background: var(--pmk-white);
}

.intro-card__number {
  display: block;
  margin-bottom: 2.25rem;
  color: var(--pmk-orange);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.intro-card p {
  margin-bottom: 0;
  color: var(--pmk-muted);
}

.product-showcase {
  background: var(--pmk-cloud);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.catalog-intro {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.catalog-intro .provisional-note {
  max-width: 62rem;
  margin-bottom: 0;
}

.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.catalog-nav a {
  padding: 0.5rem 0.85rem;
  border: 1px solid #c9d8e4;
  border-radius: 999px;
  color: #27536f;
  background: var(--pmk-white);
  font-size: 0.84rem;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.catalog-nav a:hover {
  border-color: var(--pmk-blue);
  color: var(--pmk-white);
  background: var(--pmk-blue);
}

.catalog-family {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
}

.catalog-family:first-of-type {
  padding-top: 0;
}

.catalog-family__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.catalog-family__heading .eyebrow {
  margin-bottom: 0.55rem;
}

.catalog-family__heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.catalog-family__heading > p {
  max-width: 34rem;
  margin: 0;
  color: var(--pmk-muted);
}

.catalog-family--artwork {
  padding: clamp(3.5rem, 7vw, 6.5rem) 1.4rem 1.4rem;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  border: 1px solid #ecd2c5;
  border-radius: 1.5rem;
  background: #fff9f5;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--pmk-radius);
  background: var(--pmk-white);
  box-shadow: 0 0.7rem 2rem rgba(30, 59, 84, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  box-shadow: var(--pmk-shadow);
  transform: translateY(-0.35rem);
}

.product-card__image {
  display: grid;
  aspect-ratio: 240 / 95;
  padding: 0.8rem;
  place-items: center;
  background: linear-gradient(135deg, #f8fbfd, #e7f0f5);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
  object-fit: contain;
}

.product-card__route-visual,
.product-detail__route-visual {
  display: grid;
  aspect-ratio: 240 / 95;
  padding: 1rem;
  place-content: center start;
  gap: 0.35rem;
  overflow: hidden;
  color: var(--pmk-white);
  background:
    linear-gradient(135deg, rgba(0, 90, 171, 0.88), rgba(21, 35, 50, 0.98)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.08) 12px 13px);
}

.product-card__route-visual span,
.product-detail__route-visual span {
  color: #c8deef;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card__route-visual strong,
.product-detail__route-visual strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.product-card__evidence {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  color: #235270;
  background: #e5f0f7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-card__evidence--route {
  color: #1b587d;
  background: #e0f1f9;
}

.product-card__evidence--artwork {
  color: #8c431c;
  background: #fff0e6;
}

.product-card__family {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--pmk-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 0.6rem;
}

.product-card p {
  margin-top: 0;
  color: var(--pmk-muted);
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  color: var(--pmk-blue);
  font-size: 0.92rem;
  font-weight: 800;
}

.text-link::after {
  margin-left: 0.55rem;
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(0.2rem);
}

.story-band {
  color: var(--pmk-white);
  background: var(--pmk-ink);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
}

.story-band h2,
.story-band h3 {
  color: var(--pmk-white);
}

.story-band p {
  max-width: 40rem;
  color: #bfd1df;
}

.story-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  list-style: none;
}

.story-list li {
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
}

.story-list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--pmk-white);
}

.story-list span {
  color: #bfd1df;
  font-size: 0.9rem;
}

.page-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
  background: linear-gradient(145deg, #f1f7fb, #ffffff);
}

.page-hero h1 {
  max-width: 14ch;
  margin-bottom: 0;
}

.page-hero__copy {
  max-width: 52rem;
  margin: 1.1rem 0 0;
  color: #4d6071;
}

.page-content__inner {
  max-width: 48rem;
}

.page-content p,
.product-detail__content p {
  color: #4d6071;
}

.provisional-note {
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--pmk-orange);
  color: #4b3a31;
  background: #fff5f0;
  font-size: 0.93rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.product-detail__media {
  display: grid;
  min-height: 26rem;
  padding: 2rem;
  place-items: center;
  border-radius: 1.5rem;
  background: var(--pmk-cloud);
}

.product-detail__media img {
  width: 100%;
  max-height: 29rem;
  object-fit: contain;
}

.product-detail__route-visual {
  width: 100%;
  min-height: 18rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1rem;
}

.product-detail__content h1 {
  max-width: none;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.taxonomy-link {
  color: var(--pmk-blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail__content > .product-card__evidence {
  margin-top: 0.85rem;
}

.recovery-record,
.archival-note {
  margin-top: 2.2rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid #d5e2eb;
  border-radius: 1rem;
  background: #f8fbfd;
}

.archival-note {
  border-color: #f0d7c8;
  background: #fff8f3;
}

.recovery-record h2,
.archival-note h2 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.recovery-record h3 {
  margin: 1.2rem 0 0.45rem;
  font-size: 0.9rem;
}

.recovery-record p,
.archival-note p {
  margin: 0;
}

.recovery-record__list {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.recovery-record__list code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.23rem 0.42rem;
  border-radius: 0.35rem;
  color: #355267;
  background: #eaf2f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.recovery-record__list--paths code {
  font-size: 0.7rem;
}

.catalog-back {
  margin: 2rem 0 0;
}

.product-detail__cta {
  margin-top: 2rem;
}

.empty-state {
  padding: 3rem;
  border: 1px dashed #afbfcb;
  border-radius: var(--pmk-radius);
  color: var(--pmk-muted);
  background: var(--pmk-cloud);
  text-align: center;
}

.site-footer {
  padding: 3rem 0 1.5rem;
  color: #b7c8d5;
  background: #0f1f2c;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.5fr) repeat(2, minmax(9rem, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand img {
  width: min(19rem, 100%);
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.site-footer h2 {
  margin-bottom: 0.85rem;
  color: var(--pmk-white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--pmk-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 4.75rem;
  }

  .nav-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 1rem max(1.5rem, calc((100vw - var(--page-width)) / 2));
    border-bottom: 1px solid var(--pmk-line);
    background: var(--pmk-white);
    box-shadow: 0 1rem 2rem rgba(17, 46, 74, 0.08);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0.25rem;
  }

  .primary-navigation a {
    display: block;
    padding: 0.7rem 0;
  }

  .primary-navigation a::after {
    display: none;
  }

  .hero-grid,
  .story-grid,
  .product-detail-grid,
  .catalog-family__heading {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 42rem;
  }

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

@media (min-width: 861px) {
  .primary-navigation {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 1rem;
  }
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.lang-switch a {
  min-width: 2.1rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--pmk-line);
  border-radius: 999px;
  color: var(--pmk-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.lang-switch a::after {
  display: none;
}

.lang-switch a.is-active {
  color: var(--pmk-white);
  background: var(--pmk-blue);
  border-color: var(--pmk-blue);
}

.hero h1,
.page-hero h1,
.product-detail__content h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.page-content__inner {
  max-width: 52rem;
}

.legacy-html img {
  height: auto;
  margin: 0.8rem 0 1.2rem;
}

.legacy-html table {
  width: 100%;
  border-collapse: collapse;
}

.teaser-grid,
.group-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.teaser-card,
.group-card {
  padding: 1.25rem 1.3rem 1.4rem;
  border: 1px solid var(--pmk-line);
  border-radius: 1rem;
  background: var(--pmk-white);
}

.teaser-card h3,
.group-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.teaser-card p,
.group-card li {
  color: #4d6071;
  font-size: 0.95rem;
}

.group-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.group-card a:hover,
.teaser-card a:hover {
  color: var(--pmk-blue);
}

.product-specs-section {
  padding: 0 0 4rem;
}

.spec-block {
  margin-top: 2.5rem;
}

.accessory-links ul,
.product-downloads ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .teaser-grid,
  .group-list {
    grid-template-columns: 1fr;
  }

  .primary-navigation {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  :root {
    --page-width: min(100% - 2rem, 1180px);
  }

  .brand img {
    width: min(16rem, 62vw);
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section-heading,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .intro-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 14rem;
    padding: 0.7rem;
  }

  .hero-visual img {
    min-height: 13rem;
  }

  .product-detail__media {
    min-height: 18rem;
    padding: 1.25rem;
  }

  .catalog-family--artwork {
    padding: 2rem 1rem 1rem;
    border-radius: 1rem;
  }
}

