/* ===========================================================
   Pleasure Motions — static site styles
   Design language: technical patent drawings / blueprint
   =========================================================== */

:root {
  --navy: #10172A;
  --blueprint: #2C5BAD;
  --blueprint-light: #6E93D6;
  --paper: #F7F5EE;
  --paper-dim: #ECE8DC;
  --graphite: #4A4F5C;
  --graphite-light: #7B8094;
  --brass: #B8862E;
  --brass-light: #D9A85C;
  --line: #D8D3C4;

  --font-display: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blueprint);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Blueprint background texture ---------- */
.blueprint-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--brass);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--blueprint-light);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--paper-dim);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--paper);
  text-decoration: none;
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--graphite-light);
  color: var(--paper);
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    border-bottom: 3px solid var(--brass);
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  color: var(--paper);
  padding: 72px 0 64px;
  text-align: left;
}

.hero .wrap { max-width: 760px; }

.hero .eyebrow {
  font-family: var(--font-mono);
  color: var(--brass-light);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.08rem;
  color: var(--blueprint-light);
  max-width: 560px;
  margin: 0;
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 36px;
}

.section-head h2 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.section-head .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 4px 9px;
  border-radius: 2px;
}

section.page-section {
  padding: 64px 0;
}
section.page-section + section.page-section {
  border-top: 1px solid var(--line);
}

/* ---------- Patent category grid (home page) ---------- */
.patent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 700px) {
  .patent-grid { grid-template-columns: 1fr; }
}

.patent-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.patent-card:hover {
  border-color: var(--blueprint);
  transform: translateY(-2px);
}

.patent-card .stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  border: 1px solid var(--brass);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.patent-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.patent-card h3 a {
  color: var(--navy);
}
.patent-card h3 a:hover { color: var(--blueprint); text-decoration: none; }

.patent-card p {
  margin: 0 0 16px;
  color: var(--graphite);
  font-size: 0.95rem;
}

.patent-card .more {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}
.patent-card .more::after { content: ' →'; }

/* ---------- Product card (used on category + home featured) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .thumb {
  background: var(--paper-dim);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.product-card .body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.product-card h3 a { color: var(--navy); }
.product-card h3 a:hover { color: var(--blueprint); text-decoration: none; }

.product-card p {
  color: var(--graphite);
  font-size: 0.93rem;
  margin: 0 0 18px;
  flex: 1;
}

.product-card .more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
}
.product-card .more::after { content: ' →'; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--graphite-light);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--graphite); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }
.breadcrumb .current { color: var(--navy); }

/* ---------- Category page header ---------- */
.category-header {
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.category-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 6px 0 14px;
}

.category-header .summary {
  font-size: 1.05rem;
  color: var(--graphite);
  max-width: 640px;
  margin: 0 0 20px;
}

.patent-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.patent-stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--brass);
  color: var(--brass);
  padding: 5px 10px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.patent-stamp strong {
  color: var(--navy);
  font-weight: 600;
  margin-right: 6px;
}

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 8px 0 56px;
}

@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; }
}

.gallery-main {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
}
.gallery-thumbs button.active {
  border-color: var(--blueprint);
  border-width: 2px;
}
.gallery-thumbs img {
  width: 100%; height: 100%; object-fit: contain;
}

.product-info h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 14px;
}

.product-info .lede {
  font-size: 1.05rem;
  color: var(--graphite);
  margin: 0 0 24px;
}

.ip-block {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.ip-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.ip-row:last-child { border-bottom: none; }
.ip-row .label { color: var(--graphite); }
.ip-row .value { color: var(--navy); font-weight: 600; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--blueprint);
  color: #fff;
  padding: 12px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--navy); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.video-block {
  margin: 36px 0;
}
.video-block h2 {
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--graphite);
  margin: 0 0 16px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-frame iframe {
  width: 100%; height: 100%; border: 0;
}

.long-copy {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.long-copy h2 {
  font-size: 1.3rem;
  margin: 0 0 16px;
}
.long-copy h3 {
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blueprint);
  margin: 28px 0 12px;
}
.long-copy ul {
  margin: 0; padding-left: 20px;
}
.long-copy li { margin-bottom: 8px; color: var(--graphite); }
.long-copy p { color: var(--graphite); }

/* ---------- Contact ---------- */
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 40px;
  max-width: 540px;
}
.contact-box h1 { margin: 0 0 8px; font-size: 1.8rem; }
.contact-box p.lede { color: var(--graphite); margin: 0 0 28px; }
.contact-rows { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--graphite-light);
  margin-bottom: 4px;
}
.contact-row .value { font-size: 1rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: var(--paper-dim);
  padding: 40px 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  gap: 18px;
}
.footer-social a { color: var(--paper-dim); }
.footer-social a:hover { color: var(--brass-light); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
