/* ===================== ABOUT PAGE SPECIFIC STYLES ===================== */
/* Extends the main style.css tokens and components */

/* Hero for About */
.about-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(90, 49, 32, 0.92) 0%, rgba(136, 74, 48, 0.88) 50%, rgba(202, 123, 55, 0.85) 100%),
    url("../images/book-writing-banner.png") center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
  text-align: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(202,123,55,.15) 0%, transparent 45%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.about-hero .container {
  position: relative;
  z-index: 2;
}

.about-hero .eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 18px;
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(202,123,55,.5);
  border-radius: 999px;
  background: rgba(0,0,0,.15);
}

.about-hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.about-hero h1 span {
  color: var(--gold);
  display: block;
  font-size: 0.72em;
  margin-top: 8px;
  font-weight: 500;
}

.about-hero .hero-lead {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
}

.about-hero .btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 16px 40px;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.about-hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,.35);
}

/* Floating decorative elements */
.about-hero .float-book {
  position: absolute;
  width: 120px;
  opacity: 0.12;
  animation: floatBook 8s ease-in-out infinite;
  pointer-events: none;
}
.about-hero .float-book:nth-child(1) { top: 18%; left: 8%; animation-delay: 0s; }
.about-hero .float-book:nth-child(2) { top: 55%; right: 10%; animation-delay: -3s; width: 90px; }
.about-hero .float-book:nth-child(3) { bottom: 12%; left: 15%; animation-delay: -5s; width: 70px; }

@keyframes floatBook {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-22px) rotate(4deg); }
}

/* Intro story section */
.about-intro {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.about-intro::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202,123,55,.12), transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-intro-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 22px;
  color: var(--navy-deep);
}

.about-intro-content p {
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-intro-content p strong {
  color: var(--navy-deep);
}

.about-intro-visual {
  position: relative;
}

.about-intro-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 24px 50px rgba(15,23,42,.1);
  border: 1px solid rgba(136,74,48,.08);
  transform: rotate(1.5deg);
  transition: transform .4s ease, box-shadow .4s ease;
}

.about-intro-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 32px 60px rgba(15,23,42,.16);
}

.about-intro-card .quote-mark {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: 12px;
}

.about-intro-card p {
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 20px;
}

.about-intro-card .author {
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 15px;
}

/* Stats / Unique bar */
.unique-stats {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.unique-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  animation: uniqueGridDrift 20s linear infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,.12);
  border-color: rgba(202,123,55,.55);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 14px;
  color: #D7DCE8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* What Makes Us Unique */
.unique-section {
  padding: 100px 0;
  background: var(--white);
}

.unique-section .section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.unique-section h2 {
  margin-bottom: 16px;
}

.unique-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.unique-feature {
  background: var(--cream);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid transparent;
  transition: all .35s cubic-bezier(.34,1.2,.64,1);
  position: relative;
  overflow: hidden;
}

.unique-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.unique-feature:hover {
  transform: translateY(-12px);
  background: var(--white);
  border-color: rgba(202,123,55,.25);
  box-shadow: 0 22px 48px rgba(15,23,42,.12);
}

.unique-feature:hover::before {
  transform: scaleX(1);
}

.unique-feature .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 28px;
  box-shadow: 0 12px 28px rgba(90,49,32,.25);
  transition: transform .4s ease;
}

.unique-feature:hover .icon-wrap {
  transform: scale(1.1) rotate(8deg);
}

.unique-feature h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--navy-deep);
}

.unique-feature p {
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* Process / Steps - enhanced */
.about-process {
  padding: 100px 0 110px;
  background:
    radial-gradient(circle at 10% 20%, rgba(202,123,55,.1), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(136,74,48,.08), transparent 32%),
    linear-gradient(180deg, #FBF8F1, var(--white));
  position: relative;
  overflow: hidden;
}

.about-process .section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.process-step {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px 32px;
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
  border: 1px solid #ECEBE4;
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  overflow: hidden;
}

.process-step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transform: scaleX(0);
  transition: transform .45s ease;
}

.process-step:hover {
  transform: translateY(-14px);
  box-shadow: 0 28px 56px rgba(15,23,42,.14);
  border-color: rgba(202,123,55,.35);
}

.process-step:hover::after {
  transform: scaleX(1);
}

.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  transition: all .35s ease;
}

.process-step:hover .step-number {
  color: var(--gold);
  -webkit-text-stroke: 0;
  transform: scale(1.08);
}

.process-step h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--navy-deep);
}

.process-step p {
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

/* CTA band */
.about-cta {
  padding: 80px 0;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, #3d2115 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-cta::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(202,123,55,.12);
  top: -200px;
  right: -100px;
  filter: blur(40px);
  animation: ctaOrb 10s ease-in-out infinite alternate;
}

@keyframes ctaOrb {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.15); }
}

.about-cta h2 {
  color: var(--white);
  font-size: clamp(28px, 4.5vw, 42px);
  margin-bottom: 16px;
  position: relative;
}

.about-cta p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: #D7DCE8;
  font-size: 17px;
  position: relative;
}

.about-cta .btn-primary {
  position: relative;
  padding: 16px 42px;
  font-size: 16px;
}

/* Contact + Map section */
.about-contact {
  padding: 100px 0;
  background: var(--cream);
}

.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
  border-top: 4px solid var(--gold);
}

.contact-info-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-info-card > p {
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.contact-detail:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(90,49,32,.3);
}

.contact-detail a,
.contact-detail span {
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 15px;
  line-height: 1.45;
}

.contact-detail small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15,23,42,.1);
  height: 100%;
  min-height: 360px;
  background: #e8e4dc;
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* Form card in contact */
.about-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
  border-top: 4px solid var(--gold);
  margin-top: 28px;
}

.about-form-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.about-form-card > p {
  margin-bottom: 20px;
  font-size: 14.5px;
}

/* Reveal animations already in main CSS, enhance stagger */
.about-process .process-step,
.unique-features .unique-feature,
.stats-grid .stat-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.about-process.in-view .process-step,
.unique-section.in-view .unique-feature,
.unique-stats.in-view .stat-card {
  opacity: 1;
  transform: translateY(0);
}

.about-process.in-view .process-step:nth-child(1) { transition-delay: .05s; }
.about-process.in-view .process-step:nth-child(2) { transition-delay: .12s; }
.about-process.in-view .process-step:nth-child(3) { transition-delay: .19s; }
.about-process.in-view .process-step:nth-child(4) { transition-delay: .26s; }
.about-process.in-view .process-step:nth-child(5) { transition-delay: .33s; }
.about-process.in-view .process-step:nth-child(6) { transition-delay: .4s; }

.unique-section.in-view .unique-feature:nth-child(1) { transition-delay: .08s; }
.unique-section.in-view .unique-feature:nth-child(2) { transition-delay: .16s; }
.unique-section.in-view .unique-feature:nth-child(3) { transition-delay: .24s; }

.unique-stats.in-view .stat-card:nth-child(1) { transition-delay: .05s; }
.unique-stats.in-view .stat-card:nth-child(2) { transition-delay: .12s; }
.unique-stats.in-view .stat-card:nth-child(3) { transition-delay: .19s; }
.unique-stats.in-view .stat-card:nth-child(4) { transition-delay: .26s; }

/* Responsive */
@media (max-width: 980px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-intro-visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .unique-features {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .process-timeline {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-hero {
    padding: 90px 0 70px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat-card {
    padding: 22px 16px;
  }
  .contact-info-card,
  .about-form-card {
    padding: 28px 22px;
  }
}

/* Counter animation helper */
.stat-number.counting {
  transition: none;
}
