/**
 * About Page — KetoFocus
 * Self-contained styles for page-templates/about.php
 * Uses design tokens from STYLE-GUIDE.md
 */

/* ==========================================================================
   Reveal Animation
   ========================================================================== */

.kf-about .kf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.kf-about .kf-reveal.kf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a section */
.kf-about .kf-reveal:nth-child(2) { transition-delay: 0.08s; }
.kf-about .kf-reveal:nth-child(3) { transition-delay: 0.16s; }
.kf-about .kf-reveal:nth-child(4) { transition-delay: 0.24s; }
.kf-about .kf-reveal:nth-child(5) { transition-delay: 0.32s; }
.kf-about .kf-reveal:nth-child(6) { transition-delay: 0.4s; }

/* ==========================================================================
   Shared Elements
   ========================================================================== */

.kf-about {
  color: #3a3f4b;
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

.kf-about p {
  margin-bottom: 1.1em;
  color: #3a3f4b;
}

.kf-about__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c4714b;
  margin-bottom: 12px;
}

.kf-about__h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #2B354F;
  margin-bottom: 8px;
}

.kf-about__accent {
  font-weight: 400;
  color: #8a7e6e;
  font-size: 0.65em;
  letter-spacing: 0.02em;
}

.kf-about__h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #2B354F;
  margin-bottom: 20px;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */

.kf-about__hero {
  padding: 64px 0 56px;
  background: #fdf9f5;
  border-bottom: 1px solid #e8e2d9;
}

.kf-about__hero .row {
  gap: 0;
}

.kf-about__hero-photo-wrap {
  position: relative;
}

.kf-about__hero-photo-wrap::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: 3px solid #c4714b;
  border-radius: 16px;
  z-index: 0;
  opacity: 0.3;
}

.kf-about__hero-photo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(120, 90, 50, 0.12);
}

.kf-about__hero-text-col {
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pills row */
.kf-about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: 16px;
}

.kf-about__pill {
  display: inline-block;
  background: #f5f0ea;
  color: #6b5e4b;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #e8e2d9;
  letter-spacing: 0.3px;
}

/* Intro paragraph */
.kf-about__intro {
  font-size: 18px;
  line-height: 1.7;
  color: #3a3f4b;
  margin-bottom: 32px;
}

/* Stat cards row */
.kf-about__stats {
  display: flex;
  gap: 16px;
}

.kf-about__stat-card {
  flex: 1;
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(120, 90, 50, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kf-about__stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(120, 90, 50, 0.1);
}

.kf-about__stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #2B354F;
  line-height: 1.2;
}

.kf-about__stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8a7e6e;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ==========================================================================
   Section 2: Journey
   ========================================================================== */

.kf-about__journey {
  padding: 72px 0;
}

.kf-about__journey-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.kf-about__journey-hero-img {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(120, 90, 50, 0.1);
}

.kf-about__journey-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.kf-about__journey-content {
  font-size: 17px;
  line-height: 1.75;
}

.kf-about__journey-content p {
  margin-bottom: 1.3em;
}

.kf-about__pullquote {
  position: relative;
  margin: 40px 0;
  padding: 24px 0 24px 28px;
  border-left: 4px solid #c4714b;
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: #2B354F;
}

/* ==========================================================================
   Section 3: Credentials
   ========================================================================== */

.kf-about__credentials {
  padding: 72px 0;
  background: #fdf9f5;
  border-top: 1px solid #e8e2d9;
  border-bottom: 1px solid #e8e2d9;
}

.kf-about__credentials-header {
  margin-bottom: 48px;
}

.kf-about__credentials-header .kf-about__h2 {
  margin-bottom: 0;
}

/* Trust card — outer container */
.kf-about__trust-card {
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
}

/* Top band: 3 credential tiles in a row */
.kf-about__cred-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 32px;
  border-bottom: 3px solid #c4714b;
}

.kf-about__cred-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8f5f0;
  border: 1px solid #e8e2d9;
  border-radius: 10px;
  padding: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kf-about__cred-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(120, 90, 50, 0.08);
}

.kf-about__cred-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.kf-about__cred-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #2B354F;
  line-height: 1.3;
}

.kf-about__cred-text span {
  display: block;
  font-size: 13px;
  color: #6b5e4b;
  line-height: 1.4;
  margin-top: 2px;
}

/* Bottom: photo left + book info right */
.kf-about__book-row {
  display: flex;
}

.kf-about__book-photo-col {
  flex: 0 0 42%;
  min-height: 380px;
}

.kf-about__trust-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kf-about__book-info-col {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kf-about__book-title {
  font-size: 26px;
  font-weight: 700;
  color: #2B354F;
  line-height: 1.25;
  margin-bottom: 8px;
  margin-top: 6px;
}

.kf-about__book-info-col > p {
  font-size: 15px;
  line-height: 1.6;
  color: #3a3f4b;
  margin-bottom: 16px;
}

.kf-about__cta {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kf-about__cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 53, 79, 0.2);
}

/* As Seen In */
.kf-about__seen-in {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8e2d9;
}

.kf-about__seen-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a7e6e;
  margin-bottom: 8px;
}

.kf-about__seen-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.kf-about__seen-item {
  font-size: 14px;
  font-weight: 600;
  color: #2B354F;
}

.kf-about__seen-dot {
  color: #c4714b;
  margin: 0 8px;
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   Section 4: Methodology + Connect
   ========================================================================== */

.kf-about__methodology {
  padding: 72px 0;
}

.kf-about__method-card,
.kf-about__connect-card {
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: 16px;
  padding: 36px 32px;
  height: 100%;
  box-shadow: 0 4px 24px rgba(120, 90, 50, 0.07);
}

.kf-about__card-inline-title {
  font-size: 24px;
  font-weight: 700;
  color: #2B354F;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid #c4714b;
  display: inline-block;
}

.kf-about__method-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 16px;
}

.kf-about__method-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid #efe9e0;
  font-size: 15px;
  line-height: 1.65;
}

.kf-about__method-list li:last-child {
  border-bottom: none;
}

.kf-about__method-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background: #c4714b;
  border-radius: 50%;
}

.kf-about__method-list li strong {
  color: #2B354F;
}

.kf-about__disclaimer {
  font-size: 14px;
  color: #8a7e6e;
  margin-bottom: 0;
}

.kf-about__disclaimer a {
  color: #6b5e4b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kf-about__disclaimer a:hover {
  color: #c4714b;
}

/* Connect card */
.kf-about__email {
  font-size: 20px;
  font-weight: 600;
  color: #2B354F;
  margin-bottom: 24px;
}

.kf-about__social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.kf-about__social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f0ea;
  color: #2B354F;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid #e8e2d9;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.kf-about__social-link:hover {
  background: #efe9e0;
  color: #2B354F;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(120, 90, 50, 0.1);
}

.kf-about__social-link .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}

.kf-about__connect-photo-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(120, 90, 50, 0.08);
}

.kf-about__connect-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Responsive — Tablet (< 992px)
   ========================================================================== */

@media (max-width: 991px) {
  .kf-about__hero-text-col {
    padding-left: 32px;
  }

  .kf-about__h1 {
    font-size: 36px;
  }

  .kf-about__cred-band {
    gap: 12px;
    padding: 24px 24px;
  }

  .kf-about__book-info-col {
    padding: 28px 28px;
  }
}

/* ==========================================================================
   Responsive — Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
  .kf-about__hero {
    padding: 40px 0 36px;
  }

  .kf-about__hero-photo-col {
    margin-bottom: 32px;
  }

  .kf-about__hero-photo-wrap::before {
    top: -6px;
    left: -6px;
    right: 6px;
    bottom: 6px;
    border-radius: 12px;
  }

  .kf-about__hero-photo {
    border-radius: 12px;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }

  .kf-about__hero-text-col {
    padding-left: 15px;
    text-align: center;
    align-items: center;
  }

  .kf-about__pills {
    justify-content: center;
  }

  .kf-about__h1 {
    font-size: 32px;
  }

  .kf-about__h2 {
    font-size: 26px;
  }

  .kf-about__stats {
    gap: 12px;
  }

  .kf-about__stat-number {
    font-size: 24px;
  }

  .kf-about__stat-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .kf-about__stat-card {
    padding: 16px 12px;
  }

  /* Journey */
  .kf-about__journey {
    padding: 48px 0;
  }

  .kf-about__journey-hero-img {
    border-radius: 12px;
  }

  .kf-about__pullquote {
    font-size: 19px;
    padding-left: 20px;
    margin: 28px 0;
  }

  /* Credentials */
  .kf-about__credentials {
    padding: 48px 0;
  }

  .kf-about__credentials-header {
    margin-bottom: 32px;
  }

  .kf-about__trust-card {
    border-radius: 12px;
  }

  .kf-about__cred-band {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .kf-about__cred-tile {
    padding: 12px 14px;
    gap: 10px;
  }

  .kf-about__cred-marker {
    font-size: 10px;
    padding: 4px 10px;
  }

  .kf-about__cred-text strong {
    font-size: 14px;
  }

  .kf-about__cred-text span {
    font-size: 12px;
  }

  .kf-about__book-row {
    flex-direction: column;
  }

  .kf-about__book-photo-col {
    flex: none;
    min-height: 280px;
    max-height: 320px;
    overflow: hidden;
  }

  .kf-about__book-info-col {
    padding: 24px 20px;
  }

  .kf-about__book-title {
    font-size: 22px;
  }

  /* Methodology */
  .kf-about__methodology {
    padding: 48px 0;
  }

  .kf-about__methodology .col-lg-6:first-child {
    margin-bottom: 24px;
  }

  .kf-about__method-card,
  .kf-about__connect-card {
    padding: 28px 24px;
    border-radius: 12px;
  }

  .kf-about__card-inline-title {
    font-size: 21px;
  }

  .kf-about__social-row {
    gap: 8px;
  }

  .kf-about__social-link {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ==========================================================================
   Responsive — Small Mobile (< 576px)
   ========================================================================== */

@media (max-width: 575px) {
  .kf-about__hero {
    padding: 28px 0;
  }

  .kf-about__h1 {
    font-size: 28px;
  }

  .kf-about__intro {
    font-size: 16px;
  }

  .kf-about__stats {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .kf-about__stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-align: left;
  }

  .kf-about__stat-number {
    font-size: 22px;
    min-width: 60px;
  }

  .kf-about__stat-label {
    margin-top: 0;
  }

  .kf-about__method-list li {
    font-size: 14px;
  }

  .kf-about__email {
    font-size: 17px;
  }
}
