﻿/*
 * File: wp-content/themes/log-core/assets/css/log-about-bottom.css
 * Hooks: wp_enqueue_style in functions.php (loaded after log-about-top.css)
 * Sections: Certifications, Testimonials, Final CTA, Marquee, Mission, Responsive
 */

/* --- Certifications Flip Cards --- */
.log-co-certs-grid {
  max-width: 1220px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.log-co-cert-flip {
  perspective: 1200px;
  height: 200px;
}

.log-co-cert-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}

.log-co-cert-flip:hover .log-co-cert-flip-inner,
.log-co-cert-flip:focus-within .log-co-cert-flip-inner {
  transform: rotateY(180deg);
}

.log-co-cert-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.log-co-cert-front {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
}

.log-co-cert-back {
  background: var(--sage-500);
  color: var(--plum-950);
  transform: rotateY(180deg);
}

.log-co-cert-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--sage-400);
}

.log-co-cert-icon .icon {
  width: 22px;
  height: 22px;
}

.log-co-cert-front h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.log-co-cert-back p {
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 600;
}

/* --- Testimonials Carousel --- */
.log-co-ab-testi-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1220px;
  margin: 0 auto;
}

.log-co-testi-nav {
  display: flex;
  gap: 10px;
}

.log-co-testi-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum-700);
  transition: all .25s var(--ease);
}

.log-co-testi-nav button:hover {
  background: var(--plum-700);
  color: #fff;
  border-color: var(--plum-700);
}

.log-co-testi-nav .icon {
  width: 16px;
  height: 16px;
}

.log-co-testi-track-wrap {
  max-width: 1220px;
  margin: 44px auto 0;
  overflow: hidden;
}

.log-co-testi-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.log-co-testi-track::-webkit-scrollbar {
  display: none;
}

.log-co-testi-card {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 15px);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 3px solid transparent;
  transition: all .3s var(--ease);
}

.log-co-testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--sage-500);
}

.log-co-testi-quote-mark {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--display);
  font-size: 58px;
  color: var(--blush-100);
  font-weight: 800;
  line-height: 1;
}

.log-co-testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.log-co-testi-stars .icon {
  width: 14px;
  height: 14px;
  color: var(--sage-500);
  fill: var(--sage-500);
  stroke: none;
}

.log-co-testi-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-700);
  font-style: italic;
  min-height: 110px;
}

.log-co-testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.log-co-testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum-600), var(--sage-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--display);
  font-size: 15px;
  flex-shrink: 0;
}

.log-co-testi-person strong {
  display: block;
  font-size: 13.5px;
}

.log-co-testi-person span:not(.log-co-testi-avatar) {
  display: block;
  font-size: 11.5px;
  color: var(--gray-600);
}

.log-co-testi-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  background: var(--paper);
  color: var(--plum-700);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

/* --- Shared buttons (used in Hero + Final CTA; all about-page CSS files load together, no need to duplicate per file) --- */
.btn-sage {
  background: var(--sage-500);
  color: var(--plum-950);
  font-weight: 700;
  font-size: 12.5px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s var(--ease);
}

.btn-sage:hover {
  background: var(--sage-400);
  color: var(--plum-950);
  box-shadow: 0 14px 30px rgba(29, 219, 149, .3);
}

.btn-ghost-white {
  border: 1.4px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  transition: all .25s var(--ease);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.btn-gold {
  background: var(--sage-500);
  color: var(--plum-950);
  font-weight: 700;
  font-size: 13.5px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s var(--ease);
}

.btn-gold:hover {
  background: var(--sage-400);
  color: var(--plum-950);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29, 219, 149, .28);
}

/* --- Final CTA --- */
.log-co-ab-final {
  position: relative;
  background: linear-gradient(155deg, var(--plum-950), #3b0d44, var(--plum-800));
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.log-co-ab-final::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29, 219, 149, .1), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.log-co-ab-final::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}

.log-co-ab-final-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.log-co-ab-final-inner .headline {
  margin-top: 10px;
}

/* .eyebrow-pill has no rule on this page (only defined by other pages'
   page-scoped CSS), so it rendered as bare unstyled inline text (bug72). */
.log-co-ab-final-inner .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(94, 238, 192, .13);
  border: 1px solid rgba(94, 238, 192, .35);
  color: var(--sage-400);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.log-co-ab-final-inner .eyebrow-pill .icon {
  width: 12px;
  height: 12px;
}

.log-co-ab-final-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.log-co-ab-final-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.log-co-ab-final-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  transition: all .25s var(--ease);
}

.log-co-ab-final-chips span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
}

.log-co-ab-final-chips .icon {
  width: 13px;
  height: 13px;
  color: var(--sage-400);
}

/* --- FAQ (dynamic, sitewide Most Asked data; white cards on a dark section so text color must be explicit, not inherited) --- */
.faq-wrap {
  max-width: 760px;
  margin: 46px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 14.5px;
  text-align: left;
  color: var(--ink-900);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s var(--ease);
}

.faq-toggle .icon {
  width: 13px;
  height: 13px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--sage-500);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}

.faq-a p {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 0;
}

/* --- Marquee Strip --- */
.log-co-mq-strip {
  background: #0f0118;
  border-top: 1px solid rgba(29, 219, 149, .15);
  border-bottom: 1px solid rgba(29, 219, 149, .15);
  overflow: hidden;
  padding: 16px 0;
}

.log-co-mq-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: log-co-mqScroll 32s linear infinite;
}

.log-co-mq-track.log-co-rev {
  animation-direction: reverse;
}

@keyframes log-co-mqScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.log-co-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}

.log-co-mq-item em {
  color: var(--sage-400);
  font-style: normal;
}

.log-co-mq-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage-500);
  flex-shrink: 0;
}

/* --- Mission Section --- */
.log-co-mission-sec {
  position: relative;
  background: linear-gradient(160deg, #0e0118 0%, #180226 55%, #220330 100%);
  padding: 130px 24px;
  overflow: hidden;
}

.log-co-mission-sec::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 219, 149, .08) 0%, rgba(122, 31, 110, .12) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.log-co-mission-sec::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.log-co-mission-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.log-co-mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-400);
  margin-bottom: 36px;
}

.log-co-mission-tag::before,
.log-co-mission-tag::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--sage-500);
}

.log-co-mission-text {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.5;
  font-weight: 600;
}

.log-co-mw {
  display: inline;
  color: rgba(255, 255, 255, .22);
  transition: color .45s ease, text-shadow .45s ease;
}

.log-co-mw.log-co-lit {
  color: #fff;
  text-shadow: none;
}

.log-co-mw.log-co-lit-em {
  color: #a8f5dc;
  text-shadow: 0 0 32px rgba(29, 219, 149, .55), 0 0 60px rgba(29, 219, 149, .2);
  font-style: italic;
}

/* --- Responsive 1024px --- */
@media(max-width:1024px) {
  .log-co-certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .log-co-testi-card {
    flex: 0 0 calc(50% - 11px);
  }

  .log-co-mission-sec {
    padding: 100px 24px;
  }

  .log-co-mission-text {
    font-size: clamp(24px, 5vw, 40px);
  }
}

/* --- Responsive 768px --- */
@media(max-width:768px) {
  .log-co-certs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .log-co-cert-flip {
    height: 180px;
  }

  .log-co-testi-card {
    flex: 0 0 86%;
  }

  .log-co-mission-sec {
    padding: 80px 20px;
  }

  .log-co-mission-text {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.4;
  }

  .log-co-ab-final-chips span {
    font-size: 10.5px;
    padding: 6px 12px;
  }

  .log-co-mq-item {
    padding: 0 20px;
    font-size: 11px;
  }

  .log-co-mq-strip {
    padding: 12px 0;
  }

  .log-co-cert-front h4 {
    font-size: 15px;
  }

  .log-co-cert-back p {
    font-size: 11.5px;
  }
}