/* ============================================================
   content-pages.css — Shared styles for /guides/, /services/,
   /t-shirt-designs/ content pages. Design tokens match homepage.
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --cp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --cp-font-heading: 'Roboto Slab', Georgia, 'Times New Roman', serif;

  --cp-navy: #0D2762;
  --cp-navy-light: #141A3C;
  --cp-text: #181F24;
  --cp-text-muted: #5b6f82;
  --cp-text-light: #9A9A9A;
  --cp-border: #e8e8e8;
  --cp-border-light: #f0f0f0;
  --cp-bg: #ffffff;
  --cp-bg-alt: #F8F9FA;
  --cp-bg-footer: #0E0E0E;
  --cp-bg-footer-card: #434343;
  --cp-blue: #2ea8e6;
  --cp-blue-hover: #4dbef8;
  --cp-green: #27ae60;

  --cp-max-width: 1140px;
  --cp-sidebar-width: 280px;
  --cp-gap: 40px;
  --cp-radius: 8px;
  --cp-radius-pill: 100px;
}

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

.cp-page {
  margin: 0;
  padding: 0;
  font-family: var(--cp-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-text);
  background: var(--cp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cp-page img { max-width: 100%; height: auto; }
.cp-page a { color: var(--cp-navy); text-decoration: none; }
.cp-page a:hover { text-decoration: underline; }
.cp-page a.cp-btn-primary,
.cp-page a.cp-btn-primary:hover { color: #fff; text-decoration: none; }
.cp-page a.cp-btn-secondary,
.cp-page a.cp-btn-secondary:hover { color: var(--cp-navy); text-decoration: none; }
.cp-page a.cp-btn-start,
.cp-page a.cp-btn-start:hover { text-decoration: none; }
.cp-page a.cp-product-card,
.cp-page a.cp-product-card:hover { text-decoration: none; color: var(--cp-navy); }
.cp-page a.cp-card-link,
.cp-page a.cp-card-link:hover { text-decoration: none; }


/* =========================
   HEADER
   ========================= */
.cp-header {
  border-bottom: 1px solid var(--cp-border);
  background: var(--cp-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cp-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px;
}
.cp-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.cp-header-logo img {
  height: 42px;
  width: auto;
}
.cp-header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.cp-header-nav a,
.cp-header-nav button {
  font-size: 14px;
  font-weight: 500;
  color: var(--cp-navy-light);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--cp-font-body);
  padding: 0;
}
.cp-header-nav a:hover,
.cp-header-nav button:hover {
  text-decoration: underline;
}
.cp-header-right {
  display: none;
  align-items: center;
  gap: 40px;
}
.cp-header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cp-text);
  font-size: 14px;
}
.cp-header-contact strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.cp-header-contact span {
  display: block;
  font-size: 12px;
  color: rgba(24, 31, 36, 0.7);
}
.cp-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--cp-radius-pill);
  border: 1px solid var(--cp-navy);
  color: var(--cp-navy);
  font-size: 14px;
  font-weight: 500;
  background: var(--cp-bg);
  transition: background 0.15s;
  white-space: nowrap;
}
.cp-btn-start:hover {
  background: #F8F9ED;
  text-decoration: none;
}

/* Mobile hamburger */
.cp-header-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
}
.cp-header-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.cp-mobile-menu {
  display: none;
  background: var(--cp-bg);
  border-bottom: 1px solid var(--cp-border);
  padding: 16px 30px 24px;
}
.cp-mobile-menu.is-open { display: block; }
.cp-mobile-menu a,
.cp-mobile-menu button {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--cp-navy-light);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--cp-font-body);
  width: 100%;
  text-align: left;
}
.cp-mobile-menu .cp-btn-start {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

@media (min-width: 1024px) {
  .cp-header-nav { display: flex; }
  .cp-header-right { display: flex; }
  .cp-header-toggle { display: none; }
}


/* =========================
   BREADCRUMBS
   ========================= */
.cp-breadcrumbs {
  background: var(--cp-bg-alt);
  border-bottom: 1px solid var(--cp-border-light);
  padding: 12px 0;
}
.cp-breadcrumbs-inner {
  max-width: var(--cp-max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.cp-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--cp-text-light);
}
.cp-breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.cp-breadcrumbs li + li::before {
  content: "\203A";
  color: var(--cp-text-light);
  margin-right: 4px;
}
.cp-breadcrumbs a {
  color: var(--cp-text-muted);
}
.cp-breadcrumbs a:hover { text-decoration: underline; }


/* =========================
   LAYOUT
   ========================= */
.cp-container {
  max-width: var(--cp-max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.cp-layout {
  display: flex;
  flex-direction: column;
  gap: var(--cp-gap);
  padding: 32px 0 60px;
}
.cp-main {
  flex: 1;
  min-width: 0;
}
.cp-sidebar {
  width: 100%;
}

@media (min-width: 1024px) {
  .cp-layout {
    flex-direction: row;
    padding: 40px 0 80px;
  }
  .cp-sidebar {
    width: var(--cp-sidebar-width);
    flex-shrink: 0;
  }
}


/* =========================
   HERO
   ========================= */
.cp-hero {
  background: var(--cp-bg-alt);
  border-bottom: 1px solid var(--cp-border-light);
  padding: 40px 20px;
}
.cp-hero-inner {
  max-width: var(--cp-max-width);
  margin: 0 auto;
}
.cp-hero h1 {
  font-family: var(--cp-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 8px;
  line-height: 1.2;
}
.cp-hero-subtitle {
  font-size: 18px;
  color: var(--cp-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.cp-hero-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.cp-hero-features li {
  font-size: 15px;
  color: var(--cp-text-muted);
  padding: 3px 0 3px 20px;
  position: relative;
}
.cp-hero-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cp-green);
  font-weight: 700;
}
.cp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 768px) {
  .cp-hero { padding: 56px 20px; }
  .cp-hero h1 { font-size: 36px; }
  .cp-hero-subtitle { font-size: 20px; }
}


/* =========================
   BUTTONS
   ========================= */
.cp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: var(--cp-radius-pill);
  background: var(--cp-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.cp-btn-primary:hover {
  background: #1a3f8a;
  text-decoration: none;
  color: #fff;
}
.cp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: var(--cp-radius-pill);
  background: transparent;
  color: var(--cp-navy);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--cp-navy);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.cp-btn-secondary:hover {
  background: #F8F9ED;
  text-decoration: none;
}


/* =========================
   ARTICLE CONTENT TYPOGRAPHY
   ========================= */
.cp-article {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cp-text);
}
.cp-article h1 {
  font-family: var(--cp-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 16px;
  line-height: 1.25;
}
.cp-article h2 {
  font-family: var(--cp-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 40px 0 12px;
  line-height: 1.3;
}
.cp-article h3 {
  font-family: var(--cp-font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--cp-navy);
  margin: 32px 0 10px;
  line-height: 1.3;
}
.cp-article p {
  margin: 0 0 16px;
}
.cp-article ul, .cp-article ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.cp-article li {
  margin-bottom: 6px;
}
.cp-article img {
  border-radius: var(--cp-radius);
  margin: 16px 0;
}
.cp-article a {
  color: var(--cp-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cp-article a:hover {
  color: var(--cp-blue);
}
.cp-article blockquote {
  border-left: 4px solid var(--cp-navy);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--cp-bg-alt);
  border-radius: 0 var(--cp-radius) var(--cp-radius) 0;
  font-size: 15px;
  color: var(--cp-text-muted);
}
.cp-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.cp-article th {
  background: var(--cp-bg-alt);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--cp-border);
}
.cp-article td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--cp-border-light);
}
.cp-article hr {
  border: none;
  border-top: 1px solid var(--cp-border);
  margin: 32px 0;
}

/* Page-level h1 (outside .cp-article) */
.cp-page-title {
  font-family: var(--cp-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 24px;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .cp-page-title { font-size: 34px; }
}


/* =========================
   AUTHOR
   ========================= */
.cp-author {
  border-top: 1px solid var(--cp-border);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 14px;
  color: var(--cp-text-light);
}


/* =========================
   SIDEBAR
   ========================= */
.cp-sidebar-cta {
  background: var(--cp-navy);
  color: #fff;
  border-radius: var(--cp-radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.cp-sidebar-cta h3 {
  font-family: var(--cp-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.cp-sidebar-cta p {
  font-size: 14px;
  margin: 0 0 16px;
  opacity: 0.85;
}
.cp-page .cp-sidebar-cta .cp-btn-start,
.cp-page .cp-sidebar-cta .cp-btn-start:hover {
  background: #fff;
  color: var(--cp-navy);
  border-color: #fff;
  width: 100%;
}
.cp-page .cp-sidebar-cta .cp-btn-start:hover {
  background: #F8F9ED;
}

.cp-sidebar-box {
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 20px;
  margin-bottom: 24px;
}
.cp-sidebar-box h4 {
  font-family: var(--cp-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cp-navy);
}
.cp-sidebar-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-sidebar-box li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--cp-border-light);
}
.cp-sidebar-box li:last-child { border-bottom: none; }
.cp-sidebar-box a {
  color: var(--cp-text);
}
.cp-sidebar-box a:hover {
  color: var(--cp-navy);
}

/* Shipping dates */
.cp-sidebar-shipping {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}
.cp-sidebar-shipping strong {
  color: var(--cp-navy);
}
.cp-sidebar-shipping .cp-badge-free {
  background: var(--cp-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--cp-radius-pill);
  text-transform: uppercase;
}
.cp-sidebar-shipping .cp-badge-rush {
  background: #e67e22;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--cp-radius-pill);
  text-transform: uppercase;
}


/* =========================
   INLINE CTA
   ========================= */
.cp-cta-inline {
  background: var(--cp-bg-alt);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}
.cp-cta-inline h3 {
  font-family: var(--cp-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 8px;
}
.cp-cta-inline p {
  font-size: 15px;
  color: var(--cp-text-muted);
  margin: 0 0 20px;
}


/* =========================
   PRODUCT GRID
   ========================= */
.cp-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}
.cp-product-card {
  background: var(--cp-bg-alt);
  border-radius: var(--cp-radius);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cp-product-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}
.cp-product-card img {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
}
.cp-product-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-navy);
  margin: 0;
}
.cp-product-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 13px;
}
.cp-product-card li { padding: 2px 0; }
.cp-product-card a {
  color: var(--cp-text-muted);
}

@media (min-width: 768px) {
  .cp-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cp-product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}


/* =========================
   DESIGN GRID (t-shirt designs)
   ========================= */
.cp-design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
.cp-design-card {
  background: var(--cp-bg-alt);
  border-radius: var(--cp-radius);
  padding: 16px;
  text-align: center;
}
.cp-design-card img {
  width: 130px;
  height: auto;
  margin-bottom: 10px;
}
.cp-design-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-navy);
}

@media (min-width: 768px) {
  .cp-design-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cp-design-grid { grid-template-columns: repeat(4, 1fr); }
}


/* =========================
   CARD GRID (index pages)
   ========================= */
.cp-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}
.cp-card-link {
  display: block;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 20px 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cp-card-link:hover {
  border-color: var(--cp-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
}
.cp-card-link h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--cp-navy);
  margin: 0 0 4px;
}
.cp-card-link p {
  font-size: 14px;
  color: var(--cp-text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .cp-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .cp-card-grid { grid-template-columns: repeat(3, 1fr); }
}


/* =========================
   RELATED CONTENT
   ========================= */
.cp-related {
  border-top: 1px solid var(--cp-border);
  margin-top: 40px;
  padding-top: 32px;
}
.cp-related h2 {
  font-family: var(--cp-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 16px;
}
.cp-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-related-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cp-border-light);
}
.cp-related-list li:last-child { border-bottom: none; }
.cp-related-list a {
  font-size: 15px;
  color: var(--cp-navy);
  font-weight: 500;
}


/* =========================
   CONTENT UTILITY CLASSES
   (for use inside article HTML)
   ========================= */
.cp-info-box {
  background: #eef6fc;
  border-left: 4px solid var(--cp-blue);
  border-radius: 0 var(--cp-radius) var(--cp-radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
}
.cp-pullquote {
  border-left: 4px solid var(--cp-navy);
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--cp-font-heading);
  font-size: 20px;
  font-style: italic;
  color: var(--cp-text-muted);
  line-height: 1.5;
}
.cp-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.cp-comparison-table th {
  background: var(--cp-navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.cp-comparison-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--cp-border-light);
}
.cp-comparison-table tr:nth-child(even) td {
  background: var(--cp-bg-alt);
}

.cp-img-float-right {
  float: right;
  margin: 0 0 16px 24px;
  max-width: 300px;
  border-radius: var(--cp-radius);
}
.cp-img-float-left {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 300px;
  border-radius: var(--cp-radius);
}
@media (max-width: 767px) {
  .cp-img-float-right,
  .cp-img-float-left {
    float: none;
    max-width: 100%;
    margin: 16px 0;
  }
}

/* Section heading used outside .cp-article */
.cp-section-heading {
  font-family: var(--cp-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 16px;
  line-height: 1.3;
}


/* =========================
   FOOTER
   ========================= */
.cp-footer {
  background: var(--cp-bg-footer);
  color: #fff;
  padding: 48px 20px 24px;
}
.cp-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.cp-footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
.cp-footer-tagline {
  font-family: var(--cp-font-heading);
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  max-width: 620px;
}
.cp-page .cp-footer .cp-btn-start,
.cp-page .cp-footer .cp-btn-start:hover {
  background: #fff;
  color: var(--cp-bg-footer);
  border-color: #fff;
  align-self: flex-start;
}
.cp-page .cp-footer .cp-btn-start:hover {
  background: #F8F9ED;
}
.cp-footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cp-footer-contact h5,
.cp-footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 20px;
}
.cp-footer-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-footer-contact-card,
.cp-page a.cp-footer-contact-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cp-bg-footer-card);
  border-radius: 16px;
  padding: 16px 24px;
  color: #fff;
  font-size: 16px;
  max-width: 220px;
  transition: background 0.15s;
}
.cp-footer-contact-card:hover,
.cp-page a.cp-footer-contact-card:hover {
  background: #555;
  text-decoration: none;
  color: #fff;
}
.cp-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.cp-footer-col a,
.cp-footer-col button,
.cp-page .cp-footer-col a {
  display: block;
  color: var(--cp-text-light);
  font-size: 14px;
  line-height: 2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--cp-font-body);
  text-align: left;
}
.cp-footer-col a:hover,
.cp-footer-col button:hover,
.cp-page .cp-footer-col a:hover {
  color: #fff;
  text-decoration: none;
}
.cp-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 48px;
}
.cp-footer-bottom p {
  font-size: 10px;
  color: var(--cp-text-light);
  margin: 0;
}
.cp-footer-social {
  display: flex;
  gap: 16px;
}
.cp-footer-social a,
.cp-page .cp-footer-social a {
  font-size: 12px;
  color: var(--cp-text-light);
  text-decoration: underline;
}
.cp-footer-social a:hover,
.cp-page .cp-footer-social a:hover { color: #fff; }

@media (min-width: 768px) {
  .cp-footer { padding: 64px 24px 24px; }
  .cp-footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cp-footer-tagline { font-size: 20px; }
  .cp-footer-content {
    flex-direction: row;
    gap: 80px;
  }
  .cp-footer-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
  }
  .cp-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
