/*
CAPMe FULL HOMEPAGE CSS
Palette: navy #000042, gold #AA8247, white #FFFFFF.
Paste this entire file into Appearance > Customize > Additional CSS,
replacing the old CAPMe homepage CSS.
*/

/* Hide Storefront's built-in header on all pages.
   The custom CAPMe header is included in the homepage HTML below. */
body.home .site-header {
  display: none;
}

/* Prevent theme content wrappers from squeezing the custom homepage. */
body.home .site-content,
body.home #content,
body.home .content-area,
body.home .site-main {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.home .site-content {
  padding-top: 0;
}
body.home .hentry,
body.home .entry-content {
  margin: 0;
}
body.home .entry-header,
body.home .entry-title {
  display: none;
}

.capme-page {
  --cm-navy: #000042;
  --cm-gold: #AA8247;
  --cm-white: #FFFFFF;
  --cm-ink: #11112f;
  --cm-muted: #5e6172;
  --cm-pale: #f5f5f8;
  width: 100%;
  color: var(--cm-ink);
  font-family: inherit;
  line-height: 1.5;
  overflow: hidden;
  background: #fff;
}
.capme-page *, .capme-page *::before, .capme-page *::after { box-sizing: border-box; }
.capme-page img { display: block; width: 100%; height: auto; }
.capme-page a { text-decoration: none; }
.capme-page h1, .capme-page h2, .capme-page h3, .capme-page p { margin-top: 0; }

/* CUSTOM HEADER */
.capme-page .cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 82px;
  padding: 12px clamp(22px, 4.2vw, 68px);
  background: var(--cm-navy);
  color: var(--cm-white);
}
.capme-page .cm-header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 150px;
  min-width: 0;
}
.capme-page .cm-header__logo img {
  width: 100%;
  max-width: 150px;
  max-height: 56px;
  object-fit: contain;
}
.capme-page .cm-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 31px);
}
.capme-page .cm-header__nav a {
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .075em;
  white-space: nowrap;
  transition: color .18s ease;
}
.capme-page .cm-header__nav a:hover { color: var(--cm-gold); }
.capme-page .cm-header__icons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.capme-page .cm-header__icons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.capme-page .cm-header__icons a:hover { color: var(--cm-gold); }
.capme-page .cm-header__cart-count {
  position: absolute;
  top: -8px;
  right: -9px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: var(--cm-gold);
  color: var(--cm-navy);
  font-size: 9px;
  font-weight: 900;
}
.capme-page .cm-icon-search { font-size: 29px!important; }
.capme-page .cm-icon-account { font-size: 24px!important; }

/* HERO — compact wide banner matching the supplied reference */
.cm-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 350px;
  padding: 0;
  overflow: hidden;
  background: var(--cm-navy, #000042);
  color: #fff;
  isolation: isolate;
}
.cm-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 53% 0 0;
  background: linear-gradient(90deg, #000042 0%, #000042 75%, rgba(0,0,66,.94) 100%);
  pointer-events: none;
}
.cm-hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding: 24px clamp(18px, 2.5vw, 38px) 24px clamp(28px, 4.5vw, 74px);
}
.cm-eyebrow {
  margin-bottom: 12px !important;
  color: #D7B987;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.4;
}
.cm-eyebrow--gold { color: var(--cm-gold, #AA8247); }
.cm-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 3.15vw, 52px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
  text-transform: uppercase;
}
.cm-hero h1 span {
  color: var(--cm-gold, #AA8247);
  white-space: nowrap;
}
.cm-hero__intro {
  max-width: 440px;
  margin: 0 0 15px;
  color: #f0f0f6;
  font-size: 13px;
  line-height: 1.45;
}
.cm-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}
.cm-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform .18s ease, background .18s ease;
}
.cm-btn:hover { transform: translateY(-2px); }
.cm-btn--gold {
  background: var(--cm-gold, #AA8247);
  color: var(--cm-navy, #000042) !important;
  border-color: var(--cm-gold, #AA8247);
}
.cm-btn--gold:hover { background: #c19d67; }
.cm-btn--outline {
  border-color: var(--cm-gold, #AA8247);
  background: transparent;
  color: #fff !important;
}
.cm-btn--outline:hover { background: rgba(170,130,71,.12); }
.cm-hero__photo {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 350px;
  height: 100%;
  overflow: hidden;
}
.cm-hero__photo::after { content: none; }
.cm-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 0;
}

/* BENEFIT STRIP */
.cm-benefits {
  display: grid;
  /* Align the separators with the diagonal gaps between the four category panels below. */
  grid-template-columns: 26.1fr 25.5fr 25.5fr 22.9fr;
  gap: 0;
  padding: 25px 0;
  background: #fff;
}
.cm-benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  min-width: 0;
  padding: 6px 18px;
  border-right: 0;
}
.cm-benefit:first-child { padding-left: clamp(20px, 5vw, 66px); }
.cm-benefit:last-child { border-right: 0; }
.cm-benefit:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: var(--cm-gold);
  transform: skewX(-12deg);
  transform-origin: center;
}
.cm-benefit__icon { color: var(--cm-gold); font-size: 27px; line-height: 1; }
.cm-benefit strong { display: block; margin-bottom: 3px; color: var(--cm-navy); font-size: 11px; font-weight: 900; }
.cm-benefit p { margin: 0; color: var(--cm-muted); font-size: 11px; line-height: 1.35; }

/* CATEGORY PANELS */
.cm-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 10px;
  background: #fff;
}
.cm-category {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--cm-navy);
  color: #fff!important;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  margin-left: -2.5%;
}
.cm-category:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); }
.cm-category:last-child { clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); }
.cm-category::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0,0,30,.92));
}
.cm-category img { aspect-ratio: 1.18/1; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cm-category:hover img { transform: scale(1.05); }
.cm-category span {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 19px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
}
.cm-category b { color: #D7B987; font-size: 17px; line-height: .8; }

/* HOW IT WORKS — diagonal image panel and white content panel */
.capme-page .cm-how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.capme-page .cm-how__photo {
  position: relative;
  min-width: 0;
  min-height: 470px;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
.capme-page .cm-how__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center center;
}
.capme-page .cm-how__content {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 62px) clamp(28px, 4vw, 58px) clamp(32px, 5vw, 62px) 18px;
  background: #fff;
}
.cm-how h2, .cm-reviews h2 {
  margin-bottom: 22px;
  color: var(--cm-navy);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .98;
}
.cm-steps { display: grid; gap: 19px; margin: 0 0 25px; padding: 0; list-style: none; }
.cm-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.cm-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--cm-gold);
  color: var(--cm-navy);
  font-weight: 900;
}
.cm-steps strong { display: block; margin-bottom: 3px; color: var(--cm-navy); font-size: 11px; font-weight: 900; }
.cm-steps p { margin: 0; color: var(--cm-muted); font-size: 12px; line-height: 1.4; }

/* WIDE FEATURE BANNER — text left, image right, diagonal edge */
.cm-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--cm-navy);
  color: #fff;
  overflow: hidden;
}
.cm-feature__photo {
  order: 2;
  position: relative;
  height: 100%;
  min-height: 370px;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.cm-feature__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
  object-position: center;
}
.cm-feature__copy {
  order: 1;
  align-self: center;
  padding: clamp(30px, 5vw, 60px);
}
.cm-feature h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .98;
}
.cm-feature__copy > p:not(.cm-eyebrow) { max-width: 500px; margin-bottom: 22px; color: #e5e5f0; font-size: 13px; }

/* REVIEWS */
.cm-reviews { padding: clamp(38px, 5vw, 64px) clamp(20px, 6vw, 76px); background: #f7f7f9; }
.cm-reviews__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.cm-reviews__heading .cm-eyebrow { margin-bottom: 7px!important; }
.cm-reviews h2 { margin-bottom: 0; font-size: clamp(26px, 3vw, 38px); }
.cm-reviews__heading > a { color: var(--cm-navy); font-size: 10px; font-weight: 900; white-space: nowrap; }
.cm-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cm-review { padding: 23px; border: 1px solid #ececf1; border-radius: 3px; background: #fff; box-shadow: 0 7px 22px rgba(0,0,66,.04); }
.cm-stars { margin-bottom: 8px; color: var(--cm-gold); font-size: 17px; letter-spacing: .08em; }
.cm-review p { margin-bottom: 13px; color: #424456; font-size: 12px; }
.cm-review strong { color: var(--cm-navy); font-size: 10px; }

/* FINAL CALL TO ACTION */
.cm-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 76px);
  background: var(--cm-navy);
  color: #fff;
}
.cm-final-cta .cm-eyebrow { margin-bottom: 6px!important; }
.cm-final-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
}

/* TABLET */
@media (max-width: 1000px) {
  .capme-page .cm-header { flex-wrap: wrap; justify-content: space-between; gap: 15px 20px; }
  .capme-page .cm-header__nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; gap: 13px 24px; }
  .cm-hero { grid-template-columns: minmax(0, 47%) minmax(0, 53%); min-height: 330px; }
  .cm-hero__copy { padding: 22px 18px 22px 28px; }
  .cm-hero h1 { font-size: clamp(29px, 3.6vw, 40px); }
  .cm-hero__photo, .cm-hero__photo img { min-height: 330px; }
  .cm-benefit { padding: 6px 10px; gap: 8px; }
  .cm-category span { padding: 12px; font-size: 10px; }
}
@media (max-width: 800px) {
  .cm-hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .cm-hero::before { inset: 0; background: #000042; }
  .cm-hero__copy { padding: 32px 24px 28px; }
  .cm-hero h1 { font-size: clamp(36px, 8vw, 48px); }
  .cm-hero h1 span { white-space: normal; }
  .cm-hero__photo { width: 100%; min-height: 220px; max-height: 320px; }
  .cm-hero__photo img { width: 100%; min-height: 220px; max-height: 320px; object-position: 58% center; }
  .cm-benefits { grid-template-columns: repeat(2, 1fr); row-gap: 18px; padding: 20px clamp(15px, 4vw, 30px); }
  .cm-benefit:nth-child(2)::after { display: none; }
  .cm-benefit:nth-child(3)::after { display: block; }
  .cm-benefit:nth-child(3) { padding-left: 0; }
  .cm-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cm-category, .cm-category:first-child, .cm-category:last-child { margin-left: 0; clip-path: none; }
  .cm-category img { aspect-ratio: 1.5/1; }
  .capme-page .cm-how, .cm-feature { grid-template-columns: 1fr; }
  .cm-feature__photo { order: 1; clip-path: none; }
  .cm-feature__copy { order: 2; }
  .capme-page .cm-how__photo {
    min-height: 300px;
    max-height: 390px;
    clip-path: none;
  }
  .capme-page .cm-how__photo img {
    min-height: 300px;
    max-height: 390px;
    object-position: center center;
  }
  .capme-page .cm-how__content { padding: 32px 24px; }
  .cm-feature__photo, .cm-feature__photo img { min-height: 250px; max-height: 360px; }
  .cm-review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .capme-page .cm-header { padding: 14px 18px; }
  .capme-page .cm-header__logo { flex-basis: 120px; }
  .capme-page .cm-header__logo img { max-width: 120px; }
  .capme-page .cm-header__icons { gap: 14px; }
  .capme-page .cm-header__nav { justify-content: flex-start; gap: 12px 16px; }
  .capme-page .cm-header__nav a { font-size: 10px; }
  .cm-hero__copy { padding: 28px 18px 24px; }
  .cm-hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .cm-buttons { flex-direction: row; align-items: center; }
  .cm-buttons .cm-btn { width: auto; }
  .cm-benefits { padding: 20px 15px; }
  .cm-benefit { padding: 4px 8px; gap: 8px; }
  .cm-benefit__icon { font-size: 21px; }
  .cm-benefit strong { font-size: 10px; }
  .cm-benefit p { font-size: 10px; }
  .cm-category span { padding: 10px; font-size: 9px; }
  .cm-how__content, .cm-feature__copy { padding: 30px 20px; }
  .cm-reviews__heading { align-items: start; flex-direction: column; }
  .cm-review-grid { grid-template-columns: 1fr; }
  .cm-final-cta { align-items: flex-start; flex-direction: column; padding: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .capme-page *, .capme-page *::before, .capme-page *::after { transition: none!important; }
}

/* HOW IT WORKS — decorative white-cap image in the upper-right */
.capme-page .cm-how__content {
  position: relative;
  padding-right: clamp(190px, 20vw, 270px);
}
.capme-page .cm-how__extra-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(170px, 22vw, 290px);
  max-width: none;
  margin: 0;
  transform: translate(8%, -5%);
  z-index: 2;
  pointer-events: none;
}
.capme-page .cm-how__extra-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1000px) and (min-width: 801px) {
  .capme-page .cm-how__content {
    padding-right: 185px;
  }
  .capme-page .cm-how__extra-photo {
    width: 190px;
    transform: translate(5%, -2%);
  }
}
@media (max-width: 800px) {
  .capme-page .cm-how__content {
    padding: 32px 24px;
  }
  .capme-page .cm-how__extra-photo {
    position: relative;
    top: auto;
    right: auto;
    width: min(68%, 280px);
    margin: 22px auto 0;
    transform: none;
  }
}
@media (max-width: 520px) {
  .capme-page .cm-how__content {
    padding: 30px 20px;
  }
  .capme-page .cm-how__extra-photo {
    width: min(75%, 250px);
  }
}

/* Final framing adjustment: shift the red cap left within the visible panel */
.capme-page .cm-how__photo img {
  object-position: 90% center;
}

@media (max-width: 768px) {
  .capme-page .cm-how__photo img {
    object-position: 90% center;
  }
}

/* FINAL FIX — HOW IT WORKS: full-width text panel, no extra photo area */
.capme-page .cm-how {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
}

.capme-page .cm-how__photo {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 520px !important;
  height: 100% !important;
  overflow: hidden !important;
}

.capme-page .cm-how__photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 520px !important;
  object-fit: cover !important;
  object-position: 90% center !important;
}

.capme-page .cm-how__content {
  position: relative !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: clamp(36px, 4.5vw, 68px) clamp(30px, 4.5vw, 68px) !important;
}

/* The right panel contains text only; remove all reserved space for a decorative image. */
.capme-page .cm-how__extra-photo {
  display: none !important;
}

.capme-page .cm-how__content > * {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.capme-page .cm-how__content .cm-eyebrow {
  width: auto !important;
  align-self: flex-start !important;
}

.capme-page .cm-how__content h2 {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 26px !important;
  font-size: clamp(34px, 3.4vw, 52px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.capme-page .cm-how__content .cm-steps {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  gap: 22px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.capme-page .cm-how__content .cm-steps li {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  gap: 14px !important;
  margin: 0 !important;
}

.capme-page .cm-how__content .cm-steps li > div {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.capme-page .cm-how__content .cm-steps li p {
  width: 100% !important;
  max-width: none !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.capme-page .cm-how__content .cm-steps strong {
  font-size: 12px !important;
  margin-bottom: 5px !important;
}

.capme-page .cm-how__content .cm-btn {
  align-self: flex-start !important;
  width: auto !important;
  max-width: max-content !important;
  margin-top: 2px !important;
}

@media (min-width: 801px) {
  .capme-page .cm-how {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 800px) {
  .capme-page .cm-how {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .capme-page .cm-how__photo,
  .capme-page .cm-how__photo img {
    min-height: 340px !important;
    max-height: 420px !important;
  }
  .capme-page .cm-how__content {
    padding: 34px 26px !important;
  }
  .capme-page .cm-how__content h2 {
    font-size: clamp(34px, 7vw, 46px) !important;
  }
}

@media (max-width: 520px) {
  .capme-page .cm-how__photo,
  .capme-page .cm-how__photo img {
    min-height: 300px !important;
    max-height: 380px !important;
  }
  .capme-page .cm-how__content {
    padding: 30px 20px !important;
  }
}

/* Hide the original Storefront header site-wide */
#masthead {
  display: none !important;
}

/* CAPMe custom header — site-wide styling */
.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 4%;
  background: #fff;
  box-sizing: border-box;
}

.cm-header__logo {
  display: block;
  flex: 0 0 150px;
  width: 150px;
}

.cm-header__logo img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

.cm-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}

.cm-header__nav a {
  color: #000042;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
}

.cm-header__icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cm-header__icons a {
  color: #000042;
  font-size: 20px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cm-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cm-header__nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

/* CAPMe custom header brand colors — all pages */
.cm-header {
  background-color: #000042 !important;
}

.cm-header__nav a,
.cm-header__icons a {
  color: #AA8247 !important;
}

/* Center the pricing table image */
.wp-block-image {
  text-align: center;
}

.wp-block-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Hide page titles across the site */
.entry-title {
  display: none !important;
}

/* Reduce top spacing on every page except the homepage */
body:not(.home) #page {
  margin-top: 0 !important;
}

body:not(.home) .site-content {
  padding-top: 0 !important;
}

body:not(.home) .content-area,
body:not(.home) .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body:not(.home) .cm-header {
  margin-top: 0 !important;
}

/* Tighten the custom header position on all pages except Home */
body:not(.home) .cm-header {
  margin-block-start: 0 !important;
  padding-block-start: 0 !important;
  position: relative;
  top: -80px;
}

/* Pull page content up to remove the space left behind */
body:not(.home) .cm-header + * {
  margin-block-start: -80px !important;
}

/* Hide the original Storefront header on tablet and mobile,
   on every page except the homepage */
@media (max-width: 1024px) {
  body:not(.home) #masthead {
    display: none !important;
  }
}

/* PRICING PAGE (page ID 36) — header at the top: hide Storefront's breadcrumb and spacing */
body.page-id-36 .storefront-breadcrumb { display: none !important; }
body.page-id-36 .entry-header { display: none !important; }
body.page-id-36 .hentry,
body.page-id-36 .entry-content { margin: 0 !important; }
/* Keep the header visible: the site-wide rules lift non-home headers 80px and the wrapper would clip it */
body:not(.home) .capme-page .cm-header { top: 0; }
body:not(.home) .capme-page .cm-header + * { margin-block-start: 0 !important; }
/* PRICING PAGE — white content panel */
.capme-page .cm-pricing { padding: clamp(40px, 6vw, 80px) clamp(22px, 4.2vw, 68px); background: var(--cm-white); }
.capme-page .cm-pricing h1 { color: var(--cm-navy); font-size: clamp(30px, 4vw, 48px); font-weight: 900; margin-bottom: 12px; }
/* PRICING TABLES — silicone, latex and extra-fee tables inside the white pricing panel */
.capme-page .cm-pricing .cm-pricing__intro { max-width: 640px; margin: 0 0 8px; color: var(--cm-muted); }
.capme-page .cm-pricing .cm-price-title { margin: 36px 0 14px; color: var(--cm-navy); font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.capme-page .cm-price-wrap { overflow-x: auto; margin: 0 0 6px; }
.capme-page .cm-price-table { width: 100%; min-width: 440px; margin: 0; border-collapse: collapse; border: 1px solid #ececf1; }
.capme-page .cm-price-table th, .capme-page .cm-price-table td { padding: 13px 16px; border: 0; border-bottom: 1px solid #ececf1; text-align: center; color: var(--cm-ink); font-size: 16px; }
.capme-page .cm-price-table thead th { border-bottom-color: var(--cm-navy); background: var(--cm-navy); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.capme-page .cm-price-table tbody th { color: var(--cm-navy); font-weight: 900; }
.capme-page .cm-price-table:not(.cm-price-table--fees) thead th:first-child { color: var(--cm-gold); border-bottom-color: rgba(170,130,71,.35); }
.capme-page .cm-price-table tbody tr:nth-child(even) > * { background: var(--cm-pale); }
.capme-page .cm-price-table td { font-weight: 700; }
/* the theme colors table cells navy, so set the plain cells to white explicitly */
.capme-page .cm-price-table td, .capme-page .cm-price-table tbody th { background: #fff; }
.capme-page .cm-price-table:not(.cm-price-table--fees) tbody tr > th { background: var(--cm-navy); color: var(--cm-gold); border-bottom-color: rgba(170,130,71,.35); }
.capme-page .cm-price-table--fees th, .capme-page .cm-price-table--fees td { text-align: left; }
.capme-page .cm-price-table--fees td { color: var(--cm-gold); font-weight: 900; }
.capme-page .cm-price-table--fees thead th:last-child { color: var(--cm-gold); }
@media (max-width: 600px) { .capme-page .cm-price-table th, .capme-page .cm-price-table td { padding: 11px 10px; font-size: 14px; } }


/* SERVICES (SHOP) PAGE — show the CAPMe header at the top; the shop itself is unchanged.
   Hides only Storefront's breadcrumb and the "Custom Caps" page title above it. */
body.woocommerce-shop .storefront-breadcrumb,
body.woocommerce-shop .woocommerce-products-header__title { display: none !important; }

/* HOW TO ORDER (Services page) — navy band with six numbered steps */
.capme-page .cm-order { padding: clamp(38px, 5vw, 64px) clamp(20px, 6vw, 76px); background: var(--cm-navy); color: #fff; text-align: left; }
.capme-page .cm-order h2 { margin: 0 0 28px; color: #fff; font-size: clamp(30px, 3.5vw, 44px); font-weight: 900; letter-spacing: -.05em; line-height: .98; }
.capme-page .cm-order__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; margin: 0; padding: 0; list-style: none; }
.capme-page .cm-order__steps li { margin: 0; padding-top: 18px; border-top: 1px solid rgba(170,130,71,.6); }
.capme-page .cm-order__steps li > span { display: grid; width: 34px; height: 34px; margin-bottom: 14px; place-items: center; border-radius: 50%; background: var(--cm-gold); color: var(--cm-navy); font-weight: 900; }
.capme-page .cm-order__steps strong { display: block; margin-bottom: 6px; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.capme-page .cm-order__steps p { margin: 0; color: #d9d9e6; font-size: 14px; line-height: 1.5; }
.capme-page .cm-order__steps p .cm-order__hl { display: inline; width: auto; height: auto; margin: 0; background: none; color: var(--cm-gold); font-weight: 900; letter-spacing: .06em; }
@media (max-width: 800px) { .capme-page .cm-order__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .capme-page .cm-order__steps { grid-template-columns: 1fr; } }


/* REVIEWS (TESTIMONIALS) PAGE — show the CAPMe header at the top of the page.
   Hides only Storefront's "Home > Reviews" breadcrumb and its spacing. */
body.page-id-35 .storefront-breadcrumb { display: none !important; }
body.page-id-35 .hentry,
body.page-id-35 .entry-content { margin: 0 !important; }

/* GOOGLE REVIEWS SECTION — reuses the homepage reviews look (.cm-reviews) */
.capme-page .cm-google-reviews h2 { color: var(--cm-navy); }
.capme-page .cm-google-reviews__widget { min-height: 120px; }
.capme-page .cm-google-reviews__cta { margin-top: 24px; text-align: center; }

/* BLOG PAGE (page ID 300) — header at the top: hide Storefront's breadcrumb and spacing */
body.page-id-300 .storefront-breadcrumb { display: none !important; }
body.page-id-300 .hentry,
body.page-id-300 .entry-content { margin: 0 !important; }
/* BLOG PAGE — post cards (add the CSS class cm-blog-posts to the Latest Posts block) */
.cm-blog-posts { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 !important; padding: 24px clamp(20px, 6vw, 76px) clamp(38px, 5vw, 64px) !important; background: #f7f7f9; list-style: none; }
.cm-blog-posts li { width: auto !important; margin: 0 !important; padding: 0 0 23px; border: 1px solid #ececf1; border-radius: 3px; background: #fff; box-shadow: 0 7px 22px rgba(0,0,66,.04); overflow: hidden; }
.cm-blog-posts .wp-block-latest-posts__featured-image { margin: 0 0 18px; }
.cm-blog-posts .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: auto; }
.cm-blog-posts .wp-block-latest-posts__post-title { display: block; margin: 0 23px 4px; color: #000042; font-weight: 900; text-decoration: none; }
.cm-blog-posts .wp-block-latest-posts__post-date { display: block; margin: 0 23px 8px; color: #AA8247; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.cm-blog-posts .wp-block-latest-posts__post-excerpt { margin: 0 23px; color: #424456; font-size: 13px; }
@media (max-width: 1000px) { .cm-blog-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cm-blog-posts { grid-template-columns: 1fr; } }
/* BLOG PAGE — placeholder photo box (used by the "coming soon" cards) */
.cm-blog-posts__placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: #000042; color: #AA8247; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
/* BLOG PAGE — one panel holding the BLOG label and the cards */
.capme-page .cm-blog-section { padding: clamp(38px, 5vw, 64px) clamp(20px, 6vw, 76px); background: #f7f7f9; }
.capme-page .cm-blog-section .cm-eyebrow { margin: 0 0 24px !important; }
.capme-page .cm-blog-section .cm-blog-posts { padding: 0 !important; background: transparent; }

* CONTACT PAGE — header at the top: hide Storefront's breadcrumb and spacing on this page only */
body:has(.cm-policy) .storefront-breadcrumb { display: none !important; }
body:has(.cm-policy) .hentry,
body:has(.cm-policy) .entry-content { margin: 0 !important; }
/* Keep the header visible: your site-wide rules lift non-home headers 80px, which the wrapper then clips.
   Already in your CSS from the Pricing page? Then this pair is a harmless repeat. */
body:not(.home) .capme-page .cm-header { top: 0; }
body:not(.home) .capme-page .cm-header + * { margin-block-start: 0 !important; }
/* CONTACT PAGE — return policy text */
.capme-page .cm-policy { padding: clamp(38px, 5vw, 64px) clamp(20px, 6vw, 76px); background: #f7f7f9; font-family: inherit; }
.capme-page .cm-policy h1 { margin: 0 0 22px; color: var(--cm-navy); font-family: inherit; font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; text-transform: uppercase; }
.capme-page .cm-policy p,
.capme-page .cm-policy li { max-width: 760px; color: #424456; font-size: 16px; line-height: 1.6; }
.capme-page .cm-policy p { margin-bottom: 16px; }
.capme-page .cm-policy ul { margin: 0 0 20px; padding-left: 22px; }
.capme-page .cm-policy li { margin-bottom: 6px; }
.capme-page .cm-policy li::marker { color: var(--cm-gold); }
.capme-page .cm-policy .cm-policy__thanks { margin-bottom: 0; color: var(--cm-navy); font-weight: 900; }
/* CONTACT PAGE — contact information cards */
.capme-page .cm-contact { padding: clamp(38px, 5vw, 64px) clamp(20px, 6vw, 76px); background: #fff; font-family: inherit; }
.capme-page .cm-contact h2 { margin: 0 0 24px; color: var(--cm-navy); font-family: inherit; font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; text-transform: uppercase; }
.capme-page .cm-contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; }
.capme-page .cm-contact__item { padding: 23px; border: 1px solid #ececf1; border-radius: 3px; background: #f7f7f9; }
.capme-page .cm-contact__label { display: block; margin-bottom: 6px; color: var(--cm-gold); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.capme-page .cm-contact__value { display: block; color: var(--cm-navy); font-size: 16px; font-weight: 700; line-height: 1.4; }
.capme-page a.cm-contact__value:hover { color: var(--cm-gold); }
@media (max-width: 600px) { .capme-page .cm-contact__grid { grid-template-columns: 1fr; } }

/* CONTACT PAGE (page ID 88) — remove Storefront's "Home > CONTACT" breadcrumb and the empty title area above the header */
body.page-id-88 .storefront-breadcrumb { display: none !important; }
body.page-id-88 .entry-header { display: none !important; }

/* MY ACCOUNT PAGE (page ID 87) — header at the top: hide Storefront's breadcrumb, the empty title area and its spacing */
body.page-id-87 .storefront-breadcrumb { display: none !important; }
body.page-id-87 .entry-header { display: none !important; }
body.page-id-87 .hentry,
body.page-id-87 .entry-content { margin: 0 !important; }
/* Keep the header visible: your site-wide rules lift non-home headers 80px, which the wrapper then clips.
   Already in your CSS from the Pricing or Contact page? Then this pair is a harmless repeat. */
body:not(.home) .capme-page .cm-header { top: 0; }
body:not(.home) .capme-page .cm-header + * { margin-block-start: 0 !important; }
/* Leave a little room between the header and the login / account area (the account area itself is unchanged) */
body.page-id-87 .entry-content > .woocommerce { padding-top: 40px; }

/* Sitewide: use more of wide screens, with a sensible cap */
.site-header .col-full,
.site-content .col-full,
.site-footer .col-full {
  max-width: 1800px;
  width: 92%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Keep long text readable */
body.single-post .entry-content,
body.single-post .entry-header {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Keep cart and checkout comfortable */
body.woocommerce-cart .site-content .col-full,
body.woocommerce-checkout .site-content .col-full {
  max-width: 1400px;
}