/* Pritchard Specialized Solutions — editorial retail marketing */
:root {
  --cream: #f4efe6;
  --cream-deep: #ebe4d8;
  --ink: #1c1915;
  --ink-soft: #3d3830;
  --muted: #6b645a;
  --line: #d4cbc0;
  --accent: #b54a32;
  --accent-hover: #933b27;
  --accent-subtle: rgba(181, 74, 50, 0.12);
  --paper: #faf7f2;
  --white: #ffffff;
  --focus: #b54a32;
  --radius: 2px;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;
  --max: 68rem;
  --narrow: 40rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 450;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1.15em;
  max-width: 42rem;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--cream) 96%, transparent);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1rem 0;
  min-height: 4rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 1rem var(--space-md);
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-subtle);
}

.site-nav .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--ink);
  color: var(--cream) !important;
  padding: 0.85rem 1rem;
}

.site-nav .nav-cta:hover {
  background: var(--ink-soft);
  color: var(--cream) !important;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.55rem 1.1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink-soft);
  color: var(--cream);
  border-color: var(--ink-soft);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  color: var(--white);
  border-color: var(--accent-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* Hero */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: var(--space-xl);
  }
}

.hero__aside {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-md);
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__aside p {
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  max-width: none;
  margin: 0;
  font-size: 1.05rem;
}

.hero__aside .mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 450;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section--ink {
  background: var(--ink);
  color: var(--cream);
}

.section--ink h2,
.section--ink h3 {
  color: var(--cream);
}

.section--ink p,
.section--ink .lede {
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

.section__head {
  margin-bottom: var(--space-lg);
  max-width: 36rem;
}

.section__head p {
  color: var(--muted);
}

/* Cards / slips */
.slip-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .slip-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.slip {
  background: var(--cream);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease);
}

.slip:hover {
  background: var(--paper);
}

.slip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  z-index: 1;
}

.slip__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.slip h3 {
  margin: 0;
}

.slip p {
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}

.slip__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.slip:hover .slip__link {
  color: var(--accent);
}

.slip__link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.slip:hover .slip__link::after {
  transform: translateX(4px);
}

/* Split */
.split {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

.split--reverse > :first-child {
  order: 1;
}

@media (min-width: 800px) {
  .split--reverse > :first-child {
    order: 0;
  }
  .split--reverse > :last-child {
    order: -1;
  }
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--space-md);
}

.panel--accent {
  background: var(--accent-subtle);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.panel h3 {
  margin-top: 0;
}

/* List */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
}

/* Work empty state */
.empty-state {
  border: 1px dashed var(--line);
  background: var(--paper);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.empty-state h2 {
  margin-bottom: 0.5em;
}

.empty-state p {
  margin-inline: auto;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: var(--space-md);
}

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

.contact-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin: 0;
}

/* Form (visual only / mailto hint) */
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 15%, transparent);
  margin-bottom: var(--space-md);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .logo {
  color: var(--cream);
}

.site-footer .logo span {
  color: color-mix(in srgb, var(--cream) 50%, transparent);
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 0.75rem;
}

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

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  text-decoration: none;
}

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

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Page title band */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 18ch;
}

/* Service detail blocks */
.service-block {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block__meta {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

/* Pull quote */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  font-weight: 450;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  max-width: 32rem;
}

/* Image-led live-site media */
.hero__media {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.hero__media img,
.media-figure img {
  width: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  box-shadow: 0 2rem 5rem rgba(28, 25, 21, 0.18);
}

.hero__media img {
  max-height: 34rem;
}

.media-figure {
  margin: 0;
}

.media-figure figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34rem;
}

/* Contact form */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 1.5rem 4rem rgba(28, 25, 21, 0.08);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 650;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 650;
}

.form-status[data-state="success"] { color: #2f6b3e; }
.form-status[data-state="error"] { color: #9f2f22; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
