/* ========================================
   warehousepmo.com shared styles
   ======================================== */


/* Self-hosted Google Fonts: Inter + Lora */
/* Prepend this to the top of styles.css */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/css/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/css/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/css/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/css/fonts/lora-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/css/fonts/lora-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/css/fonts/lora-600.woff2') format('woff2');
}



:root {
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-accent: #2c5282;
  --color-accent-hover: #1e3a5f;
  --color-bg: #fafaf8;
  --color-bg-alt: #f0efeb;
  --color-border: #ddd;
  --sans: 'Inter', -apple-system, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --mw: 820px;
  --mw-wide: 960px;
  --pad: 2rem;
}

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

body {
  font-family: var(--sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* NAV */

[data-include="/includes/nav.html"] {
  min-height: 167px; /* matches rendered nav height to prevent layout shift */
}

@media (max-width: 700px) {
  [data-include="/includes/nav.html"] {
    min-height: 200px; /* taller when nav stacks vertically */
  }
}

nav {
  max-width: var(--mw-wide);
  margin: 0 auto;
  padding: .5rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-text); }

/* HERO (homepage) */
.hero {
  max-width: var(--mw);
  margin: 2rem auto 0;
  padding: 0 var(--pad);
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero .sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* PAGE HEADER (inner pages) */
.page-header {
  max-width: var(--mw);
  margin: 4rem auto 0;
  padding: 0 var(--pad);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-header .subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* CTA BUTTON */
.cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.cta, .cta:visited, .cta:hover, .cta:active { color: #fff !important; text-decoration: none !important; }
.cta:hover { background: var(--color-accent-hover); }

/* DIVIDER */
hr.div {
  max-width: var(--mw);
  margin: 4rem auto;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* SECTIONS */
section {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
section p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  max-width: 640px;
}

/* VALUE DRIVERS (homepage) */
.value-drivers { margin-top: 2rem; }
.value-driver { margin-bottom: 2.5rem; }
.value-driver h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.value-driver p { font-size: 1rem; }
.stat-callout {
  margin: 1.25rem 0 0 0;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}
.stat-callout .stat-source {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* SERVICES GRID (homepage) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.service-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem;
  background: #fff;
}
.service-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-item p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* IMAGE BREAK */
.image-break {
  max-width: var(--mw-wide);
  margin: 4rem auto;
  padding: 0 var(--pad);
}
.image-break img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.85) brightness(0.95);
}

/* TESTIMONIALS */
.testimonials { margin-top: 0.5rem; }
.testimonial {
  margin-bottom: 2.25rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-border);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-family: var(--sans);
}

/* BOTTOM CTA BLOCK */
.bottom-cta {
  background: var(--color-bg-alt);
  border-radius: 6px;
  padding: 3rem var(--pad);
  text-align: center;
  margin: 4rem auto;
  max-width: var(--mw);
}
.bottom-cta h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.bottom-cta p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--color-muted);
}

/* PROSE (about, insights posts, careers) */
.prose {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.prose p {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose ul, .prose ol {
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose img { border-radius: 6px; margin: 2rem 0; }
.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose .post-list { padding-left: 0; list-style: none; }
  

/* TEAM MEMBERS (about) */
.team-member { margin-bottom: 2.5rem; }
.team-member h3 { margin-top: 0; }
.team-member .role {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  margin-top: -0.5rem;
}

.vosb-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 640px;
}

/* CONTACT */
.contact-cta { margin: 2rem 0 2.5rem 0; }
.contact-alt {
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-top: 0;
}
.contact-alt a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* INSIGHTS POST LIST */
.post-list {
  max-width: var(--mw);
  margin: 2rem auto 0;
  padding: 0 var(--pad);
}
.post-list-item { margin-bottom: 1.5rem; }
.post-list-item a {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.post-list-item a:hover { color: var(--color-accent); }
.post-list-item .post-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}
.post-list-item .post-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* BACK LINK (insights posts) */
.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--color-accent); }

/* FOOTER */
footer {
  max-width: var(--mw-wide);
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .hero h1 { font-size: 2rem; }
  .page-header h1 { font-size: 1.8rem; }
  section h2 { font-size: 1.4rem; }
  .prose h3 { font-size: 1.15rem; }
  nav { flex-direction: column; gap: 1rem; }
  .nav-links { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
  .hero { margin-top: 2rem; }
  .page-header { margin-top: 2rem; }
  .image-break img { height: 200px; }
  .services-grid { grid-template-columns: 1fr; }
}
