/* WorldWideTravel – About page
   Scoped styles, production-safe overrides. */

.wwt-about {
  --wwt-accent: #44d1cf;
  --wwt-ink: #101518;
  --wwt-text: rgba(16, 21, 24, .84);
  --wwt-muted: rgba(16, 21, 24, .62);
  --wwt-border: rgba(16, 21, 24, .10);
  --wwt-card: #fff;
  --wwt-soft: #f6fbfb;
  --wwt-radius: 18px;
  --wwt-shadow: 0 16px 40px rgba(16, 21, 24, .08);
}

.wwt-about * { box-sizing: border-box; }

/* Full width background section (kept subtle, like your pages) */
.wwt-about .wwt-bleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(180deg, #fff 0%, var(--wwt-soft) 100%);
  padding: clamp(18px, 3vw, 40px) 0;
}

/* Constrain content nicely */
.wwt-about .wwt-wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

/* HERO */
.wwt-about .wwt-hero{
  position: relative;
  min-height: clamp(280px, 40vw, 480px);
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid var(--wwt-border);
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(68, 209, 207, .18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.96)),
    var(--hero-url);
  background-size: cover;
  background-position: center;
  display: grid;
  align-items: end;
}

.wwt-about .wwt-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 72%, #fff 100%);
}

.wwt-about .wwt-hero__inner{
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 18px;
}

.wwt-about .wwt-kicker{
  margin: 0 0 10px 0;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--wwt-muted);
}

.wwt-about .wwt-title{
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--wwt-ink) !important;
}

.wwt-about .wwt-lead{
  margin: 14px 0 0 0;
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--wwt-text) !important;
}

/* Badges/chips */
.wwt-about .wwt-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wwt-about .wwt-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(68, 209, 207, .10);
  border: 1px solid rgba(68, 209, 207, .26);
  color: rgba(16, 21, 24, .78);
  font-weight: 700;
  font-size: 13px;
}

/* STORY */
.wwt-about .wwt-story{
  margin-top: clamp(18px, 3vw, 28px);
  display: grid;
  gap: clamp(16px, 3vw, 22px);
}

.wwt-about .wwt-chapter{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(14px, 3vw, 22px);
  align-items: start;
  background: var(--wwt-card);
  border: 1px solid var(--wwt-border);
  border-radius: var(--wwt-radius);
  box-shadow: var(--wwt-shadow);
  overflow: hidden;
}

.wwt-about .wwt-chapter--reverse{
  grid-template-columns: .95fr 1.05fr;
}

.wwt-about .wwt-chapter__text{
  padding: clamp(18px, 3vw, 30px);
}

.wwt-about .wwt-chapter__text h2{
  margin: 0 0 12px 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--wwt-ink) !important;
}

.wwt-about .wwt-chapter__text p{
  margin: 0;
  color: var(--wwt-muted) !important;
  line-height: 1.9;
  font-size: 16px;
}

.wwt-about .wwt-chapter__text p + p{
  margin-top: 12px;
}

.wwt-about blockquote{
  margin: 16px 0 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--wwt-accent);
  background: rgba(68, 209, 207, .10);
  border-radius: 12px;
  color: rgba(16, 21, 24, .82);
  font-weight: 800;
  line-height: 1.7;
}

/* Media */
.wwt-about .wwt-chapter__media{
  margin: 0;
  position: relative;
  min-height: 320px;
}

.wwt-about .wwt-chapter__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wwt-about .wwt-chapter__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(16,21,24,0) 0%, rgba(16,21,24,.18) 100%);
  pointer-events:none;
}

.wwt-about .wwt-chapter__media figcaption{
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
  color: rgba(16, 21, 24, .68);
  font-weight: 700;
  font-size: 13px;
  z-index: 1;
}

/* CTA */
.wwt-about .wwt-cta{
  border-radius: var(--wwt-radius);
  background: #fff;
  border: 1px solid var(--wwt-border);
  box-shadow: var(--wwt-shadow);
  overflow: hidden;
}

.wwt-about .wwt-cta__inner{
  padding: clamp(18px, 3vw, 34px);
}

.wwt-about .wwt-cta__inner h2{
  margin: 0 0 10px 0;
  color: var(--wwt-ink) !important;
  font-size: clamp(22px, 3vw, 30px);
}

.wwt-about .wwt-cta__inner p{
  margin: 0;
  color: var(--wwt-muted) !important;
  line-height: 1.9;
  font-size: 16px;
  max-width: 80ch;
}

.wwt-about .wwt-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.wwt-about .wwt-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--wwt-border);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.wwt-about .wwt-btn:hover{ transform: translateY(-1px); }

.wwt-about .wwt-btn--primary{
  background: var(--wwt-accent);
  border-color: rgba(68, 209, 207, .50);
  color: #062b2a;
}

.wwt-about .wwt-btn--ghost{
  background: #fff;
  color: var(--wwt-ink);
}

/* Responsive */
@media (max-width: 920px){
  .wwt-about .wwt-chapter,
  .wwt-about .wwt-chapter--reverse{
    grid-template-columns: 1fr;
  }
  .wwt-about .wwt-chapter__media{ min-height: 240px; }
}

/* Readability polish */
.wwt-about .wwt-chapter__text{
  position: relative;
}

.wwt-about .wwt-chapter__text::before{
  content:"";
  position:absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(68,209,207,.0), rgba(68,209,207,.35), rgba(68,209,207,.0));
  border-radius: 999px;
  opacity: .9;
}

.wwt-about .wwt-chapter__text{
  padding-left: clamp(22px, 3vw, 34px);
}

.wwt-about .wwt-chapter__text p{
  max-width: 70ch;
}

.wwt-about .wwt-chapter__text p + p{
  margin-top: 14px;
}

.wwt-about blockquote{
  max-width: 70ch;
}

/* Founders card inside HERO */
.wwt-about .wwt-founders{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(68, 209, 207, .22);
  border-radius: var(--wwt-radius);
  box-shadow: 0 10px 30px rgba(16, 21, 24, .06);
  padding: 12px;
  backdrop-filter: blur(10px);
  max-width: 760px;
}

.wwt-about .wwt-founders__photo{
  margin: 0;
  width: 180px;
  height: 120px;
  border-radius: calc(var(--wwt-radius) - 6px);
  overflow: hidden;
  position: relative;
}

.wwt-about .wwt-founders__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wwt-about .wwt-founders__photo::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(16,21,24,0) 0%, rgba(16,21,24,.12) 100%);
  pointer-events:none;
}

.wwt-about .wwt-founders__kicker{
  margin: 0 0 6px 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wwt-muted);
}

.wwt-about .wwt-founders__title{
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--wwt-ink) !important;
}

.wwt-about .wwt-founders__text{
  margin: 0;
  color: var(--wwt-text) !important;
  line-height: 1.8;
  font-size: 14px;
  max-width: 70ch;
}

/* Mobile */
@media (max-width: 640px){
  .wwt-about .wwt-founders{
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .wwt-about .wwt-founders__photo{
    width: 100%;
    height: 180px;
  }
}

.wwt-about .wwt-founders{
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}

/* HERO GRID WITH PHOTO */

.wwt-about .wwt-hero__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.wwt-about .wwt-hero__content{
  max-width: 640px;
}

.wwt-about .wwt-hero__photo{
  position: relative;
}

.wwt-about .wwt-hero__photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(16,21,24,.15);
  object-fit: cover;
}

/* Subtle floating feel */
.wwt-about .wwt-hero__photo{
  transform: translateY(10px);
}

/* Responsive */
@media (max-width: 960px){
  .wwt-about .wwt-hero__grid{
    grid-template-columns: 1fr;
  }

  .wwt-about .wwt-hero__photo{
    max-width: 520px;
    margin: 24px auto 0 auto;
    transform: none;
  }

  .wwt-about .wwt-hero__content{
    max-width: 100%;
  }
}

/* Scroll reveal – production safe */
.wwt-about .wwt-reveal.is-in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.wwt-about .wwt-reveal--left{ transform: translateX(-18px); }
.wwt-about .wwt-reveal--right{ transform: translateX(18px); }
.wwt-about .wwt-reveal--left.is-in,
.wwt-about .wwt-reveal--right.is-in{ transform: translateX(0); }


.wwt-about .wwt-stagger.is-in > *{
  opacity: 1;
  transform: translateY(0);
}
.wwt-about .wwt-stagger.is-in > *:nth-child(1){ transition-delay: .00s; }
.wwt-about .wwt-stagger.is-in > *:nth-child(2){ transition-delay: .06s; }
.wwt-about .wwt-stagger.is-in > *:nth-child(3){ transition-delay: .12s; }
.wwt-about .wwt-stagger.is-in > *:nth-child(4){ transition-delay: .18s; }
.wwt-about .wwt-stagger.is-in > *:nth-child(5){ transition-delay: .24s; }
.wwt-about .wwt-stagger.is-in > *:nth-child(6){ transition-delay: .30s; }

@media (prefers-reduced-motion: reduce){
  .wwt-about .wwt-reveal,
  .wwt-about .wwt-stagger > *{
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

html.wwt-anim .wwt-about .wwt-reveal{ opacity: 0; }
html.wwt-anim .wwt-about .wwt-reveal.is-in{ opacity: 1; }

/* =========================
   Scroll reveal (SAFE)
   Animations only if JS sets html.wwt-anim
   ========================= */

html.wwt-anim .wwt-about .wwt-reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(7px);
  transition:
    opacity .95s ease,
    transform .95s cubic-bezier(.2,.8,.2,1),
    filter .95s ease;
  will-change: opacity, transform, filter;
}

html.wwt-anim .wwt-about .wwt-reveal.is-in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

html.wwt-anim .wwt-about .wwt-reveal--left{ transform: translateX(-20px); }
html.wwt-anim .wwt-about .wwt-reveal--right{ transform: translateX(20px); }
html.wwt-anim .wwt-about .wwt-reveal--left.is-in,
html.wwt-anim .wwt-about .wwt-reveal--right.is-in{ transform: translateX(0); }

html.wwt-anim .wwt-about .wwt-stagger > *{
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .85s ease,
    transform .85s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

html.wwt-anim .wwt-about .wwt-stagger.is-in > *{
  opacity: 1;
  transform: translateY(0);
}

/* Slightly slower stagger */
html.wwt-anim .wwt-about .wwt-stagger.is-in > *:nth-child(1){ transition-delay: .00s; }
html.wwt-anim .wwt-about .wwt-stagger.is-in > *:nth-child(2){ transition-delay: .10s; }
html.wwt-anim .wwt-about .wwt-stagger.is-in > *:nth-child(3){ transition-delay: .20s; }
html.wwt-anim .wwt-about .wwt-stagger.is-in > *:nth-child(4){ transition-delay: .30s; }
html.wwt-anim .wwt-about .wwt-stagger.is-in > *:nth-child(5){ transition-delay: .40s; }
html.wwt-anim .wwt-about .wwt-stagger.is-in > *:nth-child(6){ transition-delay: .50s; }

@media (prefers-reduced-motion: reduce){
  html.wwt-anim .wwt-about .wwt-reveal,
  html.wwt-anim .wwt-about .wwt-stagger > *{
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* =========================
   WWT About – Mobile readability tuning
   ========================= */

@media (max-width: 640px){

  /* Base text: slightly smaller + tighter leading */
  .wwt-about{
    --wwt-radius: 16px;
  }

  .wwt-about .wwt-lead{
    font-size: 15px;
    line-height: 1.65;
    max-width: 60ch;
  }

  .wwt-about .wwt-chapter__text p,
  .wwt-about .wwt-cta__inner p{
    font-size: 15px;
    line-height: 1.65;
    max-width: 60ch;
  }

  /* Headings: a touch smaller so hierarchy feels nicer on mobile */
  .wwt-about .wwt-title{
    font-size: clamp(28px, 7.2vw, 38px);
    line-height: 1.12;
  }

  .wwt-about .wwt-chapter__text h2,
  .wwt-about .wwt-cta__inner h2{
    font-size: 20px;
    line-height: 1.22;
  }

  /* Reduce padding so text doesn't feel "zoomed" */
  .wwt-about .wwt-chapter__text{
    padding: 16px 16px 18px 16px;
    padding-left: 18px; /* keep room for the accent line */
  }

  .wwt-about .wwt-cta__inner{
    padding: 16px;
  }

  /* Make paragraphs less "wall of text" */
  .wwt-about .wwt-chapter__text p + p{
    margin-top: 10px;
  }

  /* The decorative vertical line: less dominant on small screens */
  .wwt-about .wwt-chapter__text::before{
    left: 12px;
    top: 18px;
    bottom: 18px;
    opacity: .55;
  }

  /* Blockquote: slightly tighter */
  .wwt-about blockquote{
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
  }

  /* Optional: slightly less muted text for better mobile contrast */
  .wwt-about .wwt-chapter__text p{
    color: rgba(16, 21, 24, .72) !important;
  }
}

/* Justified text – readable version */
.wwt-about .wwt-chapter__text p,
.wwt-about .wwt-lead,
.wwt-about .wwt-cta__inner p{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* TOC layout */
.wwt-post__content-wrap{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.wwt-toc{
  border: 1px solid rgba(16,21,24,.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16,21,24,.06);
  padding: 14px 14px 12px;
}

.wwt-toc__title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}

.wwt-toc__list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  font-size: 14px;
}

.wwt-toc__item{ margin: 6px 0; }
.wwt-toc__item--h3{ margin-left: 10px; opacity: .9; }
.wwt-toc__link{ text-decoration: none; }

@media (min-width: 980px){
  .wwt-post__content-wrap{
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
  .wwt-toc{
    position: sticky;
    top: 110px; /* adjust if header overlaps */
  }
}

/* Tours block */
.wwt-post__tours-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.wwt-tour-card{
  grid-column: span 12;
  border: 1px solid rgba(16,21,24,.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.wwt-tour-card__media img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.wwt-tour-card__placeholder{
  height: 170px;
  background: rgba(16,21,24,.04);
}

.wwt-tour-card__title{
  margin: 10px 12px 6px;
  font-size: 15px;
  line-height: 1.35;
}
.wwt-tour-card__title a{ text-decoration: none; }

.wwt-tour-card__more{
  display: inline-block;
  margin: 0 12px 12px;
  text-decoration: none;
  font-weight: 800;
}

@media (min-width: 720px){
  .wwt-tour-card{ grid-column: span 4; }
}
