/* Hide page title on homepage */
.home .entry-title {
	  display: none;
}

/* Normalize client logo gallery images */
.gallery img {
	  filter: grayscale(100%);
	  opacity: 0.7;
	  max-height: 80px;
	  width: auto;
	  object-fit: contain;
}

/* Tighten gap between menu and video on homepage */
.home .entry-header {
	  display: none;
}
.home .entry-content > p:empty {
	  display: none;
}
.home .site-content {
	  padding-top: 20px;
}

/* Client logo strip (homepage "Who trusts us?") */
.cc-logo-marquee {
  display: flex;
  overflow: hidden;
  gap: 0;
  margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.cc-logo-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3.5rem;
  padding: 0 1.75rem;
  margin: 0;
  list-style: none;
  animation: cc-logo-scroll 45s linear infinite;
}
.cc-logo-marquee:hover .cc-logo-track {
  animation-play-state: paused;
}
.cc-logo-track li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 70px;
}
.cc-logo-track img {
  max-width: 150px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s ease;
}
.cc-logo-track img:hover {
  transform: scale(1.15);
}
@keyframes cc-logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (max-width: 600px) {
  .cc-logo-track { gap: 2rem; padding: 0 1rem; animation-duration: 35s; }
  .cc-logo-track li { width: 110px; height: 56px; }
  .cc-logo-track img { max-width: 110px; max-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-logo-marquee { mask-image: none; -webkit-mask-image: none; }
  .cc-logo-track { animation: none; flex-wrap: wrap; justify-content: center; flex-shrink: 1; }
  .cc-logo-track[aria-hidden="true"] { display: none; }
}

/* Homepage section spacing: one consistent rhythm */
.home .entry-content > h1 {
  margin-bottom: 32px;
}
.home .entry-content > h2 {
  margin-top: 88px;
  margin-bottom: 32px;
}
.home .entry-content > .wp-block-group.alignfull {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.home .entry-content .wp-block-column > :last-child,
.home .entry-content .wp-block-group__inner-container > :last-child,
.home .entry-content > .wp-block-columns:last-child,
.home .entry-content .wp-block-group > .wp-block-columns {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .home .entry-content > h2 {
    margin-top: 64px;
    margin-bottom: 24px;
  }
}

/* FAQ dropdowns (homepage) */
.cc-faq-ready .schema-faq-section {
  border-bottom: 1px solid rgba(0,0,0,.12);
  margin: 0;
}
.cc-faq-ready .schema-faq-section:first-child {
  border-top: 1px solid rgba(0,0,0,.12);
}
.cc-faq-ready .schema-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
}
.cc-faq-ready .schema-faq-question::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.cc-faq-ready .schema-faq-section.is-open .schema-faq-question::after {
  transform: rotate(45deg);
}
.cc-faq-ready .schema-faq-question:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.cc-faq-ready .schema-faq-answer {
  display: none;
  margin: 0;
  padding: 0 0 20px;
}
.cc-faq-ready .schema-faq-section.is-open .schema-faq-answer {
  display: block;
}

/* Team page: names are headings for SEO but keep the original paragraph look */
.entry-content h2.cc-team-name {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: rgb(77, 77, 77);
  margin: 0 0 26px;
}
.entry-content h2.cc-team-name a {
  font-weight: 400;
}

/* Smaller header logo on tablets and phones */
@media (max-width: 899px) {
  .site-header-inside .custom-logo {
    max-width: 240px;
    height: auto;
  }
}
@media (max-width: 600px) {
  .site-header-inside .custom-logo {
    max-width: 190px;
  }
}

/* Homepage intro: off-white logo card, dip to black, fade into the site */
body.home::before,
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}
body.home::before {
  background: #f6f5f1;
  animation: cc-intro-bg 2.2s ease forwards;
}
body.home::after {
  background: url("https://i0.wp.com/cottagecreativehouse.com/wp-content/uploads/2019/08/cropped-cottagecreative76.png?fit=560%2C398&ssl=1") center / 120px auto no-repeat;
  animation: cc-intro-logo 2.2s ease forwards;
}
@keyframes cc-intro-bg {
  0%, 40% { background-color: #f6f5f1; opacity: 1; }
  62% { background-color: #000; opacity: 1; }
  100% { background-color: #000; opacity: 0; visibility: hidden; }
}
@keyframes cc-intro-logo {
  0%, 35% { opacity: 1; }
  52% { opacity: 0; }
  100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  body.home::before,
  body.home::after { display: none; }
}
