/*
Theme Name: Tri-State Printing & Apparel
Theme URI: https://tristateprinting.net
Author: Advantech Consulting Group
Description: Custom child theme of Twenty Twenty-Five for Tri-State Printing & Apparel. Built to match the approved 2026 design comp.
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: twentytwentyfive-child
*/

:root {
  --tsp-plum: #412939;
  --tsp-plum-dark: #2e1b28;
  --tsp-plum-muted: #6b5a66;
  --tsp-steel: #4c748d;
  --tsp-steel-dark: #3a5a74;
  --tsp-steel-muted: #5d6b74;
  --tsp-sky: #c5d2da;
  --tsp-cream: #faf9f5;
  --tsp-white: #ffffff;
  --tsp-surface-1: #f3f5f7;
  --tsp-surface-2: #eef2f5;
  --tsp-surface-3: #d9e2e8;
  --tsp-accent: #a43a6b;

  --tsp-shadow-pill: 0 2px 6px rgba(65, 41, 57, 0.14), 0 1px 2px rgba(65, 41, 57, 0.08);
  --tsp-shadow-card: 0 2px 10px rgba(65, 41, 57, 0.10), 0 1px 2px rgba(65, 41, 57, 0.06);

  --tsp-radius-pill: 999px;
  --tsp-radius-card: 18px;

  --tsp-font-sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --tsp-track-wide: 0.18em;
  --tsp-track-mid: 0.08em;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
body {
  background: var(--tsp-white);
  color: var(--tsp-plum);
  font-family: var(--tsp-font-sans);
  font-weight: 400;
  line-height: 1.5;
}

a { color: var(--tsp-steel); text-decoration: none; }
a:hover { color: var(--tsp-plum); }

a:focus, a:active,
button:focus, button:active,
input:focus { outline: none; }

main {
  margin-block-start: 0;
  background-image: url('/wp-content/themes/twentytwentyfive-child/assets/img/content-splash.jpg');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}

/* ------------------------------------------------------------------ */
/* Mega-menu dropdown (two-pane: categories | subcategories)           */
/* ------------------------------------------------------------------ */
.tsp-megamenu {
  position: absolute;
  /* 30px separator bar sits at the bottom of the header; menu top aligns to the top of that bar */
  top: calc(100% - 30px); left: 0; right: 0;
  z-index: 100;
  background: transparent;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.tsp-megamenu.is-open {
  max-height: 800px;
  opacity: 1;
  pointer-events: auto;
}
.tsp-megamenu-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 420px;
  box-shadow: 0 8px 20px rgba(65, 41, 57, 0.15);
}

.tsp-megamenu-cats {
  list-style: none; margin: 0; padding: 0;
  background: var(--tsp-plum);
  display: flex; flex-direction: column;
}
.tsp-megamenu-cats li { margin: 0; }
.tsp-megamenu-cat {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  background: var(--tsp-plum);
  color: var(--tsp-white);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tsp-track-wide);
  text-align: left;
  line-height: 1.3;
}
.tsp-megamenu-cat:hover,
.tsp-megamenu-cat.is-active {
  background: var(--tsp-steel);
}
.tsp-megamenu-cat .chev {
  font-size: 20px;
  line-height: 1;
  color: var(--tsp-white);
  margin-left: 12px;
}

.tsp-megamenu-subs {
  background: var(--tsp-steel);
  padding: 24px 32px;
}
.tsp-megamenu-sub { display: none; }
.tsp-megamenu-sub.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  align-content: start;
}
.tsp-megamenu-sub a {
  display: block;
  padding: 10px 0;
  color: var(--tsp-white);
  font-size: 15px;
  font-weight: 400;
}
.tsp-megamenu-sub a:hover {
  color: var(--tsp-plum);
}

/* ------------------------------------------------------------------ */
/* Site header — 2-column, 2-row grid; logo centered on top            */
/*                                                                      */
/*   ┌──────────────────────────┬──────────────────────────┐            */
/*   │ social + phone           │           utility icons  │  row 1     */
/*   │ search bar               │           Welcome text   │            */
/*   ├──────────────────────────┼──────────────────────────┤            */
/*   │ menu                     │                          │  row 2     */
/*   └──────────────────────────┴──────────────────────────┘            */
/*                                                                      */
/*   Logo is absolutely positioned, horizontally centered inside the    */
/*   960px frame, vertically anchored to row 2's baseline, and tall     */
/*   enough to visually overlap row 1 content on either side.           */
/* ------------------------------------------------------------------ */
.tsp-site-header { background: var(--tsp-white); position: relative; }

.tsp-header-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 15px 65px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 42px;
  align-items: start;
  position: relative;
}
.tsp-head-utility { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.tsp-head-actions { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tsp-head-menu    { grid-column: 1; grid-row: 2; }
.tsp-logo         {
  position: absolute;
  left: 50%;
  bottom: 35px;              /* 35px padding below logo to the divider */
  transform: translateX(-50%);
  z-index: 1;
}
.tsp-logo img     {
  display: block;
  height: 210px;
  width: auto;
}

/* ----- Row 1 Col 1: social + phone + search ----- */
.tsp-utility-top {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px;
}
.tsp-social { display: flex; gap: 6px; align-items: center; }
.tsp-social a { display: inline-flex; }
.tsp-social img { display: block; width: 26px; height: 26px; }
.tsp-phone {
  color: var(--tsp-plum);
  font-weight: 600;
  font-size: 24.6px;
  letter-spacing: 0.02em;
}
.tsp-head-divider { display: none; }

.tsp-search {
  display: flex; align-items: center;
  border: 1.5px solid var(--tsp-steel-muted);
  border-radius: 999px;
  padding: 2px 4px 2px 18px;
  width: 240px;
  height: 36px;
  background: var(--tsp-white);
}
.tsp-search input {
  border: 0; background: transparent; padding: 0;
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 13px;
  letter-spacing: var(--tsp-track-mid);
  text-transform: uppercase;
  color: var(--tsp-plum);
}
.tsp-search input::placeholder { color: var(--tsp-steel-muted); }
.tsp-search-clear {
  background: none; border: 0; padding: 4px 8px;
  color: var(--tsp-steel-muted);
  cursor: pointer;
  display: inline-flex; align-items: center;
}
.tsp-search-submit {
  background: none;
  border: 0;
  border-left: 1px solid var(--tsp-steel-muted);
  padding: 4px 10px 4px 10px;
  color: var(--tsp-steel-muted);
  cursor: pointer;
  display: inline-flex; align-items: center;
  height: 20px;
}
.tsp-search-clear:hover,
.tsp-search-submit:hover { color: var(--tsp-plum); }

.tsp-menu-toggle {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 6px;
  background: none; border: 0;
  cursor: pointer;
  color: var(--tsp-steel);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: lowercase;
  padding: 0;
}
.tsp-menu-toggle .tsp-burger { display: flex; flex-direction: column; gap: 6px; }
.tsp-menu-toggle .tsp-burger span {
  display: block; width: 40px; height: 5px;
  background: var(--tsp-steel); border-radius: 3px;
}
.tsp-menu-toggle .tsp-menu-label { line-height: 1; }

.tsp-utility-icons {
  display: flex; gap: 18px; align-items: flex-start;
}
.tsp-utility-icons a {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  color: #45273A;
  font-size: 13px;
  letter-spacing: var(--tsp-track-mid);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  min-width: 44px;
}
.tsp-utility-icons a:hover { color: var(--tsp-plum); }
.tsp-utility-icons .tsp-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  position: relative;
}
.tsp-utility-icons .tsp-ic img {
  display: block;
  height: 100%;
  width: auto;
}
.tsp-utility-icons .tsp-cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--tsp-plum); color: var(--tsp-white);
  font-size: 10px; font-weight: 500;
  border-radius: var(--tsp-radius-pill);
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tsp-welcome {
  font-size: 17.5px;
  color: var(--tsp-steel);
  margin-top: 4px;
}

.tsp-header-divider {
  border: 0;
  margin: 0;
  height: 30px;
  background: #BDC5CE;
  width: 100%;
}

/* ------------------------------------------------------------------ */
/* Home hero: Let's Make Something + 5 equal pills                     */
/* ------------------------------------------------------------------ */
.tsp-hero {
  text-align: center;
  padding: 36px 24px 28px;
  background: var(--tsp-white);
}
.tsp-hero .tsp-hero-mark {
  display: block;
  margin: 0 auto 28px;
  max-width: 420px;
  width: 90%;
  height: auto;
}
.tsp-pillrow {
  display: flex;
  justify-content: center;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.tsp-pillrow .tsp-pill {
  flex: 0 1 140px;
  min-width: 120px;
  max-width: 150px;
  background: var(--tsp-white);
  color: var(--tsp-steel);
  border-radius: 16px;
  padding: 18px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tsp-track-wide);
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.08);
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
}
.tsp-pillrow .tsp-pill:hover {
  color: var(--tsp-plum);
  box-shadow: 0 3px 10px rgba(65, 41, 57, 0.18), 0 1px 3px rgba(65, 41, 57, 0.1);
}
.tsp-pillrow .tsp-pill.is-active {
  background: var(--tsp-plum);
  color: var(--tsp-white);
}

/* ------------------------------------------------------------------ */
/* Content containers                                                  */
/* ------------------------------------------------------------------ */
.tsp-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}
.tsp-container--narrow { max-width: 720px; }

.tsp-eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--tsp-track-wide);
  color: var(--tsp-steel);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.tsp-section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--tsp-track-wide);
  color: var(--tsp-plum);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 32px;
}
.tsp-lead {
  text-align: center;
  color: var(--tsp-steel);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 24px;
}
.tsp-section-lead {
  text-align: center;
  color: var(--tsp-plum);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.tsp-cardgrid--carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  flex: 1;
  margin: 0;
}
.tsp-body {
  color: var(--tsp-plum);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}
.tsp-divider {
  border: 0;
  border-top: 1px solid var(--tsp-steel-muted);
  opacity: 0.4;
  margin: 48px auto;
  max-width: 720px;
}

/* ------------------------------------------------------------------ */
/* Product/sample card grids                                           */
/* ------------------------------------------------------------------ */
.tsp-cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.tsp-card {
  background: var(--tsp-white);
  border-radius: var(--tsp-radius-card);
  box-shadow: var(--tsp-shadow-card);
  padding: 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.tsp-card .tsp-card-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--tsp-surface-1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--tsp-steel-muted);
  font-size: 12px;
  letter-spacing: var(--tsp-track-mid);
}
.tsp-card .tsp-card-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tsp-track-mid);
  text-transform: uppercase;
  color: var(--tsp-plum);
  text-align: center;
}

.tsp-carousel {
  display: flex; align-items: center; gap: 16px;
}
.tsp-carousel-arrow {
  background: var(--tsp-white);
  border: 0;
  border-radius: var(--tsp-radius-pill);
  width: 36px; height: 36px;
  box-shadow: var(--tsp-shadow-pill);
  color: var(--tsp-plum);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.tsp-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--tsp-radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--tsp-track-wide);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--tsp-shadow-pill);
  transition: background 0.15s ease, color 0.15s ease;
}
.tsp-btn--primary {
  background: var(--tsp-plum);
  color: var(--tsp-white);
}
.tsp-btn--primary:hover { background: var(--tsp-plum-dark); color: var(--tsp-white); }
.tsp-btn--outline {
  background: var(--tsp-white);
  color: var(--tsp-plum);
}
.tsp-btn--outline:hover { color: var(--tsp-steel); }

.tsp-cta-row {
  display: flex; gap: 16px; justify-content: center; margin: 32px 0;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Breadcrumb                                                          */
/* ------------------------------------------------------------------ */
.tsp-breadcrumb {
  text-align: center;
  font-size: 12px;
  letter-spacing: var(--tsp-track-wide);
  text-transform: uppercase;
  color: var(--tsp-steel);
  margin-bottom: 24px;
}
.tsp-breadcrumb a { color: var(--tsp-steel); }
.tsp-breadcrumb .sep { margin: 0 8px; }

/* ------------------------------------------------------------------ */
/* Testimonial                                                         */
/* ------------------------------------------------------------------ */
.tsp-testimonial {
  text-align: center;
  padding: 24px 0;
}
.tsp-testimonial-quote {
  color: var(--tsp-steel);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto 24px;
}
.tsp-testimonial-meta {
  color: var(--tsp-plum-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Media feature block                                                 */
/* ------------------------------------------------------------------ */
.tsp-media-feature {
  background: var(--tsp-white);
  border-radius: var(--tsp-radius-card);
  box-shadow: var(--tsp-shadow-card);
  margin: 48px auto;
  padding: 96px 48px;
  text-align: center;
  max-width: 840px;
}
.tsp-media-feature .tsp-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border: 2px solid var(--tsp-steel);
  border-radius: 50%;
  color: var(--tsp-steel);
  margin-bottom: 24px;
}
.tsp-media-feature .tsp-media-label {
  text-transform: uppercase;
  letter-spacing: var(--tsp-track-wide);
  color: var(--tsp-steel-muted);
  font-weight: 500;
  font-size: 20px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.tsp-footer-splash {
  width: 100%;
  height: auto;
  display: block;
}
.tsp-footer {
  background: var(--tsp-white);
  padding: 48px 48px 64px;
}
.tsp-footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}
.tsp-footer .tsp-brand img.tsp-footer-logo { max-width: 220px; height: auto; }
.tsp-footer .tsp-brand-socials {
  display: flex; align-items: center; gap: 16px;
  margin-top: 24px;
}
.tsp-footer .tsp-brand-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--tsp-steel);
  color: var(--tsp-white);
  border-radius: 6px;
}
.tsp-footer .tsp-brand-socials svg { width: 16px; height: 16px; }
.tsp-footer .tsp-brand .tsp-crab { max-width: 70px; height: auto; margin-left: 16px; }
.tsp-footer .tsp-brand .tsp-union-bug {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--tsp-steel-muted);
  letter-spacing: var(--tsp-track-mid);
}
.tsp-footer h3 {
  color: var(--tsp-steel);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tsp-steel);
}
.tsp-footer .tsp-contact {
  color: var(--tsp-plum);
  font-size: 14px;
  line-height: 1.7;
}
.tsp-footer .tsp-contact p { margin: 0 0 16px; }
.tsp-footer .tsp-sitemap-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tsp-footer .tsp-sitemap-cols ul { list-style: none; margin: 0; padding: 0; }
.tsp-footer .tsp-sitemap-cols li { margin: 0 0 10px; }
.tsp-footer .tsp-sitemap-cols a {
  color: var(--tsp-plum);
  font-size: 14px;
}
.tsp-footer .tsp-sitemap-cols a:hover { color: var(--tsp-steel); }

/* ------------------------------------------------------------------ */
/* Hide WP default header/footer on front-end                          */
/* The parent theme's block header/footer are replaced by our parts.   */
/* ------------------------------------------------------------------ */
.wp-site-blocks > .wp-block-template-part:first-child,
.wp-site-blocks > .wp-block-template-part:last-child { all: revert; }
